|
hydrogen 1.2.6
|
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 (int nValue) |
| 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 | logBacktrace () const |
| Print the current stack at point into the debug log. | |
| 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 (int nValue) |
| 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 | logBacktrace () const |
| Print the current stack at point into the debug log. | |
| 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 bool | bLogColors = true |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
| MainForm | ( | QApplication * | pQApplication, |
| QString | sSongFilename ) |
Definition at line 91 of file MainForm.cpp.
| ~MainForm | ( | ) |
Definition at line 238 of file MainForm.cpp.
|
slot |
Definition at line 1307 of file MainForm.cpp.
|
slot |
Definition at line 2471 of file MainForm.cpp.
|
slot |
Definition at line 1236 of file MainForm.cpp.
|
slot |
Definition at line 1218 of file MainForm.cpp.
|
slot |
Definition at line 1230 of file MainForm.cpp.
|
slot |
Definition at line 1212 of file MainForm.cpp.
|
slot |
Definition at line 1224 of file MainForm.cpp.
|
slot |
Definition at line 1242 of file MainForm.cpp.
|
slot |
print the object map
Definition at line 2035 of file MainForm.cpp.
|
slot |
Definition at line 1202 of file MainForm.cpp.
|
slot |
Definition at line 1207 of file MainForm.cpp.
|
slot |
Definition at line 623 of file MainForm.cpp.
|
slot |
return true if the app needs to be closed.
Definition at line 638 of file MainForm.cpp.
|
slot |
Definition at line 1483 of file MainForm.cpp.
|
slot |
Definition at line 2060 of file MainForm.cpp.
|
slot |
Definition at line 2046 of file MainForm.cpp.
|
slot |
Definition at line 975 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 650 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 1038 of file MainForm.cpp.
|
slot |
Definition at line 1682 of file MainForm.cpp.
|
slot |
Definition at line 1097 of file MainForm.cpp.
|
slot |
Definition at line 1055 of file MainForm.cpp.
|
slot |
Definition at line 849 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 853 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 709 of file MainForm.cpp.
|
slot |
Definition at line 2183 of file MainForm.cpp.
|
slot |
Definition at line 929 of file MainForm.cpp.
|
slot |
Definition at line 919 of file MainForm.cpp.
|
slot |
Definition at line 909 of file MainForm.cpp.
|
slot |
Definition at line 1282 of file MainForm.cpp.
|
slot |
Definition at line 1275 of file MainForm.cpp.
|
slot |
Definition at line 1314 of file MainForm.cpp.
|
slot |
Definition at line 1379 of file MainForm.cpp.
|
slot |
Definition at line 1405 of file MainForm.cpp.
|
slot |
Definition at line 1412 of file MainForm.cpp.
|
slot |
Definition at line 1456 of file MainForm.cpp.
|
slot |
Definition at line 1419 of file MainForm.cpp.
|
slot |
Definition at line 2419 of file MainForm.cpp.
|
slot |
Definition at line 934 of file MainForm.cpp.
|
slot |
Definition at line 2415 of file MainForm.cpp.
|
slot |
Definition at line 1168 of file MainForm.cpp.
|
slot |
Definition at line 1268 of file MainForm.cpp.
|
slot |
Definition at line 1496 of file MainForm.cpp.
|
slot |
Definition at line 1189 of file MainForm.cpp.
|
slot |
Definition at line 2199 of file MainForm.cpp.
|
slot |
Definition at line 1263 of file MainForm.cpp.
|
slot |
Definition at line 1156 of file MainForm.cpp.
|
slot |
Shows the song editor.
Definition at line 1251 of file MainForm.cpp.
|
slot |
Definition at line 1257 of file MainForm.cpp.
|
slot |
Definition at line 1180 of file MainForm.cpp.
|
slot |
Definition at line 1707 of file MainForm.cpp.
|
slot |
Definition at line 1692 of file MainForm.cpp.
|
private |
Definition at line 1725 of file MainForm.cpp.
|
slot |
Wrapper around savePreferences() and quit() method of m_pQApp.
Definition at line 1560 of file MainForm.cpp.
|
overrideslot |
Window close event.
Definition at line 1470 of file MainForm.cpp.
|
private |
Create the menubar.
Definition at line 268 of file MainForm.cpp.
|
private |
Definition at line 2475 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2105 of file MainForm.cpp.
|
overrideprivate |
Definition at line 1863 of file MainForm.cpp.
|
slot |
Definition at line 1343 of file MainForm.cpp.
|
private |
Definition at line 2243 of file MainForm.cpp.
|
private |
Definition at line 2457 of file MainForm.cpp.
|
slot |
Definition at line 2399 of file MainForm.cpp.
|
protected |
Definition at line 2334 of file MainForm.cpp.
|
private |
Definition at line 1760 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2170 of file MainForm.cpp.
|
privateslot |
Definition at line 2285 of file MainForm.cpp.
|
slot |
Definition at line 1647 of file MainForm.cpp.
|
slot |
Definition at line 1632 of file MainForm.cpp.
|
privateslot |
Definition at line 1736 of file MainForm.cpp.
|
privateslot |
Definition at line 1750 of file MainForm.cpp.
|
slot |
Definition at line 542 of file MainForm.cpp.
|
privateslot |
Definition at line 2311 of file MainForm.cpp.
|
slot |
Definition at line 1606 of file MainForm.cpp.
|
slot |
Definition at line 1571 of file MainForm.cpp.
|
slot |
Definition at line 1624 of file MainForm.cpp.
|
private |
Definition at line 1119 of file MainForm.cpp.
|
slot |
Definition at line 2409 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2153 of file MainForm.cpp.
|
private |
Definition at line 1108 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2536 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 1531 of file MainForm.cpp.
|
inlineslot |
Definition at line 227 of file MainForm.h.
|
slot |
Definition at line 2206 of file MainForm.cpp.
|
slot |
Definition at line 1151 of file MainForm.cpp.
|
slot |
Definition at line 940 of file MainForm.cpp.
|
private |
debug only
Definition at line 526 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 2540 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2449 of file MainForm.cpp.
|
slot |
Definition at line 1508 of file MainForm.cpp.
|
slot |
Definition at line 1174 of file MainForm.cpp.
|
slot |
Definition at line 1503 of file MainForm.cpp.
|
slot |
Definition at line 1196 of file MainForm.cpp.
|
slot |
Definition at line 1519 of file MainForm.cpp.
|
slot |
Definition at line 1162 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 2423 of file MainForm.cpp.
|
private |
Definition at line 1660 of file MainForm.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 2529 of file MainForm.cpp.
|
static |
Definition at line 2393 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.