// implementation only
wxList& GetMenus() { return m_menus; }
+
+ void SetInvokingWindow( wxWindow *win );
+ void UnsetInvokingWindow( wxWindow *win );
GtkAccelGroup *m_accel;
GtkItemFactory *m_factory;
wxList m_menus;
GtkWidget *m_menubar;
+ long m_style;
};
//-----------------------------------------------------------------------------
public:
wxMenu( const wxString& title = wxEmptyString,
- const wxFunction func = (wxFunction) NULL );
+ const wxFunction func = (wxFunction) NULL,
+ long style = 0);
+ wxMenu( long style );
~wxMenu();
// operations
GtkAccelGroup *m_accel;
GtkItemFactory *m_factory;
-private:
+ // used by wxMenuBar
+ inline long GetStyle(void) const { return m_style; }
+ private:
+ // common code for both constructors:
+ void Init( const wxString& title,
+ const wxFunction func,
+ long style);
wxString m_title;
wxList m_items;
wxFunction m_callback;
wxEvtHandler *m_eventHandler;
void *m_clientData;
+ long m_style;
};
#endif // __GTKMENUH__