Add menu option and hotkeys to move controllers/effects (#7139)
* added controller rack modules * remove this-> from setFocusPolicy() and obsolete comment Co-authored-by: saker <sakertooth@gmail.com> * Use std::swap Co-authored-by: saker <sakertooth@gmail.com> * some more cleanup Co-authored-by: saker <sakertooth@gmail.com> * Replace slots with function pointers Co-authored-by: saker <sakertooth@gmail.com> * Apply fixes --------- Co-authored-by: ejaaskel <esa.jaaskela@suomi24.fi> Co-authored-by: saker <sakertooth@gmail.com>
This commit is contained in:
@@ -65,9 +65,11 @@ public:
|
||||
|
||||
|
||||
public slots:
|
||||
void deleteController( lmms::gui::ControllerView * _view );
|
||||
void onControllerAdded( lmms::Controller * );
|
||||
void onControllerRemoved( lmms::Controller * );
|
||||
void deleteController(ControllerView* view);
|
||||
void moveUp(ControllerView* view);
|
||||
void moveDown(ControllerView* view);
|
||||
void addController(Controller* controller);
|
||||
void removeController(Controller* controller);
|
||||
|
||||
protected:
|
||||
void closeEvent( QCloseEvent * _ce ) override;
|
||||
|
||||
@@ -63,12 +63,16 @@ public:
|
||||
|
||||
public slots:
|
||||
void editControls();
|
||||
void deleteController();
|
||||
void removeController();
|
||||
void closeControls();
|
||||
void renameController();
|
||||
void moveUp();
|
||||
void moveDown();
|
||||
|
||||
signals:
|
||||
void deleteController( lmms::gui::ControllerView * _view );
|
||||
void movedUp(ControllerView* view);
|
||||
void movedDown(ControllerView* view);
|
||||
void removedController(ControllerView* view);
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
@@ -53,10 +53,9 @@ public:
|
||||
|
||||
public slots:
|
||||
void clearViews();
|
||||
void moveUp( lmms::gui::EffectView* view );
|
||||
void moveDown( lmms::gui::EffectView* view );
|
||||
void deletePlugin( lmms::gui::EffectView* view );
|
||||
|
||||
void moveUp(EffectView* view);
|
||||
void moveDown(EffectView* view);
|
||||
void deletePlugin(EffectView* view);
|
||||
|
||||
private slots:
|
||||
virtual void update();
|
||||
|
||||
@@ -77,10 +77,9 @@ public slots:
|
||||
|
||||
|
||||
signals:
|
||||
void moveUp( lmms::gui::EffectView * _plugin );
|
||||
void moveDown( lmms::gui::EffectView * _plugin );
|
||||
void deletePlugin( lmms::gui::EffectView * _plugin );
|
||||
|
||||
void movedUp(EffectView* view);
|
||||
void movedDown(EffectView* view);
|
||||
void deletedPlugin(EffectView* view);
|
||||
|
||||
protected:
|
||||
void contextMenuEvent( QContextMenuEvent * _me ) override;
|
||||
|
||||
Reference in New Issue
Block a user