|
lmms
Cross-platform music production software
|
#include <MainWindow.h>
Classes | |
| class | MovableQMdiArea |
| struct | keyModifiers |
Public Types | |
| enum class | SessionState { Normal , Recover } |
Public Slots | |
| void | resetWindowTitle () |
| void | emptySlot () |
| void | createNewProject () |
| void | openProject () |
| bool | saveProject () |
| bool | saveProjectAs () |
| bool | saveProjectAsNewVersion () |
| void | saveProjectAsDefaultTemplate () |
| void | showSettingsDialog () |
| void | aboutLMMS () |
| void | help () |
| void | toggleAutomationEditorWin () |
| void | togglePatternEditorWin (bool forceShow=false) |
| void | toggleSongEditorWin () |
| void | toggleProjectNotesWin () |
| void | toggleMicrotunerWin () |
| void | toggleMixerWin () |
| void | togglePianoRollWin () |
| void | toggleControllerRack () |
| void | toggleFullscreen () |
| void | updatePlayPauseIcons () |
| void | updateUndoRedoButtons () |
| void | undo () |
| void | redo () |
| void | autoSave () |
Signals | |
| void | detachAllSubWindows (bool detached) |
| void | periodicUpdate () |
| void | initProgress (const QString &msg) |
Public Member Functions | |
| QMdiArea * | workspace () |
| QWidget * | toolBar () |
| int | addWidgetToToolBar (QWidget *_w, int _row=-1, int _col=-1) |
| void | addSpacingToToolBar (int _size) |
| LMMS_EXPORT SubWindow * | addWindowedWidget (QWidget *w, Qt::WindowFlags windowFlags=QFlag(0)) |
| void | refocus () |
| bool | mayChangeProject (bool stopPlayback) |
| Asks whether changes made to the project are to be saved. | |
| void | autoSaveTimerReset (int msec=ConfigManager::inst() -> value("ui", "saveinterval").toInt() *60 *1000) |
| int | getAutoSaveTimerInterval () |
| void | setSession (SessionState session) |
| SessionState | getSession () |
| void | sessionCleanup () |
| void | clearKeyModifiers () |
| bool | isShiftPressed () const |
| void | setAllSubWindowsDetached (bool detached) |
| bool | eventFilter (QObject *watched, QEvent *event) override |
Static Public Member Functions | |
| static void | saveWidgetState (QWidget *_w, QDomElement &_de) |
| static void | restoreWidgetState (QWidget *_w, const QDomElement &_de) |
Static Public Attributes | |
| static const int | DEFAULT_SAVE_INTERVAL_MINUTES = 2 |
| static const int | DEFAULT_AUTO_SAVE_INTERVAL = DEFAULT_SAVE_INTERVAL_MINUTES * 60 * 1000 |
| static const int | m_autoSaveShortTime = 10 * 1000 |
Protected Member Functions | |
| void | closeEvent (QCloseEvent *_ce) override |
| void | keyPressEvent (QKeyEvent *_ke) override |
| void | keyReleaseEvent (QKeyEvent *_ke) override |
| void | timerEvent (QTimerEvent *_ev) override |
Private Slots | |
| void | onExportProjectMidi () |
| void | browseHelp () |
| void | showTool (QAction *_idx) |
| void | updateViewMenu () |
| void | updateConfig (QAction *_who) |
| void | onToggleMetronome () |
| void | onExportProject () |
| void | onExportProjectTracks () |
| void | onImportProject () |
| void | onSongModified () |
| void | onProjectFileNameChanged () |
Private Member Functions | |
| MainWindow () | |
| MainWindow (const MainWindow &) | |
| ~MainWindow () override | |
| void | finalize () |
| void | toggleWindow (QWidget *window, bool forceShow=false) |
| void | exportProject (bool multiExport=false) |
| void | handleSaveResult (QString const &filename, bool songSavedSuccessfully) |
| bool | guiSaveProject () |
| bool | guiSaveProjectAs (const QString &filename) |
Private Attributes | |
| MovableQMdiArea * | m_workspace |
| QWidget * | m_toolBar |
| QGridLayout * | m_toolBarLayout |
| struct lmms::gui::MainWindow::keyModifiers | m_keyMods |
| QMenu * | m_toolsMenu |
| QAction * | m_undoAction |
| QAction * | m_redoAction |
| QList< PluginView * > | m_tools |
| QBasicTimer | m_updateTimer |
| QTimer | m_autoSaveTimer |
| int | m_autoSaveInterval |
| QMenu * | m_viewMenu |
| ToolButton * | m_metronomeToggle |
| SessionState | m_session |
| bool | maximized |
Friends | |
| class | GuiApplication |
|
strong |
|
private |
|
private |
|
overrideprivate |
|
slot |
| void lmms::gui::MainWindow::addSpacingToToolBar | ( | int | _size | ) |
| int lmms::gui::MainWindow::addWidgetToToolBar | ( | QWidget * | _w, |
| int | _row = -1, | ||
| int | _col = -1 ) |
| SubWindow * lmms::gui::MainWindow::addWindowedWidget | ( | QWidget * | w, |
| Qt::WindowFlags | windowFlags = QFlag(0) ) |
|
slot |
|
inline |
|
privateslot |
| void lmms::gui::MainWindow::clearKeyModifiers | ( | ) |
|
overrideprotected |
|
slot |
|
signal |
|
slot |
|
override |
|
private |
|
private |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
slot |
|
signal |
|
inline |
|
overrideprotected |
|
overrideprotected |
| bool lmms::gui::MainWindow::mayChangeProject | ( | bool | stopPlayback | ) |
Asks whether changes made to the project are to be saved.
Opens a dialog giving the user the choice to (a) confirm his choice (such as opening a new file), (b) save the current project before proceeding or (c) cancel the process.
Every function that replaces the current file (e.g. creates new file, opens another file...) must call this before and may only proceed if this function returns true.
| stopPlayback | whether playback should be stopped upon prompting. If set to false, the caller should ensure that Engine::getSong()->stop() is called before unloading/loading a song. |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
privateslot |
|
slot |
|
signal |
|
slot |
| void lmms::gui::MainWindow::refocus | ( | ) |
|
slot |
|
static |
|
slot |
|
slot |
|
slot |
|
slot |
|
static |
| void lmms::gui::MainWindow::sessionCleanup | ( | ) |
| void lmms::gui::MainWindow::setAllSubWindowsDetached | ( | bool | detached | ) |
|
inline |
|
slot |
|
privateslot |
|
overrideprotected |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
private |
|
inline |
|
slot |
|
privateslot |
|
slot |
|
slot |
|
privateslot |
|
inline |
|
friend |
|
static |
|
static |
|
private |
|
static |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |