hydrogen 1.2.6
MainForm Class Reference

debug only More...

#include <MainForm.h>

Inheritance diagram for MainForm:
WidgetWithScalableFont< 8, 10, 12 > EventListener Object< MainForm > Base

Public Slots

void action_banks_open ()
 
void action_banks_properties ()
 
void action_debug_logLevel_debug ()
 
void action_debug_logLevel_error ()
 
void action_debug_logLevel_info ()
 
void action_debug_logLevel_none ()
 
void action_debug_logLevel_warn ()
 
void action_debug_openLogfile ()
 
void action_debug_printObjects ()
 print the object map
 
void action_debug_showAudioEngineInfo ()
 
void action_debug_showFilesystemInfo ()
 
void action_donate ()
 
bool action_file_exit ()
 return true if the app needs to be closed.
 
void action_file_export ()
 
void action_file_export_lilypond ()
 
void action_file_export_midi ()
 
void action_file_export_pattern_as (int nPatternRow=-1)
 
void action_file_new ()
 Project > New handling function.
 
void action_file_open ()
 Project > Open / Import into Session handling function.
 
void action_file_open_recent (QAction *pAction)
 
void action_file_openDemo ()
 
void action_file_openPattern ()
 
bool action_file_save ()
 
bool action_file_save (const QString &sNewFilename)
 Saves the current song to disk.
 
bool action_file_save_as ()
 Project > Save As / Export from Session handling function.
 
void action_file_songProperties ()
 
void action_help_about ()
 
void action_inputMode_drumkit ()
 
void action_inputMode_instrument ()
 
void action_instruments_addComponent ()
 
void action_instruments_addInstrument ()
 
void action_instruments_clearAll ()
 
void action_instruments_exportLibrary ()
 
void action_instruments_importLibrary ()
 
void action_instruments_onlineImportLibrary ()
 
void action_instruments_saveAsLibrary ()
 
void action_instruments_saveLibrary ()
 
void action_redo ()
 
void action_report_bug ()
 
void action_undo ()
 
void action_window_show_DirectorWidget ()
 
void action_window_showAutomationArea ()
 
void action_window_showInstrumentRack ()
 
void action_window_showMixer ()
 
void action_window_showPatternEditor ()
 
void action_window_showPlaybackTrack ()
 
void action_window_showPlaylistDialog ()
 
void action_window_showSongEditor ()
 Shows the song editor.
 
void action_window_showTimeline ()
 
void action_window_toggleFullscreen ()
 
void checkMidiSetup ()
 
void checkMissingSamples ()
 
void closeAll ()
 Wrapper around savePreferences() and quit() method of m_pQApp.
 
void closeEvent (QCloseEvent *ev) override
 Window close event.
 
void functionDeleteInstrument (int nInstrument)
 
void handleSigUsr1 ()
 
void onBPMMinusAccelEvent ()
 
void onBPMPlusAccelEvent ()
 
void onLashPollTimer ()
 
void onPlayStopAccelEvent ()
 
void onPreferencesChanged (H2Core::Preferences::Changes changes)
 
void onRestartAccelEvent ()
 
void openUndoStack ()
 
void savePreferences ()
 Stores the current state of the GUI (position, width, height, and visibility of the widgets) in the H2Core::Preferences.
 
void setMainWindowSize (int w, int h)
 
void showDevelWarning ()
 
void showPreferencesDialog ()
 
void showUserManual ()
 
void update_automation_checkbox ()
 
void update_director_checkbox ()
 
void update_instrument_checkbox (bool show)
 
void update_mixer_checkbox ()
 
void update_playback_track_group ()
 
void update_playlist_checkbox ()
 

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 Loggerlogger ()
 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 ()
 

Private Attributes

HydrogenApph2app
 
std::map< int, int > keycodeInstrumentMap
 
QTimer m_AutosaveTimer
 
QMenu * m_pDebugMenu
 
QAction * m_pDrumkitAction
 
QMenu * m_pDrumkitsMenu
 
QMenu * m_pFileMenu
 
QMenu * m_pInfoMenu
 
QMenu * m_pInputModeMenu
 
QAction * m_pInstrumentAction
 
QMenu * m_pInstrumentsMenu
 
QMenu * m_pLogLevelMenu
 
InfoBarm_pMidiSetupInfoBar
 
InfoBarm_pMissingSamplesInfoBar
 
QMenu * m_pOptionsMenu
 
QAction * m_pRecentFileAction0
 
QAction * m_pRecentFileAction1
 
QAction * m_pRecentFileAction2
 
QAction * m_pRecentFileAction3
 
QAction * m_pRecentFileAction4
 
QMenu * m_pRecentFilesMenu
 
QMenu * m_pUndoMenu
 
QUndoView * m_pUndoView
 
QAction * m_pViewAutomationPathAction
 
QAction * m_pViewDirectorAction
 
QMenu * m_pViewMenu
 
QAction * m_pViewMixerAction
 
QAction * m_pViewMixerInstrumentRackAction
 
QAction * m_pViewPlaybackTrackAction
 
QActionGroup * m_pViewPlaybackTrackActionGroup
 
QAction * m_pViewPlaylistEditorAction
 
QAction * m_pViewTimelineAction
 
QString m_sPreviousAutoSaveFilename
 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.
 
QSocketNotifier * snUsr1
 

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 Loggerlogger ()
 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.
 

Detailed Description

debug only

Main window

Definition at line 46 of file MainForm.h.

Constructor & Destructor Documentation

◆ MainForm()

MainForm ( QApplication * pQApplication,
QString sSongFilename )

Definition at line 91 of file MainForm.cpp.

◆ ~MainForm()

~MainForm ( )

Definition at line 238 of file MainForm.cpp.

Member Function Documentation

◆ action_banks_open

void action_banks_open ( )
slot

Definition at line 1307 of file MainForm.cpp.

◆ action_banks_properties

void action_banks_properties ( )
slot

Definition at line 2471 of file MainForm.cpp.

◆ action_debug_logLevel_debug

void action_debug_logLevel_debug ( )
slot

Definition at line 1236 of file MainForm.cpp.

◆ action_debug_logLevel_error

void action_debug_logLevel_error ( )
slot

Definition at line 1218 of file MainForm.cpp.

◆ action_debug_logLevel_info

void action_debug_logLevel_info ( )
slot

Definition at line 1230 of file MainForm.cpp.

◆ action_debug_logLevel_none

void action_debug_logLevel_none ( )
slot

Definition at line 1212 of file MainForm.cpp.

◆ action_debug_logLevel_warn

void action_debug_logLevel_warn ( )
slot

Definition at line 1224 of file MainForm.cpp.

◆ action_debug_openLogfile

void action_debug_openLogfile ( )
slot

Definition at line 1242 of file MainForm.cpp.

◆ action_debug_printObjects

void action_debug_printObjects ( )
slot

print the object map

Definition at line 2035 of file MainForm.cpp.

◆ action_debug_showAudioEngineInfo

void action_debug_showAudioEngineInfo ( )
slot

Definition at line 1202 of file MainForm.cpp.

◆ action_debug_showFilesystemInfo

void action_debug_showFilesystemInfo ( )
slot

Definition at line 1207 of file MainForm.cpp.

◆ action_donate

void action_donate ( )
slot

Definition at line 623 of file MainForm.cpp.

◆ action_file_exit

bool action_file_exit ( )
slot

return true if the app needs to be closed.

Definition at line 638 of file MainForm.cpp.

◆ action_file_export

void action_file_export ( )
slot

Definition at line 1483 of file MainForm.cpp.

◆ action_file_export_lilypond

void action_file_export_lilypond ( )
slot

Definition at line 2060 of file MainForm.cpp.

◆ action_file_export_midi

void action_file_export_midi ( )
slot

Definition at line 2046 of file MainForm.cpp.

◆ action_file_export_pattern_as

void action_file_export_pattern_as ( int nPatternRow = -1)
slot

Definition at line 975 of file MainForm.cpp.

◆ action_file_new

void action_file_new ( )
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.

◆ action_file_open

void action_file_open ( )
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.

◆ action_file_open_recent

void action_file_open_recent ( QAction * pAction)
slot

Definition at line 1682 of file MainForm.cpp.

◆ action_file_openDemo

void action_file_openDemo ( )
slot

Definition at line 1097 of file MainForm.cpp.

◆ action_file_openPattern

void action_file_openPattern ( )
slot

Definition at line 1055 of file MainForm.cpp.

◆ action_file_save [1/2]

bool action_file_save ( )
slot

Definition at line 849 of file MainForm.cpp.

◆ action_file_save [2/2]

bool action_file_save ( const QString & sNewFilename)
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.

◆ action_file_save_as

bool action_file_save_as ( )
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.

◆ action_file_songProperties

void action_file_songProperties ( )
slot

Definition at line 2183 of file MainForm.cpp.

◆ action_help_about

void action_help_about ( )
slot

Definition at line 929 of file MainForm.cpp.

◆ action_inputMode_drumkit

void action_inputMode_drumkit ( )
slot

Definition at line 919 of file MainForm.cpp.

◆ action_inputMode_instrument

void action_inputMode_instrument ( )
slot

Definition at line 909 of file MainForm.cpp.

◆ action_instruments_addComponent

void action_instruments_addComponent ( )
slot

Definition at line 1282 of file MainForm.cpp.

◆ action_instruments_addInstrument

void action_instruments_addInstrument ( )
slot

Definition at line 1275 of file MainForm.cpp.

◆ action_instruments_clearAll

void action_instruments_clearAll ( )
slot

Definition at line 1314 of file MainForm.cpp.

◆ action_instruments_exportLibrary

void action_instruments_exportLibrary ( )
slot

Definition at line 1379 of file MainForm.cpp.

◆ action_instruments_importLibrary

void action_instruments_importLibrary ( )
slot

Definition at line 1405 of file MainForm.cpp.

◆ action_instruments_onlineImportLibrary

void action_instruments_onlineImportLibrary ( )
slot

Definition at line 1412 of file MainForm.cpp.

◆ action_instruments_saveAsLibrary

void action_instruments_saveAsLibrary ( )
slot

Definition at line 1456 of file MainForm.cpp.

◆ action_instruments_saveLibrary

void action_instruments_saveLibrary ( )
slot

Definition at line 1419 of file MainForm.cpp.

◆ action_redo

void action_redo ( )
slot

Definition at line 2419 of file MainForm.cpp.

◆ action_report_bug

void action_report_bug ( )
slot

Definition at line 934 of file MainForm.cpp.

◆ action_undo

void action_undo ( )
slot

Definition at line 2415 of file MainForm.cpp.

◆ action_window_show_DirectorWidget

void action_window_show_DirectorWidget ( )
slot

Definition at line 1168 of file MainForm.cpp.

◆ action_window_showAutomationArea

void action_window_showAutomationArea ( )
slot

Definition at line 1268 of file MainForm.cpp.

◆ action_window_showInstrumentRack

void action_window_showInstrumentRack ( )
slot

Definition at line 1496 of file MainForm.cpp.

◆ action_window_showMixer

void action_window_showMixer ( )
slot

Definition at line 1189 of file MainForm.cpp.

◆ action_window_showPatternEditor

void action_window_showPatternEditor ( )
slot

Definition at line 2199 of file MainForm.cpp.

◆ action_window_showPlaybackTrack

void action_window_showPlaybackTrack ( )
slot

Definition at line 1263 of file MainForm.cpp.

◆ action_window_showPlaylistDialog

void action_window_showPlaylistDialog ( )
slot

Definition at line 1156 of file MainForm.cpp.

◆ action_window_showSongEditor

void action_window_showSongEditor ( )
slot

Shows the song editor.

Definition at line 1251 of file MainForm.cpp.

◆ action_window_showTimeline

void action_window_showTimeline ( )
slot

Definition at line 1257 of file MainForm.cpp.

◆ action_window_toggleFullscreen

void action_window_toggleFullscreen ( )
slot

Definition at line 1180 of file MainForm.cpp.

◆ checkMidiSetup

void checkMidiSetup ( )
slot

Definition at line 1707 of file MainForm.cpp.

◆ checkMissingSamples

void checkMissingSamples ( )
slot

Definition at line 1692 of file MainForm.cpp.

◆ checkNecessaryDirectories()

void checkNecessaryDirectories ( )
private

Definition at line 1725 of file MainForm.cpp.

◆ closeAll

void closeAll ( )
slot

Wrapper around savePreferences() and quit() method of m_pQApp.

Definition at line 1560 of file MainForm.cpp.

◆ closeEvent

void closeEvent ( QCloseEvent * ev)
overrideslot

Window close event.

Definition at line 1470 of file MainForm.cpp.

◆ createMenuBar()

void createMenuBar ( )
private

Create the menubar.

Definition at line 268 of file MainForm.cpp.

◆ editDrumkitProperties()

void editDrumkitProperties ( bool bDrumkitNameLocked)
private

Definition at line 2475 of file MainForm.cpp.

◆ errorEvent()

void errorEvent ( int nErrorCode)
overridevirtual

Reimplemented from EventListener.

Definition at line 2105 of file MainForm.cpp.

◆ eventFilter()

bool eventFilter ( QObject * o,
QEvent * e )
overrideprivate

Definition at line 1863 of file MainForm.cpp.

◆ functionDeleteInstrument

void functionDeleteInstrument ( int nInstrument)
slot

Definition at line 1343 of file MainForm.cpp.

◆ getAutoSaveFilename()

QString getAutoSaveFilename ( )
private

Definition at line 2243 of file MainForm.cpp.

◆ handleSelectNextPrevSongOnPlaylist()

bool handleSelectNextPrevSongOnPlaylist ( int step)
private

Definition at line 2457 of file MainForm.cpp.

◆ handleSigUsr1

void handleSigUsr1 ( )
slot

Definition at line 2399 of file MainForm.cpp.

◆ handleUnsavedChanges()

bool handleUnsavedChanges ( )
protected

Definition at line 2334 of file MainForm.cpp.

◆ initKeyInstMap()

void initKeyInstMap ( )
private

Definition at line 1760 of file MainForm.cpp.

◆ jacksessionEvent()

void jacksessionEvent ( int nValue)
overridevirtual

Reimplemented from EventListener.

Definition at line 2170 of file MainForm.cpp.

◆ onAutoSaveTimer

void onAutoSaveTimer ( )
privateslot

Definition at line 2285 of file MainForm.cpp.

◆ onBPMMinusAccelEvent

void onBPMMinusAccelEvent ( )
slot

Definition at line 1647 of file MainForm.cpp.

◆ onBPMPlusAccelEvent

void onBPMPlusAccelEvent ( )
slot

Definition at line 1632 of file MainForm.cpp.

◆ onFixMidiSetup

void onFixMidiSetup ( )
privateslot

Definition at line 1736 of file MainForm.cpp.

◆ onFixMissingSamples

void onFixMissingSamples ( )
privateslot

Definition at line 1750 of file MainForm.cpp.

◆ onLashPollTimer

void onLashPollTimer ( )
slot

Definition at line 542 of file MainForm.cpp.

◆ onPlaylistDisplayTimer

void onPlaylistDisplayTimer ( )
privateslot

Definition at line 2311 of file MainForm.cpp.

◆ onPlayStopAccelEvent

void onPlayStopAccelEvent ( )
slot

Definition at line 1606 of file MainForm.cpp.

◆ onPreferencesChanged

void onPreferencesChanged ( H2Core::Preferences::Changes changes)
slot

Definition at line 1571 of file MainForm.cpp.

◆ onRestartAccelEvent

void onRestartAccelEvent ( )
slot

Definition at line 1624 of file MainForm.cpp.

◆ openSongWithDialog()

void openSongWithDialog ( const QString & sWindowTitle,
const QString & sPath,
bool bIsDemo )
private

Definition at line 1119 of file MainForm.cpp.

◆ openUndoStack

void openUndoStack ( )
slot

Definition at line 2409 of file MainForm.cpp.

◆ playlistLoadSongEvent()

void playlistLoadSongEvent ( int nIndex)
overridevirtual

Reimplemented from EventListener.

Definition at line 2153 of file MainForm.cpp.

◆ prepareSongOpening()

bool prepareSongOpening ( )
private

Definition at line 1108 of file MainForm.cpp.

◆ quitEvent()

void quitEvent ( int )
overridevirtual

Reimplemented from EventListener.

Definition at line 2536 of file MainForm.cpp.

◆ savePreferences

void savePreferences ( )
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.

◆ setMainWindowSize

void setMainWindowSize ( int w,
int h )
inlineslot

Definition at line 227 of file MainForm.h.

◆ showDevelWarning

void showDevelWarning ( )
slot

Definition at line 2206 of file MainForm.cpp.

◆ showPreferencesDialog

void showPreferencesDialog ( )
slot

Definition at line 1151 of file MainForm.cpp.

◆ showUserManual

void showUserManual ( )
slot

Definition at line 940 of file MainForm.cpp.

◆ startAutosaveTimer()

void startAutosaveTimer ( )
private

debug only

Definition at line 526 of file MainForm.cpp.

◆ startPlaybackAtCursor()

void startPlaybackAtCursor ( QObject * pObject)
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.

Parameters
pObjectUsed to determine the focused part of the application.

Definition at line 2540 of file MainForm.cpp.

◆ undoRedoActionEvent()

void undoRedoActionEvent ( int nEvent)
overridevirtual

Reimplemented from EventListener.

Definition at line 2449 of file MainForm.cpp.

◆ update_automation_checkbox

void update_automation_checkbox ( )
slot

Definition at line 1508 of file MainForm.cpp.

◆ update_director_checkbox

void update_director_checkbox ( )
slot

Definition at line 1174 of file MainForm.cpp.

◆ update_instrument_checkbox

void update_instrument_checkbox ( bool show)
slot

Definition at line 1503 of file MainForm.cpp.

◆ update_mixer_checkbox

void update_mixer_checkbox ( )
slot

Definition at line 1196 of file MainForm.cpp.

◆ update_playback_track_group

void update_playback_track_group ( )
slot

Definition at line 1519 of file MainForm.cpp.

◆ update_playlist_checkbox

void update_playlist_checkbox ( )
slot

Definition at line 1162 of file MainForm.cpp.

◆ updatePreferencesEvent()

void updatePreferencesEvent ( int nValue)
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

Parameters
nValueIf 0, H2Core::Preferences was save. If 1, it was loaded.

Reimplemented from EventListener.

Definition at line 2423 of file MainForm.cpp.

◆ updateRecentUsedSongList()

void updateRecentUsedSongList ( )
private

Definition at line 1660 of file MainForm.cpp.

◆ updateSongEvent()

void updateSongEvent ( int nValue)
overridevirtual

Reimplemented from EventListener.

Definition at line 2529 of file MainForm.cpp.

◆ usr1SignalHandler()

void usr1SignalHandler ( int unused)
static

Definition at line 2393 of file MainForm.cpp.

Field Documentation

◆ h2app

HydrogenApp* h2app
private

Definition at line 247 of file MainForm.h.

◆ keycodeInstrumentMap

std::map<int,int> keycodeInstrumentMap
private

Definition at line 284 of file MainForm.h.

◆ m_AutosaveTimer

QTimer m_AutosaveTimer
private

Definition at line 275 of file MainForm.h.

◆ m_pDebugMenu

QMenu* m_pDebugMenu
private

Definition at line 317 of file MainForm.h.

◆ m_pDrumkitAction

QAction* m_pDrumkitAction
private

Definition at line 263 of file MainForm.h.

◆ m_pDrumkitsMenu

QMenu* m_pDrumkitsMenu
private

Definition at line 313 of file MainForm.h.

◆ m_pFileMenu

QMenu* m_pFileMenu
private

Definition at line 311 of file MainForm.h.

◆ m_pInfoMenu

QMenu* m_pInfoMenu
private

Definition at line 318 of file MainForm.h.

◆ m_pInputModeMenu

QMenu* m_pInputModeMenu
private

Definition at line 253 of file MainForm.h.

◆ m_pInstrumentAction

QAction* m_pInstrumentAction
private

Definition at line 262 of file MainForm.h.

◆ m_pInstrumentsMenu

QMenu* m_pInstrumentsMenu
private

Definition at line 314 of file MainForm.h.

◆ m_pLogLevelMenu

QMenu* m_pLogLevelMenu
private

Definition at line 252 of file MainForm.h.

◆ m_pMidiSetupInfoBar

InfoBar* m_pMidiSetupInfoBar
private

Definition at line 292 of file MainForm.h.

◆ m_pMissingSamplesInfoBar

InfoBar* m_pMissingSamplesInfoBar
private

Definition at line 293 of file MainForm.h.

◆ m_pOptionsMenu

QMenu* m_pOptionsMenu
private

Definition at line 316 of file MainForm.h.

◆ m_pQApp

QApplication* m_pQApp

Definition at line 52 of file MainForm.h.

◆ m_pRecentFileAction0

QAction* m_pRecentFileAction0
private

Definition at line 266 of file MainForm.h.

◆ m_pRecentFileAction1

QAction* m_pRecentFileAction1
private

Definition at line 267 of file MainForm.h.

◆ m_pRecentFileAction2

QAction* m_pRecentFileAction2
private

Definition at line 268 of file MainForm.h.

◆ m_pRecentFileAction3

QAction* m_pRecentFileAction3
private

Definition at line 269 of file MainForm.h.

◆ m_pRecentFileAction4

QAction* m_pRecentFileAction4
private

Definition at line 270 of file MainForm.h.

◆ m_pRecentFilesMenu

QMenu* m_pRecentFilesMenu
private

Definition at line 265 of file MainForm.h.

◆ m_pUndoMenu

QMenu* m_pUndoMenu
private

Definition at line 312 of file MainForm.h.

◆ m_pUndoView

QUndoView* m_pUndoView
private

Definition at line 272 of file MainForm.h.

◆ m_pViewAutomationPathAction

QAction* m_pViewAutomationPathAction
private

Definition at line 258 of file MainForm.h.

◆ m_pViewDirectorAction

QAction* m_pViewDirectorAction
private

Definition at line 255 of file MainForm.h.

◆ m_pViewMenu

QMenu* m_pViewMenu
private

Definition at line 315 of file MainForm.h.

◆ m_pViewMixerAction

QAction* m_pViewMixerAction
private

Definition at line 256 of file MainForm.h.

◆ m_pViewMixerInstrumentRackAction

QAction* m_pViewMixerInstrumentRackAction
private

Definition at line 257 of file MainForm.h.

◆ m_pViewPlaybackTrackAction

QAction* m_pViewPlaybackTrackAction
private

Definition at line 260 of file MainForm.h.

◆ m_pViewPlaybackTrackActionGroup

QActionGroup* m_pViewPlaybackTrackActionGroup
private

Definition at line 261 of file MainForm.h.

◆ m_pViewPlaylistEditorAction

QAction* m_pViewPlaylistEditorAction
private

Definition at line 254 of file MainForm.h.

◆ m_pViewTimelineAction

QAction* m_pViewTimelineAction
private

Definition at line 259 of file MainForm.h.

◆ m_sPreviousAutoSaveFilename

QString m_sPreviousAutoSaveFilename
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.

◆ sigusr1Fd

int sigusr1Fd
staticprivate

Definition at line 249 of file MainForm.h.

◆ snUsr1

QSocketNotifier* snUsr1
private

Definition at line 250 of file MainForm.h.