]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/menu.h
add a more readable wrapper for CreateDocument(wxEmptyString, wxDOC_NEW)
[wxWidgets.git] / interface / wx / menu.h
index f19fc4ca04ed1890dab435e9f265ffdb9c929995..b232d89f4ceb0da70eede09589dff635411eb61f 100644 (file)
@@ -8,7 +8,6 @@
 
 /**
     @class wxMenuBar
-    @wxheader{menu.h}
 
     A menu bar is a series of menus accessible from the top of a frame.
 
@@ -49,7 +48,7 @@ public:
         Destructor, destroying the menu bar and removing it from the parent frame (if
         any).
     */
-    ~wxMenuBar();
+    virtual ~wxMenuBar();
 
     /**
         Adds the item to the end of the menu bar.
@@ -63,7 +62,7 @@ public:
 
         @see Insert()
     */
-    bool Append(wxMenu* menu, const wxString& title);
+    virtual bool Append(wxMenu* menu, const wxString& title);
 
     /**
         Checks or unchecks a menu item.
@@ -240,7 +239,7 @@ public:
 
         @see Append()
     */
-    bool Insert(size_t pos, wxMenu* menu, const wxString& title);
+    virtual bool Insert(size_t pos, wxMenu* menu, const wxString& title);
 
     /**
         Determines whether an item is checked.
@@ -275,7 +274,7 @@ public:
 
         @see Replace()
     */
-    wxMenu* Remove(size_t pos);
+    virtual wxMenu* Remove(size_t pos);
 
     /**
         Replaces the menu at the given position with another one.
@@ -292,7 +291,7 @@ public:
 
         @see Insert(), Remove()
     */
-    wxMenu* Replace(size_t pos, wxMenu* menu, const wxString& title);
+    virtual wxMenu* Replace(size_t pos, wxMenu* menu, const wxString& title);
 
     /**
         Sets the help string associated with a menu item.
@@ -351,7 +350,6 @@ public:
 
 /**
     @class wxMenu
-    @wxheader{menu.h}
 
     A menu is a popup (or pull down) list of items, one of which may be
     selected before the menu goes away (clicking elsewhere dismisses the
@@ -424,7 +422,7 @@ public:
         a different window from last time, which causes an implicit destruction
         and recreation of internal data structures.
     */
-    ~wxMenu();
+    virtual ~wxMenu();
 
     /**
         Adds a menu item. 
@@ -469,8 +467,7 @@ public:
              AppendSubMenu(), Insert(), SetLabel(),
              GetHelpString(), SetHelpString(), wxMenuItem
     */
-    wxMenuItem* Append(int id, const wxString& item,
-                       wxMenu* subMenu,
+    wxMenuItem* Append(int id, const wxString& item, wxMenu* subMenu,
                        const wxString& helpString = wxEmptyString);
                        
     /**
@@ -526,7 +523,7 @@ public:
         Inserts a break in a menu, causing the next appended item to appear in a new
         column.
     */
-    void Break();
+    virtual void Break();
 
     /**
         Checks or unchecks the menu item.
@@ -609,7 +606,7 @@ public:
         @remarks Any special menu codes are stripped out of source and target
                  strings before matching.
     */
-    int FindItem(const wxString& itemString) const;
+    virtual int FindItem(const wxString& itemString) const;
 
     /**
         Finds the menu item object associated with the given menu item identifier and,
@@ -641,7 +638,7 @@ public:
 
         @see SetHelpString(), Append()
     */
-    wxString GetHelpString(int id) const;
+    virtual wxString GetHelpString(int id) const;
 
     /**
         Returns a menu item label.
@@ -834,7 +831,7 @@ public:
 
         @see GetHelpString()
     */
-    void SetHelpString(int id, const wxString& helpString);
+    virtual void SetHelpString(int id, const wxString& helpString);
 
     /**
         Sets the label of a menu item.
@@ -859,7 +856,7 @@ public:
 
         @see GetTitle()
     */
-    void SetTitle(const wxString& title);
+    virtual void SetTitle(const wxString& title);
 
     /**
         Sends events to @a source (or owning window if @NULL) to update the
@@ -867,6 +864,6 @@ public:
         wxWindow::PopupMenu, but
         the application may call it at other times if required.
     */
-    void UpdateUI(wxEvtHandler* source = NULL) const;
+    void UpdateUI(wxEvtHandler* source = NULL);
 };