|
hydrogen 1.2.6
|
#include <PlayerControl.h>
Public Slots | |
| void | activateSongMode (bool bActivate) |
| virtual void | jackTimebaseStateChangedEvent (int nState) override |
| void | onPreferencesChanged (H2Core::Preferences::Changes changes) |
Public Member Functions | |
| PlayerControl (QWidget *parent) | |
| ~PlayerControl () | |
| virtual void | driverChangedEvent () 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 | jackTimebaseStateChangedEvent (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 | 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 Attributes | |
| static constexpr int | m_nMinimumHeight = 43 |
Static Public Attributes inherited from Base | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
Private Slots | |
| void | activateBeatCounter (bool bActivate) |
| void | bcbDownButtonClicked () |
| void | bcbUpButtonClicked () |
| void | bcSetPlayBtnClicked () |
| void | bctDownButtonClicked () |
| void | bctUpButtonClicked () |
| void | bpmChanged (double) |
| void | deactivateMidiActivityLED () |
| void | fastForwardBtnClicked () |
| void | jackTimebaseBtnClicked () |
| 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 | |
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 | jackTimebaseStateChangedEvent (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 | 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 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. | |
Definition at line 51 of file PlayerControl.h.
|
explicit |
Definition at line 58 of file PlayerControl.cpp.
| ~PlayerControl | ( | ) |
Definition at line 507 of file PlayerControl.cpp.
|
privateslot |
Definition at line 784 of file PlayerControl.cpp.
|
slot |
Definition at line 754 of file PlayerControl.cpp.
|
privateslot |
Definition at line 852 of file PlayerControl.cpp.
|
privateslot |
Definition at line 837 of file PlayerControl.cpp.
|
privateslot |
Definition at line 801 of file PlayerControl.cpp.
|
privateslot |
Definition at line 878 of file PlayerControl.cpp.
|
privateslot |
Definition at line 865 of file PlayerControl.cpp.
|
privateslot |
Definition at line 768 of file PlayerControl.cpp.
|
privateslot |
Definition at line 705 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1100 of file PlayerControl.cpp.
|
privateslot |
Definition at line 932 of file PlayerControl.cpp.
|
privateslot |
Definition at line 912 of file PlayerControl.cpp.
|
overridevirtualslot |
Definition at line 1144 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1115 of file PlayerControl.cpp.
|
privateslot |
Definition at line 893 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 946 of file PlayerControl.cpp.
|
privateslot |
Definition at line 964 of file PlayerControl.cpp.
|
overrideprivatevirtual |
Reimplemented from EventListener.
Definition at line 698 of file PlayerControl.cpp.
|
slot |
Definition at line 1195 of file PlayerControl.cpp.
|
privateslot |
Start audio engine.
Definition at line 650 of file PlayerControl.cpp.
|
privateslot |
Toggle record mode.
Definition at line 636 of file PlayerControl.cpp.
|
privateslot |
Definition at line 940 of file PlayerControl.cpp.
|
privateslot |
Definition at line 816 of file PlayerControl.cpp.
|
privateslot |
Definition at line 979 of file PlayerControl.cpp.
|
privateslot |
Definition at line 972 of file PlayerControl.cpp.
| void showStatusBarMessage | ( | const QString & | msg, |
| const QString & | sCaller = "" ) |
Definition at line 1000 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 723 of file PlayerControl.cpp.
|
privateslot |
Stop audio engine.
Definition at line 675 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1058 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 987 of file PlayerControl.cpp.
|
private |
Definition at line 1018 of file PlayerControl.cpp.
|
private |
Definition at line 1044 of file PlayerControl.cpp.
|
private |
Store the tool tip of the beat counter since it gets overwritten during deactivation.
Definition at line 992 of file PlayerControl.cpp.
|
private |
Definition at line 1004 of file PlayerControl.cpp.
|
privateslot |
Definition at line 514 of file PlayerControl.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 710 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 116 of file PlayerControl.h.
|
private |
Definition at line 179 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 200 of file PlayerControl.h.
|
private |
Definition at line 177 of file PlayerControl.h.
|
staticconstexpr |
Definition at line 75 of file PlayerControl.h.
|
private |
Definition at line 136 of file PlayerControl.h.
|
private |
Definition at line 135 of file PlayerControl.h.
|
private |
Definition at line 162 of file PlayerControl.h.
|
private |
Definition at line 163 of file PlayerControl.h.
|
private |
Definition at line 161 of file PlayerControl.h.
|
private |
Definition at line 131 of file PlayerControl.h.
|
private |
Definition at line 132 of file PlayerControl.h.
|
private |
Definition at line 134 of file PlayerControl.h.
|
private |
Definition at line 133 of file PlayerControl.h.
|
private |
Definition at line 151 of file PlayerControl.h.
|
private |
Definition at line 159 of file PlayerControl.h.
|
private |
Definition at line 148 of file PlayerControl.h.
|
private |
Definition at line 145 of file PlayerControl.h.
|
private |
Definition at line 122 of file PlayerControl.h.
|
private |
Definition at line 115 of file PlayerControl.h.
|
private |
Definition at line 143 of file PlayerControl.h.
|
private |
Definition at line 142 of file PlayerControl.h.
|
private |
Definition at line 150 of file PlayerControl.h.
|
private |
Definition at line 167 of file PlayerControl.h.
|
private |
Definition at line 166 of file PlayerControl.h.
|
private |
Definition at line 146 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 176 of file PlayerControl.h.
|
private |
Definition at line 147 of file PlayerControl.h.
|
private |
Definition at line 127 of file PlayerControl.h.
|
private |
Definition at line 128 of file PlayerControl.h.
|
private |
Definition at line 120 of file PlayerControl.h.
|
private |
Definition at line 119 of file PlayerControl.h.
|
private |
Definition at line 140 of file PlayerControl.h.
|
private |
Definition at line 118 of file PlayerControl.h.
|
private |
Definition at line 170 of file PlayerControl.h.
|
private |
Definition at line 169 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 126 of file PlayerControl.h.
|
private |
Definition at line 172 of file PlayerControl.h.
|
private |
Definition at line 121 of file PlayerControl.h.
|
private |
Definition at line 152 of file PlayerControl.h.
|
private |
Definition at line 153 of file PlayerControl.h.
|
private |
Definition at line 156 of file PlayerControl.h.
|
private |
Definition at line 154 of file PlayerControl.h.
|
private |
Definition at line 155 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 187 of file PlayerControl.h.
|
private |
Definition at line 192 of file PlayerControl.h.
|
private |
Definition at line 191 of file PlayerControl.h.
|
private |
Definition at line 190 of file PlayerControl.h.