|
hydrogen 1.1.1
|
#include <HydrogenApp.h>
Public Types | |
| enum | SetPropertyFlag { SetX = 1 << 0 , SetY = 1 << 1 , SetWidth = 1 << 2 , SetHeight = 1 << 3 , SetVisible = 1 << 4 , SetAll = SetX + SetY + SetWidth + SetHeight + SetVisible , SetDefault = SetAll } |
Public Slots | |
| void | onEventQueueTimer () |
| Function called every QUEUE_TIMER_PERIOD millisecond to pop all Events from the EventQueue and invoke the corresponding functions. More... | |
| void | currentTabChanged (int) |
Public Member Functions | |
| HydrogenApp (MainForm *pMainForm, H2Core::Song *pFirstSong) | |
| virtual | ~HydrogenApp () |
| bool | openSong (const QString sFilename) |
| bool | openSong (H2Core::Song *pSong) |
| void | showPreferencesDialog () |
| void | updateMixerCheckbox () |
| void | showMixer (bool bShow) |
| void | showInstrumentPanel (bool) |
| void | showAudioEngineInfoForm () |
| void | showFilesystemInfoForm () |
| void | showPlaylistDialog () |
| void | showDirector () |
| void | showSampleEditor (QString name, int mSelectedComponemt, int mSelectedLayer) |
| bool | hideKeyboardCursor () |
| void | setHideKeyboardCursor (bool bHidden) |
| Mixer * | getMixer () |
| MainForm * | getMainForm () |
| SongEditorPanel * | getSongEditorPanel () |
| AudioEngineInfoForm * | getAudioEngineInfoForm () |
| PlaylistDialog * | getPlayListDialog () |
| Director * | getDirector () |
| SampleEditor * | getSampleEditor () |
| PatternEditorPanel * | getPatternEditorPanel () |
| PlayerControl * | getPlayerControl () |
| InstrumentRack * | getInstrumentRack () |
| InfoBar * | addInfoBar () |
| void | setStatusBarMessage (const QString &msg, int msec=0) |
| void | setScrollStatusBarMessage (const QString &msg, int msec=0, bool test=true) |
| void | updateWindowTitle () |
| void | addEventListener (EventListener *pListener) |
| void | removeEventListener (EventListener *pListener) |
| void | closeFXProperties () |
| void | onDrumkitLoad (QString name) |
| void | cleanupTemporaryFiles () |
| Removes temporary files that were created for undo'ing things. More... | |
| void | setWindowProperties (QWidget *pWindow, H2Core::WindowProperties &prop, unsigned flags=SetAll) |
| H2Core::WindowProperties | getWindowProperties (QWidget *pWindow) |
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 HydrogenApp * | get_instance () |
| Returns the instance of HydrogenApp class. More... | |
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 | |
| QUndoStack * | m_pUndoStack |
Private Member Functions | |
| void | engineError (uint nErrorCode) |
| void | setupSinglePanedInterface () |
| virtual void | songModifiedEvent () 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 | updateSongEvent (int nValue) override |
| Refreshes and updates the GUI after the Song was changed in the core part of Hydrogen. More... | |
| virtual void | quitEvent (int nValue) override |
| Calls closeAll() to shutdown Hydrogen. More... | |
Private Attributes | |
| MainForm * | m_pMainForm |
| Mixer * | m_pMixer |
| PatternEditorPanel * | m_pPatternEditorPanel |
| AudioEngineInfoForm * | m_pAudioEngineInfoForm |
| FilesystemInfoForm * | m_pFilesystemInfoForm |
| SongEditorPanel * | m_pSongEditorPanel |
| InstrumentRack * | m_pInstrumentRack |
| PlayerControl * | m_pPlayerControl |
| PlaylistDialog * | m_pPlaylistDialog |
| SampleEditor * | m_pSampleEditor |
| Director * | m_pDirector |
| QTimer * | m_pEventQueueTimer |
| std::vector< EventListener * > | m_EventListeners |
| QTabWidget * | m_pTab |
| QSplitter * | m_pSplitter |
| QVBoxLayout * | m_pMainVBox |
| bool | m_bHideKeyboardCursor |
Static Private Attributes | |
| static HydrogenApp * | m_pInstance = nullptr |
| HydrogenApp instance. More... | |
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... | |
| enum SetPropertyFlag |
| HydrogenApp | ( | MainForm * | pMainForm, |
| H2Core::Song * | pFirstSong | ||
| ) |
|
virtual |
| void addEventListener | ( | EventListener * | pListener | ) |
| InfoBar * addInfoBar | ( | ) |
| void cleanupTemporaryFiles | ( | ) |
Removes temporary files that were created for undo'ing things.
| void closeFXProperties | ( | ) |
|
slot |
|
private |
|
static |
Returns the instance of HydrogenApp class.
Return an HydrogenApp m_pInstance.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| WindowProperties getWindowProperties | ( | QWidget * | pWindow | ) |
|
inline |
| void onDrumkitLoad | ( | QString | name | ) |
|
slot |
Function called every QUEUE_TIMER_PERIOD millisecond to pop all Events from the EventQueue and invoke the corresponding functions.
Depending on the H2Core::EventType, the following members of EventListener will be called:
In addition, all MIDI notes in H2Core::EventQueue::m_addMidiNoteVector will converted into actions via SE_addNoteAction() and deleted from the former array.
| bool openSong | ( | const QString | sFilename | ) |
| sFilename | Absolute path used to load the next Song. |
| bool openSong | ( | H2Core::Song * | pSong | ) |
|
overrideprivatevirtual |
| void removeEventListener | ( | EventListener * | pListener | ) |
|
inline |
| void setScrollStatusBarMessage | ( | const QString & | msg, |
| int | msec = 0, |
||
| bool | test = true |
||
| ) |
| void setStatusBarMessage | ( | const QString & | msg, |
| int | msec = 0 |
||
| ) |
|
private |
| void setWindowProperties | ( | QWidget * | pWindow, |
| H2Core::WindowProperties & | prop, | ||
| unsigned | flags = SetAll |
||
| ) |
| void showAudioEngineInfoForm | ( | ) |
| void showDirector | ( | ) |
| void showFilesystemInfoForm | ( | ) |
| void showInstrumentPanel | ( | bool | show | ) |
| void showMixer | ( | bool | bShow | ) |
| void showPlaylistDialog | ( | ) |
| void showPreferencesDialog | ( | ) |
| void showSampleEditor | ( | QString | name, |
| int | mSelectedComponemt, | ||
| int | mSelectedLayer | ||
| ) |
|
overrideprivatevirtual |
Reimplemented from EventListener.
| void updateMixerCheckbox | ( | ) |
|
overrideprivatevirtual |
Handles the loading and saving of the H2Core::Preferences from the core part of H2Core::Hydrogen.
If nValue is 0 - the H2Core::Preferences got saved - it triggers the display of a message in the status bar. If, on the other hand, nValue is 1 and the configuration file has been reloaded, it gets a fresh version of H2Core::Preferences and updates all widgets and setting to reflect the changes in the configuration.
| nValue | If 0, Preferences was save. If 1, it was loaded. |
Reimplemented from EventListener.
|
overrideprivatevirtual |
Refreshes and updates the GUI after the Song was changed in the core part of Hydrogen.
When using session management or changing the Song using an OSC message, this command will get core and GUI in sync again.
| nValue | If 0 or 1, loads the Song stored in H2Core::Hydrogen::m_pNextSong. If 1, also restarts the audio driver via H2Core::Hydrogen::restartDrivers(). If 2, a message in the status bar will be displayed notifying the user about the saving of the current Song to the config file. |
Reimplemented from EventListener.
| void updateWindowTitle | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
HydrogenApp instance.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| QUndoStack* m_pUndoStack |