// terminate the current radio group, if any
void EndRadioGroup();
- // if TRUE, insert a breal before appending the next item
+ // if true, insert a breal before appending the next item
bool m_doBreak;
// the position of the first item in the current radio group or -1
class WXDLLEXPORT wxMenuInfo : public wxObject
{
public :
- wxMenuInfo() { m_menu = NULL ; }
+ wxMenuInfo() { m_menu = NULL; }
virtual ~wxMenuInfo() { }
- void Create( wxMenu *menu , const wxString &title )
- { m_menu = menu ; m_title = title ; }
- wxMenu* GetMenu() const { return m_menu ; }
- wxString GetTitle() const { return m_title ; }
+ void Create( wxMenu *menu , const wxString &title )
+ { m_menu = menu; m_title = title; }
+ wxMenu* GetMenu() const { return m_menu; }
+ wxString GetTitle() const { return m_title; }
private :
- wxMenu *m_menu ;
- wxString m_title ;
+ wxMenu *m_menu;
+ wxString m_title;
- DECLARE_DYNAMIC_CLASS(wxMenuInfo) ;
-} ;
+ DECLARE_DYNAMIC_CLASS(wxMenuInfo)
+};
WX_DECLARE_EXPORTED_LIST(wxMenuInfo, wxMenuInfoList );
class WXDLLEXPORT wxMenuBar : public wxMenuBarBase
{
public:
- // ctors & dtor
+ // ctors & dtor
// default constructor
wxMenuBar();
// unused under MSW
virtual ~wxMenuBar();
// menubar construction
- bool Append( wxMenuInfo *info ) { return Append( info->GetMenu() , info->GetTitle() ) ; }
- const wxMenuInfoList& GetMenuInfos() const ;
+ bool Append( wxMenuInfo *info ) { return Append( info->GetMenu() , info->GetTitle() ); }
+ const wxMenuInfoList& GetMenuInfos() const;
virtual bool Append( wxMenu *menu, const wxString &title );
virtual bool Insert(size_t pos, wxMenu *menu, const wxString& title);
// common part of all ctors
void Init();
- wxArrayString m_titles ;
+ wxArrayString m_titles;
wxMenuInfoList m_menuInfos;
WXHMENU m_hMenu;