QElectroTech  0.8-dev
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>

Inheritance diagram for PropertiesEditorWidget:
Inheritance graph
Collaboration diagram for PropertiesEditorWidget:
Collaboration graph

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.

Constructor & Destructor Documentation

◆ PropertiesEditorWidget()

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

PropertiesEditorWidget::PropertiesEditorWidget Constructor.

Parameters
parent: parent widget

Member Function Documentation

◆ apply()

virtual void PropertiesEditorWidget::apply ( )
inlinevirtual

◆ associatedUndo()

QUndoCommand * PropertiesEditorWidget::associatedUndo ( ) const
virtual

◆ disableLiveEdit()

virtual void PropertiesEditorWidget::disableLiveEdit ( )
inlineprotectedvirtual

Reimplemented in ElementInfoWidget.

◆ enableLiveEdit()

virtual void PropertiesEditorWidget::enableLiveEdit ( )
inlineprotectedvirtual

Reimplemented in ElementInfoWidget.

◆ isLiveEdit()

bool PropertiesEditorWidget::isLiveEdit ( ) const

PropertiesEditorWidget::isLiveEdit.

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

◆ reset()

virtual void PropertiesEditorWidget::reset ( )
inlinevirtual

Reimplemented in MasterPropertiesWidget, ElementPropertiesWidget, and ImagePropertiesWidget.

Here is the caller graph for this function:

◆ 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 MasterPropertiesWidget, LinkSingleElementWidget, ShapeGraphicsItemPropertiesWidget, ElementInfoWidget, GraphicsTablePropertiesEditor, IndiTextPropertiesWidget, DynamicElementTextItemEditor, ElementPropertiesWidget, and ImagePropertiesWidget.

Here is the caller graph for this function:

◆ 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: