QElectroTech
0.70
|
#include <richtexteditor_p.h>
Signals | |
void | applyEditText (const QString &) |
Public Member Functions | |
RichTextEditorDialog (QWidget *parent=nullptr) | |
~RichTextEditorDialog () override | |
int | showDialog () |
void | setDefaultFont (const QFont &font) |
void | setText (const QString &text) |
QString | text (Qt::TextFormat format=Qt::AutoText) const |
Private Types | |
enum | TabIndex { RichTextIndex, SourceIndex } |
enum | State { Clean, RichTextChanged, SourceChanged } |
Private Slots | |
void | tabIndexChanged (int newIndex) |
void | richTextChanged () |
void | sourceChanged () |
void | on_buttonBox_accepted () |
RichTextEditorDialog::on_buttonBox_accepted. More... | |
Private Attributes | |
RichTextEditor * | m_editor |
QTextEdit * | m_text_edit |
QTabWidget * | m_tab_widget |
State | m_state |
Definition at line 70 of file richtexteditor_p.h.
|
private |
Enumerator | |
---|---|
Clean | |
RichTextChanged | |
SourceChanged |
Definition at line 93 of file richtexteditor_p.h.
|
private |
Enumerator | |
---|---|
RichTextIndex | |
SourceIndex |
Definition at line 92 of file richtexteditor_p.h.
|
explicit |
Definition at line 749 of file richtexteditor.cpp.
References QET::Icons::Cancel, qdesigner_internal::RichTextEditor::createToolBar(), QET::Horizontal, m_editor, m_tab_widget, m_text_edit, on_buttonBox_accepted(), richTextChanged(), sourceChanged(), QET::Icons::South, tabIndexChanged(), and QET::Icons::tr.
|
override |
Definition at line 800 of file richtexteditor.cpp.
|
signal |
Referenced by DiagramTextItem::edit(), and on_buttonBox_accepted().
|
privateslot |
RichTextEditorDialog::on_buttonBox_accepted.
Definition at line 807 of file richtexteditor.cpp.
References applyEditText(), and text().
Referenced by RichTextEditorDialog().
|
privateslot |
Definition at line 878 of file richtexteditor.cpp.
References m_state, and RichTextChanged.
Referenced by RichTextEditorDialog().
void qdesigner_internal::RichTextEditorDialog::setDefaultFont | ( | const QFont & | font | ) |
Definition at line 822 of file richtexteditor.cpp.
References m_editor, and qdesigner_internal::RichTextEditor::setDefaultFont().
void qdesigner_internal::RichTextEditorDialog::setText | ( | const QString & | text | ) |
Definition at line 827 of file richtexteditor.cpp.
References Clean, m_editor, m_state, m_text_edit, qdesigner_internal::RichTextEditor::setSimplifyRichText(), qdesigner_internal::RichTextEditor::setText(), and text().
Referenced by DiagramTextItem::edit().
int qdesigner_internal::RichTextEditorDialog::showDialog | ( | ) |
Definition at line 813 of file richtexteditor.cpp.
References m_editor, and m_tab_widget.
|
privateslot |
Definition at line 883 of file richtexteditor.cpp.
References m_state, and SourceChanged.
Referenced by RichTextEditorDialog().
|
privateslot |
Definition at line 850 of file richtexteditor.cpp.
References m_editor, m_state, m_text_edit, RichTextChanged, RichTextIndex, SourceChanged, SourceIndex, and qdesigner_internal::RichTextEditor::text().
Referenced by RichTextEditorDialog().
QString qdesigner_internal::RichTextEditorDialog::text | ( | Qt::TextFormat | format = Qt::AutoText | ) | const |
Definition at line 837 of file richtexteditor.cpp.
References Clean, m_editor, m_state, m_tab_widget, m_text_edit, SourceChanged, SourceIndex, and qdesigner_internal::RichTextEditor::text().
Referenced by on_buttonBox_accepted(), and setText().
|
private |
Definition at line 94 of file richtexteditor_p.h.
Referenced by RichTextEditorDialog(), setDefaultFont(), setText(), showDialog(), tabIndexChanged(), and text().
|
private |
Definition at line 97 of file richtexteditor_p.h.
Referenced by richTextChanged(), setText(), sourceChanged(), tabIndexChanged(), and text().
|
private |
Definition at line 96 of file richtexteditor_p.h.
Referenced by RichTextEditorDialog(), showDialog(), and text().
|
private |
Definition at line 95 of file richtexteditor_p.h.
Referenced by RichTextEditorDialog(), setText(), tabIndexChanged(), and text().