mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 15:26:48 -06:00
39 lines
754 B
C++
39 lines
754 B
C++
|
|
|
|
#pragma once
|
|
|
|
#include "cafPdmUiFieldEditorHandle.h"
|
|
|
|
#include <QWidget>
|
|
#include <QPointer>
|
|
#include <QCheckBox>
|
|
#include <QLabel>
|
|
|
|
namespace caf
|
|
{
|
|
|
|
class PdmUiCheckBoxTristateEditor : public PdmUiFieldEditorHandle
|
|
{
|
|
Q_OBJECT
|
|
CAF_PDM_UI_FIELD_EDITOR_HEADER_INIT;
|
|
|
|
public:
|
|
PdmUiCheckBoxTristateEditor() {}
|
|
virtual ~PdmUiCheckBoxTristateEditor() {}
|
|
|
|
protected:
|
|
virtual QWidget* createEditorWidget(QWidget* parent);
|
|
virtual QWidget* createLabelWidget(QWidget* parent);
|
|
virtual void configureAndUpdateUi(const QString& uiConfigName);
|
|
|
|
protected slots:
|
|
void slotClicked(bool);
|
|
|
|
private:
|
|
QPointer<QCheckBox> m_checkBox;
|
|
QPointer<QLabel> m_label;
|
|
};
|
|
|
|
|
|
} // end namespace caf
|