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

#include <titleblockpropertieswidget.h>

Inherits QWidget.

Collaboration diagram for TitleBlockPropertiesWidget:
Collaboration graph

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 tbt_name available on the collection 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
 

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"
project: QETProject
parentparent widget
Here is the call graph for this function:

◆ 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"
project: QETProject
parentparent widget
Here is the call graph for this function:

◆ 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"
project: QETProject
parentparent widget
Here is the call graph for this function:

◆ ~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
Here is the caller graph for this function:

◆ changeCurrentTitleBlockTemplate

void TitleBlockPropertiesWidget::changeCurrentTitleBlockTemplate ( int  index)
privateslot

TitleBlockPropertiesWidget::changeCurrentTitleBlockTemplate Load the additionnal field of title block "text".

Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentTitleBlockLocation()

TitleBlockTemplateLocation TitleBlockPropertiesWidget::currentTitleBlockLocation ( ) const
Here is the call graph for this function:
Here is the caller graph for this function:

◆ currentTitleBlockTemplateName()

QString TitleBlockPropertiesWidget::currentTitleBlockTemplateName ( ) const
private

TitleBlockPropertiesWidget::currentTitleBlockTemplateName.

Returns
the current title block name
Here is the caller graph for this function:

◆ duplicateCurrentTitleBlockTemplate

void TitleBlockPropertiesWidget::duplicateCurrentTitleBlockTemplate ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ editCurrentTitleBlockTemplate

void TitleBlockPropertiesWidget::editCurrentTitleBlockTemplate ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 tbt_name available on the collection collection.

Parameters
tbt_name: title block name
collection: title block collection
Returns
the index of the title block or -1 if no match
Here is the caller graph for this function:

◆ initDialog()

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

TitleBlockPropertiesWidget::initDialog Init this dialog.

Parameters
current_date: true for display current date radio button
project
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_m_date_now_pb_clicked

void TitleBlockPropertiesWidget::on_m_date_now_pb_clicked ( )
privateslot

◆ on_m_edit_autofolionum_pb_clicked

void TitleBlockPropertiesWidget::on_m_edit_autofolionum_pb_clicked ( )
privateslot

◆ openAutoNumFolioEditor

void TitleBlockPropertiesWidget::openAutoNumFolioEditor ( QString  )
signal
Here is the caller graph for this function:

◆ properties()

TitleBlockProperties TitleBlockPropertiesWidget::properties ( ) const

TitleBlockPropertiesWidget::properties.

Returns
the edited properties
Here is the call graph for this function:
Here is the caller graph for this function:

◆ propertiesAutoNum()

TitleBlockProperties TitleBlockPropertiesWidget::propertiesAutoNum ( QString  autoNum) const

TitleBlockPropertiesWidget::properties.

Returns
return properties to enable folio autonum
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_auto_page_num

void TitleBlockPropertiesWidget::set_auto_page_num ( ) const
signal

◆ setProperties()

void TitleBlockPropertiesWidget::setProperties ( const TitleBlockProperties properties)

TitleBlockPropertiesWidget::setProperties.

Parameters
properties
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setPropertiesWithAutoNum()

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

◆ setReadOnly()

void TitleBlockPropertiesWidget::setReadOnly ( const bool &  ro)

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

◆ setTitleBlockTemplatesVisible()

void TitleBlockPropertiesWidget::setTitleBlockTemplatesVisible ( const bool &  visible)

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

Here is the caller graph for this function:

◆ updateTemplateList

void TitleBlockPropertiesWidget::updateTemplateList ( )
privateslot

TitleBlockPropertiesWidget::updateTemplateList Update the title block template list available in the combo box.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ keys_2

QList<QString> TitleBlockPropertiesWidget::keys_2
private

◆ 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

◆ m_tbt_edit

QAction* TitleBlockPropertiesWidget::m_tbt_edit
private

◆ m_tbt_menu

QMenu* TitleBlockPropertiesWidget::m_tbt_menu
private

◆ ui

Ui::TitleBlockPropertiesWidget* TitleBlockPropertiesWidget::ui
private

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