first commit
This commit is contained in:
56
project/fm_viewer/tester/rm_tune360_dialog.h
Normal file
56
project/fm_viewer/tester/rm_tune360_dialog.h
Normal file
@@ -0,0 +1,56 @@
|
||||
#ifndef RM_TUNE360_DIALOG_H
|
||||
#define RM_TUNE360_DIALOG_H
|
||||
|
||||
#if (TUNE_360)
|
||||
|
||||
#include <QDialog>
|
||||
#include <QVBoxLayout>
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
#include <QPlainTextEdit>
|
||||
#include <QLineEdit>
|
||||
#include <QSlider>
|
||||
|
||||
|
||||
class RMTune360Dialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
static RMTune360Dialog* instance(QWidget* parent = nullptr);
|
||||
private:
|
||||
QVBoxLayout* _layout;
|
||||
|
||||
QWidget* _toolbar;
|
||||
QPushButton* _resetButton;
|
||||
|
||||
|
||||
QLineEdit* _filterEdit;
|
||||
|
||||
QList<QLabel*>* _labels;
|
||||
QList<QSlider*>* _sliders;
|
||||
QList<QPushButton*>* _resetButtons;
|
||||
QList<float> _ratios;
|
||||
QPlainTextEdit* _paramTextEdit;
|
||||
bool _swap;
|
||||
|
||||
explicit RMTune360Dialog(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, float ratio);
|
||||
void refresh();
|
||||
void loadPreset();
|
||||
void* gl();
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void onSliderChange(int value);
|
||||
void onButton();
|
||||
};
|
||||
|
||||
#endif // #if (TUNE_360)
|
||||
#endif // RM_TUNE360_DIALOG_H
|
||||
Reference in New Issue
Block a user