QElectroTech
0.70
|
The PropertiesEditorWidget class This class extend QWidget method for have common way to edit propertie. More...
#include <propertieseditorwidget.h>
Public Member Functions | |
PropertiesEditorWidget (QWidget *parent=nullptr) | |
PropertiesEditorWidget::PropertiesEditorWidget Constructor. More... | |
virtual void | apply () |
virtual void | reset () |
virtual QUndoCommand * | associatedUndo () const |
PropertiesEditorWidget::associatedUndo By default, return a nullptr. More... | |
virtual QString | title () const |
PropertiesEditorWidget::title. More... | |
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 enable, return true, else false. By default this method do nothing and return false (live edit is disable). Herited class of PropertiesEditorWidget must reimplemente this methode to manage the live edit mode. More... | |
bool | isLiveEdit () const |
PropertiesEditorWidget::isLiveEdit. More... | |
Protected Member Functions | |
virtual void | enableLiveEdit () |
virtual void | disableLiveEdit () |
Protected Attributes | |
bool | m_live_edit |
The PropertiesEditorWidget class This class extend QWidget method for have common way to edit propertie.
Definition at line 30 of file propertieseditorwidget.h.
|
explicit |
PropertiesEditorWidget::PropertiesEditorWidget Constructor.
parent | : parent widget |
Definition at line 26 of file propertieseditorwidget.cpp.
|
inlinevirtual |
Reimplemented in MasterPropertiesWidget, LinkSingleElementWidget, ElementInfoWidget, IndiTextPropertiesWidget, DynamicElementTextItemEditor, ElementPropertiesWidget, and ImagePropertiesWidget.
Definition at line 36 of file propertieseditorwidget.h.
Referenced by PropertiesEditorDockWidget::apply().
|
virtual |
PropertiesEditorWidget::associatedUndo By default, return a nullptr.
Reimplemented in MasterPropertiesWidget, LinkSingleElementWidget, ElementInfoWidget, ShapeGraphicsItemPropertiesWidget, DynamicElementTextItemEditor, IndiTextPropertiesWidget, and ImagePropertiesWidget.
Definition at line 36 of file propertieseditorwidget.cpp.
Referenced by ElementPropertiesWidget::apply().
|
inlineprotectedvirtual |
Reimplemented in ElementInfoWidget.
Definition at line 47 of file propertieseditorwidget.h.
|
inlineprotectedvirtual |
Reimplemented in ElementInfoWidget.
Definition at line 46 of file propertieseditorwidget.h.
bool PropertiesEditorWidget::isLiveEdit | ( | ) | const |
PropertiesEditorWidget::isLiveEdit.
Definition at line 68 of file propertieseditorwidget.cpp.
References m_live_edit.
|
inlinevirtual |
Reimplemented in MasterPropertiesWidget, ElementPropertiesWidget, and ImagePropertiesWidget.
Definition at line 37 of file propertieseditorwidget.h.
Referenced by PropertiesEditorDockWidget::reset(), and ElementPropertiesWidget::reset().
|
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 enable, return true, else false. By default this method do nothing and return false (live edit is disable). Herited class of PropertiesEditorWidget must reimplemente this methode to manage the live edit mode.
live_edit | true to enable live edit |
Reimplemented in LinkSingleElementWidget, MasterPropertiesWidget, ShapeGraphicsItemPropertiesWidget, ElementInfoWidget, IndiTextPropertiesWidget, ElementPropertiesWidget, ImagePropertiesWidget, and DynamicElementTextItemEditor.
Definition at line 58 of file propertieseditorwidget.cpp.
Referenced by ElementPropertiesWidget::setLiveEdit().
|
virtual |
PropertiesEditorWidget::title.
Reimplemented in MasterPropertiesWidget, LinkSingleElementWidget, ElementInfoWidget, ShapeGraphicsItemPropertiesWidget, and DynamicElementTextItemEditor.
Definition at line 44 of file propertieseditorwidget.cpp.
|
inlinevirtual |
Reimplemented in IndiTextPropertiesWidget, ElementInfoWidget, ElementPropertiesWidget, ShapeGraphicsItemPropertiesWidget, and ImagePropertiesWidget.
Definition at line 40 of file propertieseditorwidget.h.
Referenced by ElementPropertiesWidget::apply().
|
protected |
Definition at line 50 of file propertieseditorwidget.h.
Referenced by ImagePropertiesWidget::apply(), IndiTextPropertiesWidget::associatedUndo(), ShapeGraphicsItemPropertiesWidget::associatedUndo(), DynamicElementTextItemEditor::dataEdited(), isLiveEdit(), LinkSingleElementWidget::linkTriggered(), MasterPropertiesWidget::on_link_button_clicked(), ShapeGraphicsItemPropertiesWidget::on_m_brush_color_kpb_changed(), ShapeGraphicsItemPropertiesWidget::on_m_color_kpb_changed(), LinkSingleElementWidget::on_m_unlink_pb_clicked(), MasterPropertiesWidget::on_unlink_button_clicked(), ShapeGraphicsItemPropertiesWidget::setItem(), DynamicElementTextItemEditor::setLiveEdit(), ElementPropertiesWidget::setLiveEdit(), ImagePropertiesWidget::setLiveEdit(), IndiTextPropertiesWidget::setLiveEdit(), ElementInfoWidget::setLiveEdit(), ShapeGraphicsItemPropertiesWidget::setLiveEdit(), MasterPropertiesWidget::setLiveEdit(), LinkSingleElementWidget::setLiveEdit(), ElementInfoWidget::updateUi(), and ElementPropertiesWidget::updateUi().