QElectroTech  0.70
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
NewDiagramPage Class Reference

#include <configpages.h>

Public Slots

void changeToAutoFolioTab ()
 NewDiagramPage::changeToAutoFolioTab Set the current tab to Autonum. More...
 
void setFolioAutonum (QString)
 NewDiagramPage::setFolioAutonum Set temporary TBP to use in auto folio num. More...
 
void saveCurrentTbp ()
 NewDiagramPage::saveCurrentTbp Save current TBP to retrieve after auto folio num. More...
 
void loadSavedTbp ()
 NewDiagramPage::loadSavedTbp Retrieve saved auto folio num. More...
 

Public Member Functions

 NewDiagramPage (QETProject *project=nullptr, QWidget *=nullptr, ProjectPropertiesDialog *teste=nullptr)
 NewDiagramPage::NewDiagramPage Default constructor. More...
 
 ~NewDiagramPage () override
 NewDiagramPage::~NewDiagramPage. More...
 
void applyConf () override
 NewDiagramPage::applyConf Apply conf for this page. If there is a project, save in the project, else save to the default conf of QElectroTech. More...
 
QString title () const override
 NewDiagramPage::title. More...
 
QIcon icon () const override
 NewDiagramPage::icon. More...
 
- Public Member Functions inherited from ConfigPage
 ConfigPage (QWidget *parent)
 
 ~ConfigPage () override
 Destructor. More...
 

Private Member Functions

 NewDiagramPage (const NewDiagramPage &)
 

Private Attributes

ProjectPropertiesDialogppd_
 
QETProjectm_project
 Project to edit propertie. More...
 
BorderPropertiesWidgetbpw
 Widget to edit default diagram dimensions. More...
 
TitleBlockPropertiesWidgetipw
 Widget to edit default title block properties. More...
 
ConductorPropertiesWidgetm_cpw
 Widget to edit default conductor properties. More...
 
ReportPropertieWidgetrpw
 Widget to edit default report label. More...
 
XRefPropertiesWidgetxrefpw
 Widget to edit default xref properties. More...
 
TitleBlockProperties savedTbp
 Used to save current TBP and retrieve later. More...
 

Detailed Description

This configuration page enables users to define the properties of new diagrams to come.

Definition at line 38 of file configpages.h.

Constructor & Destructor Documentation

◆ NewDiagramPage() [1/2]

NewDiagramPage::NewDiagramPage ( QETProject project = nullptr,
QWidget *  parent = nullptr,
ProjectPropertiesDialog ppd = nullptr 
)

◆ ~NewDiagramPage()

NewDiagramPage::~NewDiagramPage ( )
override

NewDiagramPage::~NewDiagramPage.

Definition at line 98 of file configpages.cpp.

References changeToAutoFolioTab(), and ipw.

◆ NewDiagramPage() [2/2]

NewDiagramPage::NewDiagramPage ( const NewDiagramPage )
private

Member Function Documentation

◆ applyConf()

void NewDiagramPage::applyConf ( )
overridevirtual

NewDiagramPage::applyConf Apply conf for this page. If there is a project, save in the project, else save to the default conf of QElectroTech.

Implements ConfigPage.

Definition at line 108 of file configpages.cpp.

References bpw, ipw, m_cpw, m_project, rpw, ReportPropertieWidget::toSettings(), XRefProperties::toSettings(), and xrefpw.

Referenced by loadSavedTbp(), and setFolioAutonum().

◆ changeToAutoFolioTab

void NewDiagramPage::changeToAutoFolioTab ( )
slot

◆ icon()

QIcon NewDiagramPage::icon ( ) const
overridevirtual

NewDiagramPage::icon.

Returns
icon of this page

Implements ConfigPage.

Definition at line 177 of file configpages.cpp.

References m_project, QET::Icons::NewDiagram, and QET::Icons::Projects.

◆ loadSavedTbp

void NewDiagramPage::loadSavedTbp ( )
slot

NewDiagramPage::loadSavedTbp Retrieve saved auto folio num.

Definition at line 225 of file configpages.cpp.

References applyConf(), ipw, savedTbp, and TitleBlockPropertiesWidget::setProperties().

◆ saveCurrentTbp

void NewDiagramPage::saveCurrentTbp ( )
slot

NewDiagramPage::saveCurrentTbp Save current TBP to retrieve after auto folio num.

Definition at line 217 of file configpages.cpp.

References ipw, TitleBlockPropertiesWidget::properties(), and savedTbp.

◆ setFolioAutonum

void NewDiagramPage::setFolioAutonum ( QString  autoNum)
slot

◆ title()

QString NewDiagramPage::title ( ) const
overridevirtual

NewDiagramPage::title.

Returns
title of this page

Implements ConfigPage.

Definition at line 186 of file configpages.cpp.

References m_project, and QET::Icons::tr.

Member Data Documentation

◆ bpw

BorderPropertiesWidget* NewDiagramPage::bpw
private

Widget to edit default diagram dimensions.

Definition at line 63 of file configpages.h.

Referenced by applyConf(), and NewDiagramPage().

◆ ipw

TitleBlockPropertiesWidget* NewDiagramPage::ipw
private

Widget to edit default title block properties.

Definition at line 64 of file configpages.h.

Referenced by applyConf(), loadSavedTbp(), NewDiagramPage(), saveCurrentTbp(), setFolioAutonum(), and ~NewDiagramPage().

◆ m_cpw

ConductorPropertiesWidget* NewDiagramPage::m_cpw
private

Widget to edit default conductor properties.

Definition at line 65 of file configpages.h.

Referenced by applyConf(), and NewDiagramPage().

◆ m_project

QETProject* NewDiagramPage::m_project
private

Project to edit propertie.

Definition at line 62 of file configpages.h.

Referenced by applyConf(), changeToAutoFolioTab(), icon(), NewDiagramPage(), and title().

◆ ppd_

ProjectPropertiesDialog* NewDiagramPage::ppd_
private

Definition at line 61 of file configpages.h.

Referenced by changeToAutoFolioTab().

◆ rpw

ReportPropertieWidget* NewDiagramPage::rpw
private

Widget to edit default report label.

Definition at line 66 of file configpages.h.

Referenced by applyConf(), and NewDiagramPage().

◆ savedTbp

TitleBlockProperties NewDiagramPage::savedTbp
private

Used to save current TBP and retrieve later.

Definition at line 68 of file configpages.h.

Referenced by loadSavedTbp(), and saveCurrentTbp().

◆ xrefpw

XRefPropertiesWidget* NewDiagramPage::xrefpw
private

Widget to edit default xref properties.

Definition at line 67 of file configpages.h.

Referenced by applyConf(), and NewDiagramPage().


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