mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-30 17:20:32 +01:00
2021-09-12 Fred Gleason <fredg@paravelsystems.com>
* Added an 'RDBiPushButton' widget. * Modified the behavior of the buttons in the 'Edit Cart' dialog in rdlibrary(1) to grey-out when there is no cut selected. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#ifndef AUDIO_CART_H
|
||||
#define AUDIO_CART_H
|
||||
|
||||
#include <rdbipushbutton.h>
|
||||
#include <rdcart.h>
|
||||
#include <rdcutlistmodel.h>
|
||||
#include <rdmarkerdialog.h>
|
||||
@@ -54,6 +55,8 @@ class AudioCart : public RDWidget
|
||||
void editCutData();
|
||||
void recordCutData();
|
||||
void doubleClickedData(const QModelIndex &index);
|
||||
void selectionChangedData(const QItemSelection &before,
|
||||
const QItemSelection &after);
|
||||
void ripCutData();
|
||||
void importCutData();
|
||||
|
||||
@@ -68,6 +71,7 @@ class AudioCart : public RDWidget
|
||||
void audioChanged();
|
||||
|
||||
private:
|
||||
void UpdateButtons();
|
||||
QModelIndex SingleSelectedLine() const;
|
||||
RDCart *rdcart_cart;
|
||||
RDTableView *rdcart_cut_view;
|
||||
@@ -76,12 +80,19 @@ class AudioCart : public RDWidget
|
||||
QString *rdcart_import_path;
|
||||
bool rdcart_new_cart;
|
||||
AudioControls *rdcart_controls;
|
||||
QPushButton *add_cut_button;
|
||||
QPushButton *delete_cut_button;
|
||||
QPushButton *copy_cut_button;
|
||||
QPushButton *paste_cut_button;
|
||||
RDBiPushButton *record_cut_button;
|
||||
QPushButton *ext_editor_cut_button;
|
||||
QPushButton *edit_cut_button;
|
||||
QPushButton *import_cut_button;
|
||||
QPushButton *rip_cut_button;
|
||||
bool rdcart_modification_allowed;
|
||||
bool rdcart_import_metadata;
|
||||
bool rdcart_profile_rip;
|
||||
bool rdcart_use_weighting;
|
||||
|
||||
RDMarkerDialog *rdcart_marker_dialog;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user