2021-03-20 Fred Gleason <fredg@paravelsystems.com>

* Refactored the 'RDMarkerDialog' dialog to select markers by pairs
	rather than singly.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-03-20 19:00:55 -04:00
parent c96955b767
commit 346fe9ec1e
8 changed files with 217 additions and 174 deletions

View File

@@ -89,7 +89,8 @@ class RDMarkerView : public QWidget
unsigned sampleRate() const;
int shrinkFactor() const;
int pointerValue(RDMarkerHandle::PointerRole role);
RDMarkerHandle::PointerRole selectedMarker() const;
RDMarkerHandle::PointerRole selectedMarker(RDMarkerHandle::PointerType type)
const;
bool hasUnsavedChanges() const;
void setSelectedMarker(RDMarkerHandle::PointerRole role);
@@ -100,7 +101,8 @@ class RDMarkerView : public QWidget
signals:
void positionClicked(int msec);
void pointerValueChanged(RDMarkerHandle::PointerRole role,int msec);
void selectedMarkerChanged(RDMarkerHandle::PointerRole role);
void selectedMarkersChanged(RDMarkerHandle::PointerRole start_role,
RDMarkerHandle::PointerRole end_role);
public slots:
void setAudioGain(int lvl);
@@ -167,7 +169,7 @@ class RDMarkerView : public QWidget
QList<RDMarkerHandle::PointerRole> d_deleting_roles;
QAction *d_delete_marker_action;
bool d_marker_menu_used;
RDMarkerHandle::PointerRole d_selected_marker;
RDMarkerHandle::PointerRole d_selected_markers[2];
int d_wheel_angle;
};