casa
5.7.0-16
|
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. More... | |
Public Member Functions | |
TBOptions () | |
Default Constructor. More... | |
~TBOptions () | |
bool | saveView () |
Returns true if the "save view on close" check box is checked, false otherwise. More... | |
void | setSaveView (bool saveView) |
Sets the state on the "save view on close" check box. More... | |
int | debugLevel () |
Returns the debug threshold as indicated by the QComboBox. More... | |
void | setDebugLevel (int newLevel) |
Sets the debug threshold via the QComboBox. More... | |
int | chooserHistoryLimit () const |
Gets/Sets the file chooser history limit. More... | |
void | setChooserHistoryLimit (int limit) |
Private Slots | |
void | restoreDefaults () |
Restores the default options to the dialog. More... | |
void | save () |
Slot for the "Save" button. More... | |
void | cancel () |
Slot for the "Cancel" button. More... | |
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 | ( | ) |
|
privateslot |
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.
|
privateslot |
Restores the default options to the dialog.
|
privateslot |
Slot for the "Save" button.
Emits the saveOptions() signal.
|
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.