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

The DynamicTextFieldEditor class This class provide a widget used to edit the property of a dynamic text field. More...

#include <dynamictextfieldeditor.h>

Inheritance diagram for DynamicTextFieldEditor:
Inheritance graph
Collaboration diagram for DynamicTextFieldEditor:
Collaboration graph

Public Member Functions

 DynamicTextFieldEditor (QETElementEditor *editor, PartDynamicTextField *text_field=nullptr, QWidget *parent=nullptr)
 
 ~DynamicTextFieldEditor () override
 
bool setPart (CustomElementPart *part) override
 DynamicTextFieldEditor::setPart Set part as current edited part of this widget. More...
 
bool setParts (QList< CustomElementPart * >) override
 
CustomElementPartcurrentPart () const override
 DynamicTextFieldEditor::currentPart. More...
 
QList< CustomElementPart * > currentParts () const override
 
void updateForm () override
 
- Public Member Functions inherited from ElementItemEditor
 ElementItemEditor (QETElementEditor *, QWidget *=nullptr)
 
 ~ElementItemEditor () override
 
virtual QETElementEditorelementEditor () const
 
virtual ElementSceneelementScene () const
 
virtual QUndoStack & undoStack () const
 
virtual QString elementTypeName () const
 
virtual void setElementTypeName (const QString &)
 
virtual void detach ()
 

Private Slots

void on_m_x_sb_editingFinished ()
 
void on_m_y_sb_editingFinished ()
 
void on_m_rotation_sb_editingFinished ()
 
void on_m_user_text_le_editingFinished ()
 
void on_m_size_sb_editingFinished ()
 
void on_m_frame_cb_clicked ()
 
void on_m_width_sb_editingFinished ()
 
void on_m_elmt_info_cb_activated (const QString &arg1)
 
void on_m_text_from_cb_activated (int index)
 
void on_m_composite_text_pb_clicked ()
 
void on_m_alignment_pb_clicked ()
 
void on_m_font_pb_clicked ()
 
void on_m_color_kpb_changed (const QColor &newColor)
 

Private Member Functions

void fillInfoComboBox ()
 DynamicTextFieldEditor::fillInfoComboBox Fill the combo box "element information". More...
 
void setUpConnections ()
 
void disconnectConnections ()
 

Private Attributes

Ui::DynamicTextFieldEditor * ui
 
QPointer< PartDynamicTextFieldm_text_field
 
QList< PartDynamicTextField * > m_parts
 
QList< QMetaObject::Connection > m_connection_list
 

Detailed Description

The DynamicTextFieldEditor class This class provide a widget used to edit the property of a dynamic text field.

Constructor & Destructor Documentation

◆ DynamicTextFieldEditor()

DynamicTextFieldEditor::DynamicTextFieldEditor ( QETElementEditor editor,
PartDynamicTextField text_field = nullptr,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~DynamicTextFieldEditor()

DynamicTextFieldEditor::~DynamicTextFieldEditor ( )
override

Member Function Documentation

◆ currentPart()

CustomElementPart * DynamicTextFieldEditor::currentPart ( ) const
overridevirtual

DynamicTextFieldEditor::currentPart.

Returns
The current edited part, note they can return nullptr if there is not a currently edited part.

Implements ElementItemEditor.

◆ currentParts()

QList< CustomElementPart * > DynamicTextFieldEditor::currentParts ( ) const
overridevirtual

Implements ElementItemEditor.

◆ disconnectConnections()

void DynamicTextFieldEditor::disconnectConnections ( )
private
Here is the caller graph for this function:

◆ fillInfoComboBox()

void DynamicTextFieldEditor::fillInfoComboBox ( )
private

DynamicTextFieldEditor::fillInfoComboBox Fill the combo box "element information".

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

◆ on_m_alignment_pb_clicked

void DynamicTextFieldEditor::on_m_alignment_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_color_kpb_changed

void DynamicTextFieldEditor::on_m_color_kpb_changed ( const QColor &  newColor)
privateslot
Here is the call graph for this function:

◆ on_m_composite_text_pb_clicked

void DynamicTextFieldEditor::on_m_composite_text_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_elmt_info_cb_activated

void DynamicTextFieldEditor::on_m_elmt_info_cb_activated ( const QString &  arg1)
privateslot
Here is the call graph for this function:

◆ on_m_font_pb_clicked

void DynamicTextFieldEditor::on_m_font_pb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_frame_cb_clicked

void DynamicTextFieldEditor::on_m_frame_cb_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_m_rotation_sb_editingFinished

void DynamicTextFieldEditor::on_m_rotation_sb_editingFinished ( )
privateslot
Here is the call graph for this function:

◆ on_m_size_sb_editingFinished

void DynamicTextFieldEditor::on_m_size_sb_editingFinished ( )
privateslot
Here is the call graph for this function:

◆ on_m_text_from_cb_activated

void DynamicTextFieldEditor::on_m_text_from_cb_activated ( int  index)
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_m_user_text_le_editingFinished

void DynamicTextFieldEditor::on_m_user_text_le_editingFinished ( )
privateslot
Here is the call graph for this function:

◆ on_m_width_sb_editingFinished

void DynamicTextFieldEditor::on_m_width_sb_editingFinished ( )
privateslot
Here is the call graph for this function:

◆ on_m_x_sb_editingFinished

void DynamicTextFieldEditor::on_m_x_sb_editingFinished ( )
privateslot
Here is the call graph for this function:

◆ on_m_y_sb_editingFinished

void DynamicTextFieldEditor::on_m_y_sb_editingFinished ( )
privateslot
Here is the call graph for this function:

◆ setPart()

bool DynamicTextFieldEditor::setPart ( CustomElementPart part)
overridevirtual

DynamicTextFieldEditor::setPart Set part as current edited part of this widget.

Parameters
part
Returns
true if part can be edited by this widget

Implements ElementItemEditor.

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

◆ setParts()

bool DynamicTextFieldEditor::setParts ( QList< CustomElementPart * >  parts)
overridevirtual

Reimplemented from ElementItemEditor.

Here is the call graph for this function:

◆ setUpConnections()

void DynamicTextFieldEditor::setUpConnections ( )
private
Here is the caller graph for this function:

◆ updateForm()

void DynamicTextFieldEditor::updateForm ( )
overridevirtual

Implements ElementItemEditor.

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

Member Data Documentation

◆ m_connection_list

QList<QMetaObject::Connection> DynamicTextFieldEditor::m_connection_list
private

◆ m_parts

QList<PartDynamicTextField*> DynamicTextFieldEditor::m_parts
private

◆ m_text_field

QPointer<PartDynamicTextField> DynamicTextFieldEditor::m_text_field
private

◆ ui

Ui::DynamicTextFieldEditor* DynamicTextFieldEditor::ui
private

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