ResInsight/Fwk/AppFwk/cafUserInterface/cafPdmUiCheckBoxTristateEditor.h

35 lines
645 B
C
Raw Normal View History

#pragma once
#include "cafPdmUiFieldLabelEditorHandle.h"
#include <QCheckBox>
#include <QLabel>
2020-06-19 00:53:59 -05:00
#include <QPointer>
#include <QWidget>
2020-06-19 00:53:59 -05:00
namespace caf
{
class PdmUiCheckBoxTristateEditor : public PdmUiFieldLabelEditorHandle
{
Q_OBJECT
CAF_PDM_UI_FIELD_EDITOR_HEADER_INIT;
public:
2020-06-19 00:53:59 -05:00
PdmUiCheckBoxTristateEditor() {}
~PdmUiCheckBoxTristateEditor() override {}
protected:
2020-06-19 00:53:59 -05:00
QWidget* createEditorWidget( QWidget* parent ) override;
void configureAndUpdateUi( const QString& uiConfigName ) override;
protected slots:
2020-06-19 00:53:59 -05:00
void slotClicked( bool );
private:
QPointer<QCheckBox> m_checkBox;
};
} // end namespace caf