-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Engine' GUI code to new GuiApplication class
- Loading branch information
Showing
47 changed files
with
407 additions
and
323 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* GuiApplication.h | ||
* | ||
* Copyright (c) 2014 Lukas W <lukaswhl/at/gmail.com> | ||
* | ||
* This file is part of LMMS - http://lmms.io | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2 of the License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public | ||
* License along with this program (see COPYING); if not, write to the | ||
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
* Boston, MA 02110-1301 USA. | ||
* | ||
*/ | ||
|
||
#ifndef GUIAPPLICATION_H | ||
#define GUIAPPLICATION_H | ||
|
||
#include "export.h" | ||
|
||
class AutomationEditorWindow; | ||
class BBEditor; | ||
class ControllerRackView; | ||
class FxMixerView; | ||
class MainWindow; | ||
class PianoRollWindow; | ||
class ProjectNotes; | ||
class SongEditorWindow; | ||
|
||
class EXPORT GuiApplication | ||
{ | ||
public: | ||
explicit GuiApplication(); | ||
~GuiApplication(); | ||
|
||
static GuiApplication* instance(); | ||
|
||
MainWindow* mainWindow() { return m_mainWindow; } | ||
FxMixerView* fxMixerView() { return m_fxMixerView; } | ||
SongEditorWindow* songEditor() { return m_songEditor; } | ||
BBEditor* getBBEditor() { return m_bbEditor; } | ||
PianoRollWindow* pianoRoll() { return m_pianoRoll; } | ||
ProjectNotes* getProjectNotes() { return m_projectNotes; } | ||
AutomationEditorWindow* automationEditor() { return m_automationEditor; } | ||
ControllerRackView* getControllerRackView() { return m_controllerRackView; } | ||
|
||
private: | ||
static GuiApplication* s_instance; | ||
|
||
MainWindow* m_mainWindow; | ||
FxMixerView* m_fxMixerView; | ||
SongEditorWindow* m_songEditor; | ||
AutomationEditorWindow* m_automationEditor; | ||
BBEditor* m_bbEditor; | ||
PianoRollWindow* m_pianoRoll; | ||
ProjectNotes* m_projectNotes; | ||
ControllerRackView* m_controllerRackView; | ||
}; | ||
|
||
#define gui GuiApplication::instance() | ||
|
||
#endif // GUIAPPLICATION_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
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
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
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
Oops, something went wrong.