Companion update model references from enhanced context menus (#7325)
Companion update model references from enhanced context menus
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
#include "mixerslistwidget.h"
|
||||
#include "modelprinter.h"
|
||||
|
||||
constexpr char MIMETYPE_EXPO[] = "application/x-companion-expo";
|
||||
|
||||
class InputsPanel : public ModelPanel
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -52,12 +54,19 @@ class InputsPanel : public ModelPanel
|
||||
void expoOpen(QListWidgetItem *item = NULL);
|
||||
void expoAdd();
|
||||
void maybeCopyInputName(int srcChan, int destChan);
|
||||
void cmInputClear();
|
||||
void cmInputDelete();
|
||||
void cmInputInsert();
|
||||
void cmInputMoveDown();
|
||||
void cmInputMoveUp();
|
||||
|
||||
private:
|
||||
bool expoInserted;
|
||||
MixersListWidget *ExposlistWidget;
|
||||
int inputsCount;
|
||||
ModelPrinter modelPrinter;
|
||||
int selectedIdx;
|
||||
int inputIdx;
|
||||
|
||||
int getExpoIndex(unsigned int dch);
|
||||
bool gm_insertExpo(int idx);
|
||||
@@ -70,7 +79,14 @@ class InputsPanel : public ModelPanel
|
||||
void pasteExpoMimeData(const QMimeData * mimeData, int destIdx);
|
||||
void AddInputLine(int dest);
|
||||
QString getInputText(int dest, bool newChan);
|
||||
|
||||
bool cmInputInsertAllowed() const;
|
||||
bool cmInputMoveDownAllowed() const;
|
||||
bool cmInputMoveUpAllowed() const;
|
||||
void cmInputSwapData(int idx1, int idx2);
|
||||
bool isInputIndex(const int index);
|
||||
bool isExpoIndex(const int index);
|
||||
int getIndexFromSelected();
|
||||
int getInputIndexFromSelected();
|
||||
};
|
||||
|
||||
#endif // _INPUTS_H_
|
||||
|
||||
Reference in New Issue
Block a user