QElectroTech  0.70
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
DiagramPropertiesEditorDockWidget Class Reference

#include <diagrampropertieseditordockwidget.h>

Public Member Functions

 DiagramPropertiesEditorDockWidget (QWidget *parent=nullptr)
 DiagramPropertiesEditorDockWidget::DiagramPropertiesEditorDockWidget Constructor. More...
 
void setDiagram (Diagram *diagram)
 DiagramPropertiesEditorDockWidget::setDiagram Set the diagram to edit the selection. Connect the diagram signal selectionChanged() to this slot selectionChanged(); If diagram = nullptr, we just disconnect all signal and remove editor. More...
 
- Public Member Functions inherited from PropertiesEditorDockWidget
 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...
 

Private Slots

void selectionChanged ()
 DiagramPropertiesEditorDockWidget::selectionChanged The current selection of diagram was changed. We fill the dock with the appropriate ElementPropertiesWidget of the current selection. More...
 
void diagramWasDeleted ()
 DiagramPropertiesEditorDockWidget::diagramWasDeleted Remove current editor and set m_diagram to nullptr. More...
 

Private Member Functions

bool addEditor (PropertiesEditorWidget *editor, int index=0)
 
bool removeEditor (PropertiesEditorWidget *editor)
 

Private Attributes

Diagramm_diagram
 
int m_edited_qgi_type
 

Additional Inherited Members

- Protected Attributes inherited from PropertiesEditorDockWidget
QList< PropertiesEditorWidget * > m_editor_list
 

Detailed Description

Definition at line 25 of file diagrampropertieseditordockwidget.h.

Constructor & Destructor Documentation

◆ DiagramPropertiesEditorDockWidget()

DiagramPropertiesEditorDockWidget::DiagramPropertiesEditorDockWidget ( QWidget *  parent = nullptr)

DiagramPropertiesEditorDockWidget::DiagramPropertiesEditorDockWidget Constructor.

Parameters
parent: parent widget

Definition at line 36 of file diagrampropertieseditordockwidget.cpp.

Member Function Documentation

◆ addEditor()

bool DiagramPropertiesEditorDockWidget::addEditor ( PropertiesEditorWidget editor,
int  index = 0 
)
inlineprivate

◆ diagramWasDeleted

void DiagramPropertiesEditorDockWidget::diagramWasDeleted ( )
privateslot

DiagramPropertiesEditorDockWidget::diagramWasDeleted Remove current editor and set m_diagram to nullptr.

Definition at line 247 of file diagrampropertieseditordockwidget.cpp.

References PropertiesEditorDockWidget::clear(), m_diagram, and m_edited_qgi_type.

Referenced by setDiagram().

◆ removeEditor()

bool DiagramPropertiesEditorDockWidget::removeEditor ( PropertiesEditorWidget editor)
inlineprivate

◆ selectionChanged

void DiagramPropertiesEditorDockWidget::selectionChanged ( )
privateslot

◆ setDiagram()

void DiagramPropertiesEditorDockWidget::setDiagram ( Diagram diagram)

DiagramPropertiesEditorDockWidget::setDiagram Set the diagram to edit the selection. Connect the diagram signal selectionChanged() to this slot selectionChanged(); If diagram = nullptr, we just disconnect all signal and remove editor.

Parameters
diagram
diagram

Definition at line 50 of file diagrampropertieseditordockwidget.cpp.

References PropertiesEditorDockWidget::clear(), diagramWasDeleted(), m_diagram, m_edited_qgi_type, and selectionChanged().

Referenced by QETDiagramEditor::selectionChanged().

Member Data Documentation

◆ m_diagram

Diagram* DiagramPropertiesEditorDockWidget::m_diagram
private

◆ m_edited_qgi_type

int DiagramPropertiesEditorDockWidget::m_edited_qgi_type
private

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