]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/menu.h
Committing in .
[wxWidgets.git] / include / wx / menu.h
index 440747fe17c1126339abbf460b272dae872776cf..83576de1cf44b4116c7ab2edadef555734b19e63 100644 (file)
@@ -57,9 +57,6 @@ public:
     // menu construction
     // -----------------
 
-    // append a separator to the menu
-    void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
-
     // append a normal item to the menu
     void Append(int id,
                 const wxString& text,
@@ -69,6 +66,9 @@ public:
         DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, isCheckable));
     }
 
+    // append a separator to the menu
+    void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
+
     // append a submenu
     void Append(int id,
                 const wxString& text,
@@ -182,6 +182,11 @@ public:
     wxFunction m_callback;
 #endif // WXWIN_COMPATIBILITY
 
+    // unlike FindItem(), this function doesn't recurse but only looks through
+    // our direct children and also may return the index of the found child if
+    // pos != NULL
+    wxMenuItem *FindChildItem(int id, size_t *pos = NULL) const;
+
 protected:
     // virtuals to override in derived classes
     // ---------------------------------------
@@ -199,11 +204,6 @@ protected:
     // common part of all ctors
     void Init(long style);
 
-    // unlike FindItem(), this function doesn't recurse but only looks through
-    // our direct children and also may return the index of the found child if
-    // pos != NULL
-    wxMenuItem *FindChildItem(int id, size_t *pos = NULL) const;
-
 protected:
     wxMenuBar     *m_menuBar;           // menubar we belong to or NULL
     wxMenu        *m_menuParent;        // parent menu or NULL