|
hydrogen 1.2.3
|
Song editor pattern list. More...
#include <SongEditor.h>
Public Slots | |
| virtual void | dragEnterEvent (QDragEnterEvent *event) override |
| drag & drop | |
| virtual void | dropEvent (QDropEvent *event) override |
| void | inlineEditingEntered () |
| void | inlineEditingFinished () |
| void | onPreferencesChanged (H2Core::Preferences::Changes changes) |
| void | patternPopup_delete () |
| void | patternPopup_duplicate () |
| void | patternPopup_edit () |
| void | patternPopup_export () |
| void | patternPopup_fill () |
| void | patternPopup_load () |
| void | patternPopup_properties () |
| void | patternPopup_save () |
| void | patternPopup_virtualPattern () |
| virtual void | timelineUpdateEvent (int nValue) override |
Public Member Functions | |
| SongEditorPatternList (const SongEditorPatternList &)=delete | |
| SongEditorPatternList (QWidget *parent) | |
| ~SongEditorPatternList () | |
| void | acceptPatternPropertiesDialogSettings (QString newPatternName, QString newPatternInfo, QString newPatternCategory, int patternNr) |
| void | createBackground () |
| void | fillRangeWithPattern (FillRange *r, int nPattern) |
| int | getGridHeight () |
| void | invalidateBackground () |
| void | movePatternLine (int, int) |
| virtual void | nextPatternsChangedEvent () override |
| SongEditorPatternList & | operator= (const SongEditorPatternList &rhs)=delete |
| virtual void | patternEditorLockedEvent () override |
| virtual void | patternModifiedEvent () override |
| virtual void | playingPatternsChangedEvent () override |
| virtual void | relocationEvent () override |
| void | revertPatternPropertiesDialogSettings (QString oldPatternName, QString oldPatternInfo, QString oldPatternCategory, int patternNr) |
| virtual void | selectedPatternChangedEvent () override |
| virtual void | songModeActivationEvent () override |
| virtual void | stackedModeActivationEvent (int nValue) override |
| void | updateEditor () |
Public Member Functions inherited from Object< SongEditorPatternList > | |
| Object () | |
| Object (const Object< SongEditorPatternList > &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. | |
Public Member Functions inherited from EventListener | |
| virtual | ~EventListener () |
| virtual void | actionModeChangeEvent (int nValue) |
| virtual void | bbtChangedEvent () |
| virtual void | driverChangedEvent () |
| virtual void | drumkitLoadedEvent () |
| virtual void | errorEvent (int nErrorCode) |
| virtual void | gridCellToggledEvent () |
| virtual void | instrumentParametersChangedEvent (int nInstrumentNumber) |
| virtual void | jacksessionEvent (int nValue) |
| virtual void | jackTimebaseStateChangedEvent () |
| virtual void | jackTransportActivationEvent () |
| virtual void | loopModeActivationEvent () |
| virtual void | metronomeEvent (int nValue) |
| virtual void | midiActivityEvent () |
| virtual void | midiMapChangedEvent () |
| virtual void | nextShotEvent () |
| virtual void | noteOnEvent (int nInstrument) |
| virtual void | playbackTrackChangedEvent () |
| virtual void | playlistLoadSongEvent (int nIndex) |
| virtual void | progressEvent (int nValue) |
| virtual void | quitEvent (int nValue) |
| virtual void | selectedInstrumentChangedEvent () |
| virtual void | songModifiedEvent () |
| virtual void | songSizeChangedEvent () |
| virtual void | soundLibraryChangedEvent () |
| virtual void | stateChangedEvent (H2Core::AudioEngine::State state) |
| virtual void | tempoChangedEvent (int nValue) |
| virtual void | timelineActivationEvent () |
| virtual void | timelineUpdateEvent (int nValue) |
| virtual void | undoRedoActionEvent (int nValue) |
| virtual void | updatePreferencesEvent (int nValue) |
| virtual void | updateSongEvent (int nValue) |
| virtual void | XRunEvent () |
Private Member Functions | |
| void | inlineEditPatternName (int row) |
| virtual void | leaveEvent (QEvent *ev) |
| virtual void | mouseDoubleClickEvent (QMouseEvent *ev) override |
| virtual void | mouseMoveEvent (QMouseEvent *event) override |
| virtual void | mousePressEvent (QMouseEvent *ev) override |
| Single click, select the next pattern. | |
| virtual void | paintEvent (QPaintEvent *ev) override |
| void | setRowSelection (RowSelection rowSelection) |
| void | togglePattern (int) |
| Start/stop playing a pattern in "pattern mode". | |
Private Attributes | |
| QPoint | __drag_start_position |
| bool | m_bBackgroundInvalid |
| QPixmap | m_labelBackgroundDark |
| QPixmap | m_labelBackgroundLight |
| QPixmap | m_labelBackgroundSelected |
| uint | m_nGridHeight |
| int | m_nRowHovered |
| Specifies the row the mouse cursor is currently hovered over. | |
| uint | m_nWidth |
| H2Core::AudioEngine * | m_pAudioEngine |
| QPixmap * | m_pBackgroundPixmap |
| DragScroller * | m_pDragScroller |
| QTimer * | m_pHighlightLockedTimer |
| H2Core::Hydrogen * | m_pHydrogen |
| QPixmap | m_playingPattern_empty_Pixmap |
| QPixmap | m_playingPattern_off_Pixmap |
| QPixmap | m_playingPattern_on_Pixmap |
| QLineEdit * | m_pLineEdit |
| H2Core::Pattern * | m_pPatternBeingEdited |
| QMenu * | m_pPatternPopup |
Static Private Attributes | |
| static const uint | m_nInitialHeight = 10 |
Additional Inherited Members | |
Public Types inherited from WidgetWithHighlightedList | |
| enum class | RowSelection { None , Popup , Dialog } |
| Specifies whether the row corresponding to m_nRowClicked should be highlighted and determines the lifecycle of the highlighting. More... | |
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 Types inherited from WidgetWithHighlightedList | |
| enum class | RowSelection { None , Popup , Dialog } |
| Specifies whether the row corresponding to m_nRowClicked should be highlighted and determines the lifecycle of the highlighting. More... | |
Protected Member Functions inherited from WidgetWithScalableFont< 8, 10, 12 > | |
| constexpr int | getPointSize (H2Core::FontTheme::FontSize fontSize) const |
Protected Member Functions inherited from WidgetWithHighlightedList | |
| WidgetWithHighlightedList () | |
Protected Member Functions inherited from Object< SongEditorPatternList > | |
| ~Object () | |
| Object () | |
| Object (const Object< SongEditorPatternList > &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. | |
Protected Member Functions inherited from EventListener | |
| virtual | ~EventListener () |
| virtual void | actionModeChangeEvent (int nValue) |
| virtual void | bbtChangedEvent () |
| virtual void | driverChangedEvent () |
| virtual void | drumkitLoadedEvent () |
| virtual void | errorEvent (int nErrorCode) |
| virtual void | gridCellToggledEvent () |
| virtual void | instrumentParametersChangedEvent (int nInstrumentNumber) |
| virtual void | jacksessionEvent (int nValue) |
| virtual void | jackTimebaseStateChangedEvent () |
| virtual void | jackTransportActivationEvent () |
| virtual void | loopModeActivationEvent () |
| virtual void | metronomeEvent (int nValue) |
| virtual void | midiActivityEvent () |
| virtual void | midiMapChangedEvent () |
| virtual void | nextShotEvent () |
| virtual void | noteOnEvent (int nInstrument) |
| virtual void | playbackTrackChangedEvent () |
| virtual void | playlistLoadSongEvent (int nIndex) |
| virtual void | progressEvent (int nValue) |
| virtual void | quitEvent (int nValue) |
| virtual void | selectedInstrumentChangedEvent () |
| virtual void | songModifiedEvent () |
| virtual void | songSizeChangedEvent () |
| virtual void | soundLibraryChangedEvent () |
| virtual void | stateChangedEvent (H2Core::AudioEngine::State state) |
| virtual void | tempoChangedEvent (int nValue) |
| virtual void | timelineActivationEvent () |
| virtual void | timelineUpdateEvent (int nValue) |
| virtual void | undoRedoActionEvent (int nValue) |
| virtual void | updatePreferencesEvent (int nValue) |
| virtual void | updateSongEvent (int nValue) |
| virtual void | XRunEvent () |
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 | |
Protected Attributes inherited from WidgetWithHighlightedList | |
| int | m_nRowClicked |
| Helper variable remembering for row was clicked last. | |
| RowSelection | m_rowSelection |
| Determines the highlighting of the row associated with m_nRowClicked. | |
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. | |
Song editor pattern list.
Definition at line 258 of file SongEditor.h.
|
explicit |
Definition at line 1409 of file SongEditor.cpp.
Definition at line 1484 of file SongEditor.cpp.
|
delete |
| void acceptPatternPropertiesDialogSettings | ( | QString | newPatternName, |
| QString | newPatternInfo, | ||
| QString | newPatternCategory, | ||
| int | patternNr ) |
Definition at line 2085 of file SongEditor.cpp.
| void createBackground | ( | ) |
Definition at line 1735 of file SongEditor.cpp.
|
overridevirtualslot |
drag & drop
Definition at line 2271 of file SongEditor.cpp.
|
overridevirtualslot |
Definition at line 2279 of file SongEditor.cpp.
| void fillRangeWithPattern | ( | FillRange * | r, |
| int | nPattern ) |
Definition at line 2199 of file SongEditor.cpp.
|
inline |
Definition at line 282 of file SongEditor.h.
|
slot |
Definition at line 1629 of file SongEditor.cpp.
|
slot |
Definition at line 1655 of file SongEditor.cpp.
|
private |
Definition at line 1613 of file SongEditor.cpp.
| void invalidateBackground | ( | ) |
Definition at line 1730 of file SongEditor.cpp.
|
privatevirtual |
Definition at line 2407 of file SongEditor.cpp.
|
overrideprivatevirtual |
Definition at line 1607 of file SongEditor.cpp.
|
overrideprivatevirtual |
Definition at line 2414 of file SongEditor.cpp.
|
overrideprivatevirtual |
Single click, select the next pattern.
Definition at line 1534 of file SongEditor.cpp.
| void movePatternLine | ( | int | nSourcePattern, |
| int | nTargetPattern ) |
Definition at line 2372 of file SongEditor.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1514 of file SongEditor.cpp.
|
slot |
Definition at line 2462 of file SongEditor.cpp.
|
delete |
|
overrideprivatevirtual |
Definition at line 1662 of file SongEditor.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1526 of file SongEditor.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1504 of file SongEditor.cpp.
|
slot |
Definition at line 2116 of file SongEditor.cpp.
|
slot |
Definition at line 2147 of file SongEditor.cpp.
|
slot |
Definition at line 2060 of file SongEditor.cpp.
|
slot |
Definition at line 2012 of file SongEditor.cpp.
|
slot |
Definition at line 2178 of file SongEditor.cpp.
|
slot |
Definition at line 1954 of file SongEditor.cpp.
|
slot |
Definition at line 2068 of file SongEditor.cpp.
|
slot |
Definition at line 2021 of file SongEditor.cpp.
|
slot |
Definition at line 1883 of file SongEditor.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1493 of file SongEditor.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1519 of file SongEditor.cpp.
| void revertPatternPropertiesDialogSettings | ( | QString | oldPatternName, |
| QString | oldPatternInfo, | ||
| QString | oldPatternCategory, | ||
| int | patternNr ) |
Definition at line 2101 of file SongEditor.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1509 of file SongEditor.cpp.
|
private |
Definition at line 1498 of file SongEditor.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1720 of file SongEditor.cpp.
|
overridevirtual |
Reimplemented from EventListener.
Definition at line 1878 of file SongEditor.cpp.
|
overridevirtualslot |
Definition at line 2457 of file SongEditor.cpp.
|
private |
Start/stop playing a pattern in "pattern mode".
Definition at line 1599 of file SongEditor.cpp.
| void updateEditor | ( | ) |
Definition at line 1711 of file SongEditor.cpp.
|
private |
Definition at line 341 of file SongEditor.h.
|
private |
Definition at line 318 of file SongEditor.h.
|
private |
Definition at line 321 of file SongEditor.h.
|
private |
Definition at line 320 of file SongEditor.h.
|
private |
Definition at line 322 of file SongEditor.h.
|
private |
Definition at line 313 of file SongEditor.h.
|
staticprivate |
Definition at line 315 of file SongEditor.h.
|
private |
Specifies the row the mouse cursor is currently hovered over.
-1 for no cursor.
Definition at line 351 of file SongEditor.h.
|
private |
Definition at line 314 of file SongEditor.h.
|
private |
Definition at line 312 of file SongEditor.h.
|
private |
Definition at line 317 of file SongEditor.h.
|
private |
Definition at line 331 of file SongEditor.h.
|
private |
Definition at line 353 of file SongEditor.h.
|
private |
Definition at line 311 of file SongEditor.h.
|
private |
Definition at line 325 of file SongEditor.h.
|
private |
Definition at line 324 of file SongEditor.h.
|
private |
Definition at line 323 of file SongEditor.h.
|
private |
Definition at line 328 of file SongEditor.h.
|
private |
Definition at line 329 of file SongEditor.h.
|
private |
Definition at line 327 of file SongEditor.h.