X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/39bc0347fda3505f7fb43447f21efd84b9e00b3c..3896f1cc5fa8b6ab3def7deac861bfdbfdb4df96:/include/wx/control.h diff --git a/include/wx/control.h b/include/wx/control.h index cf939b5459..a7c6496e72 100644 --- a/include/wx/control.h +++ b/include/wx/control.h @@ -22,13 +22,13 @@ #include "wx/window.h" // base class -extern WXDLLEXPORT_DATA(const wxChar) wxControlNameStr[]; +extern WXDLLIMPEXP_DATA_CORE(const char) wxControlNameStr[]; // ---------------------------------------------------------------------------- // wxControl is the base class for all controls // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxControlBase : public wxWindow +class WXDLLIMPEXP_CORE wxControlBase : public wxWindow { public: wxControlBase() { } @@ -73,8 +73,10 @@ public: // removes the mnemonics characters static wxString RemoveMnemonics(const wxString& str); - // escapes the mnemonics characters ('&') by doubling them - static wxString EscapeMnemonics(const wxString& str); + // return the accel index in the string or -1 if none and puts the modified + // string into second parameter if non NULL + static int FindAccelIndex(const wxString& label, + wxString *labelOnly = NULL); // controls by default inherit the colours of their parents, if a @@ -95,6 +97,9 @@ public: virtual void DoUpdateWindowUI(wxUpdateUIEvent& event); protected: + // choose the default border for this window + virtual wxBorder GetDefaultBorder() const; + // creates the control (calls wxWindowBase::CreateBase inside) and adds it // to the list of parents children bool CreateControl(wxWindowBase *parent, @@ -131,7 +136,7 @@ protected: #elif defined(__WXGTK__) #include "wx/gtk1/control.h" #elif defined(__WXMAC__) - #include "wx/mac/control.h" + #include "wx/osx/control.h" #elif defined(__WXCOCOA__) #include "wx/cocoa/control.h" #elif defined(__WXPM__)