diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp index e0129a57..c689caf9 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.cpp +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.cpp @@ -1166,6 +1166,11 @@ void TasEditorWindow::buildSideControlPanel(void) connect( turboSeekCbox , SIGNAL(clicked(bool)), this, SLOT(playbackTurboSeekCb(bool))); connect( autoRestoreCbox , SIGNAL(clicked(bool)), this, SLOT(playbackAutoRestoreCb(bool))); + connect( prevMkrBtn, SIGNAL(clicked(void)), this, SLOT(jumpToPreviousMarker(void)) ); + connect( nextMkrBtn, SIGNAL(clicked(void)), this, SLOT(jumpToNextMarker(void)) ); + connect( similarBtn, SIGNAL(clicked(void)), this, SLOT(findSimilarNote(void)) ); + connect( moreBtn , SIGNAL(clicked(void)), this, SLOT(findNextSimilarNote(void)) ); + shortcut = new QShortcut( QKeySequence("Pause"), this); connect( shortcut, SIGNAL(activated(void)), this, SLOT(playbackPauseCB(void)) ); @@ -3108,6 +3113,26 @@ void TasEditorWindow::lowerMarkerLabelClicked(void) } } //---------------------------------------------------------------------------- +void TasEditorWindow::jumpToPreviousMarker(void) +{ + selection.jumpToPreviousMarker(); +} +//---------------------------------------------------------------------------- +void TasEditorWindow::jumpToNextMarker(void) +{ + selection.jumpToNextMarker(); +} +//---------------------------------------------------------------------------- +void TasEditorWindow::findSimilarNote(void) +{ + markersManager.findSimilarNote(); +} +//---------------------------------------------------------------------------- +void TasEditorWindow::findNextSimilarNote(void) +{ + markersManager.findNextSimilarNote(); +} +//---------------------------------------------------------------------------- //---------------------------------------------------------------------------- //---- TAS Piano Roll Widget //---------------------------------------------------------------------------- diff --git a/src/drivers/Qt/TasEditor/TasEditorWindow.h b/src/drivers/Qt/TasEditor/TasEditorWindow.h index 1b2e1761..5254b571 100644 --- a/src/drivers/Qt/TasEditor/TasEditorWindow.h +++ b/src/drivers/Qt/TasEditor/TasEditorWindow.h @@ -475,6 +475,10 @@ class TasEditorWindow : public QDialog void setMaxUndoCapacity(void); void setCurrentPattern(int); void tabViewChanged(int); + void findSimilarNote(void); + void findNextSimilarNote(void); + void jumpToPreviousMarker(void); + void jumpToNextMarker(void); void autoLuaRunChanged(bool); void manLuaRun(void); diff --git a/src/drivers/Qt/TasEditor/selection.cpp b/src/drivers/Qt/TasEditor/selection.cpp index 585b8b78..5035a65e 100644 --- a/src/drivers/Qt/TasEditor/selection.cpp +++ b/src/drivers/Qt/TasEditor/selection.cpp @@ -212,7 +212,7 @@ void SELECTION::redrawMarkerData() strcpy(new_text, markersManager->getNoteCopy(displayedMarkerNumber).c_str()); tasWin->lowerMarkerNote->setText( QObject::tr(new_text) ); - printf("Marker %i: '%s'\n", displayedMarkerNumber, new_text ); + //printf("Marker %i: '%s'\n", displayedMarkerNumber, new_text ); } void SELECTION::jumpToPreviousMarker(int speed)