#define BTN_BOX_HEIGHT 12
#define BTN_BOX_WIDTH 12
-#define BTN_X_WIEGHT 2
+#define BTN_X_WEIGHT 2
-class WXFL_DECLSPEC cbMiniButton;
+class WXDLLIMPEXP_FL cbMiniButton;
typedef cbMiniButton* cbMinitButtonPtrT;
-WXFL_DEFINE_ARRAY( cbMinitButtonPtrT, cbMiniButtonArrayT );
+WXFL_DEFINE_ARRAY_PTR( cbMinitButtonPtrT, cbMiniButtonArrayT );
/*
A tool window is a special kind of frame that paints its own title, and
can be used to implement small floating windows.
*/
-class WXFL_DECLSPEC wxToolWindow : public wxFrame
+class WXDLLIMPEXP_FL wxToolWindow : public wxFrame
{
DECLARE_DYNAMIC_CLASS( wxToolWindow )
// Called when a mini button is clicked.
// By default, does nothing.
- virtual void OnMiniButtonClicked( int btnIdx ) {}
+ virtual void OnMiniButtonClicked( int WXUNUSED(btnIdx) ) {}
// Handles clicking on the title. By default, does nothing.
- virtual bool HandleTitleClick( wxMouseEvent& event ) { return FALSE; }
+ virtual bool HandleTitleClick( wxMouseEvent& WXUNUSED(event) ) { return false; }
DECLARE_EVENT_TABLE()
};
// Set the position of the button.
void SetPos( const wxPoint& pos );
- // Returns TRUE if the given position was over the button.
+ // Returns true if the given position was over the button.
bool HitTest( const wxPoint& pos );
// Responds to a left down event.
// the desired appearance.
virtual void Draw( wxDC& dc );
- // Returns TRUE if the button was clicked.
+ // Returns true if the button was clicked.
bool WasClicked();
// Reset the button.
// Enable or disable the button.
void Enable( bool enable ) { mEnabled = enable; }
- // Returns TRUE if this button is pressed.
+ // Returns true if this button is pressed.
bool IsPressed() { return mPressed; }
};
cbCloseBox is a window close button, used in a wxToolWindow titlebar.
*/
-class WXFL_DECLSPEC cbCloseBox : public cbMiniButton
+class WXDLLIMPEXP_FL cbCloseBox : public cbMiniButton
{
public:
// Draws the close button appearance.
cbCollapseBox is a window collapse button, used in a wxToolWindow titlebar.
*/
-class WXFL_DECLSPEC cbCollapseBox : public cbMiniButton
+class WXDLLIMPEXP_FL cbCollapseBox : public cbMiniButton
{
public:
bool mIsAtLeft;
cbDockBox is a window dock button, used in a wxToolWindow titlebar.
*/
-class WXFL_DECLSPEC cbDockBox : public cbMiniButton
+class WXDLLIMPEXP_FL cbDockBox : public cbMiniButton
{
public:
// Draws the dock button appearance.
implementing floating toolbars.
*/
-class WXFL_DECLSPEC cbFloatedBarWindow : public wxToolWindow
+class WXDLLIMPEXP_FL cbFloatedBarWindow : public wxToolWindow
{
DECLARE_DYNAMIC_CLASS( cbFloatedBarWindow )
protected: