![]() |
QElectroTech 0.100.0-dev
|
#include <templatelocationsaver.h>


Public Member Functions | |
| TitleBlockTemplateLocationSaver (const TitleBlockTemplateLocation &, QWidget *=nullptr) | |
| TitleBlockTemplateLocationSaver::TitleBlockTemplateLocationSaver Constructor. | |
| ~TitleBlockTemplateLocationSaver () override | |
Public Member Functions inherited from TitleBlockTemplateLocationChooser | |
| TitleBlockTemplateLocationChooser (const TitleBlockTemplateLocation &, QWidget *=nullptr) | |
| TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser Constructor. | |
| ~TitleBlockTemplateLocationChooser () override | |
| virtual TitleBlockTemplateLocation | location () const |
| virtual TitleBlockTemplatesCollection * | collection () const |
Protected Slots | |
| void | updateTemplates () override |
| virtual void | updateNewName () |
Protected Slots inherited from TitleBlockTemplateLocationChooser | |
| virtual void | updateCollections () |
| virtual void | updateTemplates () |
Protected Attributes | |
| QLineEdit * | new_name_ |
| New template name textfield. | |
Protected Attributes inherited from TitleBlockTemplateLocationChooser | |
| QFormLayout * | form_layout_ |
| QComboBox * | collections_ |
| QHash< int, TitleBlockTemplatesCollection * > | collections_index_ |
| Collections index within the combo box. | |
| QComboBox * | templates_ |
| Existing templates combo box. | |
Private Member Functions | |
| TitleBlockTemplateLocationSaver (const TitleBlockTemplateLocationSaver &) | |
| QString | name () const override |
| void | setLocation (const TitleBlockTemplateLocation &) override |
| void | init () |
Additional Inherited Members | |
Protected Member Functions inherited from TitleBlockTemplateLocationChooser | |
| void | init () |
| virtual int | indexForCollection (TitleBlockTemplatesCollection *) const |
| TitleBlockTemplateLocationChooser::indexForCollection. | |
This class is a widget that allows the user to choose a target title block template, with the intention to save it. Therefore, compared to a TitleBlockTemplateLocationChooser, it includes an extra field for the user to set the name of the new template if needed.
| TitleBlockTemplateLocationSaver::TitleBlockTemplateLocationSaver | ( | const TitleBlockTemplateLocation & | location, |
| QWidget * | parent = nullptr |
||
| ) |
TitleBlockTemplateLocationSaver::TitleBlockTemplateLocationSaver Constructor.
| location | |
| parent | : QWidget |

|
override |
Destructor
|
private |
|
private |
Initialize this widget.
| location | Initial location displayed by the widget |


|
overrideprivatevirtual |
Reimplemented from TitleBlockTemplateLocationChooser.
|
overrideprivatevirtual |
Set the location displayed by this widget
| location | to be displayed by this widget |
Reimplemented from TitleBlockTemplateLocationChooser.


|
protectedvirtualslot |
Enable or disable the "new name" text field depending of the selected template.

|
overrideprotectedslot |
Update the templates list according to the selected collection.


|
protected |
New template name textfield.