int FindMenuItem( const wxString &menuString, const wxString &itemString ) const;
wxMenuItem* FindMenuItemById( int id ) const;
+ inline wxMenuItem* FindItemForId( int id ) const
+ { return FindMenuItemById( id ); }
void Check( int id, bool check );
bool Checked( int id ) const;
inline void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; }
inline wxEvtHandler *GetEventHandler() { return m_eventHandler; }
-public:
+ inline void SetClientData( void* clientData ) { m_clientData = clientData; }
+ inline void* GetClientData() const { return m_clientData; }
+
+// implementation
+
int FindMenuIdByMenuItem( GtkWidget *menuItem ) const;
void SetInvokingWindow( wxWindow *win );
wxWindow *GetInvokingWindow();
wxWindow *m_invokingWindow;
wxFunction m_callback;
wxEvtHandler *m_eventHandler;
+ void *m_clientData;
GtkWidget *m_menu; // GtkMenu
};