1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        MenuActionsDlg.h
3 // Author:      Alex Thuering
4 // Created:     13.01.2012
5 // RCS-ID:      $Id: MenuActionsDlg.h,v 1.4 2016/01/06 21:10:04 ntalex Exp $
6 // Copyright:   (c) Alex Thuering
7 // Licence:     GPL
8 /////////////////////////////////////////////////////////////////////////////
9 #ifndef MENUACTIONSDLG_H
10 #define MENUACTIONSDLG_H
11 
12 #include "DVD.h"
13 
14 //(*Headers(MenuActionsDlg)
15 #include <wx/sizer.h>
16 #include <wx/stattext.h>
17 #include <wx/grid.h>
18 #include <wx/bmpbuttn.h>
19 #include <wx/dialog.h>
20 //*)
21 class MenuPropDlg;
22 
23 /**
24  * Menu actions dialog
25  */
26 class MenuActionsDlg: public wxDialog {
27 public:
28 	/** Constructor */
29 	MenuActionsDlg(MenuPropDlg* parent, DVD* dvd, int tsi, int pgci, vector<DVDAction*> actions);
30 	virtual ~MenuActionsDlg();
31 
GetActions()32 	vector<DVDAction*>& GetActions() { return m_actions; }
33 
34 private:
35 	MenuPropDlg* parentDlg;
36 	DVD* m_dvd;
37 	int m_tsi;
38 	int m_pgci;
39 	vector<DVDAction*> m_actions;
40 
41 	//(*Declarations(MenuActionsDlg)
42 	wxBitmapButton* m_delBt;
43 	wxGrid* m_grid;
44 	wxBitmapButton* m_addBt;
45 	//*)
46 
47 	//(*Identifiers(MenuActionsDlg)
48 	static const long ID_GRID;
49 	static const long ID_ADD_BT;
50 	static const long ID_DEL_BT;
51 	//*)
52 
53 	//(*Handlers(MenuActionsDlg)
54 	void OnAddBt(wxCommandEvent& event);
55 	void OnDelBt(wxCommandEvent& event);
56 	//*)
57 	void OnOkBt(wxCommandEvent& event);
58 	void SetCellEditors(int row);
59 
60 	DECLARE_EVENT_TABLE()
61 };
62 
63 #endif
64