Added some temporary icons to the repository
[qemu-gui.git] / menubar.h
blob2b891b7a840c6ee09f720ca03fe54d8974496d19
1 #ifndef QEMU_GUI_MENUBAR_H
2 #define QEMU_GUI_MENUBAR_H
4 #include <wx/menu.h>
6 class wxMenu;
8 class QemuUIMenuBar : public wxMenuBar
10 public:
11 QemuUIMenuBar();
13 wxMenu* GetFileMenu();
14 /**
15 * Disables all vm related menu entries an gets called if when
16 * the homepage is activated.
17 */
18 void Disable();
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);
25 /**
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);
30 /**
31 * used to enable or disable toolbar related menuentries
32 * gets called when the toolbar is hidden/shown
34 void EnableToolbar(bool);
36 /**
37 * used to reflect the current state of the favorites panel
38 * gets called when the splitter is unsplit
40 void CheckFavorites(bool);
42 /**
43 * used to reflect the changes of the currently open vm's
44 * in the window menu
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);
51 /**
52 * returns the position of the currently checked menu entry
54 int GetCheckedWindowMenuEntry();
55 private:
56 wxMenu *CreateFileMenu();
57 wxMenu *CreateViewMenu();
58 wxMenu *CreateVMMenu();
59 wxMenu *CreatePowerMenu();
60 wxMenu *CreateWindowMenu();
61 wxMenu *CreateHelpMenu();
62 wxMenu *filemenu;
63 wxMenu *viewmenu;
64 wxMenu *vmmenu;
65 wxMenu *powermenu;
66 wxMenu *windowmenu;
67 wxMenu *helpmenu;
69 void InsertWindowMenuEntry(const size_t pos,const wxString& title);
72 #endif