forked from GrandOrgue/grandorgue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGOMidiListDialog.h
54 lines (43 loc) · 1.12 KB
/
GOMidiListDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Copyright 2006 Milan Digital Audio LLC
* Copyright 2009-2025 GrandOrgue contributors (see AUTHORS)
* License GPL-2.0 or later
* (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).
*/
#ifndef GOMIDILISTDIALOG_H
#define GOMIDILISTDIALOG_H
#include <vector>
#include "common/GOSimpleDialog.h"
#include "document-base/GOView.h"
class wxButton;
class wxListEvent;
class wxListView;
class GOMidiObject;
class GOMidiListDialog : public GOSimpleDialog, public GOView {
private:
wxListView *m_Objects;
wxButton *m_Edit;
wxButton *m_Status;
std::vector<wxButton *> m_Buttons;
enum {
ID_LIST = 200,
ID_EDIT,
ID_STATUS,
ID_BUTTON,
ID_BUTTON_LAST = ID_BUTTON + 2,
};
void OnObjectClick(wxListEvent &event);
void OnObjectDoubleClick(wxListEvent &event);
void OnEdit(wxCommandEvent &event);
void OnStatus(wxCommandEvent &event);
void OnButton(wxCommandEvent &event);
public:
GOMidiListDialog(
GODocumentBase *doc,
wxWindow *parent,
GODialogSizeSet &dialogSizes,
const std::vector<GOMidiObject *> &midi_elements);
~GOMidiListDialog();
DECLARE_EVENT_TABLE()
};
#endif