New menu code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -48,8 +48,9 @@ public:
|
||||
// common part of Append and Insert
|
||||
bool GtkAppend(wxMenu *menu, const wxString& title);
|
||||
|
||||
#ifndef __WXGTK20__
|
||||
GtkAccelGroup *m_accel;
|
||||
GtkItemFactory *m_factory;
|
||||
#endif
|
||||
GtkWidget *m_menubar;
|
||||
long m_style;
|
||||
wxWindow *m_invokingWindow;
|
||||
@@ -87,7 +88,6 @@ public:
|
||||
GtkWidget *m_menu; // GtkMenu
|
||||
GtkWidget *m_owner;
|
||||
GtkAccelGroup *m_accel;
|
||||
GtkItemFactory *m_factory;
|
||||
|
||||
private:
|
||||
// common code for all constructors:
|
||||
@@ -96,9 +96,7 @@ private:
|
||||
// common part of Append and Insert
|
||||
bool GtkAppend(wxMenuItem *item);
|
||||
|
||||
// if the last menu item was a radio one, this field contains its path,
|
||||
// otherwise it is empty
|
||||
wxString m_pathLastRadio;
|
||||
GtkWidget *m_prevRadio;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMenu)
|
||||
};
|
||||
|
@@ -48,8 +48,9 @@ public:
|
||||
// common part of Append and Insert
|
||||
bool GtkAppend(wxMenu *menu, const wxString& title);
|
||||
|
||||
#ifndef __WXGTK20__
|
||||
GtkAccelGroup *m_accel;
|
||||
GtkItemFactory *m_factory;
|
||||
#endif
|
||||
GtkWidget *m_menubar;
|
||||
long m_style;
|
||||
wxWindow *m_invokingWindow;
|
||||
@@ -87,7 +88,6 @@ public:
|
||||
GtkWidget *m_menu; // GtkMenu
|
||||
GtkWidget *m_owner;
|
||||
GtkAccelGroup *m_accel;
|
||||
GtkItemFactory *m_factory;
|
||||
|
||||
private:
|
||||
// common code for all constructors:
|
||||
@@ -96,9 +96,7 @@ private:
|
||||
// common part of Append and Insert
|
||||
bool GtkAppend(wxMenuItem *item);
|
||||
|
||||
// if the last menu item was a radio one, this field contains its path,
|
||||
// otherwise it is empty
|
||||
wxString m_pathLastRadio;
|
||||
GtkWidget *m_prevRadio;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxMenu)
|
||||
};
|
||||
|
@@ -330,6 +330,11 @@ public:
|
||||
Insert(0u, itemid, text, help, isCheckable);
|
||||
}
|
||||
|
||||
static void LockAccels(bool locked)
|
||||
{
|
||||
ms_locked = locked;
|
||||
}
|
||||
|
||||
protected:
|
||||
// virtuals to override in derived classes
|
||||
// ---------------------------------------
|
||||
@@ -362,6 +367,8 @@ protected:
|
||||
|
||||
wxEvtHandler *m_eventHandler; // a pluggable in event handler
|
||||
|
||||
static bool ms_locked;
|
||||
|
||||
DECLARE_NO_COPY_CLASS(wxMenuBase)
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user