QElectroTech  0.8-dev
Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
TitleBlockTemplateLocationChooser Class Reference

#include <templatelocationchooser.h>

Inheritance diagram for TitleBlockTemplateLocationChooser:
Inheritance graph
Collaboration diagram for TitleBlockTemplateLocationChooser:
Collaboration graph

Public Member Functions

 TitleBlockTemplateLocationChooser (const TitleBlockTemplateLocation &, QWidget *=nullptr)
 TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser Constructor. More...
 
 ~TitleBlockTemplateLocationChooser () override
 
virtual TitleBlockTemplateLocation location () const
 
virtual TitleBlockTemplatesCollectioncollection () const
 
virtual QString name () const
 
virtual void setLocation (const TitleBlockTemplateLocation &)
 

Protected Slots

virtual void updateCollections ()
 
virtual void updateTemplates ()
 

Protected Member Functions

void init ()
 
virtual int indexForCollection (TitleBlockTemplatesCollection *) const
 TitleBlockTemplateLocationChooser::indexForCollection. More...
 

Protected Attributes

QFormLayout * form_layout_
 
QComboBox * collections_
 
QHash< int, TitleBlockTemplatesCollection * > collections_index_
 Collections index within the combo box. More...
 
QComboBox * templates_
 Existing templates combo box. More...
 

Private Member Functions

 TitleBlockTemplateLocationChooser (const TitleBlockTemplateLocationChooser &)
 

Detailed Description

This class is a widget that allows the user to choose a target title block template.

Constructor & Destructor Documentation

◆ TitleBlockTemplateLocationChooser() [1/2]

TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser ( const TitleBlockTemplateLocation location,
QWidget *  parent = nullptr 
)

TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser Constructor.

Parameters
location: Initial location displayed by the widget
parent: Parent QWidget
Here is the call graph for this function:

◆ ~TitleBlockTemplateLocationChooser()

TitleBlockTemplateLocationChooser::~TitleBlockTemplateLocationChooser ( )
override

Destructor

◆ TitleBlockTemplateLocationChooser() [2/2]

TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser ( const TitleBlockTemplateLocationChooser )
private

Member Function Documentation

◆ collection()

TitleBlockTemplatesCollection * TitleBlockTemplateLocationChooser::collection ( ) const
virtual
Returns
the currently selected collection
Here is the caller graph for this function:

◆ indexForCollection()

int TitleBlockTemplateLocationChooser::indexForCollection ( TitleBlockTemplatesCollection coll) const
protectedvirtual

TitleBlockTemplateLocationChooser::indexForCollection.

Parameters
coll: A Title block templates collection which we want to know the index within the combo box of this dialog.
Returns
-1 if the collection is unknown to this dialog, or the index of coll
Here is the caller graph for this function:

◆ init()

void TitleBlockTemplateLocationChooser::init ( )
protected

Initialize this widget.

Parameters
locationInitial location displayed by the widget
Here is the call graph for this function:
Here is the caller graph for this function:

◆ location()

TitleBlockTemplateLocation TitleBlockTemplateLocationChooser::location ( ) const
virtual
Returns
the current location
Here is the call graph for this function:
Here is the caller graph for this function:

◆ name()

QString TitleBlockTemplateLocationChooser::name ( ) const
virtual
Returns
the currently selected/entered name

Reimplemented in TitleBlockTemplateLocationSaver.

Here is the caller graph for this function:

◆ setLocation()

void TitleBlockTemplateLocationChooser::setLocation ( const TitleBlockTemplateLocation location)
virtual

Set the location displayed by this widget

Parameters
locationto be displayed by this widget

Reimplemented in TitleBlockTemplateLocationSaver.

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

◆ updateCollections

void TitleBlockTemplateLocationChooser::updateCollections ( )
protectedvirtualslot

Update the collections list

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

◆ updateTemplates

void TitleBlockTemplateLocationChooser::updateTemplates ( )
protectedvirtualslot

Update the templates list according to the selected collection.

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

Member Data Documentation

◆ collections_

QComboBox* TitleBlockTemplateLocationChooser::collections_
protected

Collections combo box

◆ collections_index_

QHash<int, TitleBlockTemplatesCollection *> TitleBlockTemplateLocationChooser::collections_index_
protected

Collections index within the combo box.

◆ form_layout_

QFormLayout* TitleBlockTemplateLocationChooser::form_layout_
protected

◆ templates_

QComboBox* TitleBlockTemplateLocationChooser::templates_
protected

Existing templates combo box.


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