QElectroTech  0.8-dev
compositetexteditdialog.h
Go to the documentation of this file.
1 #ifndef COMPOSITETEXTEDITDIALOG_H
2 #define COMPOSITETEXTEDITDIALOG_H
3 
4 #include <QDialog>
5 
6 namespace Ui {
8 }
9 
11 
19 class CompositeTextEditDialog : public QDialog
20 {
21  Q_OBJECT
22 
23  public:
24  explicit CompositeTextEditDialog(DynamicElementTextItem *text, QWidget *parent = nullptr);
25  explicit CompositeTextEditDialog(QString text, QWidget *parent = nullptr);
26  ~CompositeTextEditDialog() override;
27 
28  QString plainText() const;
29 
30  private slots:
31  void on_m_info_cb_activated(const QString &arg1);
32 
33  protected:
34  void focusInEvent(QFocusEvent *event) override;
35 
36  private :
37  void setUpComboBox();
38  QString infoToVar(const QString& info) const;
39 
40  private:
41  Ui::CompositeTextEditDialog *ui;
42  QString m_default_text;
44 };
45 
46 #endif // COMPOSITETEXTEDITDIALOG_H
Element::linkType
virtual kind linkType() const
Definition: element.h:159
DynamicElementTextItem
The DynamicElementTextItem class This class provide a simple text field of element who can be added o...
Definition: dynamicelementtextitem.h:39
CompositeTextEditDialog::CompositeTextEditDialog
CompositeTextEditDialog(DynamicElementTextItem *text, QWidget *parent=nullptr)
Definition: compositetexteditdialog.cpp:10
conductor.h
QETApp::elementInfoKeys
static QStringList elementInfoKeys()
QETApp::elementInfoKeys.
Definition: qetapp.cpp:366
CompositeTextEditDialog
The CompositeTextEditDialog class CompositeTextEditDialog display a dialog use to write the complex t...
Definition: compositetexteditdialog.h:20
qetapp.h
CompositeTextEditDialog::on_m_info_cb_activated
void on_m_info_cb_activated(const QString &arg1)
Definition: compositetexteditdialog.cpp:74
QETApp::elementTranslatedInfoKey
static QString elementTranslatedInfoKey(const QString &)
ElementsProperties::translatedInfo Return the translated information key given by info If info don't ...
Definition: qetapp.cpp:400
compositetexteditdialog.h
CompositeTextEditDialog::m_text
DynamicElementTextItem * m_text
Definition: compositetexteditdialog.h:43
CompositeTextEditDialog::focusInEvent
void focusInEvent(QFocusEvent *event) override
CompositeTextEditDialog::focusInEvent Reimplemented from QWidget::focusInEvent.
Definition: compositetexteditdialog.cpp:85
CompositeTextEditDialog::infoToVar
QString infoToVar(const QString &info) const
element.h
Element::AllReport
@ AllReport
Definition: element.h:54
CompositeTextEditDialog::~CompositeTextEditDialog
~CompositeTextEditDialog() override
Definition: compositetexteditdialog.cpp:33
DynamicElementTextItem::parentElement
Element * parentElement() const
DynamicElementTextItem::ParentElement.
Definition: dynamicelementtextitem.cpp:227
Ui
Definition: autonumberingdockwidget.h:25
QETApp::elementInfoToVar
static QString elementInfoToVar(const QString &info)
QETApp::elementInfoToVar.
Definition: qetapp.cpp:435
dynamicelementtextitem.h
CompositeTextEditDialog::setUpComboBox
void setUpComboBox()
CompositeTextEditDialog::setUpComboBox Add the available element information in the combo box.
Definition: compositetexteditdialog.cpp:49
DynamicElementTextItem::compositeText
QString compositeText
Definition: dynamicelementtextitem.h:49
CompositeTextEditDialog::m_default_text
QString m_default_text
Definition: compositetexteditdialog.h:42
CompositeTextEditDialog::plainText
QString plainText() const
CompositeTextEditDialog::plainText.
Definition: compositetexteditdialog.cpp:41
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206
CompositeTextEditDialog::ui
Ui::CompositeTextEditDialog * ui
Definition: compositetexteditdialog.h:41