47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
#ifndef RM_DESIGN_DIALOG_H
|
|
#define RM_DESIGN_DIALOG_H
|
|
#if (DESIGN_LAYOUT_MODE)
|
|
|
|
#include <QDialog>
|
|
#include <QVBoxLayout>
|
|
#include <QPushButton>
|
|
#include <QLabel>
|
|
#include <QPlainTextEdit>
|
|
#include <QLineEdit>
|
|
#include <QSlider>
|
|
|
|
class FMDesignDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
static FMDesignDialog* instance(QWidget* parent = nullptr);
|
|
private:
|
|
QVBoxLayout* _layout;
|
|
|
|
QWidget* _toolbar;
|
|
QPushButton* _resetButton;
|
|
|
|
QList<QLabel*>* _labels;
|
|
QList<QSlider*>* _sliders;
|
|
QList<QPushButton*>* _resetButtons;
|
|
QPlainTextEdit* _paramTextEdit;
|
|
//bool _swap;
|
|
|
|
explicit FMDesignDialog(QWidget *parent = nullptr);
|
|
void showEvent(QShowEvent * event);
|
|
|
|
void createToolbar();
|
|
void createSliderPanel();
|
|
void createParamConsole();
|
|
|
|
QPushButton* _button(QWidget* parent,QLayout* layout,QString title);
|
|
QSlider* _slider(QWidget* parent,QLayout* layout, QString title);
|
|
signals:
|
|
|
|
public slots:
|
|
void onSliderChange(int value);
|
|
void onButton();
|
|
};
|
|
#endif // DESIGN_LAYOUT_MODE
|
|
#endif // RM_DESIGN_DIALOG_H
|