QElectroTech
0.70
|
#include <propertieseditordockwidget.h>
Public Member Functions | |
PropertiesEditorDockWidget (QWidget *parent=nullptr) | |
PropertiesEditorDockWidget::PropertiesEditorDockWidget Constructor. More... | |
~PropertiesEditorDockWidget () override | |
PropertiesEditorDockWidget::~PropertiesEditorDockWidget Destructor. More... | |
virtual void | clear () |
PropertiesEditorDockWidget::clear Remove all editor present in this dock and delete it. They also disabled the button box at the bottom of this dock. More... | |
virtual void | apply () |
PropertiesEditorDockWidget::apply Call the apply method for each editor present in this dock. More... | |
virtual void | reset () |
PropertiesEditorDockWidget::reset Call the reset method for each editor present in this widget. More... | |
bool | addEditor (PropertiesEditorWidget *editor, int index=0) |
PropertiesEditorDockWidget::addEditor Add an in this dock at in the main vertical layout (note the button box are displayed at bottom of this layout by default) When an editor is added, we enable the button box. More... | |
QList< PropertiesEditorWidget * > | editors () const |
PropertiesEditorDockWidget::editors. More... | |
bool | removeEditor (PropertiesEditorWidget *editor) |
PropertiesEditorDockWidget::removeEditor Remove from this dock. The editor wasn't delete a the end of this method If the editor was the last on this widget, we disabled the button box. More... | |
Protected Attributes | |
QList< PropertiesEditorWidget * > | m_editor_list |
Private Attributes | |
Ui::PropertiesEditorDockWidget * | ui |
Definition at line 29 of file propertieseditordockwidget.h.
|
explicit |
PropertiesEditorDockWidget::PropertiesEditorDockWidget Constructor.
parent | : parent widget |
Definition at line 27 of file propertieseditordockwidget.cpp.
References ui.
|
override |
PropertiesEditorDockWidget::~PropertiesEditorDockWidget Destructor.
Definition at line 38 of file propertieseditordockwidget.cpp.
bool PropertiesEditorDockWidget::addEditor | ( | PropertiesEditorWidget * | editor, |
int | index = 0 |
||
) |
PropertiesEditorDockWidget::addEditor Add an in this dock at in the main vertical layout (note the button box are displayed at bottom of this layout by default) When an editor is added, we enable the button box.
editor | : editor to add; |
index | : index of editor in the layout |
Definition at line 90 of file propertieseditordockwidget.cpp.
References m_editor_list, and ui.
Referenced by DiagramPropertiesEditorDockWidget::addEditor().
|
virtual |
PropertiesEditorDockWidget::apply Call the apply method for each editor present in this dock.
Definition at line 65 of file propertieseditordockwidget.cpp.
References PropertiesEditorWidget::apply(), and m_editor_list.
|
virtual |
PropertiesEditorDockWidget::clear Remove all editor present in this dock and delete it. They also disabled the button box at the bottom of this dock.
Definition at line 49 of file propertieseditordockwidget.cpp.
References m_editor_list, and ui.
Referenced by DiagramPropertiesEditorDockWidget::diagramWasDeleted(), DiagramPropertiesEditorDockWidget::selectionChanged(), DiagramPropertiesEditorDockWidget::setDiagram(), and ~PropertiesEditorDockWidget().
QList< PropertiesEditorWidget * > PropertiesEditorDockWidget::editors | ( | ) | const |
PropertiesEditorDockWidget::editors.
Definition at line 104 of file propertieseditordockwidget.cpp.
References m_editor_list.
Referenced by DiagramPropertiesEditorDockWidget::selectionChanged().
bool PropertiesEditorDockWidget::removeEditor | ( | PropertiesEditorWidget * | editor | ) |
PropertiesEditorDockWidget::removeEditor Remove from this dock. The editor wasn't delete a the end of this method If the editor was the last on this widget, we disabled the button box.
editor | : editor to remove |
Definition at line 115 of file propertieseditordockwidget.cpp.
References m_editor_list, and ui.
Referenced by DiagramPropertiesEditorDockWidget::removeEditor().
|
virtual |
PropertiesEditorDockWidget::reset Call the reset method for each editor present in this widget.
Definition at line 75 of file propertieseditordockwidget.cpp.
References m_editor_list, and PropertiesEditorWidget::reset().
|
protected |
Definition at line 45 of file propertieseditordockwidget.h.
Referenced by addEditor(), apply(), clear(), editors(), removeEditor(), and reset().
|
private |
Definition at line 48 of file propertieseditordockwidget.h.
Referenced by addEditor(), clear(), PropertiesEditorDockWidget(), removeEditor(), and ~PropertiesEditorDockWidget().