|
hydrogen 1.2.3
|
debug only More...
#include <MainForm.h>
Public Member Functions | |
| MainForm (QApplication *pQApplication, QString sSongFilename) | |
| ~MainForm () | |
| virtual void | errorEvent (int nErrorCode) override |
| virtual void | jacksessionEvent (int nValue) override |
| virtual void | playlistLoadSongEvent (int nIndex) override |
| virtual void | quitEvent (int) override |
| virtual void | undoRedoActionEvent (int nEvent) override |
| virtual void | updatePreferencesEvent (int nValue) override |
| Handles the loading and saving of the H2Core::Preferences from the core part of H2Core::Hydrogen. | |
| virtual void | updateSongEvent (int nValue) override |
Public Member Functions inherited from EventListener | |
| virtual | ~EventListener () |
| virtual void | actionModeChangeEvent (int nValue) |
| virtual void | bbtChangedEvent () |
| virtual void | driverChangedEvent () |
| virtual void | drumkitLoadedEvent () |
| virtual void | gridCellToggledEvent () |
| virtual void | instrumentParametersChangedEvent (int nInstrumentNumber) |
| virtual void | jackTimebaseStateChangedEvent () |
| virtual void | jackTransportActivationEvent () |
| virtual void | loopModeActivationEvent () |
| virtual void | metronomeEvent (int nValue) |
| virtual void | midiActivityEvent () |
| virtual void | midiMapChangedEvent () |
| virtual void | nextPatternsChangedEvent () |
| virtual void | nextShotEvent () |
| virtual void | noteOnEvent (int nInstrument) |
| virtual void | patternEditorLockedEvent () |
| virtual void | patternModifiedEvent () |
| virtual void | playbackTrackChangedEvent () |
| virtual void | playingPatternsChangedEvent () |
| virtual void | progressEvent (int nValue) |
| virtual void | relocationEvent () |
| virtual void | selectedInstrumentChangedEvent () |
| virtual void | selectedPatternChangedEvent () |
| virtual void | songModeActivationEvent () |
| virtual void | songModifiedEvent () |
| virtual void | songSizeChangedEvent () |
| virtual void | soundLibraryChangedEvent () |
| virtual void | stackedModeActivationEvent (int nValue) |
| virtual void | stateChangedEvent (H2Core::AudioEngine::State state) |
| virtual void | tempoChangedEvent (int nValue) |
| virtual void | timelineActivationEvent () |
| virtual void | timelineUpdateEvent (int nValue) |
| virtual void | XRunEvent () |
Public Member Functions inherited from Object< MainForm > | |
| Object () | |
| Object (const Object< MainForm > &other) | |
Public Member Functions inherited from Base | |
| Base () | |
| Base (const Base &other) | |
| virtual const char * | class_name () const |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. | |
| virtual QString | toQString (const QString &sPrefix="", bool bShort=true) const |
| Formatted string version for debugging purposes. | |
Static Public Member Functions | |
| static void | usr1SignalHandler (int unused) |
Static Public Member Functions inherited from Base | |
| static const char * | _class_name () |
| return the class name | |
| static QString | base_clock (const QString &sMsg) |
| Measures the current time and stores it in __last_clock. | |
| static QString | base_clock_in (const QString &sMsg) |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! | |
| static bool | count_active () |
| static int | getAliveObjectCount () |
| static object_map_t | getObjectMap () |
| static Logger * | logger () |
| return the logger instance | |
| static int | objects_count () |
| static void | printObjectMapDiff (object_map_t map) |
| Creates the difference between a snapshot of the object map and its current state and prints it to std::cout. | |
| static void | set_count (bool flag) |
| enable/disable class instances counting | |
| static void | write_objects_map_to (std::ostream &out, object_map_t *map=nullptr) |
| output the full objects map to a given ostream | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr | |
Data Fields | |
| QApplication * | m_pQApp |
Protected Member Functions | |
| bool | handleUnsavedChanges () |
Protected Member Functions inherited from WidgetWithScalableFont< 8, 10, 12 > | |
| constexpr int | getPointSize (H2Core::FontTheme::FontSize fontSize) const |
Protected Member Functions inherited from EventListener | |
| virtual | ~EventListener () |
| virtual void | actionModeChangeEvent (int nValue) |
| virtual void | bbtChangedEvent () |
| virtual void | driverChangedEvent () |
| virtual void | drumkitLoadedEvent () |
| virtual void | gridCellToggledEvent () |
| virtual void | instrumentParametersChangedEvent (int nInstrumentNumber) |
| virtual void | jackTimebaseStateChangedEvent () |
| virtual void | jackTransportActivationEvent () |
| virtual void | loopModeActivationEvent () |
| virtual void | metronomeEvent (int nValue) |
| virtual void | midiActivityEvent () |
| virtual void | midiMapChangedEvent () |
| virtual void | nextPatternsChangedEvent () |
| virtual void | nextShotEvent () |
| virtual void | noteOnEvent (int nInstrument) |
| virtual void | patternEditorLockedEvent () |
| virtual void | patternModifiedEvent () |
| virtual void | playbackTrackChangedEvent () |
| virtual void | playingPatternsChangedEvent () |
| virtual void | progressEvent (int nValue) |
| virtual void | relocationEvent () |
| virtual void | selectedInstrumentChangedEvent () |
| virtual void | selectedPatternChangedEvent () |
| virtual void | songModeActivationEvent () |
| virtual void | songModifiedEvent () |
| virtual void | songSizeChangedEvent () |
| virtual void | soundLibraryChangedEvent () |
| virtual void | stackedModeActivationEvent (int nValue) |
| virtual void | stateChangedEvent (H2Core::AudioEngine::State state) |
| virtual void | tempoChangedEvent (int nValue) |
| virtual void | timelineActivationEvent () |
| virtual void | timelineUpdateEvent (int nValue) |
| virtual void | XRunEvent () |
Protected Member Functions inherited from Object< MainForm > | |
| ~Object () | |
| Object () | |
| Object (const Object< MainForm > &other) | |
Protected Member Functions inherited from Base | |
| ~Base () | |
| Base () | |
| Base (const Base &other) | |
| virtual const char * | class_name () const |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. | |
| virtual QString | toQString (const QString &sPrefix="", bool bShort=true) const |
| Formatted string version for debugging purposes. | |
Private Slots | |
| void | onAutoSaveTimer () |
| void | onFixMidiSetup () |
| void | onFixMissingSamples () |
| void | onPlaylistDisplayTimer () |
Private Member Functions | |
| void | checkNecessaryDirectories () |
| void | createMenuBar () |
| Create the menubar. | |
| void | editDrumkitProperties (bool bDrumkitNameLocked) |
| bool | eventFilter (QObject *o, QEvent *e) override |
| QString | getAutoSaveFilename () |
| bool | handleSelectNextPrevSongOnPlaylist (int step) |
| void | initKeyInstMap () |
| void | openSongWithDialog (const QString &sWindowTitle, const QString &sPath, bool bIsDemo) |
| bool | prepareSongOpening () |
| void | startAutosaveTimer () |
| debug only | |
| void | startPlaybackAtCursor (QObject *pObject) |
| Relocates to current position of the cursor and starts playback if the transport isn't rolling yet. | |
| void | updateRecentUsedSongList () |
Static Private Attributes | |
| static int | sigusr1Fd [2] |
Additional Inherited Members | |
Static Public Attributes inherited from Base | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
Static Protected Member Functions inherited from Base | |
| static void | registerClass (const char *name, const atomic_obj_cpt_t *counters) |
| static const char * | _class_name () |
| return the class name | |
| static QString | base_clock (const QString &sMsg) |
| Measures the current time and stores it in __last_clock. | |
| static QString | base_clock_in (const QString &sMsg) |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! | |
| static bool | count_active () |
| static int | getAliveObjectCount () |
| static object_map_t | getObjectMap () |
| static Logger * | logger () |
| return the logger instance | |
| static int | objects_count () |
| static void | printObjectMapDiff (object_map_t map) |
| Creates the difference between a snapshot of the object map and its current state and prints it to std::cout. | |
| static void | set_count (bool flag) |
| enable/disable class instances counting | |
| static void | write_objects_map_to (std::ostream &out, object_map_t *map=nullptr) |
| output the full objects map to a given ostream | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr | |
Static Protected Attributes inherited from Base | |
| static bool | __count = false |
| should we count class instances | |
| static timeval | __last_clock = { 0, 0 } |
| static Logger * | __logger = nullptr |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
| MainForm | ( | QApplication * | pQApplication, |
| QString | sSongFilename ) |
Definition at line 90 of file MainForm.cpp.
| ~MainForm | ( | ) |
Definition at line 238 of file MainForm.cpp.
|
slot |
Definition at line 1252 of file MainForm.cpp.
|
slot |
Definition at line 2423 of file MainForm.cpp.
|
slot |
Definition at line 1181 of file MainForm.cpp.
|
slot |
Definition at line 1163 of file MainForm.cpp.
|
slot |
Definition at line 1175 of file MainForm.cpp.
|
slot |
Definition at line 1157 of file MainForm.cpp.
|
slot |
Definition at line 1169 of file MainForm.cpp.
|
slot |
Definition at line 1187 of file MainForm.cpp.
|
slot |
print the object map
Definition at line 1978 of file MainForm.cpp.
|
slot |
Definition at line 1147 of file MainForm.cpp.
|
slot |
Definition at line 1152 of file MainForm.cpp.
|
slot |
Definition at line 578 of file MainForm.cpp.
|
slot |
return true if the app needs to be closed.
Definition at line 593 of file MainForm.cpp.
|
slot |
Definition at line 1428 of file MainForm.cpp.
|
slot |
Definition at line 2003 of file MainForm.cpp.
|
slot |
Definition at line 1989 of file MainForm.cpp.
|
slot |
Definition at line 920 of file MainForm.cpp.
|
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.
Definition at line 605 of file MainForm.cpp.
|
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.
Definition at line 983 of file MainForm.cpp.
|
slot |
Definition at line 1627 of file MainForm.cpp.
|
slot |
Definition at line 1042 of file MainForm.cpp.
|
slot |
Definition at line 1000 of file MainForm.cpp.
|
slot |
Definition at line 796 of file MainForm.cpp.
|
slot |
Saves the current song to disk.
As Song::m_sFilename is not set by the GUI but by the core, this function serves both the "save as" functionality (with sNewFilename being non-empty) and the "save" one.
Definition at line 800 of file MainForm.cpp.
|
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.
Definition at line 664 of file MainForm.cpp.
|
slot |
Definition at line 2126 of file MainForm.cpp.
|
slot |
Definition at line 874 of file MainForm.cpp.
|
slot |
Definition at line 864 of file MainForm.cpp.
|
slot |
Definition at line 854 of file MainForm.cpp.
|
slot |
Definition at line 1227 of file MainForm.cpp.
|
slot |
Definition at line 1220 of file MainForm.cpp.
|
slot |
Definition at line 1259 of file MainForm.cpp.
|
slot |
Definition at line 1324 of file MainForm.cpp.
|
slot |
Definition at line 1350 of file MainForm.cpp.
|
slot |
Definition at line 1357 of file MainForm.cpp.
|
slot |
Definition at line 1401 of file MainForm.cpp.
|
slot |
Definition at line 1364 of file MainForm.cpp.
|
slot |
Definition at line 2371 of file MainForm.cpp.
|
slot |
Definition at line 879 of file MainForm.cpp.
|
slot |
Definition at line 2367 of file MainForm.cpp.
|
slot |
Definition at line 1113 of file MainForm.cpp.
|
slot |
Definition at line 1213 of file MainForm.cpp.
|
slot |
Definition at line 1441 of file MainForm.cpp.
|
slot |
Definition at line 1134 of file MainForm.cpp.
|
slot |
Definition at line 2142 of file MainForm.cpp.
|
slot |
Definition at line 1208 of file MainForm.cpp.
|
slot |
Definition at line 1101 of file MainForm.cpp.
|
slot |
Shows the song editor.
Definition at line 1196 of file MainForm.cpp.
|
slot |
Definition at line 1202 of file MainForm.cpp.
|
slot |
Definition at line 1125 of file MainForm.cpp.
|
slot |
Definition at line 1652 of file MainForm.cpp.
|
slot |
Definition at line 1637 of file MainForm.cpp.
|
private |
Definition at line 1670 of file MainForm.cpp.
|
slot |
Wrapper around savePreferences() and quit() method of m_pQApp.
Definition at line 1505 of file MainForm.cpp.
|
overrideslot |
Window close event.
Definition at line 1415 of file MainForm.cpp.
|
private |
Create the menubar.
Definition at line 268 of file MainForm.cpp.
|
private |
Definition at line 2427 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2048 of file MainForm.cpp.
|
overrideprivate |
Definition at line 1805 of file MainForm.cpp.
|
slot |
Definition at line 1288 of file MainForm.cpp.
|
private |
Definition at line 2186 of file MainForm.cpp.
|
private |
Definition at line 2409 of file MainForm.cpp.
|
slot |
Definition at line 2351 of file MainForm.cpp.
|
protected |
Definition at line 2277 of file MainForm.cpp.
|
private |
Definition at line 1705 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2113 of file MainForm.cpp.
|
privateslot |
Definition at line 2228 of file MainForm.cpp.
|
slot |
Definition at line 1592 of file MainForm.cpp.
|
slot |
Definition at line 1577 of file MainForm.cpp.
|
privateslot |
Definition at line 1681 of file MainForm.cpp.
|
privateslot |
Definition at line 1695 of file MainForm.cpp.
|
slot |
Definition at line 497 of file MainForm.cpp.
|
privateslot |
Definition at line 2254 of file MainForm.cpp.
|
slot |
Definition at line 1551 of file MainForm.cpp.
|
slot |
Definition at line 1516 of file MainForm.cpp.
|
slot |
Definition at line 1569 of file MainForm.cpp.
|
private |
Definition at line 1064 of file MainForm.cpp.
|
slot |
Definition at line 2361 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2096 of file MainForm.cpp.
|
private |
Definition at line 1053 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2488 of file MainForm.cpp.
|
slot |
Stores the current state of the GUI (position, width, height, and visibility of the widgets) in the H2Core::Preferences.
Definition at line 1476 of file MainForm.cpp.
|
inlineslot |
Definition at line 227 of file MainForm.h.
|
slot |
Definition at line 2149 of file MainForm.cpp.
|
slot |
Definition at line 1096 of file MainForm.cpp.
|
slot |
Definition at line 885 of file MainForm.cpp.
|
private |
debug only
Definition at line 481 of file MainForm.cpp.
|
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. |
Definition at line 2492 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2401 of file MainForm.cpp.
|
slot |
Definition at line 1453 of file MainForm.cpp.
|
slot |
Definition at line 1119 of file MainForm.cpp.
|
slot |
Definition at line 1448 of file MainForm.cpp.
|
slot |
Definition at line 1141 of file MainForm.cpp.
|
slot |
Definition at line 1464 of file MainForm.cpp.
|
slot |
Definition at line 1107 of file MainForm.cpp.
|
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.
Definition at line 2375 of file MainForm.cpp.
|
private |
Definition at line 1605 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2481 of file MainForm.cpp.
|
static |
Definition at line 2345 of file MainForm.cpp.
|
private |
Definition at line 247 of file MainForm.h.
|
private |
Definition at line 284 of file MainForm.h.
|
private |
Definition at line 275 of file MainForm.h.
|
private |
Definition at line 317 of file MainForm.h.
|
private |
Definition at line 263 of file MainForm.h.
|
private |
Definition at line 313 of file MainForm.h.
|
private |
Definition at line 311 of file MainForm.h.
|
private |
Definition at line 318 of file MainForm.h.
|
private |
Definition at line 253 of file MainForm.h.
|
private |
Definition at line 262 of file MainForm.h.
|
private |
Definition at line 314 of file MainForm.h.
|
private |
Definition at line 252 of file MainForm.h.
|
private |
Definition at line 292 of file MainForm.h.
|
private |
Definition at line 293 of file MainForm.h.
|
private |
Definition at line 316 of file MainForm.h.
| QApplication* m_pQApp |
Definition at line 52 of file MainForm.h.
|
private |
Definition at line 266 of file MainForm.h.
|
private |
Definition at line 267 of file MainForm.h.
|
private |
Definition at line 268 of file MainForm.h.
|
private |
Definition at line 269 of file MainForm.h.
|
private |
Definition at line 270 of file MainForm.h.
|
private |
Definition at line 265 of file MainForm.h.
|
private |
Definition at line 312 of file MainForm.h.
|
private |
Definition at line 272 of file MainForm.h.
|
private |
Definition at line 258 of file MainForm.h.
|
private |
Definition at line 255 of file MainForm.h.
|
private |
Definition at line 315 of file MainForm.h.
|
private |
Definition at line 256 of file MainForm.h.
|
private |
Definition at line 257 of file MainForm.h.
|
private |
Definition at line 260 of file MainForm.h.
|
private |
Definition at line 261 of file MainForm.h.
|
private |
Definition at line 254 of file MainForm.h.
|
private |
Definition at line 259 of file MainForm.h.
|
private |
Since the filename of the current song does change whenever the users uses "Save As" multiple autosave files would be written unless we take care of them.
Definition at line 326 of file MainForm.h.
|
staticprivate |
Definition at line 249 of file MainForm.h.
|
private |
Definition at line 250 of file MainForm.h.