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

The CompositeTextEditDialog class CompositeTextEditDialog display a dialog use to write the complex text of a dynamic element text item. This dialog provide a QComboBox to quickly add an information of the element in the composite text. More...

#include <compositetexteditdialog.h>

Inherits QDialog.

Collaboration diagram for CompositeTextEditDialog:
Collaboration graph

Public Member Functions

 CompositeTextEditDialog (DynamicElementTextItem *text, QWidget *parent=nullptr)
 
 CompositeTextEditDialog (QString text, QWidget *parent=nullptr)
 
 ~CompositeTextEditDialog () override
 
QString plainText () const
 CompositeTextEditDialog::plainText. More...
 

Protected Member Functions

void focusInEvent (QFocusEvent *event) override
 CompositeTextEditDialog::focusInEvent Reimplemented from QWidget::focusInEvent. More...
 

Private Slots

void on_m_info_cb_activated (const QString &arg1)
 

Private Member Functions

void setUpComboBox ()
 CompositeTextEditDialog::setUpComboBox Add the available element information in the combo box. More...
 
QString infoToVar (const QString &info) const
 

Private Attributes

Ui::CompositeTextEditDialog * ui
 
QString m_default_text
 
DynamicElementTextItemm_text = nullptr
 

Detailed Description

The CompositeTextEditDialog class CompositeTextEditDialog display a dialog use to write the complex text of a dynamic element text item. This dialog provide a QComboBox to quickly add an information of the element in the composite text.

Constructor & Destructor Documentation

◆ CompositeTextEditDialog() [1/2]

CompositeTextEditDialog::CompositeTextEditDialog ( DynamicElementTextItem text,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ CompositeTextEditDialog() [2/2]

CompositeTextEditDialog::CompositeTextEditDialog ( QString  text,
QWidget *  parent = nullptr 
)
explicit
Here is the call graph for this function:

◆ ~CompositeTextEditDialog()

CompositeTextEditDialog::~CompositeTextEditDialog ( )
override

Member Function Documentation

◆ focusInEvent()

void CompositeTextEditDialog::focusInEvent ( QFocusEvent *  event)
overrideprotected

CompositeTextEditDialog::focusInEvent Reimplemented from QWidget::focusInEvent.

Parameters
event

◆ infoToVar()

QString CompositeTextEditDialog::infoToVar ( const QString &  info) const
private

◆ on_m_info_cb_activated

void CompositeTextEditDialog::on_m_info_cb_activated ( const QString &  arg1)
privateslot

◆ plainText()

QString CompositeTextEditDialog::plainText ( ) const

CompositeTextEditDialog::plainText.

Returns
The edited text
Here is the caller graph for this function:

◆ setUpComboBox()

void CompositeTextEditDialog::setUpComboBox ( )
private

CompositeTextEditDialog::setUpComboBox Add the available element information in the combo box.

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

Member Data Documentation

◆ m_default_text

QString CompositeTextEditDialog::m_default_text
private

◆ m_text

DynamicElementTextItem* CompositeTextEditDialog::m_text = nullptr
private

◆ ui

Ui::CompositeTextEditDialog* CompositeTextEditDialog::ui
private

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