QElectroTech 0.200.1-dev
Loading...
Searching...
No Matches
GenericPanel Class Reference

The GenericPanel class The generic panel is a QTreeWidget subclass providing extra methods allowing developers to easily add objects (projects, diagrams, title block templates, elements, ...) to it; it also ensures the displayed information remains up to date. More...

#include <genericpanel.h>

Inheritance diagram for GenericPanel:
Inheritance graph
Collaboration diagram for GenericPanel:
Collaboration graph

Public Types

enum  PanelOption {
  AddChildDiagrams = 1 , AddChildTemplatesCollection = 2 , AddChildTemplates = 4 , AddAllChildTemplates = 6 ,
  AddAllChild = 63 , All = 127
}
enum  MetaData { Item = Qt::UserRole + 1 , AliasItem , Parent , PanelFlags }

Signals

bool firstActivated ()
void panelContentChanged ()

Public Member Functions

 GenericPanel (QWidget *=nullptr)
 ~GenericPanel () override
virtual int currentItemType ()
virtual QETProjectprojectForItem (QTreeWidgetItem *) const
 GenericPanel::projectForItem.
virtual DiagramdiagramForItem (QTreeWidgetItem *) const
 GenericPanel::diagramForItem.
virtual TitleBlockTemplateLocation templateLocationForItem (QTreeWidgetItem *) const
 GenericPanel::templateLocationForItem.
virtual QETProjectselectedProject () const
 GenericPanel::selectedProject.
virtual DiagramselectedDiagram () const
 GenericPanel::selectedDiagram.
virtual TitleBlockTemplateLocation selectedTemplateLocation () const
 GenericPanel::selectedTemplateLocation.
virtual QTreeWidgetItem * addProject (QETProject *, QTreeWidgetItem *=nullptr, PanelOptions=AddAllChild)
 GenericPanel::addProject.
virtual QTreeWidgetItem * itemForProject (QETProject *)
virtual QTreeWidgetItem * addDiagram (Diagram *, QTreeWidgetItem *=nullptr, PanelOptions=AddAllChild)
 GenericPanel::addDiagram.
virtual QTreeWidgetItem * getItemForDiagram (Diagram *, bool *=nullptr)
 GenericPanel::getItemForDiagram.
virtual QTreeWidgetItem * addTemplatesCollection (TitleBlockTemplatesCollection *, QTreeWidgetItem *=nullptr, PanelOptions=AddAllChild)
 GenericPanel::addTemplatesCollection.
virtual QTreeWidgetItem * itemForTemplatesCollection (TitleBlockTemplatesCollection *)
 GenericPanel::itemForTemplatesCollection.
virtual QTreeWidgetItem * addTemplate (const TitleBlockTemplateLocation &, QTreeWidgetItem *=nullptr, PanelOptions=AddAllChild)
 GenericPanel::addTemplate.
void setSelectedItem (QTreeWidgetItem *selectedItem)
 GenericPanel::setSelectedItem.

Protected Slots

virtual void projectInformationsChanged (QETProject *)
 GenericPanel::projectInformationsChanged.
virtual void diagramAdded (QETProject *, Diagram *)
 GenericPanel::diagramAdded.
virtual void diagramRemoved (QETProject *, Diagram *)
 GenericPanel::diagramRemoved.
virtual void projectDiagramsOrderChanged (QETProject *, int, int)
 GenericPanel::projectDiagramsOrderChanged.
virtual void diagramTitleChanged (Diagram *)
 GenericPanel::diagramTitleChanged Inform this panel the diagram diagram has changed its title to title.
virtual void templatesCollectionChanged (TitleBlockTemplatesCollection *, const QString &)
 GenericPanel::templatesCollectionChanged.
virtual void diagramUsedTemplate (TitleBlockTemplatesCollection *, const QString &)
 GenericPanel::diagramUsedTemplate.

Protected Member Functions

virtual QTreeWidgetItem * getItemForProject (QETProject *, bool *=nullptr)
virtual QTreeWidgetItem * updateProjectItem (QTreeWidgetItem *, QETProject *, PanelOptions=AddAllChild, bool=false)
 GenericPanel::updateProjectItem.
virtual QTreeWidgetItem * fillProjectItem (QTreeWidgetItem *, QETProject *, PanelOptions=AddAllChild, bool=false)
 GenericPanel::fillProjectItem.
virtual QTreeWidgetItem * updateDiagramItem (QTreeWidgetItem *, Diagram *, PanelOptions=AddAllChild, bool=false)
 GenericPanel::updateDiagramItem.
virtual QTreeWidgetItem * fillDiagramItem (QTreeWidgetItem *, PanelOptions=AddAllChild, bool=false)
 GenericPanel::fillDiagramItem.
virtual QTreeWidgetItem * getItemForTemplatesCollection (TitleBlockTemplatesCollection *, bool *=nullptr)
 GenericPanel::getItemForTemplatesCollection.
virtual QTreeWidgetItem * updateTemplatesCollectionItem (QTreeWidgetItem *, TitleBlockTemplatesCollection *, PanelOptions=AddAllChild, bool=false)
 GenericPanel::updateTemplatesCollectionItem.
virtual QTreeWidgetItem * fillTemplatesCollectionItem (QTreeWidgetItem *, TitleBlockTemplatesCollection *, PanelOptions=AddAllChild, bool=false)
 GenericPanel::fillTemplatesCollectionItem.
virtual QTreeWidgetItem * getItemForTemplate (const TitleBlockTemplateLocation &, bool *=nullptr)
 GenericPanel::getItemForTemplate.
virtual QTreeWidgetItem * updateTemplateItem (QTreeWidgetItem *, const TitleBlockTemplateLocation &, PanelOptions=AddAllChild, bool=false)
 GenericPanel::updateTemplateItem.
virtual QTreeWidgetItem * fillTemplateItem (QTreeWidgetItem *, const TitleBlockTemplateLocation &, PanelOptions=AddAllChild, bool=false)
 GenericPanel::fillTemplateItem.
virtual QTreeWidgetItem * updateItem (QTreeWidgetItem *, PanelOptions=AddAllChild, bool=false)
 GenericPanel::updateItem This generic method is called at the end of each update*Item method. Its only purpose is being reimplemented in a subclass. The default implementation does nothing.
virtual QTreeWidgetItem * fillItem (QTreeWidgetItem *, PanelOptions=AddAllChild, bool=false)
 GenericPanel::fillItem This generic method is called at the end of each fill*Item method. Its only purpose is being reimplemented in a subclass. The default implementation does nothing.
virtual QString defaultText (QET::ItemType)
 GenericPanel::defaultText.
virtual QIcon defaultIcon (QET::ItemType)
 GenericPanel::defaultIcon.
virtual QTreeWidgetItem * makeItem (QET::ItemType, QTreeWidgetItem *=nullptr, const QString &=QString(), const QIcon &=QIcon())
 GenericPanel::makeItem Create a QTreeWidgetItem.
virtual void deleteItem (QTreeWidgetItem *, bool=false)
 GenericPanel::deleteItem Delete and item and its children.
virtual void markItemAsUnused (QTreeWidgetItem *)
 GenericPanel::markItemAsUnused Mark the provided QTreeWidgetItem as unused in its parent project.
virtual void reparent (QTreeWidgetItem *, QTreeWidgetItem *)
 GenericPanel::reparent.
QList< QTreeWidgetItem * > childItems (QTreeWidgetItem *, QET::ItemType, bool=false) const
 GenericPanel::childItems.
template<typename T>
void removeObsoleteItems (const QList< T > &, QTreeWidgetItem *, QET::ItemType, bool)
template<typename T>
valueForItem (QTreeWidgetItem *) const
void unregisterItem (QTreeWidgetItem *)
 GenericPanel::unregisterItem.
bool event (QEvent *) override
 GenericPanel::event Handle various events; reimplemented here to emit the signal firstActivated().

Private Slots

void emitFirstActivated ()
 GenericPanel::emitFirstActivated Emit the signal firstActivated().

Private Attributes

bool first_activation_
 first_activation_ boolean used to track the first time this widget is activated/shown
QHash< QETProject *, QTreeWidgetItem * > projects_
 projects_ Allow quick retrieval of the item representing a given project
QHash< Diagram *, QTreeWidgetItem * > diagrams_
 diagrams_ Allow quick retrieval of the item representing a given diagram
QHash< TitleBlockTemplateLocation, QTreeWidgetItem * > tb_templates_
 tb_templates_ Allow quick retrieval of the item representing a title block template
QTreeWidgetItem * m_selected_item = nullptr

Detailed Description

The GenericPanel class The generic panel is a QTreeWidget subclass providing extra methods allowing developers to easily add objects (projects, diagrams, title block templates, elements, ...) to it; it also ensures the displayed information remains up to date.

Member Enumeration Documentation

◆ MetaData

Enumerator
Item 
AliasItem 
Parent 
PanelFlags 

◆ PanelOption

Enumerator
AddChildDiagrams 
AddChildTemplatesCollection 
AddChildTemplates 
AddAllChildTemplates 
AddAllChild 
All 

Constructor & Destructor Documentation

◆ GenericPanel()

GenericPanel::GenericPanel ( QWidget * parent = nullptr)

Constructor

Parameters
parentParent QWidget
Here is the caller graph for this function:

◆ ~GenericPanel()

GenericPanel::~GenericPanel ( )
override

Destructor

Member Function Documentation

◆ addDiagram()

QTreeWidgetItem * GenericPanel::addDiagram ( Diagram * diagram,
QTreeWidgetItem * parent_item = nullptr,
PanelOptions options = AddAllChild )
virtual

GenericPanel::addDiagram.

Parameters
diagram
parent_item
options(unused)
Returns
diagram_qtwi
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addProject()

QTreeWidgetItem * GenericPanel::addProject ( QETProject * project,
QTreeWidgetItem * parent_item = nullptr,
PanelOptions options = AddAllChild )
virtual

GenericPanel::addProject.

Parameters
project
parent_item
options
Returns
project_qtwi

Reimplemented in ElementsPanel.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addTemplate()

QTreeWidgetItem * GenericPanel::addTemplate ( const TitleBlockTemplateLocation & tb_template,
QTreeWidgetItem * parent_item = nullptr,
PanelOptions options = AddAllChild )
virtual

GenericPanel::addTemplate.

Parameters
tb_template
parent_item
options
Returns
tb_template_qtwi
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addTemplatesCollection()

QTreeWidgetItem * GenericPanel::addTemplatesCollection ( TitleBlockTemplatesCollection * tbt_collection,
QTreeWidgetItem * parent_item = nullptr,
PanelOptions options = AddAllChild )
virtual

GenericPanel::addTemplatesCollection.

Parameters
tbt_collection
parent_item
options
Returns
tbt_collection_qtwi
Here is the call graph for this function:
Here is the caller graph for this function:

◆ childItems()

QList< QTreeWidgetItem * > GenericPanel::childItems ( QTreeWidgetItem * item,
QET::ItemType type,
bool recursive = false ) const
protected

GenericPanel::childItems.

Parameters
itemParent item that will be searched.
typeType of items to look for.
recursiveWhether to search recursively.
Returns
the child items of item of type type
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentItemType()

int GenericPanel::currentItemType ( )
virtual
Returns
the type of the current item

◆ defaultIcon()

QIcon GenericPanel::defaultIcon ( QET::ItemType type)
protectedvirtual

GenericPanel::defaultIcon.

Parameters
typeItem type we want the default icon for
Returns
the default icon for type
Here is the caller graph for this function:

◆ defaultText()

QString GenericPanel::defaultText ( QET::ItemType type)
protectedvirtual

GenericPanel::defaultText.

Parameters
type
Returns
the default text for type
Here is the caller graph for this function:

◆ deleteItem()

void GenericPanel::deleteItem ( QTreeWidgetItem * item,
bool deleted_on_cascade = false )
protectedvirtual

GenericPanel::deleteItem Delete and item and its children.

Parameters
itemitem to delete
deleted_on_cascadetrue if the item is not being directly deleted but is undergoing the deletion of its parent. (unused)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ diagramAdded

void GenericPanel::diagramAdded ( QETProject * project,
Diagram * diagram )
protectedvirtualslot

GenericPanel::diagramAdded.

Parameters
project
diagramthe newly added diagram to select in the tree
Here is the call graph for this function:
Here is the caller graph for this function:

◆ diagramForItem()

Diagram * GenericPanel::diagramForItem ( QTreeWidgetItem * item) const
virtual

GenericPanel::diagramForItem.

Parameters
item
Returns
nullptr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ diagramRemoved

void GenericPanel::diagramRemoved ( QETProject * project,
Diagram * diagram )
protectedvirtualslot

GenericPanel::diagramRemoved.

Parameters
project
diagram(unused)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ diagramTitleChanged

void GenericPanel::diagramTitleChanged ( Diagram * diagram)
protectedvirtualslot

GenericPanel::diagramTitleChanged Inform this panel the diagram diagram has changed its title to title.

Parameters
diagram
Here is the call graph for this function:
Here is the caller graph for this function:

◆ diagramUsedTemplate

void GenericPanel::diagramUsedTemplate ( TitleBlockTemplatesCollection * collection,
const QString & name )
protectedvirtualslot

GenericPanel::diagramUsedTemplate.

Parameters
collection
name: (unused)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ emitFirstActivated

void GenericPanel::emitFirstActivated ( )
privateslot

GenericPanel::emitFirstActivated Emit the signal firstActivated().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event()

bool GenericPanel::event ( QEvent * event)
overrideprotected

GenericPanel::event Handle various events; reimplemented here to emit the signal firstActivated().

Parameters
event
Returns
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fillDiagramItem()

QTreeWidgetItem * GenericPanel::fillDiagramItem ( QTreeWidgetItem * diagram_qtwi,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::fillDiagramItem.

Parameters
diagram_qtwi
options
freshly_created
Returns
fillItem(diagram_qtwi, options, freshly_created)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fillItem()

QTreeWidgetItem * GenericPanel::fillItem ( QTreeWidgetItem * qtwi,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::fillItem This generic method is called at the end of each fill*Item method. Its only purpose is being reimplemented in a subclass. The default implementation does nothing.

Parameters
qtwi
options(unused)
freshly_created(unused)
Returns
qtwi
Here is the caller graph for this function:

◆ fillProjectItem()

QTreeWidgetItem * GenericPanel::fillProjectItem ( QTreeWidgetItem * project_qtwi,
QETProject * project,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::fillProjectItem.

Parameters
project_qtwi
project
options
freshly_created
Returns
fillItem(project_qtwi, options, freshly_created)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fillTemplateItem()

QTreeWidgetItem * GenericPanel::fillTemplateItem ( QTreeWidgetItem * tb_template_qtwi,
const TitleBlockTemplateLocation & tb_template,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::fillTemplateItem.

Parameters
tb_template_qtwi
tb_template(unused)
options
freshly_created
Returns
fillItem(tb_template_qtwi, options, freshly_created)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fillTemplatesCollectionItem()

QTreeWidgetItem * GenericPanel::fillTemplatesCollectionItem ( QTreeWidgetItem * tbt_collection_qtwi,
TitleBlockTemplatesCollection * tbt_collection,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::fillTemplatesCollectionItem.

Parameters
tbt_collection_qtwi
tbt_collection
options
freshly_created
Returns
fillItem(tbt_collection_qtwi, options, freshly_created)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ firstActivated

bool GenericPanel::firstActivated ( )
signal
Here is the caller graph for this function:

◆ getItemForDiagram()

QTreeWidgetItem * GenericPanel::getItemForDiagram ( Diagram * diagram,
bool * created = nullptr )
virtual

GenericPanel::getItemForDiagram.

Parameters
diagram
created
Returns
diagram_qtwi
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getItemForProject()

QTreeWidgetItem * GenericPanel::getItemForProject ( QETProject * project,
bool * created = nullptr )
protectedvirtual
Parameters
projectA standard project.
createdif provided with a pointer to a boolean, this method will update it to reflect whether the returned item has been freshly created or not.
Returns
the tree item representing the provided project. If it does not appear within this panel, it is created.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getItemForTemplate()

QTreeWidgetItem * GenericPanel::getItemForTemplate ( const TitleBlockTemplateLocation & tb_template,
bool * created = nullptr )
protectedvirtual

GenericPanel::getItemForTemplate.

Parameters
tb_template
created
Returns
tb_template_qtwi
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getItemForTemplatesCollection()

QTreeWidgetItem * GenericPanel::getItemForTemplatesCollection ( TitleBlockTemplatesCollection * tbt_collection,
bool * created = nullptr )
protectedvirtual

GenericPanel::getItemForTemplatesCollection.

Parameters
tbt_collection
created
Returns
tbt_collection_item
Here is the call graph for this function:
Here is the caller graph for this function:

◆ itemForProject()

QTreeWidgetItem * GenericPanel::itemForProject ( QETProject * project)
virtual
Parameters
projectA standard project.
Returns
the tree item representing the provided project or 0 if this project does not appear within this panel.
Here is the caller graph for this function:

◆ itemForTemplatesCollection()

QTreeWidgetItem * GenericPanel::itemForTemplatesCollection ( TitleBlockTemplatesCollection * tbt_collection)
virtual

GenericPanel::itemForTemplatesCollection.

Parameters
tbt_collection
Returns
tb_templates_.value(tbt_collection -> location(), nullptr)
nullptr
Here is the caller graph for this function:

◆ makeItem()

QTreeWidgetItem * GenericPanel::makeItem ( QET::ItemType type,
QTreeWidgetItem * parent = nullptr,
const QString & label = QString(),
const QIcon & icon = QIcon() )
protectedvirtual

GenericPanel::makeItem Create a QTreeWidgetItem.

Parameters
typeItem type (e.g QET::Diagram, QET::Project, ...)
parentParent for the created item
labelLabel for the created item
iconIcon for the created item
Returns
the create QTreeWidgetItem
Here is the call graph for this function:
Here is the caller graph for this function:

◆ markItemAsUnused()

void GenericPanel::markItemAsUnused ( QTreeWidgetItem * qtwi)
protectedvirtual

GenericPanel::markItemAsUnused Mark the provided QTreeWidgetItem as unused in its parent project.

Parameters
qtwiA QTreeWidgetItem
Here is the caller graph for this function:

◆ panelContentChanged

void GenericPanel::panelContentChanged ( )
signal
Here is the caller graph for this function:

◆ projectDiagramsOrderChanged

void GenericPanel::projectDiagramsOrderChanged ( QETProject * project,
int from,
int to )
protectedvirtualslot

GenericPanel::projectDiagramsOrderChanged.

Parameters
projectproject where diagram moved
fromIndex of diagram before move
toIndex of diagram after move
Here is the call graph for this function:
Here is the caller graph for this function:

◆ projectForItem()

QETProject * GenericPanel::projectForItem ( QTreeWidgetItem * item) const
virtual

GenericPanel::projectForItem.

Parameters
item
Returns
nullptr
Here is the call graph for this function:
Here is the caller graph for this function:

◆ projectInformationsChanged

void GenericPanel::projectInformationsChanged ( QETProject * project)
protectedvirtualslot

GenericPanel::projectInformationsChanged.

Parameters
project
Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeObsoleteItems()

template<typename T>
void GenericPanel::removeObsoleteItems ( const QList< T > & expected_items,
QTreeWidgetItem * item,
QET::ItemType type,
bool recursive )
protected

This variant of childItems() removes any child considered obsolete, i.e. not found in expected_items.

Parameters
expected_itemsA list of non-obsolete values
itemParent item that will be searched.
typeType of items to look for.
recursiveWhether to search recursively.
See also
GenericPanel::childItems()
Here is the call graph for this function:
Here is the caller graph for this function:

◆ reparent()

void GenericPanel::reparent ( QTreeWidgetItem * item,
QTreeWidgetItem * parent )
protectedvirtual

GenericPanel::reparent.

Parameters
item
parent
Here is the caller graph for this function:

◆ selectedDiagram()

Diagram * GenericPanel::selectedDiagram ( ) const
virtual

GenericPanel::selectedDiagram.

Returns
diagramForItem(currentItem())
Here is the call graph for this function:

◆ selectedProject()

QETProject * GenericPanel::selectedProject ( ) const
virtual

GenericPanel::selectedProject.

Returns
projectForItem(currentItem())
Here is the call graph for this function:

◆ selectedTemplateLocation()

TitleBlockTemplateLocation GenericPanel::selectedTemplateLocation ( ) const
virtual

GenericPanel::selectedTemplateLocation.

Returns
templateLocationForItem(currentItem())
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSelectedItem()

void GenericPanel::setSelectedItem ( QTreeWidgetItem * selectedItem)

GenericPanel::setSelectedItem.

Parameters
selectedItem

◆ templateLocationForItem()

TitleBlockTemplateLocation GenericPanel::templateLocationForItem ( QTreeWidgetItem * item) const
virtual

GenericPanel::templateLocationForItem.

Parameters
item
Returns
TitleBlockTemplateLocation()
Here is the call graph for this function:
Here is the caller graph for this function:

◆ templatesCollectionChanged

void GenericPanel::templatesCollectionChanged ( TitleBlockTemplatesCollection * collection,
const QString & template_name )
protectedvirtualslot

GenericPanel::templatesCollectionChanged.

Parameters
collection: Title block templates collection that changed and should be updated
template_name: Name of the changed template (unused)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ unregisterItem()

void GenericPanel::unregisterItem ( QTreeWidgetItem * item)
protected

GenericPanel::unregisterItem.

Parameters
item
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateDiagramItem()

QTreeWidgetItem * GenericPanel::updateDiagramItem ( QTreeWidgetItem * diagram_qtwi,
Diagram * diagram,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::updateDiagramItem.

Parameters
diagram_qtwi
diagram
options
freshly_created
Returns
updateItem(diagram_qtwi, options, freshly_created)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateItem()

QTreeWidgetItem * GenericPanel::updateItem ( QTreeWidgetItem * qtwi,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::updateItem This generic method is called at the end of each update*Item method. Its only purpose is being reimplemented in a subclass. The default implementation does nothing.

Parameters
qtwi
options(unused)
freshly_created(unused)
Returns
qtwi
Here is the caller graph for this function:

◆ updateProjectItem()

QTreeWidgetItem * GenericPanel::updateProjectItem ( QTreeWidgetItem * project_qtwi,
QETProject * project,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::updateProjectItem.

Parameters
project_qtwi
project
options(unused)
freshly_created
Returns
updateItem(project_qtwi, options, freshly_created)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTemplateItem()

QTreeWidgetItem * GenericPanel::updateTemplateItem ( QTreeWidgetItem * tb_template_qtwi,
const TitleBlockTemplateLocation & tb_template,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::updateTemplateItem.

Parameters
tb_template_qtwi
tb_template
options
freshly_created
Returns
updateItem(tb_template_qtwi, options, freshly_created)

Reimplemented in ElementsPanel.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTemplatesCollectionItem()

QTreeWidgetItem * GenericPanel::updateTemplatesCollectionItem ( QTreeWidgetItem * tbt_collection_qtwi,
TitleBlockTemplatesCollection * tbt_collection,
PanelOptions options = AddAllChild,
bool freshly_created = false )
protectedvirtual

GenericPanel::updateTemplatesCollectionItem.

Parameters
tbt_collection_qtwi
tbt_collection
options
freshly_created
Returns
updateItem(tbt_collection_qtwi, options, freshly_created)

Reimplemented in ElementsPanel.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ valueForItem()

template<typename T>
template Diagram * GenericPanel::valueForItem ( QTreeWidgetItem * ) const
protected
Returns
the value stored in item
Here is the caller graph for this function:

Member Data Documentation

◆ diagrams_

QHash<Diagram *, QTreeWidgetItem *> GenericPanel::diagrams_
private

diagrams_ Allow quick retrieval of the item representing a given diagram

◆ first_activation_

bool GenericPanel::first_activation_
private

first_activation_ boolean used to track the first time this widget is activated/shown

◆ m_selected_item

QTreeWidgetItem* GenericPanel::m_selected_item = nullptr
private

◆ projects_

QHash<QETProject *, QTreeWidgetItem *> GenericPanel::projects_
private

projects_ Allow quick retrieval of the item representing a given project

◆ tb_templates_

QHash<TitleBlockTemplateLocation, QTreeWidgetItem *> GenericPanel::tb_templates_
private

tb_templates_ Allow quick retrieval of the item representing a title block template


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