QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
AbstractElementPropertiesEditorWidget Class Referenceabstract

The AbstractElementPropertiesEditorWidget class This class provide common method for all widget used to edit some properties of an element. More...

#include <abstractelementpropertieseditorwidget.h>

Inheritance diagram for AbstractElementPropertiesEditorWidget:
Inheritance graph
Collaboration diagram for AbstractElementPropertiesEditorWidget:
Collaboration graph

Public Member Functions

 AbstractElementPropertiesEditorWidget (QWidget *parent=nullptr)
 
virtual void setElement (Element *element)=0
 
- Public Member Functions inherited from PropertiesEditorWidget
 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 Attributes

QPointer< Elementm_element
 
- Protected Attributes inherited from PropertiesEditorWidget
bool m_live_edit
 

Additional Inherited Members

- Protected Member Functions inherited from PropertiesEditorWidget
virtual void enableLiveEdit ()
 
virtual void disableLiveEdit ()
 

Detailed Description

The AbstractElementPropertiesEditorWidget class This class provide common method for all widget used to edit some properties of an element.

Constructor & Destructor Documentation

◆ AbstractElementPropertiesEditorWidget()

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

Member Function Documentation

◆ setElement()

virtual void AbstractElementPropertiesEditorWidget::setElement ( Element element)
pure virtual

Member Data Documentation

◆ m_element

QPointer<Element> AbstractElementPropertiesEditorWidget::m_element
protected

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