QElectroTech 0.100.0-dev
|
The PropertiesEditorWidget class This class extend QWidget method to have a common way to edit properties. More...
#include <propertieseditorwidget.h>
Public Member Functions | |
PropertiesEditorWidget (QWidget *parent=nullptr) | |
PropertiesEditorWidget::PropertiesEditorWidget Constructor. | |
virtual void | apply () |
virtual void | reset () |
virtual QUndoCommand * | associatedUndo () const |
PropertiesEditorWidget::associatedUndo By default, return a nullptr. | |
virtual QString | title () const |
PropertiesEditorWidget::title. | |
virtual void | updateUi () |
virtual bool | setLiveEdit (bool live_edit) |
PropertiesEditorWidget::setLiveEdit Set the editor in live edit mode. When an editor is in live edit mode, every change is applied immediately (no need to call apply). If live edit can be enabled, return true, or else false. By default this method does nothing and returns false (live edit is disabled). Inherited class of PropertiesEditorWidget must reimplement this method to manage the live edit mode. | |
bool | isLiveEdit () const |
PropertiesEditorWidget::isLiveEdit. | |
Protected Member Functions | |
virtual void | enableLiveEdit () |
virtual void | disableLiveEdit () |
Protected Attributes | |
bool | m_live_edit |
The PropertiesEditorWidget class This class extend QWidget method to have a common way to edit properties.
|
explicit |
PropertiesEditorWidget::PropertiesEditorWidget Constructor.
parent | : parent widget |
|
inlinevirtual |
Reimplemented in GraphicsTablePropertiesEditor, DynamicElementTextItemEditor, ElementInfoWidget, ElementPropertiesWidget, ImagePropertiesWidget, IndiTextPropertiesWidget, LinkSingleElementWidget, and MasterPropertiesWidget.
|
virtual |
PropertiesEditorWidget::associatedUndo By default, return a nullptr.
Reimplemented in GraphicsTablePropertiesEditor, DynamicElementTextItemEditor, ElementInfoWidget, ImagePropertiesWidget, IndiTextPropertiesWidget, LinkSingleElementWidget, MasterPropertiesWidget, and ShapeGraphicsItemPropertiesWidget.
|
inlineprotectedvirtual |
Reimplemented in ElementInfoWidget.
|
inlineprotectedvirtual |
Reimplemented in ElementInfoWidget.
bool PropertiesEditorWidget::isLiveEdit | ( | ) | const |
PropertiesEditorWidget::isLiveEdit.
|
inlinevirtual |
Reimplemented in ElementPropertiesWidget, ImagePropertiesWidget, and MasterPropertiesWidget.
|
virtual |
PropertiesEditorWidget::setLiveEdit Set the editor in live edit mode. When an editor is in live edit mode, every change is applied immediately (no need to call apply). If live edit can be enabled, return true, or else false. By default this method does nothing and returns false (live edit is disabled). Inherited class of PropertiesEditorWidget must reimplement this method to manage the live edit mode.
live_edit | true to enable live edit |
Reimplemented in GraphicsTablePropertiesEditor, DynamicElementTextItemEditor, ElementInfoWidget, ElementPropertiesWidget, ImagePropertiesWidget, IndiTextPropertiesWidget, LinkSingleElementWidget, MasterPropertiesWidget, and ShapeGraphicsItemPropertiesWidget.
|
virtual |
PropertiesEditorWidget::title.
Reimplemented in DynamicElementTextItemEditor, ElementInfoWidget, LinkSingleElementWidget, MasterPropertiesWidget, and ShapeGraphicsItemPropertiesWidget.
|
inlinevirtual |
Reimplemented in ElementInfoWidget, ElementPropertiesWidget, ImagePropertiesWidget, IndiTextPropertiesWidget, and ShapeGraphicsItemPropertiesWidget.
|
protected |