first commit
This commit is contained in:
44
project/fm_viewer/cfg/rm_text_edit.h
Normal file
44
project/fm_viewer/cfg/rm_text_edit.h
Normal file
@@ -0,0 +1,44 @@
|
||||
|
||||
#ifndef RM_TEXT_EDIT_H
|
||||
#define RM_TEXT_EDIT_H
|
||||
|
||||
|
||||
#include <QObject>
|
||||
#include <QWidget>
|
||||
#include <QLineEdit>
|
||||
#include <QList>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QGroupBox>
|
||||
#include "rm_value_selector.h"
|
||||
#if (USE_JSON_SETTINGS)
|
||||
|
||||
class RMTextEdit : public QWidget, public RMValueSelector
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit RMTextEdit(QWidget *parent,QString title, int index);
|
||||
QHBoxLayout* layout;
|
||||
QLineEdit* edit;
|
||||
QLabel* titleLabel;
|
||||
private:
|
||||
void paintEvent(QPaintEvent *pe);
|
||||
signals:
|
||||
void selected(int index);
|
||||
|
||||
private slots:
|
||||
void onTextChanged(const QString &text);
|
||||
void onUpdateByValue();
|
||||
};
|
||||
|
||||
class RMGroupTextEdit : public QGroupBox
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit RMGroupTextEdit(QWidget *parent,int index);
|
||||
QVBoxLayout* layout;
|
||||
RMTextEdit* text;
|
||||
};
|
||||
|
||||
#endif // USE_JSON_SETTINGS
|
||||
#endif // RM_TEXT_EDIT_H
|
||||
Reference in New Issue
Block a user