#include <integrationmovetemplateshandler.h>
This class implements the interface defined by MoveTitleBlockTemplatesHandler to ease the integration of title block templates from files-based collections into projects.
◆ IntegrationMoveTitleBlockTemplatesHandler() [1/2]
| IntegrationMoveTitleBlockTemplatesHandler::IntegrationMoveTitleBlockTemplatesHandler |
( |
QWidget * |
parent = nullptr | ) |
|
Constructor
- Parameters
-
| parent | Qwidget used as parent when showing the user dialog. |
◆ ~IntegrationMoveTitleBlockTemplatesHandler()
| IntegrationMoveTitleBlockTemplatesHandler::~IntegrationMoveTitleBlockTemplatesHandler |
( |
| ) |
|
|
override |
◆ IntegrationMoveTitleBlockTemplatesHandler() [2/2]
◆ askUser()
Ask the use whether they wish to erase the already existing template, rename it or cancel the operation.
- Parameters
-
| src | Source title block template |
| dst | Target title block template |
- Returns
- the user answer
◆ correctRadioButtons
| void IntegrationMoveTitleBlockTemplatesHandler::correctRadioButtons |
( |
| ) |
|
|
privateslot |
Ensure the dialog remains consistent.
◆ dateString()
| QString IntegrationMoveTitleBlockTemplatesHandler::dateString |
( |
| ) |
const |
|
private |
- Returns
- the current date with a filename-friendly format
◆ errorWithATemplate()
Display an error message related to a specific title block template.
- Parameters
-
| tbt | Problematic title block template |
| message | Error message. |
Implements MoveTitleBlockTemplatesHandler.
◆ initDialog()
| void IntegrationMoveTitleBlockTemplatesHandler::initDialog |
( |
| ) |
|
|
private |
Initialize the user dialog.
◆ nameForRenamingOperation()
| QString IntegrationMoveTitleBlockTemplatesHandler::nameForRenamingOperation |
( |
| ) |
|
|
overridevirtual |
◆ newNameForTemplate()
- Parameters
-
| tbt | A title block template location |
- Returns
- a name to be used in order to duplicate the title block template. This name is based on the current date.
◆ radioButtonleftMargin()
| void IntegrationMoveTitleBlockTemplatesHandler::radioButtonleftMargin |
( |
QRadioButton * |
button | ) |
|
|
private |
Increase the left margin of a radiob utton.
- Parameters
-
◆ templateAlreadyExists()
- Parameters
-
| src | Source template |
| dst | Target template |
- Returns
- the action to be done if the target template already exists
Implements MoveTitleBlockTemplatesHandler.
◆ button_group1_
| QButtonGroup* IntegrationMoveTitleBlockTemplatesHandler::button_group1_ |
|
private |
◆ button_group2_
| QButtonGroup* IntegrationMoveTitleBlockTemplatesHandler::button_group2_ |
|
private |
◆ buttons_
| QDialogButtonBox* IntegrationMoveTitleBlockTemplatesHandler::buttons_ |
|
private |
◆ dialog_glayout
| QGridLayout* IntegrationMoveTitleBlockTemplatesHandler::dialog_glayout |
|
private |
◆ dialog_label_
| QLabel* IntegrationMoveTitleBlockTemplatesHandler::dialog_label_ |
|
private |
◆ dialog_vlayout_
| QVBoxLayout* IntegrationMoveTitleBlockTemplatesHandler::dialog_vlayout_ |
|
private |
◆ erase_template_
| QRadioButton* IntegrationMoveTitleBlockTemplatesHandler::erase_template_ |
|
private |
Radio button the user may click for the integrated template to erase the existing one.
◆ integ_dialog_
| QDialog* IntegrationMoveTitleBlockTemplatesHandler::integ_dialog_ |
|
private |
Dialog in case of conflict when integrating a title block template.
◆ integrate_both_
| QRadioButton* IntegrationMoveTitleBlockTemplatesHandler::integrate_both_ |
|
private |
◆ integrate_new_template_
| QRadioButton* IntegrationMoveTitleBlockTemplatesHandler::integrate_new_template_ |
|
private |
Radio button the user may click to integrate the template.
◆ parent_widget_
| QWidget* IntegrationMoveTitleBlockTemplatesHandler::parent_widget_ |
|
private |
Widget used as parent to display dialogs.
◆ rename_
| QString IntegrationMoveTitleBlockTemplatesHandler::rename_ |
|
private |
Name to be used when renaming a title block template.
◆ use_existing_template_
| QRadioButton* IntegrationMoveTitleBlockTemplatesHandler::use_existing_template_ |
|
private |
Radio button the user may click to use the existing template and stop the integration.
The documentation for this class was generated from the following files: