QElectroTech
0.70
|
#include <titleblockpropertieswidget.h>
Signals | |
void | set_auto_page_num () const |
void | openAutoNumFolioEditor (QString) |
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 ¤t_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 |
DiagramContextWidget * | m_dcw |
QAction * | m_tbt_edit |
QAction * | m_tbt_duplicate |
QMenu * | m_tbt_menu |
QList< TitleBlockTemplatesCollection * > | m_tbt_collection_list |
QList< QET::QetCollection > | m_map_index_to_collection_type |
QList< QString > | keys_2 |
Definition at line 37 of file titleblockpropertieswidget.h.
|
explicit |
TitleBlockPropertiesWidget::TitleBlockPropertiesWidget default constructor.
titleblock | properties to edit |
current_date | if true, display the radio button "current date" |
parent | parent widget |
Definition at line 34 of file titleblockpropertieswidget.cpp.
References initDialog(), setProperties(), and ui.
|
explicit |
TitleBlockPropertiesWidget::TitleBlockPropertiesWidget default constructor with tempalte list.
tbt_collection | template list |
titleblock | properties to edit |
current_date | if true, display the radio button "current date" |
parent | parent widget |
Definition at line 51 of file titleblockpropertieswidget.cpp.
References addCollection(), initDialog(), setProperties(), ui, and updateTemplateList().
|
explicit |
TitleBlockPropertiesWidget::TitleBlockPropertiesWidget Default constructor with several template collection.
tbt_collection | template list |
titleblock | properties to edit |
current_date | if true, display the radio button "current date" |
parent | parent widget |
Definition at line 70 of file titleblockpropertieswidget.cpp.
References addCollection(), initDialog(), setProperties(), ui, and updateTemplateList().
|
override |
TitleBlockPropertiesWidget::~TitleBlockPropertiesWidget destructor.
Definition at line 86 of file titleblockpropertieswidget.cpp.
References ui.
|
private |
TitleBlockPropertiesWidget::addCollection add a collection of title block available in the combo box.
tbt_collection |
Definition at line 278 of file titleblockpropertieswidget.cpp.
References m_tbt_collection_list.
Referenced by TitleBlockPropertiesWidget().
|
privateslot |
TitleBlockPropertiesWidget::changeCurrentTitleBlockTemplate Load the additionnal field of title block "text".
Definition at line 392 of file titleblockpropertieswidget.cpp.
References DiagramContext::addValue(), m_dcw, m_map_index_to_collection_type, m_tbt_collection_list, and ui.
Referenced by initDialog().
TitleBlockTemplateLocation TitleBlockPropertiesWidget::currentTitleBlockLocation | ( | ) | const |
Definition at line 230 of file titleblockpropertieswidget.cpp.
References currentTitleBlockTemplateName(), TitleBlockTemplatesCollection::location(), m_map_index_to_collection_type, m_tbt_collection_list, and ui.
Referenced by duplicateCurrentTitleBlockTemplate(), and editCurrentTitleBlockTemplate().
|
private |
TitleBlockPropertiesWidget::currentTitleBlockTemplateName.
Definition at line 266 of file titleblockpropertieswidget.cpp.
References ui.
Referenced by currentTitleBlockLocation(), properties(), and propertiesAutoNum().
|
privateslot |
Definition at line 344 of file titleblockpropertieswidget.cpp.
References currentTitleBlockLocation(), QETApp::instance(), and QETApp::openTitleBlockTemplate().
Referenced by initDialog().
|
privateslot |
Definition at line 340 of file titleblockpropertieswidget.cpp.
References currentTitleBlockLocation(), QETApp::instance(), and QETApp::openTitleBlockTemplate().
Referenced by initDialog().
|
private |
TitleBlockPropertiesWidget::getIndexFor Find the index of the combo box for the title block available on the collection .
tbt_name | : title block name |
collection | : title block collection |
Definition at line 330 of file titleblockpropertieswidget.cpp.
References m_map_index_to_collection_type, and ui.
Referenced by setProperties().
|
private |
TitleBlockPropertiesWidget::initDialog Init this dialog.
current_date | true for display current date radio button |
Definition at line 289 of file titleblockpropertieswidget.cpp.
References changeCurrentTitleBlockTemplate(), duplicateCurrentTitleBlockTemplate(), editCurrentTitleBlockTemplate(), keys_2, m_dcw, m_tbt_duplicate, m_tbt_edit, m_tbt_menu, setTitleBlockTemplatesVisible(), QET::Icons::tr, and ui.
Referenced by TitleBlockPropertiesWidget().
|
privateslot |
TitleBlockPropertiesWidget::on_m_date_now_pb_clicked Set the date to current date.
Definition at line 421 of file titleblockpropertieswidget.cpp.
References ui.
|
privateslot |
TitleBlockPropertiesWidget::on_m_edit_autofolionum_pb_clicked Open Auto Folio Num dialog.
Definition at line 429 of file titleblockpropertieswidget.cpp.
References openAutoNumFolioEditor(), QET::Icons::tr, and ui.
|
signal |
Referenced by on_m_edit_autofolionum_pb_clicked().
TitleBlockProperties TitleBlockPropertiesWidget::properties | ( | ) | const |
TitleBlockPropertiesWidget::properties.
Definition at line 152 of file titleblockpropertieswidget.cpp.
References TitleBlockProperties::author, TitleBlockProperties::auto_page_num, TitleBlockProperties::collection, TitleBlockProperties::context, TitleBlockProperties::CurrentDate, currentTitleBlockTemplateName(), TitleBlockProperties::date, TitleBlockProperties::display_at, TitleBlockProperties::filename, TitleBlockProperties::folio, TitleBlockProperties::indexrev, TitleBlockProperties::locmach, m_dcw, m_map_index_to_collection_type, TitleBlockProperties::plant, TitleBlockProperties::template_name, TitleBlockProperties::title, ui, TitleBlockProperties::useDate, and TitleBlockProperties::UseDateValue.
Referenced by NewDiagramPage::saveCurrentTbp(), and setProperties().
TitleBlockProperties TitleBlockPropertiesWidget::propertiesAutoNum | ( | QString | autoNum | ) | const |
TitleBlockPropertiesWidget::properties.
Definition at line 193 of file titleblockpropertieswidget.cpp.
References TitleBlockProperties::author, TitleBlockProperties::auto_page_num, TitleBlockProperties::collection, TitleBlockProperties::context, TitleBlockProperties::CurrentDate, currentTitleBlockTemplateName(), TitleBlockProperties::date, TitleBlockProperties::display_at, TitleBlockProperties::filename, TitleBlockProperties::folio, TitleBlockProperties::indexrev, TitleBlockProperties::locmach, m_dcw, m_map_index_to_collection_type, TitleBlockProperties::plant, TitleBlockProperties::template_name, TitleBlockProperties::title, ui, TitleBlockProperties::useDate, and TitleBlockProperties::UseDateValue.
Referenced by NewDiagramPage::setFolioAutonum().
|
signal |
void TitleBlockPropertiesWidget::setProperties | ( | const TitleBlockProperties & | properties | ) |
TitleBlockPropertiesWidget::setProperties.
properties |
Definition at line 95 of file titleblockpropertieswidget.cpp.
References TitleBlockProperties::author, TitleBlockProperties::auto_page_num, TitleBlockProperties::collection, TitleBlockProperties::context, TitleBlockProperties::CurrentDate, TitleBlockProperties::date, TitleBlockProperties::display_at, TitleBlockProperties::filename, TitleBlockProperties::folio, getIndexFor(), TitleBlockProperties::indexrev, TitleBlockProperties::locmach, m_dcw, TitleBlockProperties::plant, properties(), TitleBlockProperties::template_name, TitleBlockProperties::title, ui, and TitleBlockProperties::useDate.
Referenced by NewDiagramPage::loadSavedTbp(), NewDiagramPage::setFolioAutonum(), and TitleBlockPropertiesWidget().
void TitleBlockPropertiesWidget::setPropertiesWithAutoNum | ( | const TitleBlockProperties & | properties, |
QString | autoNum | ||
) |
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.
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().
|
privateslot |
TitleBlockPropertiesWidget::updateTemplateList Update the title block template list available in the combo box.
Definition at line 352 of file titleblockpropertieswidget.cpp.
References QET::Common, QET::Custom, QET::Embedded, QET::Icons::Home, m_map_index_to_collection_type, m_tbt_collection_list, QET::Icons::QETLogo, setTitleBlockTemplatesVisible(), QET::Icons::TitleBlock, QET::Icons::tr, and ui.
Referenced by TitleBlockPropertiesWidget().
|
private |
Definition at line 81 of file titleblockpropertieswidget.h.
Referenced by initDialog().
|
private |
Definition at line 76 of file titleblockpropertieswidget.h.
Referenced by changeCurrentTitleBlockTemplate(), initDialog(), properties(), propertiesAutoNum(), and setProperties().
|
private |
Definition at line 80 of file titleblockpropertieswidget.h.
Referenced by changeCurrentTitleBlockTemplate(), currentTitleBlockLocation(), getIndexFor(), properties(), propertiesAutoNum(), and updateTemplateList().
|
private |
Definition at line 79 of file titleblockpropertieswidget.h.
Referenced by addCollection(), changeCurrentTitleBlockTemplate(), currentTitleBlockLocation(), and updateTemplateList().
|
private |
Definition at line 77 of file titleblockpropertieswidget.h.
Referenced by initDialog().
|
private |
Definition at line 77 of file titleblockpropertieswidget.h.
Referenced by initDialog().
|
private |
Definition at line 78 of file titleblockpropertieswidget.h.
Referenced by initDialog().
|
private |
Definition at line 75 of file titleblockpropertieswidget.h.
Referenced by changeCurrentTitleBlockTemplate(), currentTitleBlockLocation(), currentTitleBlockTemplateName(), getIndexFor(), initDialog(), on_m_date_now_pb_clicked(), on_m_edit_autofolionum_pb_clicked(), properties(), propertiesAutoNum(), setProperties(), setReadOnly(), setTitleBlockTemplatesVisible(), TitleBlockPropertiesWidget(), updateTemplateList(), and ~TitleBlockPropertiesWidget().