45 lines
865 B
C++
45 lines
865 B
C++
|
|
#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
|