QElectroTech
0.8-dev
|
#include <templatelocationchooser.h>
Public Member Functions | |
TitleBlockTemplateLocationChooser (const TitleBlockTemplateLocation &, QWidget *=nullptr) | |
TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser Constructor. More... | |
~TitleBlockTemplateLocationChooser () override | |
virtual TitleBlockTemplateLocation | location () const |
virtual TitleBlockTemplatesCollection * | collection () 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 &) | |
This class is a widget that allows the user to choose a target title block template.
TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser | ( | const TitleBlockTemplateLocation & | location, |
QWidget * | parent = nullptr |
||
) |
TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser Constructor.
location | : Initial location displayed by the widget |
parent | : Parent QWidget |
|
override |
Destructor
|
private |
|
virtual |
|
protectedvirtual |
TitleBlockTemplateLocationChooser::indexForCollection.
coll | : A Title block templates collection which we want to know the index within the combo box of this dialog. |
|
protected |
Initialize this widget.
location | Initial location displayed by the widget |
|
virtual |
|
virtual |
Reimplemented in TitleBlockTemplateLocationSaver.
|
virtual |
Set the location displayed by this widget
location | to be displayed by this widget |
Reimplemented in TitleBlockTemplateLocationSaver.
|
protectedvirtualslot |
Update the collections list
|
protectedvirtualslot |
Update the templates list according to the selected collection.
|
protected |
Collections combo box
|
protected |
Collections index within the combo box.
|
protected |
|
protected |
Existing templates combo box.