|
hydrogen 1.1.1
|
debug only More...
#include <MainForm.h>
Public Member Functions | |
| MainForm (QApplication *pQApplication, const QString &songFilename, const bool bLoadSong) | |
| ~MainForm () | |
| void | updateRecentUsedSongList () |
| virtual void | errorEvent (int nErrorCode) override |
| virtual void | jacksessionEvent (int nValue) override |
| virtual void | playlistLoadSongEvent (int nIndex) override |
| virtual void | updatePreferencesEvent (int nValue) override |
| Handles the loading and saving of the H2Core::Preferences from the core part of H2Core::Hydrogen. More... | |
| virtual void | undoRedoActionEvent (int nEvent) override |
Public Member Functions inherited from EventListener | |
| virtual void | stateChangedEvent (int nState) |
| virtual void | patternChangedEvent () |
| virtual void | patternModifiedEvent () |
| virtual void | songModifiedEvent () |
| virtual void | selectedPatternChangedEvent () |
| virtual void | selectedInstrumentChangedEvent () |
| virtual void | parametersInstrumentChangedEvent () |
| virtual void | midiActivityEvent () |
| virtual void | noteOnEvent (int nInstrument) |
| virtual void | XRunEvent () |
| virtual void | errorEvent (int nErrorCode) |
| virtual void | metronomeEvent (int nValue) |
| virtual void | rubberbandbpmchangeEvent () |
| virtual void | progressEvent (int nValue) |
| virtual void | jacksessionEvent (int nValue) |
| virtual void | playlistLoadSongEvent (int nIndex) |
| virtual void | undoRedoActionEvent (int nValue) |
| virtual void | tempoChangedEvent (int nValue) |
| virtual void | updateSongEvent (int nValue) |
| virtual void | quitEvent (int nValue) |
| virtual void | timelineActivationEvent (int nValue) |
| virtual void | timelineUpdateEvent (int nValue) |
| virtual void | jackTransportActivationEvent (int nValue) |
| virtual void | jackTimebaseActivationEvent (int nValue) |
| virtual void | songModeActivationEvent (int nValue) |
| virtual void | loopModeActivationEvent (int nValue) |
| virtual void | updatePreferencesEvent (int nValue) |
| virtual void | actionModeChangeEvent (int nValue) |
| virtual | ~EventListener () |
Public Member Functions inherited from Object | |
| ~Object () | |
| destructor More... | |
| Object (const Object &obj) | |
| copy constructor More... | |
| Object (const char *class_name) | |
| constructor More... | |
| const char * | class_name () const |
| return the class name More... | |
| virtual QString | toQString (const QString &sPrefix, bool bShort=true) const |
| Formatted string version for debugging purposes. More... | |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. More... | |
Static Public Member Functions | |
| static void | usr1SignalHandler (int unused) |
Static Public Member Functions inherited from Object | |
| static void | set_count (bool flag) |
| enable/disable class instances counting More... | |
| static bool | count_active () |
| return true if class instances counting is enabled More... | |
| static unsigned | objects_count () |
| return the number of objects More... | |
| static void | write_objects_map_to (std::ostream &out) |
| output the full objects map to a given ostream More... | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr More... | |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! More... | |
| static Logger * | logger () |
| return the logger instance More... | |
Data Fields | |
| QApplication * | m_pQApp |
Protected Member Functions | |
| bool | handleUnsavedChanges () |
Private Slots | |
| void | onAutoSaveTimer () |
| void | onPlaylistDisplayTimer () |
| void | onFixMidiSetup () |
| void | onFixMissingSamples () |
Private Member Functions | |
| void | functionDeleteInstrument (int instrument) |
| void | createMenuBar () |
| Create the menubar. More... | |
| void | checkNecessaryDirectories () |
| bool | eventFilter (QObject *o, QEvent *e) override |
| void | initKeyInstMap () |
| QString | getAutoSaveFilename () |
| bool | handleSelectNextPrevSongOnPlaylist (int step) |
| void | startPlaybackAtCursor (QObject *pObject) |
| Relocates to current position of the cursor and starts playback if the transport isn't rolling yet. More... | |
Private Attributes | |
| HydrogenApp * | h2app |
| QSocketNotifier * | snUsr1 |
| QMenu * | m_pLogLevelMenu |
| QMenu * | m_pInputModeMenu |
| QAction * | m_pViewPlaylistEditorAction |
| QAction * | m_pViewDirectorAction |
| QAction * | m_pViewMixerAction |
| QAction * | m_pViewMixerInstrumentRackAction |
| QAction * | m_pViewAutomationPathAction |
| QAction * | m_pViewTimelineAction |
| QAction * | m_pViewPlaybackTrackAction |
| QActionGroup * | m_pViewPlaybackTrackActionGroup |
| QAction * | m_pInstrumentAction |
| QAction * | m_pDrumkitAction |
| QMenu * | m_pRecentFilesMenu |
| QAction * | m_pRecentFileAction0 |
| QAction * | m_pRecentFileAction1 |
| QAction * | m_pRecentFileAction2 |
| QAction * | m_pRecentFileAction3 |
| QAction * | m_pRecentFileAction4 |
| QUndoView * | m_pUndoView |
| QTimer | m_AutosaveTimer |
| debug only More... | |
| std::map< int, int > | keycodeInstrumentMap |
| InfoBar * | m_pMidiSetupInfoBar |
| InfoBar * | m_pMissingSamplesInfoBar |
Static Private Attributes | |
| static int | sigusr1Fd [2] |
Additional Inherited Members | |
Static Public Attributes inherited from Object | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. More... | |
Static Protected Attributes inherited from Object | |
| static Logger * | __logger = nullptr |
| logger instance pointer More... | |
debug only
Main window
| MainForm | ( | QApplication * | pQApplication, |
| const QString & | songFilename, | ||
| const bool | bLoadSong | ||
| ) |
| ~MainForm | ( | ) |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
print the object map
|
slot |
|
slot |
|
slot |
|
slot |
return true if the app needs to be closed.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Project > New handling function.
Creates an empty Song and set it as the current one.
When Hydrogen is under session management (NSM) this function will assume that there is already a Song present (which is the case). Else it will return without doing anything. It uses the current Song to assign the it file path to the empty one since the name provided by the NSM server must be used or the restart of the session fails.
|
slot |
Project > Open / Import into Session handling function.
Opens an existing Song.
When Hydrogen is under session management (NSM) this function will assume that there is already a Song present (which is the case). Else it will return without doing anything. It opens the chosen file and uses the current Song to assign its file path to the opened one since the name provided by the NSM server must be used or the restart of the session fails.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Project > Save As / Export from Session handling function.
Saves the current Song in a different path.
When Hydrogen is under session management (NSM) this function will store the Song in the chosen location but keeps its previous file path associated with it since the name provided by the NSM server must be used or the restart of the session fails.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
Shows the song editor.
|
slot |
|
slot |
|
slot |
|
slot |
|
private |
|
slot |
Wrapper around savePreferences() and quit() method of m_pQApp.
|
overrideslot |
Window close event.
|
private |
Create the menubar.
|
overridevirtual |
Reimplemented from EventListener.
|
overrideprivate |
|
private |
|
private |
|
private |
|
slot |
|
protected |
|
private |
|
overridevirtual |
Reimplemented from EventListener.
|
privateslot |
|
slot |
|
slot |
|
privateslot |
|
privateslot |
|
slot |
|
slot |
|
privateslot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
overridevirtual |
Reimplemented from EventListener.
|
slot |
Stores the current state of the GUI (position, width, height, and visibility of the widgets) in the H2Core::Preferences.
|
inlineslot |
|
slot |
|
slot |
|
slot |
|
private |
Relocates to current position of the cursor and starts playback if the transport isn't rolling yet.
If triggered while focusing the song editor, the song will be set to H2Core::Song::SONE_MODE. Similarly, H2Core::Song::PATTERN_MODE will be activated if triggered in the pattern editor of note properties ruler.
| pObject | Used to determine the focused part of the application. |
|
overridevirtual |
Reimplemented from EventListener.
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
overridevirtual |
Handles the loading and saving of the H2Core::Preferences from the core part of H2Core::Hydrogen.
If nValue is 0 - the H2Core::Preferences should be saved
| nValue | If 0, H2Core::Preferences was save. If 1, it was loaded. |
Reimplemented from EventListener.
| void updateRecentUsedSongList | ( | ) |
|
static |
|
private |
|
private |
|
private |
debug only
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| QApplication* m_pQApp |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |