QElectroTech
0.70
|
#include <templatedeleter.h>
Public Slots | |
bool | exec () |
Public Member Functions | |
TitleBlockTemplateDeleter (const TitleBlockTemplateLocation &, QWidget *=nullptr) | |
~TitleBlockTemplateDeleter () override | |
Private Member Functions | |
TitleBlockTemplateDeleter (const TitleBlockTemplateDeleter &) | |
Private Attributes | |
TitleBlockTemplateLocation | template_location_ |
This class is an abstraction layer to delete an existing title block template.
Definition at line 26 of file templatedeleter.h.
TitleBlockTemplateDeleter::TitleBlockTemplateDeleter | ( | const TitleBlockTemplateLocation & | tbt_location, |
QWidget * | parent = nullptr |
||
) |
Constructor
tbt_location | Location of the title block template to be deleted |
parent | Parent QWidget |
Definition at line 26 of file templatedeleter.cpp.
|
override |
Destructor
Definition at line 35 of file templatedeleter.cpp.
|
private |
|
slot |
Delete the title block template: check the provided location matches an existing template, interactively require confirmationfrom the user before actually proceeding to the deletion.
Definition at line 44 of file templatedeleter.cpp.
References QET::Icons::Cancel, TitleBlockTemplateLocation::isValid(), TitleBlockTemplateLocation::name(), TitleBlockTemplateLocation::parentCollection(), QET::QetMessageBox::question(), template_location_, and QET::Icons::tr.
Referenced by ElementsPanelWidget::removeTitleBlockTemplate().
|
private |
Definition at line 41 of file templatedeleter.h.
Referenced by exec().