QElectroTech
0.70
|
#include <templatelocationchooser.h>
Public Member Functions | |
TitleBlockTemplateLocationChooser (const TitleBlockTemplateLocation &, QWidget *=nullptr) | |
~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 |
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.
Definition at line 28 of file templatelocationchooser.h.
TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser | ( | const TitleBlockTemplateLocation & | location, |
QWidget * | parent = nullptr |
||
) |
Constructor
location | Initial location displayed by the widget |
widget | Parent QWidget |
Definition at line 28 of file templatelocationchooser.cpp.
References init(), location(), and setLocation().
|
override |
Destructor
Definition at line 41 of file templatelocationchooser.cpp.
|
private |
|
virtual |
Definition at line 54 of file templatelocationchooser.cpp.
References collections_, and collections_index_.
Referenced by location(), updateCollections(), TitleBlockTemplateLocationSaver::updateTemplates(), and updateTemplates().
|
protectedvirtual |
coll | A Title block templates collection which we want to know the index within the combo box of this dialog. |
Definition at line 105 of file templatelocationchooser.cpp.
References collections_index_.
Referenced by TitleBlockTemplateLocationSaver::setLocation(), and setLocation().
|
protected |
Initialize this widget.
location | Initial location displayed by the widget |
Definition at line 88 of file templatelocationchooser.cpp.
References collections_, form_layout_, templates_, QET::Icons::tr, updateCollections(), and updateTemplates().
Referenced by TitleBlockTemplateLocationChooser().
|
virtual |
Definition at line 47 of file templatelocationchooser.cpp.
References collection(), and name().
Referenced by TitleBlockTemplateLocationSaver::setLocation(), setLocation(), TitleBlockTemplateLocationChooser(), and TitleBlockTemplateLocationSaver::TitleBlockTemplateLocationSaver().
|
virtual |
Reimplemented in TitleBlockTemplateLocationSaver.
Definition at line 61 of file templatelocationchooser.cpp.
References templates_.
Referenced by location().
|
virtual |
Set the location displayed by this widget
location | to be displayed by this widget |
Reimplemented in TitleBlockTemplateLocationSaver.
Definition at line 70 of file templatelocationchooser.cpp.
References collections_, indexForCollection(), location(), TitleBlockTemplateLocation::name(), TitleBlockTemplateLocation::parentCollection(), and templates_.
Referenced by TitleBlockTemplateLocationChooser().
|
protectedvirtualslot |
Update the collections list
Definition at line 114 of file templatelocationchooser.cpp.
References QETApp::availableTitleBlockTemplatesCollections(), collection(), collections_, collections_index_, and updateTemplates().
Referenced by init().
|
protectedvirtualslot |
Update the templates list according to the selected collection.
Definition at line 131 of file templatelocationchooser.cpp.
References collection(), and templates_.
Referenced by init(), updateCollections(), and TitleBlockTemplateLocationSaver::updateTemplates().
|
protected |
Collections combo box
Definition at line 56 of file templatelocationchooser.h.
Referenced by collection(), init(), TitleBlockTemplateLocationSaver::setLocation(), setLocation(), and updateCollections().
|
protected |
Collections index within the combo box.
Definition at line 58 of file templatelocationchooser.h.
Referenced by collection(), indexForCollection(), and updateCollections().
|
protected |
Definition at line 55 of file templatelocationchooser.h.
Referenced by TitleBlockTemplateLocationSaver::init(), and init().
|
protected |
Existing templates combo box.
Definition at line 59 of file templatelocationchooser.h.
Referenced by TitleBlockTemplateLocationSaver::init(), init(), TitleBlockTemplateLocationSaver::name(), name(), TitleBlockTemplateLocationSaver::setLocation(), setLocation(), TitleBlockTemplateLocationSaver::updateNewName(), TitleBlockTemplateLocationSaver::updateTemplates(), and updateTemplates().