Remove Studio Controller

Per https://github.com/LMMS/lmms/pull/3296#issuecomment-366713198
This commit is contained in:
Hussam Eddin Alhomsi
2018-03-11 15:50:35 +03:00
parent 957ec6b611
commit 46fa1803d3
13 changed files with 10 additions and 573 deletions

View File

@@ -1,62 +0,0 @@
/*
* AutomatableControlButton.h - A button with a model that accepts
* values from 0 - 127 for MIDI
*
* Copyright (c) 2004-2014 teknopaul <teknopaul/at/users.sourceforge.net>
*
* This file is part of LMMS - http://lmms.io
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program (see COPYING); if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
*/
#ifndef AUTOMATABLE_CONTROL_BUTTON_H
#define AUTOMATABLE_CONTROL_BUTTON_H
#include <QPushButton>
#include "AutomatableModelView.h"
class automatableButtonGroup;
class EXPORT AutomatableControlButton : public QPushButton, public FloatModelView
{
Q_OBJECT
public:
AutomatableControlButton( QWidget * _parent, const QString & _name = QString::null );
virtual ~AutomatableControlButton();
virtual void modelChanged();
public slots:
virtual void update();
protected:
virtual void contextMenuEvent( QContextMenuEvent * _me );
virtual void mousePressEvent( QMouseEvent * _me );
virtual void mouseReleaseEvent( QMouseEvent * _me );
private:
} ;
#endif

View File

@@ -36,7 +36,6 @@ class BBEditor;
class ControllerRackView;
class FxMixerView;
class GrooveView;
class StudioControllerView;
class MainWindow;
class PianoRollWindow;
class ProjectNotes;
@@ -54,7 +53,6 @@ public:
MainWindow* mainWindow() { return m_mainWindow; }
FxMixerView* fxMixerView() { return m_fxMixerView; }
GrooveView* grooveView() { return m_grooveView; }
StudioControllerView* studioControllerView() { return m_studioControllerView; }
SongEditorWindow* songEditor() { return m_songEditor; }
BBEditor* getBBEditor() { return m_bbEditor; }
PianoRollWindow* pianoRoll() { return m_pianoRoll; }
@@ -74,7 +72,6 @@ private:
MainWindow* m_mainWindow;
FxMixerView* m_fxMixerView;
GrooveView* m_grooveView;
StudioControllerView* m_studioControllerView;
SongEditorWindow* m_songEditor;
AutomationEditorWindow* m_automationEditor;
BBEditor* m_bbEditor;

View File

@@ -166,7 +166,6 @@ public slots:
void toggleFxMixerWin();
void togglePianoRollWin();
void toggleControllerRack();
void toggleStudioControllerView();
void toggleGrooveView();
void updatePlayPauseIcons();

View File

@@ -53,7 +53,6 @@ public:
}
virtual void saveSettings( QDomDocument & _doc, QDomElement & _this );
virtual void saveControllerSettings( QDomDocument & _doc, QDomElement & _this );
virtual void loadSettings( const QDomElement & _this );
virtual QString nodeName() const;

View File

@@ -110,7 +110,7 @@ private:
virtual void wheelEvent( QWheelEvent * we );
virtual bool allowRubberband() const;
void scrollToPos( const MidiTime & t );
Song * m_song;
@@ -159,18 +159,11 @@ public:
protected:
virtual void resizeEvent( QResizeEvent * event );
public slots:
protected slots:
void play();
void record();
void stop();
void home();
void next();
void prev();
void end();
protected slots:
void recordAccompany();
void stop();
void lostFocus();
void adjustUiAfterProjectLoad();

View File

@@ -1,53 +0,0 @@
#ifndef STUDIOCONTROLLERVIEW_H
#define STUDIOCONTROLLERVIEW_H
#include <QWidget>
#include <QCloseEvent>
#include <QComboBox>
#include <QVBoxLayout>
#include "SerializingObject.h"
#include "AutomatableControlButton.h"
class StudioControllerView : public QWidget
{
Q_OBJECT
public:
StudioControllerView();
virtual ~StudioControllerView();
signals:
public slots:
void controllerChanged(int index);
void doHome();
void doPlay();
void doStop();
void doRecord();
void doNext();
void doPrev();
void doScroll();
void saveControllers();
void loadControllers();
private:
float m_scrollLast;
QVBoxLayout * m_layout;
QComboBox * m_dropDown;
QLabel * m_controllerLabel;
QLabel * m_actionsLabel;
AutomatableControlButton * m_homeButton;
AutomatableControlButton * m_playButton;
AutomatableControlButton * m_stopButton;
AutomatableControlButton * m_recordButton;
AutomatableControlButton * m_nextButton;
AutomatableControlButton * m_prevButton;
AutomatableControlButton * m_scrollButton;
AutomatableControlButton * m_saveButton;
};
#endif // STUDIOCONTROLLERVIEW_H