first commit
This commit is contained in:
46
project/fm_viewer/tester/rm_design_dialog.h
Normal file
46
project/fm_viewer/tester/rm_design_dialog.h
Normal file
@@ -0,0 +1,46 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user