casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Signals | Public Member Functions | Private Slots | List of all members
casa::TBOptions Class Reference

Widget to edit the browsing options. More...

#include <TBOptions.qo.h>

Inheritance diagram for casa::TBOptions:

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...
 

Detailed Description

Widget to edit the browsing options.

Synopsis

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.

Constructor & Destructor Documentation

casa::TBOptions::TBOptions ( )

Default Constructor.

casa::TBOptions::~TBOptions ( )

Member Function Documentation

void casa::TBOptions::cancel ( )
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.

void casa::TBOptions::restoreDefaults ( )
privateslot

Restores the default options to the dialog.

void casa::TBOptions::save ( )
privateslot

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.


The documentation for this class was generated from the following file: