- // ctor & dtor
- wxMenuItem(wxMenu *pParentMenu = NULL, int id = ID_SEPARATOR,
- const wxString& strName = "", const wxString& wxHelp = "",
- bool bCheckable = FALSE, wxMenu *pSubMenu = NULL);
- virtual ~wxMenuItem();
-
- // accessors (some more are inherited from wxOwnerDrawn or are below)
- bool IsSeparator() const { return m_idItem == ID_SEPARATOR; }
- bool IsEnabled() const { return m_bEnabled; }
- bool IsChecked() const { return m_bChecked; }
-
- int GetId() const { return m_idItem; }
- const wxString& GetHelp() const { return m_strHelp; }
- wxMenu *GetSubMenu() const { return m_pSubMenu; }
-
- // operations
- void SetName(const wxString& strName) { m_strName = strName; }
- void SetHelp(const wxString& strHelp) { m_strHelp = strHelp; }
-
- void Enable(bool bDoEnable = TRUE);
- void Check(bool bDoCheck = TRUE);
-
- void DeleteSubMenu();
+ wxMenuItem(wxMenu *parentMenu = (wxMenu *)NULL,
+ int id = wxID_SEPARATOR,
+ const wxString& text = wxEmptyString,
+ const wxString& help = wxEmptyString,
+ bool isCheckable = FALSE,
+ wxMenu *subMenu = (wxMenu *)NULL);
+ ~wxMenuItem();
+
+ // implement base class virtuals
+ virtual void SetText( const wxString& str );
+ virtual void Enable( bool enable = TRUE );
+ virtual void Check( bool check = TRUE );
+ virtual bool IsChecked() const;
+ virtual void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; }
+ virtual const wxBitmap& GetBitmap() const { return m_bitmap; }
+
+#if wxUSE_ACCEL
+ virtual wxAcceleratorEntry *GetAccel() const;
+#endif // wxUSE_ACCEL
+
+ // implementation
+ void SetMenuItem(GtkWidget *menuItem) { m_menuItem = menuItem; }
+ GtkWidget *GetMenuItem() const { return m_menuItem; }
+ GtkWidget *GetLabelWidget() const { return m_labelWidget; }
+ void SetLabelWidget(GtkWidget *labelWidget) { m_labelWidget = labelWidget; }
+ wxString GetFactoryPath() const;
+
+ wxString GetHotKey() const { return m_hotKey; }