The TitleBlockTemplateCellWidget class This class implements an edition widget for cells that compose a title block template.
More...
#include <templatecellwidget.h>
Inherits QWidget.
The TitleBlockTemplateCellWidget class This class implements an edition widget for cells that compose a title block template.
◆ TitleBlockTemplateCellWidget() [1/2]
TitleBlockTemplateCellWidget::TitleBlockTemplateCellWidget |
( |
TitleBlockTemplate * |
parent_template = nullptr , |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
◆ ~TitleBlockTemplateCellWidget()
TitleBlockTemplateCellWidget::~TitleBlockTemplateCellWidget |
( |
| ) |
|
|
override |
◆ TitleBlockTemplateCellWidget() [2/2]
◆ alignment()
int TitleBlockTemplateCellWidget::alignment |
( |
| ) |
const |
- Returns
- the currently selected alignment.
◆ cellModified
◆ defaultVariablesString()
QString TitleBlockTemplateCellWidget::defaultVariablesString |
( |
| ) |
const |
|
protected |
- Returns
- a string describing the various variables provided by default by the application.
◆ edit
Set the title block cell to be edited. The cell pointer is stored by this class; however, modifications made by the user are packaged as ModifyTitleBlockCellCommand objects and emitted through the cellModified() signal.
- Parameters
-
cell | Title block cell to be edited |
◆ editAdjust
void TitleBlockTemplateCellWidget::editAdjust |
( |
| ) |
|
|
slot |
◆ editAlignment
void TitleBlockTemplateCellWidget::editAlignment |
( |
| ) |
|
|
slot |
◆ editFontSize
void TitleBlockTemplateCellWidget::editFontSize |
( |
| ) |
|
|
slot |
◆ editLabel
void TitleBlockTemplateCellWidget::editLabel |
( |
| ) |
|
|
slot |
◆ editLabelDisplayed
void TitleBlockTemplateCellWidget::editLabelDisplayed |
( |
| ) |
|
|
slot |
◆ editLogo
void TitleBlockTemplateCellWidget::editLogo |
( |
| ) |
|
|
slot |
◆ editName
void TitleBlockTemplateCellWidget::editName |
( |
| ) |
|
|
slot |
◆ editTranslatableValue()
void TitleBlockTemplateCellWidget::editTranslatableValue |
( |
NamesList & |
names, |
|
|
const QString & |
attribute, |
|
|
const QString & |
title |
|
) |
| const |
|
protected |
Allow the user to edit a translatable string (e.g. value or label). If the user modified the string, this method emits a ModifyTitleBlockCellCommand object through the cellModified() signal.
- Parameters
-
names | Translatable string to be edited |
attribute | Name of the edited cell attribute |
title | Title of the dialog window |
◆ editType
void TitleBlockTemplateCellWidget::editType |
( |
| ) |
|
|
slot |
◆ editValue
void TitleBlockTemplateCellWidget::editValue |
( |
| ) |
|
|
slot |
◆ emitModification()
void TitleBlockTemplateCellWidget::emitModification |
( |
const QString & |
attribute, |
|
|
const QVariant & |
new_value |
|
) |
| const |
|
protected |
◆ horizontalAlignment()
int TitleBlockTemplateCellWidget::horizontalAlignment |
( |
| ) |
const |
◆ initWidgets()
void TitleBlockTemplateCellWidget::initWidgets |
( |
| ) |
|
|
private |
Initialize layout and widgets.
◆ isReadOnly()
bool TitleBlockTemplateCellWidget::isReadOnly |
( |
| ) |
const |
- Returns
- whether this edition widget is read only
◆ labelValueInformationString()
QString TitleBlockTemplateCellWidget::labelValueInformationString |
( |
| ) |
const |
|
protected |
- Returns
- a string describing what the user may enter as cell label / value.
◆ logoEditionRequested
void TitleBlockTemplateCellWidget::logoEditionRequested |
( |
| ) |
|
|
signal |
◆ setReadOnly
void TitleBlockTemplateCellWidget::setReadOnly |
( |
bool |
read_only | ) |
|
|
slot |
- Parameters
-
read_only | whether this edition widget should be read only |
◆ updateFormType
void TitleBlockTemplateCellWidget::updateFormType |
( |
int |
cell_type | ) |
|
|
slot |
Shows or hides various widgets depending on the selected cell type
◆ updateLogosComboBox
void TitleBlockTemplateCellWidget::updateLogosComboBox |
( |
const TitleBlockTemplate * |
parent_template | ) |
|
|
slot |
Updates the list of available logos
- Parameters
-
parent_template | The title block template which contains the currently edited cell |
◆ verticalAlignment()
int TitleBlockTemplateCellWidget::verticalAlignment |
( |
| ) |
const |
◆ add_logo_input_
QPushButton* TitleBlockTemplateCellWidget::add_logo_input_ |
|
private |
◆ align_label_
QLabel* TitleBlockTemplateCellWidget::align_label_ |
|
private |
◆ cell_editor_image_layout_
QHBoxLayout* TitleBlockTemplateCellWidget::cell_editor_image_layout_ |
|
private |
◆ cell_editor_layout_
QVBoxLayout* TitleBlockTemplateCellWidget::cell_editor_layout_ |
|
private |
◆ cell_editor_text_layout_
QGridLayout* TitleBlockTemplateCellWidget::cell_editor_text_layout_ |
|
private |
◆ cell_editor_type_and_name_layout_
QHBoxLayout* TitleBlockTemplateCellWidget::cell_editor_type_and_name_layout_ |
|
private |
◆ cell_type_input_
QComboBox* TitleBlockTemplateCellWidget::cell_type_input_ |
|
private |
◆ cell_type_label_
QLabel* TitleBlockTemplateCellWidget::cell_type_label_ |
|
private |
◆ edited_cell_
◆ empty_label_
QLabel* TitleBlockTemplateCellWidget::empty_label_ |
|
private |
◆ font_adjust_input_
QCheckBox* TitleBlockTemplateCellWidget::font_adjust_input_ |
|
private |
◆ font_size_input_
QSpinBox* TitleBlockTemplateCellWidget::font_size_input_ |
|
private |
◆ font_size_label_
QLabel* TitleBlockTemplateCellWidget::font_size_label_ |
|
private |
◆ horiz_align_indexes_
QHash<int, int> TitleBlockTemplateCellWidget::horiz_align_indexes_ |
|
private |
◆ horiz_align_input_
QComboBox* TitleBlockTemplateCellWidget::horiz_align_input_ |
|
private |
◆ horiz_align_label_
QLabel* TitleBlockTemplateCellWidget::horiz_align_label_ |
|
private |
◆ label_checkbox_
QCheckBox* TitleBlockTemplateCellWidget::label_checkbox_ |
|
private |
◆ label_edit_
QPushButton* TitleBlockTemplateCellWidget::label_edit_ |
|
private |
◆ label_input_
QLineEdit* TitleBlockTemplateCellWidget::label_input_ |
|
private |
◆ logo_input_
QComboBox* TitleBlockTemplateCellWidget::logo_input_ |
|
private |
◆ logo_label_
QLabel* TitleBlockTemplateCellWidget::logo_label_ |
|
private |
◆ name_input_
QLineEdit* TitleBlockTemplateCellWidget::name_input_ |
|
private |
◆ name_label_
QLabel* TitleBlockTemplateCellWidget::name_label_ |
|
private |
◆ read_only_
bool TitleBlockTemplateCellWidget::read_only_ |
|
private |
is the template read-only?
◆ value_edit_
QPushButton* TitleBlockTemplateCellWidget::value_edit_ |
|
private |
◆ value_input_
QLineEdit* TitleBlockTemplateCellWidget::value_input_ |
|
private |
◆ value_label_
QLabel* TitleBlockTemplateCellWidget::value_label_ |
|
private |
◆ vert_align_indexes_
QHash<int, int> TitleBlockTemplateCellWidget::vert_align_indexes_ |
|
private |
◆ vert_align_input_
QComboBox* TitleBlockTemplateCellWidget::vert_align_input_ |
|
private |
◆ vert_align_label_
QLabel* TitleBlockTemplateCellWidget::vert_align_label_ |
|
private |
The documentation for this class was generated from the following files: