]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/motif/button.h
added assert to detect attempt to install idle handler from widget callback
[wxWidgets.git] / include / wx / motif / button.h
index dc69dceae7089c98174c515325cfc62cd2990a4d..dd046850d806f6b629ecfb39480d0988c74a25fe 100644 (file)
 #pragma interface "button.h"
 #endif
 
-#include "wx/control.h"
-#include "wx/gdicmn.h"
-
 WXDLLEXPORT_DATA(extern const char*) wxButtonNameStr;
 
 // Pushbutton
-class WXDLLEXPORT wxButton: public wxControl
+class WXDLLEXPORT wxButton: public wxButtonBase
 {
     DECLARE_DYNAMIC_CLASS(wxButton)
         
@@ -51,9 +48,9 @@ public:
     static wxSize GetDefaultSize();
     
     // Implementation
-    virtual void ChangeFont(bool keepOriginalSize = TRUE);
-    virtual void ChangeBackgroundColour();
-    virtual void ChangeForegroundColour();
+private:
+    virtual wxSize DoGetBestSize() const;
+    void SetDefaultShadowThicknessAndResize();
 };
 
 #endif