| 
    QElectroTech
    0.70
    
   | 
 
#include <integrationmovetemplateshandler.h>
Public Member Functions | |
| IntegrationMoveTitleBlockTemplatesHandler (QWidget *=nullptr) | |
| ~IntegrationMoveTitleBlockTemplatesHandler () override | |
| QET::Action | templateAlreadyExists (const TitleBlockTemplateLocation &src, const TitleBlockTemplateLocation &dst) override | 
| QET::Action | errorWithATemplate (const TitleBlockTemplateLocation &, const QString &) override | 
| QString | nameForRenamingOperation () override | 
  Public Member Functions inherited from MoveTitleBlockTemplatesHandler | |
| MoveTitleBlockTemplatesHandler (QObject *=nullptr) | |
| ~MoveTitleBlockTemplatesHandler () override | |
Private Slots | |
| void | correctRadioButtons () | 
Private Member Functions | |
| IntegrationMoveTitleBlockTemplatesHandler (const IntegrationMoveTitleBlockTemplatesHandler &) | |
| QString | dateString () const | 
| QString | newNameForTemplate (const TitleBlockTemplateLocation &) | 
| QET::Action | askUser (const TitleBlockTemplateLocation &, const TitleBlockTemplateLocation &) | 
| void | initDialog () | 
| void | radioButtonleftMargin (QRadioButton *) | 
Private Attributes | |
| QWidget * | parent_widget_ | 
| Widget used as parent to display dialogs.  More... | |
| QString | rename_ | 
| Name to be used when renaming a title block template.  More... | |
| QDialog * | integ_dialog_ | 
| Dialog in case of conflict when integrating a title block template.  More... | |
| QLabel * | dialog_label_ | 
| QVBoxLayout * | dialog_vlayout_ | 
| QGridLayout * | dialog_glayout | 
| QDialogButtonBox * | buttons_ | 
| QRadioButton * | use_existing_template_ | 
| Radio button the user may click to use the existing template and stop the integration.  More... | |
| QRadioButton * | integrate_new_template_ | 
| Radio button the user may click to integrate the template.  More... | |
| QRadioButton * | erase_template_ | 
| Radio button the user may click for the integrated template to erase the existing one.  More... | |
| QRadioButton * | integrate_both_ | 
| QButtonGroup * | button_group1_ | 
| QButtonGroup * | button_group2_ | 
This class implements the interface defined by MoveTitleBlockTemplatesHandler to ease the integration of title block templates from files-based collections into projects.
Definition at line 27 of file integrationmovetemplateshandler.h.
| IntegrationMoveTitleBlockTemplatesHandler::IntegrationMoveTitleBlockTemplatesHandler | ( | QWidget * | parent = nullptr | ) | 
Constructor
| parent | Qwidget used as parent when showing the user dialog. | 
Definition at line 26 of file integrationmovetemplateshandler.cpp.
      
  | 
  override | 
Destructor
Definition at line 36 of file integrationmovetemplateshandler.cpp.
      
  | 
  private | 
      
  | 
  private | 
Ask the use whether they wish to erase the already existing template, rename it or cancel the operation.
| src | Source title block template | 
| dst | Target title block template | 
Definition at line 124 of file integrationmovetemplateshandler.cpp.
References QET::Abort, QET::Erase, erase_template_, initDialog(), integ_dialog_, QET::Managed, newNameForTemplate(), QET::Rename, rename_, and use_existing_template_.
Referenced by templateAlreadyExists().
      
  | 
  privateslot | 
Ensure the dialog remains consistent.
Definition at line 243 of file integrationmovetemplateshandler.cpp.
References erase_template_, integrate_both_, and integrate_new_template_.
Referenced by initDialog().
      
  | 
  private | 
Definition at line 105 of file integrationmovetemplateshandler.cpp.
Referenced by newNameForTemplate().
      
  | 
  overridevirtual | 
Display an error message related to a specific title block template.
| tbt | Problematic title block template | 
| message | Error message. | 
Implements MoveTitleBlockTemplatesHandler.
Definition at line 82 of file integrationmovetemplateshandler.cpp.
References QET::QetMessageBox::critical(), QET::Ignore, parent_widget_, TitleBlockTemplateLocation::toString(), and QET::Icons::tr.
Referenced by templateAlreadyExists().
      
  | 
  private | 
Initialize the user dialog.
Definition at line 145 of file integrationmovetemplateshandler.cpp.
References button_group1_, button_group2_, buttons_, QET::Icons::Cancel, correctRadioButtons(), dialog_glayout, dialog_label_, dialog_vlayout_, erase_template_, integ_dialog_, integrate_both_, integrate_new_template_, parent_widget_, radioButtonleftMargin(), QET::Icons::tr, and use_existing_template_.
Referenced by askUser().
      
  | 
  overridevirtual | 
Implements MoveTitleBlockTemplatesHandler.
Definition at line 98 of file integrationmovetemplateshandler.cpp.
References rename_.
      
  | 
  private | 
| tbt | A title block template location | 
Definition at line 114 of file integrationmovetemplateshandler.cpp.
References dateString(), and TitleBlockTemplateLocation::name().
Referenced by askUser().
      
  | 
  private | 
Increase the left margin of a radiob utton.
| button | Radio button | 
Definition at line 234 of file integrationmovetemplateshandler.cpp.
Referenced by initDialog().
      
  | 
  overridevirtual | 
| src | Source template | 
| dst | Target template | 
Implements MoveTitleBlockTemplatesHandler.
Definition at line 44 of file integrationmovetemplateshandler.cpp.
References askUser(), errorWithATemplate(), TitleBlockTemplateLocation::getTemplateXmlDescription(), QET::Managed, TitleBlockTemplateLocation::name(), TitleBlockTemplateLocation::parentCollection(), and QET::Icons::tr.
      
  | 
  private | 
Definition at line 70 of file integrationmovetemplateshandler.h.
Referenced by initDialog().
      
  | 
  private | 
Definition at line 71 of file integrationmovetemplateshandler.h.
Referenced by initDialog().
      
  | 
  private | 
Definition at line 61 of file integrationmovetemplateshandler.h.
Referenced by initDialog().
      
  | 
  private | 
Definition at line 60 of file integrationmovetemplateshandler.h.
Referenced by initDialog().
      
  | 
  private | 
Definition at line 58 of file integrationmovetemplateshandler.h.
Referenced by initDialog().
      
  | 
  private | 
Definition at line 59 of file integrationmovetemplateshandler.h.
Referenced by initDialog().
      
  | 
  private | 
Radio button the user may click for the integrated template to erase the existing one.
Definition at line 64 of file integrationmovetemplateshandler.h.
Referenced by askUser(), correctRadioButtons(), and initDialog().
      
  | 
  private | 
Dialog in case of conflict when integrating a title block template.
Definition at line 57 of file integrationmovetemplateshandler.h.
Referenced by askUser(), and initDialog().
      
  | 
  private | 
Definition at line 69 of file integrationmovetemplateshandler.h.
Referenced by correctRadioButtons(), and initDialog().
      
  | 
  private | 
Radio button the user may click to integrate the template.
Definition at line 63 of file integrationmovetemplateshandler.h.
Referenced by correctRadioButtons(), and initDialog().
      
  | 
  private | 
Widget used as parent to display dialogs.
Definition at line 55 of file integrationmovetemplateshandler.h.
Referenced by errorWithATemplate(), and initDialog().
      
  | 
  private | 
Name to be used when renaming a title block template.
Definition at line 56 of file integrationmovetemplateshandler.h.
Referenced by askUser(), and nameForRenamingOperation().
      
  | 
  private | 
Radio button the user may click to use the existing template and stop the integration.
Definition at line 62 of file integrationmovetemplateshandler.h.
Referenced by askUser(), and initDialog().
 1.8.15