Added some temporary icons to the repository
[qemu-gui.git] / favorites.h
blob3165b7da6c1f9a84f8e63b78c3d95aba5585e985
1 #ifndef QEMU_GUI_FAVORITES
2 #define QEMU_GUI_FAVORITES
4 #include <wx/panel.h>
5 //#include <wx/menu.h>
6 #include <wx/listctrl.h>
8 class wxButton;
9 class wxStaticText;
10 class wxBoxSizer;
11 class QemuVM;
13 class QemuUIFavoritesWindow : public wxPanel
15 public:
16 QemuUIFavoritesWindow(wxWindow *parent);
17 ~QemuUIFavoritesWindow();
18 void AddVM(QemuVM *vm);
19 private:
20 void LoadFavorites();
21 void OnListItemActivated(wxListEvent&);
22 void OnContextMenu(wxListEvent&);
23 void OnContextMenuOpen(wxCommandEvent&);
24 void OnContextMenuEdit(wxCommandEvent&);
25 void OnContextMenuRemove(wxCommandEvent&);
26 void OpenVM();
27 wxStaticText *label;
28 wxButton *button;
29 wxListCtrl *list;
30 wxBoxSizer *sizer;
31 DECLARE_EVENT_TABLE()
34 enum {
35 ID_FAVORITES_CLOSE = 11112,
36 ID_FAVORITES_CONTEXT_OPEN,
37 ID_FAVORITES_CONTEXT_EDIT,
38 ID_FAVORITES_CONTEXT_REMOVE
41 #endif