QElectroTech  0.70
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PropertiesEditorWidget Class Reference

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
 

Detailed Description

The PropertiesEditorWidget class This class extend QWidget method for have common way to edit propertie.

Definition at line 30 of file propertieseditorwidget.h.

Constructor & Destructor Documentation

◆ PropertiesEditorWidget()

PropertiesEditorWidget::PropertiesEditorWidget ( QWidget *  parent = nullptr)
explicit

PropertiesEditorWidget::PropertiesEditorWidget Constructor.

Parameters
parent: parent widget

Definition at line 26 of file propertieseditorwidget.cpp.

Member Function Documentation

◆ apply()

virtual void PropertiesEditorWidget::apply ( )
inlinevirtual

◆ associatedUndo()

QUndoCommand * PropertiesEditorWidget::associatedUndo ( ) const
virtual

◆ disableLiveEdit()

virtual void PropertiesEditorWidget::disableLiveEdit ( )
inlineprotectedvirtual

Reimplemented in ElementInfoWidget.

Definition at line 47 of file propertieseditorwidget.h.

◆ enableLiveEdit()

virtual void PropertiesEditorWidget::enableLiveEdit ( )
inlineprotectedvirtual

Reimplemented in ElementInfoWidget.

Definition at line 46 of file propertieseditorwidget.h.

◆ isLiveEdit()

bool PropertiesEditorWidget::isLiveEdit ( ) const

PropertiesEditorWidget::isLiveEdit.

Returns
true if this editor is in live edit mode else return fasle.

Definition at line 68 of file propertieseditorwidget.cpp.

References m_live_edit.

◆ reset()

virtual void PropertiesEditorWidget::reset ( )
inlinevirtual

◆ setLiveEdit()

bool PropertiesEditorWidget::setLiveEdit ( bool  live_edit)
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.

Parameters
live_edittrue to enable live edit
Returns
true if live edit is enable, else false.

Reimplemented in LinkSingleElementWidget, MasterPropertiesWidget, ShapeGraphicsItemPropertiesWidget, ElementInfoWidget, IndiTextPropertiesWidget, ElementPropertiesWidget, ImagePropertiesWidget, and DynamicElementTextItemEditor.

Definition at line 58 of file propertieseditorwidget.cpp.

Referenced by ElementPropertiesWidget::setLiveEdit().

◆ title()

QString PropertiesEditorWidget::title ( ) const
virtual

◆ updateUi()

virtual void PropertiesEditorWidget::updateUi ( )
inlinevirtual

Member Data Documentation

◆ m_live_edit

bool PropertiesEditorWidget::m_live_edit
protected

The documentation for this class was generated from the following files: