|
hydrogen 1.2.3
|
#include <PlayerControl.h>
Public Slots | |
| void | activateSongMode (bool bActivate) |
| void | onPreferencesChanged (H2Core::Preferences::Changes changes) |
Public Member Functions | |
| PlayerControl (QWidget *parent) | |
| ~PlayerControl () | |
| virtual void | driverChangedEvent () override |
| virtual void | jackTimebaseStateChangedEvent () override |
| virtual void | jackTransportActivationEvent () override |
| virtual void | loopModeActivationEvent () override |
| void | showStatusBarMessage (const QString &msg, const QString &sCaller="") |
| virtual void | songModeActivationEvent () override |
| Shared GUI update when activating Song or Pattern mode via button click or via OSC command. | |
| virtual void | tempoChangedEvent (int nValue) override |
| virtual void | timelineActivationEvent () override |
| virtual void | updateSongEvent (int nValue) override |
Public Member Functions inherited from EventListener | |
| virtual | ~EventListener () |
| virtual void | actionModeChangeEvent (int nValue) |
| virtual void | bbtChangedEvent () |
| virtual void | drumkitLoadedEvent () |
| virtual void | errorEvent (int nErrorCode) |
| virtual void | gridCellToggledEvent () |
| virtual void | instrumentParametersChangedEvent (int nInstrumentNumber) |
| virtual void | jacksessionEvent (int nValue) |
| virtual void | metronomeEvent (int nValue) |
| 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 | playlistLoadSongEvent (int nIndex) |
| virtual void | progressEvent (int nValue) |
| virtual void | quitEvent (int nValue) |
| virtual void | relocationEvent () |
| virtual void | selectedInstrumentChangedEvent () |
| virtual void | selectedPatternChangedEvent () |
| virtual void | songModifiedEvent () |
| virtual void | songSizeChangedEvent () |
| virtual void | soundLibraryChangedEvent () |
| virtual void | stackedModeActivationEvent (int nValue) |
| virtual void | stateChangedEvent (H2Core::AudioEngine::State state) |
| virtual void | timelineUpdateEvent (int nValue) |
| virtual void | undoRedoActionEvent (int nValue) |
| virtual void | updatePreferencesEvent (int nValue) |
| virtual void | XRunEvent () |
Public Member Functions inherited from Object< PlayerControl > | |
| Object () | |
| Object (const Object< PlayerControl > &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. | |
Private Slots | |
| void | activateBeatCounter (bool bActivate) |
| void | bcbDownButtonClicked () |
| void | bcbUpButtonClicked () |
| void | bcSetPlayBtnClicked () |
| void | bctDownButtonClicked () |
| void | bctUpButtonClicked () |
| void | bpmChanged (double) |
| void | deactivateMidiActivityLED () |
| void | fastForwardBtnClicked () |
| void | jackMasterBtnClicked () |
| void | jackTransportBtnClicked () |
| void | metronomeButtonClicked () |
| void | playBtnClicked () |
| Start audio engine. | |
| void | recBtnClicked () |
| Toggle record mode. | |
| void | rewindBtnClicked () |
| void | rubberbandButtonToggle () |
| void | showInstrumentRackButtonClicked () |
| void | showMixerButtonClicked () |
| void | stopBtnClicked () |
| Stop audio engine. | |
| void | updatePlayerControl () |
Private Member Functions | |
| void | midiActivityEvent () override |
| void | updateBeatCounter () |
| void | updateBeatCounterToolTip () |
| void | updateBPMSpinbox () |
| Store the tool tip of the beat counter since it gets overwritten during deactivation. | |
| void | updateBPMSpinboxToolTip () |
| void | updateStatusLabel () |
| Ensure that the full width of the status label is used without cutting of the beginning of the message. | |
Additional Inherited Members | |
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 | |
Static Public Attributes inherited from Base | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
Protected Member Functions inherited from WidgetWithScalableFont< 5, 6, 7 > | |
| 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 | drumkitLoadedEvent () |
| virtual void | errorEvent (int nErrorCode) |
| virtual void | gridCellToggledEvent () |
| virtual void | instrumentParametersChangedEvent (int nInstrumentNumber) |
| virtual void | jacksessionEvent (int nValue) |
| virtual void | metronomeEvent (int nValue) |
| 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 | playlistLoadSongEvent (int nIndex) |
| virtual void | progressEvent (int nValue) |
| virtual void | quitEvent (int nValue) |
| virtual void | relocationEvent () |
| virtual void | selectedInstrumentChangedEvent () |
| virtual void | selectedPatternChangedEvent () |
| virtual void | songModifiedEvent () |
| virtual void | songSizeChangedEvent () |
| virtual void | soundLibraryChangedEvent () |
| virtual void | stackedModeActivationEvent (int nValue) |
| virtual void | stateChangedEvent (H2Core::AudioEngine::State state) |
| virtual void | timelineUpdateEvent (int nValue) |
| virtual void | undoRedoActionEvent (int nValue) |
| virtual void | updatePreferencesEvent (int nValue) |
| virtual void | XRunEvent () |
Protected Member Functions inherited from Object< PlayerControl > | |
| ~Object () | |
| Object () | |
| Object (const Object< PlayerControl > &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. | |
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. | |
Definition at line 51 of file PlayerControl.h.
|
explicit |
Definition at line 58 of file PlayerControl.cpp.
| ~PlayerControl | ( | ) |
Definition at line 511 of file PlayerControl.cpp.
|
privateslot |
Definition at line 787 of file PlayerControl.cpp.
|
slot |
Definition at line 757 of file PlayerControl.cpp.
|
privateslot |
Definition at line 855 of file PlayerControl.cpp.
|
privateslot |
Definition at line 840 of file PlayerControl.cpp.
|
privateslot |
Definition at line 804 of file PlayerControl.cpp.
|
privateslot |
Definition at line 881 of file PlayerControl.cpp.
|
privateslot |
Definition at line 868 of file PlayerControl.cpp.
|
privateslot |
Definition at line 771 of file PlayerControl.cpp.
|
privateslot |
Definition at line 709 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1105 of file PlayerControl.cpp.
|
privateslot |
Definition at line 937 of file PlayerControl.cpp.
|
privateslot |
Definition at line 916 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1147 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1119 of file PlayerControl.cpp.
|
privateslot |
Definition at line 896 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 951 of file PlayerControl.cpp.
|
privateslot |
Definition at line 969 of file PlayerControl.cpp.
|
overrideprivatevirtual |
Reimplemented from EventListener.
Definition at line 702 of file PlayerControl.cpp.
|
slot |
Definition at line 1198 of file PlayerControl.cpp.
|
privateslot |
Start audio engine.
Definition at line 654 of file PlayerControl.cpp.
|
privateslot |
Toggle record mode.
Definition at line 640 of file PlayerControl.cpp.
|
privateslot |
Definition at line 945 of file PlayerControl.cpp.
|
privateslot |
Definition at line 819 of file PlayerControl.cpp.
|
privateslot |
Definition at line 984 of file PlayerControl.cpp.
|
privateslot |
Definition at line 977 of file PlayerControl.cpp.
| void showStatusBarMessage | ( | const QString & | msg, |
| const QString & | sCaller = "" ) |
Definition at line 1005 of file PlayerControl.cpp.
|
overridevirtual |
Shared GUI update when activating Song or Pattern mode via button click or via OSC command.
| nValue | If 0, Pattern mode will be activate. Else, Song mode will be activated instead. |
Reimplemented from EventListener.
Definition at line 726 of file PlayerControl.cpp.
|
privateslot |
Stop audio engine.
Definition at line 679 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1063 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 992 of file PlayerControl.cpp.
|
private |
Definition at line 1023 of file PlayerControl.cpp.
|
private |
Definition at line 1049 of file PlayerControl.cpp.
|
private |
Store the tool tip of the beat counter since it gets overwritten during deactivation.
Definition at line 997 of file PlayerControl.cpp.
|
private |
Definition at line 1009 of file PlayerControl.cpp.
|
privateslot |
Definition at line 518 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 714 of file PlayerControl.cpp.
|
private |
Ensure that the full width of the status label is used without cutting of the beginning of the message.
|
private |
Definition at line 115 of file PlayerControl.h.
|
private |
Definition at line 180 of file PlayerControl.h.
|
private |
When updating the tempo of the BPM spin box it is crucial to indicated that this was done due to a batch event and not due to user input.
Else a batch update would trigger its bpmChanged() slot, which in turn sets the core BPM again. When changing a lot of tempo very quick (switch between songs of different tempi) this spurious BPM setting will mess things up.
Definition at line 201 of file PlayerControl.h.
|
private |
Definition at line 178 of file PlayerControl.h.
|
private |
Definition at line 135 of file PlayerControl.h.
|
private |
Definition at line 134 of file PlayerControl.h.
|
private |
Definition at line 163 of file PlayerControl.h.
|
private |
Definition at line 164 of file PlayerControl.h.
|
private |
Definition at line 162 of file PlayerControl.h.
|
private |
Definition at line 130 of file PlayerControl.h.
|
private |
Definition at line 131 of file PlayerControl.h.
|
private |
Definition at line 133 of file PlayerControl.h.
|
private |
Definition at line 132 of file PlayerControl.h.
|
private |
Definition at line 152 of file PlayerControl.h.
|
private |
Definition at line 160 of file PlayerControl.h.
|
private |
Definition at line 149 of file PlayerControl.h.
|
private |
Definition at line 146 of file PlayerControl.h.
|
private |
Definition at line 121 of file PlayerControl.h.
|
private |
Definition at line 114 of file PlayerControl.h.
|
private |
Definition at line 143 of file PlayerControl.h.
|
private |
Definition at line 141 of file PlayerControl.h.
|
private |
Definition at line 151 of file PlayerControl.h.
|
private |
Definition at line 168 of file PlayerControl.h.
|
private |
Definition at line 167 of file PlayerControl.h.
|
private |
Definition at line 147 of file PlayerControl.h.
|
private |
Used to turn off the LED m_pMidiActivityLED indicating an incoming MIDI event after m_midiActivityTimeout milliseconds.
Definition at line 177 of file PlayerControl.h.
|
private |
Definition at line 148 of file PlayerControl.h.
|
private |
Definition at line 126 of file PlayerControl.h.
|
private |
Definition at line 127 of file PlayerControl.h.
|
private |
Definition at line 119 of file PlayerControl.h.
|
private |
Definition at line 118 of file PlayerControl.h.
|
private |
Definition at line 139 of file PlayerControl.h.
|
private |
Definition at line 117 of file PlayerControl.h.
|
private |
Definition at line 171 of file PlayerControl.h.
|
private |
Definition at line 170 of file PlayerControl.h.
|
private |
Definition at line 123 of file PlayerControl.h.
|
private |
Definition at line 124 of file PlayerControl.h.
|
private |
Definition at line 125 of file PlayerControl.h.
|
private |
Definition at line 173 of file PlayerControl.h.
|
private |
Definition at line 120 of file PlayerControl.h.
|
private |
Definition at line 153 of file PlayerControl.h.
|
private |
Definition at line 154 of file PlayerControl.h.
|
private |
Definition at line 157 of file PlayerControl.h.
|
private |
Definition at line 155 of file PlayerControl.h.
|
private |
Definition at line 156 of file PlayerControl.h.
|
private |
Definition at line 190 of file PlayerControl.h.
|
private |
Definition at line 189 of file PlayerControl.h.
|
private |
Definition at line 188 of file PlayerControl.h.
|
private |
Definition at line 193 of file PlayerControl.h.
|
private |
Definition at line 192 of file PlayerControl.h.
|
private |
Definition at line 191 of file PlayerControl.h.