Widget to edit the browsing options. More...
#include <TBOptions.qo.h>
Signals | |
| void | saveOptions (TBOptions *opt) |
| saveOptions is emitted when the user has configured the options and clicked the "Save" button. | |
Public Member Functions | |
| TBOptions () | |
| Default Constructor. | |
| ~TBOptions () | |
| bool | saveView () |
| Returns true if the "save view on close" check box is checked, false otherwise. | |
| void | setSaveView (bool saveView) |
| Sets the state on the "save view on close" check box. | |
| int | debugLevel () |
| Returns the debug threshold as indicated by the QComboBox. | |
| void | setDebugLevel (int newLevel) |
| Sets the debug threshold via the QComboBox. | |
| int | chooserHistoryLimit () const |
| Gets/Sets the file chooser history limit. | |
| void | setChooserHistoryLimit (int limit) |
Private Slots | |
| void | restoreDefaults () |
| Restores the default options to the dialog. | |
| void | save () |
| Slot for the "Save" button. | |
| void | cancel () |
| Slot for the "Cancel" button. | |
Widget to edit the browsing options.
TBOptions is used to display and edit any current browsing options. Currently, the only available options are: save current view on save, and setting the debug threshold. Important: the parent/caller is responsible for connecting the saveOptions() signal and actually setting the options as requested.
Definition at line 50 of file TBOptions.qo.h.
| casa::TBOptions::TBOptions | ( | ) |
Default Constructor.
| casa::TBOptions::~TBOptions | ( | ) |
| void casa::TBOptions::cancel | ( | ) | [private, slot] |
Slot for the "Cancel" button.
Closes and deletes the widget.
| int casa::TBOptions::chooserHistoryLimit | ( | ) | const |
Gets/Sets the file chooser history limit.
| int casa::TBOptions::debugLevel | ( | ) |
Returns the debug threshold as indicated by the QComboBox.
| void casa::TBOptions::restoreDefaults | ( | ) | [private, slot] |
Restores the default options to the dialog.
| void casa::TBOptions::save | ( | ) | [private, slot] |
Slot for the "Save" button.
Emits the saveOptions() signal.
| void casa::TBOptions::saveOptions | ( | TBOptions * | opt | ) | [signal] |
saveOptions is emitted when the user has configured the options and clicked the "Save" button.
A pointer to this TBOptions object is included as the parent/caller should delete it.
| bool casa::TBOptions::saveView | ( | ) |
Returns true if the "save view on close" check box is checked, false otherwise.
| void casa::TBOptions::setChooserHistoryLimit | ( | int | limit | ) |
| void casa::TBOptions::setDebugLevel | ( | int | newLevel | ) |
Sets the debug threshold via the QComboBox.
| void casa::TBOptions::setSaveView | ( | bool | saveView | ) |
Sets the state on the "save view on close" check box.
1.6.1