wxMenuBar();
wxMenuBar(long style);
wxMenuBar(int n, wxMenu *menus[], const wxString titles[]);
+ ~wxMenuBar();
// menubar construction
void Append( wxMenu *menu, const wxString &title );
void Enable( int id, bool enable );
bool IsEnabled( int id ) const;
- wxString GetLabel( int id ) const;
void SetLabel( int id, const wxString &label );
+ wxString GetLabel( int id ) const;
+ wxString GetLabel() const { return wxWindow::GetLabel(); }
void EnableTop( int pos, bool flag );
void SetLabelTop( int pos, const wxString& label );
wxMenuItem* FindMenuItemById( int id ) const { return FindItem(id); }
#endif // WXWIN_COMPATIBILITY
- // implementation
+ // implementation only
wxList& GetMenus() { return m_menus; }
-protected:
- wxList m_menus;
- GtkWidget *m_menubar;
+ GtkAccelGroup *m_accel;
+ GtkItemFactory *m_factory;
+ wxList m_menus;
+ GtkWidget *m_menubar;
};
//-----------------------------------------------------------------------------
void SetInvokingWindow( wxWindow *win );
wxWindow *GetInvokingWindow();
- // implementation only
+ // implementation GTK only
GtkWidget *m_menu; // GtkMenu
GtkWidget *m_owner;
-
GtkAccelGroup *m_accel;
GtkItemFactory *m_factory;
private:
+
wxString m_title;
wxList m_items;
wxWindow *m_invokingWindow;