forked from GrandOrgue/grandorgue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
src/grandorgue/gui/dialogs/organ-settings/GOOrganSettingsEnclosuresTab.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* 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). | ||
*/ | ||
|
||
#include "GOOrganSettingsEnclosuresTab.h" | ||
|
||
#include <wx/gbsizer.h> | ||
#include <wx/treectrl.h> | ||
|
||
enum { | ||
ID_EVENT_TREE = 200, | ||
}; | ||
|
||
BEGIN_EVENT_TABLE(GOOrganSettingsEnclosuresTab, wxPanel) | ||
END_EVENT_TABLE() | ||
|
||
GOOrganSettingsEnclosuresTab::GOOrganSettingsEnclosuresTab( | ||
GOOrganModel &organModel, | ||
wxWindow *parent, | ||
GOOrganSettingsButtonsProxy::Listener &listener) | ||
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxWANTS_CHARS), | ||
GOOrganSettingsButtonsProxy(listener) { | ||
wxGridBagSizer *const mainSizer = new wxGridBagSizer(5, 5); | ||
|
||
m_tree = new wxTreeCtrl( | ||
this, | ||
ID_EVENT_TREE, | ||
wxDefaultPosition, | ||
wxDefaultSize, | ||
wxTR_HAS_BUTTONS | wxTR_MULTIPLE); | ||
mainSizer->Add( | ||
m_tree, | ||
wxGBPosition(0, 0), | ||
wxGBSpan(4, 1), | ||
wxEXPAND | wxTOP | wxLEFT | wxBOTTOM, | ||
5); | ||
mainSizer->AddGrowableCol(0, 1); | ||
mainSizer->AddGrowableRow(3, 1); | ||
|
||
SetSizerAndFit(mainSizer); | ||
} |
38 changes: 38 additions & 0 deletions
38
src/grandorgue/gui/dialogs/organ-settings/GOOrganSettingsEnclosuresTab.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* 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 GOORGANSETTINGSENCLOSURESTAB_H | ||
#define GOORGANSETTINGSENCLOSURESTAB_H | ||
|
||
#include <wx/event.h> | ||
#include <wx/panel.h> | ||
|
||
#include "GOOrganSettingsButtonsProxy.h" | ||
|
||
class wxTreeCtrl; | ||
|
||
class GOOrganModel; | ||
|
||
class GOOrganSettingsEnclosuresTab : public wxPanel, | ||
public GOOrganSettingsButtonsProxy { | ||
private: | ||
wxTreeCtrl *m_tree; | ||
|
||
public: | ||
GOOrganSettingsEnclosuresTab( | ||
GOOrganModel &organModel, | ||
wxWindow *parent, | ||
GOOrganSettingsButtonsProxy::Listener &listener); | ||
|
||
void ResetToDefault(); | ||
void DiscardChanges(); | ||
void ApplyChanges(); | ||
|
||
DECLARE_EVENT_TABLE() | ||
}; | ||
|
||
#endif /* GOORGANSETTINGSENCLOSURESTAB_H */ |