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

#include <titleblockpropertieswidget.h>

Signals

void set_auto_page_num () const
 
void openAutoNumFolioEditor (QString)
 

Public Member Functions

 TitleBlockPropertiesWidget (const TitleBlockProperties &titleblock=TitleBlockProperties(), bool current_date=false, QETProject *project=nullptr, QWidget *parent=nullptr)
 TitleBlockPropertiesWidget::TitleBlockPropertiesWidget default constructor. More...
 
 TitleBlockPropertiesWidget (TitleBlockTemplatesCollection *tbt_collection, const TitleBlockProperties &titleblock=TitleBlockProperties(), bool current_date=false, QETProject *project=nullptr, QWidget *parent=nullptr)
 TitleBlockPropertiesWidget::TitleBlockPropertiesWidget default constructor with tempalte list. More...
 
 TitleBlockPropertiesWidget (QList< TitleBlockTemplatesCollection *> tbt_collection, const TitleBlockProperties &titleblock=TitleBlockProperties(), bool current_date=false, QETProject *project=nullptr, QWidget *parent=nullptr)
 TitleBlockPropertiesWidget::TitleBlockPropertiesWidget Default constructor with several template collection. More...
 
 ~TitleBlockPropertiesWidget () override
 TitleBlockPropertiesWidget::~TitleBlockPropertiesWidget destructor. More...
 
void setProperties (const TitleBlockProperties &properties)
 TitleBlockPropertiesWidget::setProperties. More...
 
TitleBlockProperties properties () const
 TitleBlockPropertiesWidget::properties. More...
 
TitleBlockProperties propertiesAutoNum (QString autoNum) const
 TitleBlockPropertiesWidget::properties. More...
 
TitleBlockTemplateLocation currentTitleBlockLocation () const
 
void setPropertiesWithAutoNum (const TitleBlockProperties &properties, QString autoNum)
 
void setTitleBlockTemplatesVisible (const bool &visible)
 TitleBlockPropertiesWidget::setTitleBlockTemplatesVisible if true, title block template combo box and menu button is visible. More...
 
void setReadOnly (const bool &ro)
 TitleBlockPropertiesWidget::setReadOnly if true, this widget is disable. More...
 

Private Slots

void editCurrentTitleBlockTemplate ()
 
void duplicateCurrentTitleBlockTemplate ()
 
void updateTemplateList ()
 TitleBlockPropertiesWidget::updateTemplateList Update the title block template list available in the combo box. More...
 
void changeCurrentTitleBlockTemplate (int)
 TitleBlockPropertiesWidget::changeCurrentTitleBlockTemplate Load the additionnal field of title block "text". More...
 
void on_m_date_now_pb_clicked ()
 TitleBlockPropertiesWidget::on_m_date_now_pb_clicked Set the date to current date. More...
 
void on_m_edit_autofolionum_pb_clicked ()
 TitleBlockPropertiesWidget::on_m_edit_autofolionum_pb_clicked Open Auto Folio Num dialog. More...
 

Private Member Functions

void addCollection (TitleBlockTemplatesCollection *tbt_collection)
 TitleBlockPropertiesWidget::addCollection add a collection of title block available in the combo box. More...
 
QString currentTitleBlockTemplateName () const
 TitleBlockPropertiesWidget::currentTitleBlockTemplateName. More...
 
void initDialog (const bool &current_date, QETProject *project)
 TitleBlockPropertiesWidget::initDialog Init this dialog. More...
 
int getIndexFor (const QString &tbt_name, const QET::QetCollection collection) const
 TitleBlockPropertiesWidget::getIndexFor Find the index of the combo box for the title block available on the collection . More...
 

Private Attributes

Ui::TitleBlockPropertiesWidget * ui
 
DiagramContextWidgetm_dcw
 
QAction * m_tbt_edit
 
QAction * m_tbt_duplicate
 
QMenu * m_tbt_menu
 
QList< TitleBlockTemplatesCollection * > m_tbt_collection_list
 
QList< QET::QetCollectionm_map_index_to_collection_type
 
QList< QString > keys_2
 

Detailed Description

Definition at line 37 of file titleblockpropertieswidget.h.

Constructor & Destructor Documentation

◆ TitleBlockPropertiesWidget() [1/3]

TitleBlockPropertiesWidget::TitleBlockPropertiesWidget ( const TitleBlockProperties titleblock = TitleBlockProperties(),
bool  current_date = false,
QETProject project = nullptr,
QWidget *  parent = nullptr 
)
explicit

TitleBlockPropertiesWidget::TitleBlockPropertiesWidget default constructor.

Parameters
titleblockproperties to edit
current_dateif true, display the radio button "current date"
parentparent widget

Definition at line 34 of file titleblockpropertieswidget.cpp.

References initDialog(), setProperties(), and ui.

◆ TitleBlockPropertiesWidget() [2/3]

TitleBlockPropertiesWidget::TitleBlockPropertiesWidget ( TitleBlockTemplatesCollection tbt_collection,
const TitleBlockProperties titleblock = TitleBlockProperties(),
bool  current_date = false,
QETProject project = nullptr,
QWidget *  parent = nullptr 
)
explicit

TitleBlockPropertiesWidget::TitleBlockPropertiesWidget default constructor with tempalte list.

Parameters
tbt_collectiontemplate list
titleblockproperties to edit
current_dateif true, display the radio button "current date"
parentparent widget

Definition at line 51 of file titleblockpropertieswidget.cpp.

References addCollection(), initDialog(), setProperties(), ui, and updateTemplateList().

◆ TitleBlockPropertiesWidget() [3/3]

TitleBlockPropertiesWidget::TitleBlockPropertiesWidget ( QList< TitleBlockTemplatesCollection *>  tbt_collection,
const TitleBlockProperties titleblock = TitleBlockProperties(),
bool  current_date = false,
QETProject project = nullptr,
QWidget *  parent = nullptr 
)
explicit

TitleBlockPropertiesWidget::TitleBlockPropertiesWidget Default constructor with several template collection.

Parameters
tbt_collectiontemplate list
titleblockproperties to edit
current_dateif true, display the radio button "current date"
parentparent widget

Definition at line 70 of file titleblockpropertieswidget.cpp.

References addCollection(), initDialog(), setProperties(), ui, and updateTemplateList().

◆ ~TitleBlockPropertiesWidget()

TitleBlockPropertiesWidget::~TitleBlockPropertiesWidget ( )
override

Member Function Documentation

◆ addCollection()

void TitleBlockPropertiesWidget::addCollection ( TitleBlockTemplatesCollection tbt_collection)
private

TitleBlockPropertiesWidget::addCollection add a collection of title block available in the combo box.

Parameters
tbt_collection

Definition at line 278 of file titleblockpropertieswidget.cpp.

References m_tbt_collection_list.

Referenced by TitleBlockPropertiesWidget().

◆ changeCurrentTitleBlockTemplate

void TitleBlockPropertiesWidget::changeCurrentTitleBlockTemplate ( int  index)
privateslot

◆ currentTitleBlockLocation()

TitleBlockTemplateLocation TitleBlockPropertiesWidget::currentTitleBlockLocation ( ) const

◆ currentTitleBlockTemplateName()

QString TitleBlockPropertiesWidget::currentTitleBlockTemplateName ( ) const
private

TitleBlockPropertiesWidget::currentTitleBlockTemplateName.

Returns
the current title block name

Definition at line 266 of file titleblockpropertieswidget.cpp.

References ui.

Referenced by currentTitleBlockLocation(), properties(), and propertiesAutoNum().

◆ duplicateCurrentTitleBlockTemplate

void TitleBlockPropertiesWidget::duplicateCurrentTitleBlockTemplate ( )
privateslot

◆ editCurrentTitleBlockTemplate

void TitleBlockPropertiesWidget::editCurrentTitleBlockTemplate ( )
privateslot

◆ getIndexFor()

int TitleBlockPropertiesWidget::getIndexFor ( const QString &  tbt_name,
const QET::QetCollection  collection 
) const
private

TitleBlockPropertiesWidget::getIndexFor Find the index of the combo box for the title block available on the collection .

Parameters
tbt_name: title block name
collection: title block collection
Returns
the index of the title block or -1 if no match

Definition at line 330 of file titleblockpropertieswidget.cpp.

References m_map_index_to_collection_type, and ui.

Referenced by setProperties().

◆ initDialog()

void TitleBlockPropertiesWidget::initDialog ( const bool &  current_date,
QETProject project 
)
private

◆ on_m_date_now_pb_clicked

void TitleBlockPropertiesWidget::on_m_date_now_pb_clicked ( )
privateslot

TitleBlockPropertiesWidget::on_m_date_now_pb_clicked Set the date to current date.

Definition at line 421 of file titleblockpropertieswidget.cpp.

References ui.

◆ on_m_edit_autofolionum_pb_clicked

void TitleBlockPropertiesWidget::on_m_edit_autofolionum_pb_clicked ( )
privateslot

◆ openAutoNumFolioEditor

void TitleBlockPropertiesWidget::openAutoNumFolioEditor ( QString  )
signal

◆ properties()

TitleBlockProperties TitleBlockPropertiesWidget::properties ( ) const

◆ propertiesAutoNum()

TitleBlockProperties TitleBlockPropertiesWidget::propertiesAutoNum ( QString  autoNum) const

◆ set_auto_page_num

void TitleBlockPropertiesWidget::set_auto_page_num ( ) const
signal

◆ setProperties()

void TitleBlockPropertiesWidget::setProperties ( const TitleBlockProperties properties)

◆ setPropertiesWithAutoNum()

void TitleBlockPropertiesWidget::setPropertiesWithAutoNum ( const TitleBlockProperties properties,
QString  autoNum 
)

◆ setReadOnly()

void TitleBlockPropertiesWidget::setReadOnly ( const bool &  ro)

TitleBlockPropertiesWidget::setReadOnly if true, this widget is disable.

Definition at line 258 of file titleblockpropertieswidget.cpp.

References QET::Icons::ro, and ui.

◆ setTitleBlockTemplatesVisible()

void TitleBlockPropertiesWidget::setTitleBlockTemplatesVisible ( const bool &  visible)

TitleBlockPropertiesWidget::setTitleBlockTemplatesVisible if true, title block template combo box and menu button is visible.

Definition at line 248 of file titleblockpropertieswidget.cpp.

References ui.

Referenced by initDialog(), and updateTemplateList().

◆ updateTemplateList

void TitleBlockPropertiesWidget::updateTemplateList ( )
privateslot

Member Data Documentation

◆ keys_2

QList<QString> TitleBlockPropertiesWidget::keys_2
private

Definition at line 81 of file titleblockpropertieswidget.h.

Referenced by initDialog().

◆ m_dcw

DiagramContextWidget* TitleBlockPropertiesWidget::m_dcw
private

◆ m_map_index_to_collection_type

QList<QET::QetCollection> TitleBlockPropertiesWidget::m_map_index_to_collection_type
private

◆ m_tbt_collection_list

QList<TitleBlockTemplatesCollection *> TitleBlockPropertiesWidget::m_tbt_collection_list
private

◆ m_tbt_duplicate

QAction * TitleBlockPropertiesWidget::m_tbt_duplicate
private

Definition at line 77 of file titleblockpropertieswidget.h.

Referenced by initDialog().

◆ m_tbt_edit

QAction* TitleBlockPropertiesWidget::m_tbt_edit
private

Definition at line 77 of file titleblockpropertieswidget.h.

Referenced by initDialog().

◆ m_tbt_menu

QMenu* TitleBlockPropertiesWidget::m_tbt_menu
private

Definition at line 78 of file titleblockpropertieswidget.h.

Referenced by initDialog().

◆ ui

Ui::TitleBlockPropertiesWidget* TitleBlockPropertiesWidget::ui
private

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