1 #ifndef QEMU_GUI_MENUBAR_H
2 #define QEMU_GUI_MENUBAR_H
8 class QemuUIMenuBar
: public wxMenuBar
13 wxMenu
* GetFileMenu();
15 * Disables all vm related menu entries an gets called if when
16 * the homepage is activated.
19 void Settings(bool state
);
20 void SendCtrlAltDel(bool state
);
21 void PowerOn(bool state
);
22 void Pause(bool state
);
23 void PowerOff(bool state
);
24 void Reset(bool state
);
26 * places the exit menuitem at the end of the menu gets
27 * called after a filehistory update occured
29 void UpdateFileHistory(const size_t fileHistoryCount
);
31 * used to enable or disable toolbar related menuentries
32 * gets called when the toolbar is hidden/shown
34 void EnableToolbar(bool);
37 * used to reflect the current state of the favorites panel
38 * gets called when the splitter is unsplit
40 void CheckFavorites(bool);
43 * used to reflect the changes of the currently open vm's
46 void UpdateWindowMenu(const size_t posOld
,const size_t posNew
);
47 void RemoveWindowMenuEntry(const size_t pos
);
48 void PrependWindowMenuEntry(const wxString
& title
);
49 void AppendWindowMenuEntry(const wxString
& title
);
50 void CheckWindowMenuEntry(size_t pos
);
52 * returns the position of the currently checked menu entry
54 int GetCheckedWindowMenuEntry();
56 wxMenu
*CreateFileMenu();
57 wxMenu
*CreateViewMenu();
58 wxMenu
*CreateVMMenu();
59 wxMenu
*CreatePowerMenu();
60 wxMenu
*CreateWindowMenu();
61 wxMenu
*CreateHelpMenu();
69 void InsertWindowMenuEntry(const size_t pos
,const wxString
& title
);