mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
* Add support for word wrap in checkbox label * QLabelEditor: Add word wrap and support for wide label Add support for one label widget spanning the area usually consumed by a label widget and an editor widget. * Use word wrap in summary calculation dialog
43 lines
1.2 KiB
C++
43 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "cafPdmField.h"
|
|
#include "cafPdmObject.h"
|
|
#include "cafPdmProxyValueField.h"
|
|
|
|
class LineEditAndPushButtons : public caf::PdmObject
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
LineEditAndPushButtons();
|
|
|
|
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
|
|
|
private:
|
|
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
|
|
|
void defineEditorAttribute(const caf::PdmFieldHandle* field,
|
|
QString uiConfigName,
|
|
caf::PdmUiEditorAttribute* attribute) override;
|
|
|
|
void rotateContent();
|
|
void appendText();
|
|
void replaceText();
|
|
void clearText();
|
|
|
|
private:
|
|
caf::PdmField<QString> m_textField;
|
|
caf::PdmField<QString> m_statusTextField;
|
|
|
|
caf::PdmField<QString> m_labelField;
|
|
caf::PdmField<QString> m_labelLongTextField;
|
|
|
|
caf::PdmField<std::vector<QString>> m_textListField;
|
|
|
|
caf::PdmField<bool> m_pushButton_a;
|
|
|
|
caf::PdmField<bool> m_pushButtonReplace;
|
|
caf::PdmField<bool> m_pushButtonClear;
|
|
caf::PdmField<bool> m_pushButtonAppend;
|
|
};
|