added (half working) wxGTKRenderer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -26,8 +26,12 @@ class WXDLLEXPORT wxInputHandler;
|
||||
|
||||
typedef wxString wxControlAction;
|
||||
|
||||
// no action to perform (other actions are defined in the controls headers)
|
||||
#define wxACTION_NONE _T("")
|
||||
// the list of actions which apply to all controls (other actions are defined
|
||||
// in the controls headers)
|
||||
|
||||
#define wxACTION_NONE _T("") // no action to perform
|
||||
#define wxACTION_HIGHLIGHT _T("focus") // highlight the control
|
||||
#define wxACTION_UNHIGHLIGHT _T("unfocus") // remove highlight
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxControl: the base class for all GUI controls
|
||||
@@ -36,7 +40,7 @@ typedef wxString wxControlAction;
|
||||
class WXDLLEXPORT wxControl : public wxControlBase
|
||||
{
|
||||
public:
|
||||
wxControl();
|
||||
wxControl() { Init(); }
|
||||
|
||||
wxControl(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
@@ -45,6 +49,8 @@ public:
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString& name = wxControlNameStr)
|
||||
{
|
||||
Init();
|
||||
|
||||
Create(parent, id, pos, size, style, validator, name);
|
||||
}
|
||||
|
||||
@@ -62,9 +68,13 @@ public:
|
||||
|
||||
// get the state information
|
||||
virtual bool IsFocused() const;
|
||||
virtual bool IsHighlighted() const;
|
||||
virtual bool IsPressed() const;
|
||||
virtual bool IsDefault() const;
|
||||
|
||||
// operations
|
||||
void Highlight(bool doit = TRUE);
|
||||
|
||||
// implementation only from now on
|
||||
|
||||
// return the index of the accel char in the label or -1 if none
|
||||
@@ -94,6 +104,9 @@ protected:
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
|
||||
private:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// input processor
|
||||
wxInputHandler *m_handler;
|
||||
|
||||
@@ -101,6 +114,9 @@ private:
|
||||
wxString m_label;
|
||||
int m_indexAccel;
|
||||
|
||||
// state
|
||||
bool m_isHighlighted;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxControl)
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
Reference in New Issue
Block a user