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

#include <templatelocationsaver.h>

Inheritance diagram for TitleBlockTemplateLocationSaver:
Inheritance graph
Collaboration diagram for TitleBlockTemplateLocationSaver:
Collaboration graph

Public Member Functions

 TitleBlockTemplateLocationSaver (const TitleBlockTemplateLocation &, QWidget *=nullptr)
 TitleBlockTemplateLocationSaver::TitleBlockTemplateLocationSaver Constructor. More...
 
 ~TitleBlockTemplateLocationSaver () override
 
- Public Member Functions inherited from TitleBlockTemplateLocationChooser
 TitleBlockTemplateLocationChooser (const TitleBlockTemplateLocation &, QWidget *=nullptr)
 TitleBlockTemplateLocationChooser::TitleBlockTemplateLocationChooser Constructor. More...
 
 ~TitleBlockTemplateLocationChooser () override
 
virtual TitleBlockTemplateLocation location () const
 
virtual TitleBlockTemplatesCollectioncollection () 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. More...
 
- Protected Attributes inherited from TitleBlockTemplateLocationChooser
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

 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. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TitleBlockTemplateLocationSaver() [1/2]

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

TitleBlockTemplateLocationSaver::TitleBlockTemplateLocationSaver Constructor.

Parameters
location
parent: QWidget
Here is the call graph for this function:

◆ ~TitleBlockTemplateLocationSaver()

TitleBlockTemplateLocationSaver::~TitleBlockTemplateLocationSaver ( )
override

Destructor

◆ TitleBlockTemplateLocationSaver() [2/2]

TitleBlockTemplateLocationSaver::TitleBlockTemplateLocationSaver ( const TitleBlockTemplateLocationSaver )
private

Member Function Documentation

◆ init()

void TitleBlockTemplateLocationSaver::init ( )
private

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:

◆ name()

QString TitleBlockTemplateLocationSaver::name ( ) const
overrideprivatevirtual
Returns
the currently selected/entered name

Reimplemented from TitleBlockTemplateLocationChooser.

◆ setLocation()

void TitleBlockTemplateLocationSaver::setLocation ( const TitleBlockTemplateLocation location)
overrideprivatevirtual

Set the location displayed by this widget

Parameters
locationto be displayed by this widget

Reimplemented from TitleBlockTemplateLocationChooser.

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

◆ updateNewName

void TitleBlockTemplateLocationSaver::updateNewName ( )
protectedvirtualslot

Enable or diable the "new name" text field depending of the selected template.

Here is the caller graph for this function:

◆ updateTemplates

void TitleBlockTemplateLocationSaver::updateTemplates ( )
overrideprotectedslot

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

◆ new_name_

QLineEdit* TitleBlockTemplateLocationSaver::new_name_
protected

New template name textfield.


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