|
QCodeEdit
2.2
|
A minimalistic, easy to embed, format settings widget. More...

| QFormatConfig (QWidget *w=0) | |
| bool | isAutonomous () const |
| bool | hasUnsavedChanges () const |
| Check whether there are unsaved in the widget. | |
| QList< QFormatScheme * > | schemes () const |
| void | retranslate () |
| run-time translation entry point | |
| void | apply () |
| Apply changes made to the currently edited scheme, if any. | |
| void | cancel () |
| Reset the subcontrols to reflect the data of the format scheme being edited. More... | |
| void | restore () |
| Restore default values for all subcontrols. More... | |
| void | setAutonomous (bool y) |
| Turn on "autonomous" mode. More... | |
| void | addScheme (const QString &name, QFormatScheme *scheme) |
| Add a format scheme to the config widget. More... | |
| void | removeScheme (QFormatScheme *scheme) |
| Remove a scheme from the config widget. More... | |
| void | setCurrentScheme (QFormatScheme *scheme) |
| Enforce the currently edited scheme. More... | |
| virtual void | hideEvent (QHideEvent *e) |
Additional Inherited Members | |
Private Member Functions inherited from Ui_FormatConfig | |
| void | setupUi (QWidget *FormatConfig) |
| void | retranslateUi (QWidget *FormatConfig) |
Private Attributes inherited from Ui_FormatConfig | |
| QVBoxLayout * | verticalLayout |
| QFrame * | m_frame |
| QGridLayout * | gridLayout |
| QLabel * | label |
| QComboBox * | m_selector |
| QTableWidget * | m_table |
A minimalistic, easy to embed, format settings widget.
|
slot |
Add a format scheme to the config widget.
Users will be able to edit that scheme (switching among schemes using a combobox if several schemes are added to the widget)
References setCurrentScheme().
|
slot |
Reset the subcontrols to reflect the data of the format scheme being edited.
The name can be a bit misleading at first, it has been chosen because it directly maps to the effect a "cancel" button would have on the widget
References QFormatScheme::formatCount(), QFormatScheme::formatRef(), and QFormatScheme::id().
Referenced by setCurrentScheme().
| bool QFormatConfig::isAutonomous | ( | ) | const |
|
slot |
Remove a scheme from the config widget.
|
slot |
Restore default values for all subcontrols.
| QList< QFormatScheme * > QFormatConfig::schemes | ( | ) | const |
|
slot |
Turn on "autonomous" mode.
When the format config widget is autonomous it will automatically check for changes upon hide event and ask the user whether he wishes to commit them.
|
slot |
Enforce the currently edited scheme.
References cancel().
Referenced by addScheme().
1.8.4