Header chain optimization
This commit is contained in:
parent
4d8a1fe5cf
commit
2c79175304
5 changed files with 14 additions and 5 deletions
|
@ -16,6 +16,8 @@
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
#include <QInputDialog>
|
#include <QInputDialog>
|
||||||
|
#include <QComboBox>
|
||||||
|
#include <QPushButton>
|
||||||
|
|
||||||
BaseForm::BaseForm(QWidget* parent, bool auto_apply, bool with_layers) : QWidget(parent)
|
BaseForm::BaseForm(QWidget* parent, bool auto_apply, bool with_layers) : QWidget(parent)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,8 +2,6 @@
|
||||||
#define _PAYSAGES_QT_BASEFORM_H_
|
#define _PAYSAGES_QT_BASEFORM_H_
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QWidget>
|
||||||
#include <QPushButton>
|
|
||||||
#include <QComboBox>
|
|
||||||
#include <QStringList>
|
#include <QStringList>
|
||||||
#include "basepreview.h"
|
#include "basepreview.h"
|
||||||
#include "baseinput.h"
|
#include "baseinput.h"
|
||||||
|
@ -16,6 +14,9 @@
|
||||||
#include "rendering/noise.h"
|
#include "rendering/noise.h"
|
||||||
#include "rendering/layers.h"
|
#include "rendering/layers.h"
|
||||||
|
|
||||||
|
class QPushButton;
|
||||||
|
class QComboBox;
|
||||||
|
|
||||||
class BaseForm : public QWidget
|
class BaseForm : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#include "baseinput.h"
|
#include "baseinput.h"
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QLabel>
|
||||||
|
|
||||||
BaseInput::BaseInput(QWidget* form, QString label):
|
BaseInput::BaseInput(QWidget* form, QString label):
|
||||||
QObject(form)
|
QObject(form)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
#ifndef _PAYSAGES_QT_BASEINPUT_H_
|
#ifndef _PAYSAGES_QT_BASEINPUT_H_
|
||||||
#define _PAYSAGES_QT_BASEINPUT_H_
|
#define _PAYSAGES_QT_BASEINPUT_H_
|
||||||
|
|
||||||
#include <QWidget>
|
#include <QObject>
|
||||||
#include <QLabel>
|
class QWidget;
|
||||||
|
class QLabel;
|
||||||
|
|
||||||
class BaseInput:public QObject
|
class BaseInput:public QObject
|
||||||
{
|
{
|
||||||
|
@ -10,7 +11,7 @@ class BaseInput:public QObject
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BaseInput(QWidget* form, QString label);
|
BaseInput(QWidget* form, QString label);
|
||||||
inline QWidget* label() {return _label;}
|
inline QLabel* label() {return _label;}
|
||||||
inline QWidget* preview() {return _preview;}
|
inline QWidget* preview() {return _preview;}
|
||||||
inline QWidget* control() {return _control;}
|
inline QWidget* control() {return _control;}
|
||||||
void setVisibilityCondition(int* value, int condition);
|
void setVisibilityCondition(int* value, int condition);
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#include "formrender.h"
|
#include "formrender.h"
|
||||||
|
|
||||||
|
#include <QPushButton>
|
||||||
|
|
||||||
#include "dialogrender.h"
|
#include "dialogrender.h"
|
||||||
#include "inputcamera.h"
|
#include "inputcamera.h"
|
||||||
#include "tools.h"
|
#include "tools.h"
|
||||||
|
|
Loading…
Reference in a new issue