Ksetiwatch API Documentation


Options Class Reference

The widget for the Options tab page. More...

#include <options.h>

Inherits OptionsTmpl.

Inheritance diagram for Options:

Inheritance graph
[legend]
Collaboration diagram for Options:

Collaboration graph
[legend]
List of all members.

Signals

void dockStatusChanged ()

Public Methods

 Options (QWidget *parent=0, const char *name=0)
 ~Options ()

Protected Slots

void slotSetTimeFormat (int id)
void slotSetReportSignals (int id)
void slotSetMinToPanel ()
void slotSetDrawGrid ()
void slotSetRefreshInterval (int ri)
void slotSetSoundOption ()
void slotSelectSound ()
void slotPlaySound ()
void slotSetSound ()
void slotEnableRecordCheckbox (bool)

Protected Methods

void setSound (const QString &s)

Detailed Description

The widget for the Options tab page.

Definition at line 57 of file options.h.


Constructor & Destructor Documentation

Options::Options QWidget   parent = 0,
const char *    name = 0
 

The constructor.

Parameters:
parent  The parent widget. If 0, this widget becomes a top-level widget.
name  A text that can be used to identify this widget.

Definition at line 33 of file options.cpp.

References globalopts, QRadioButton::setChecked(), QCheckBox::setChecked(), QPushButton::setPixmap(), QLineEdit::setText(), QSlider::setValue(), and slotSetRefreshInterval().

Options::~Options  
 

The destructor.

Definition at line 58 of file options.cpp.


Member Function Documentation

void Options::setSound const QString   s [protected]
 

Stores the path to the sound file in the application-wide options.

Only if the string s is non-empty, the Play button will be enabled.

Parameters:
s  A string containing the path to the sound file (which must be in wav format).

Definition at line 135 of file options.cpp.

References globalopts.

Referenced by slotSelectSound(), and slotSetSound().

void Options::slotSetTimeFormat int    id [protected, virtual, slot]
 

Stores the settings of Time Format radio buttons in the application-wide options.

Parameters:
id  The ID number of the selected radio button. Either 0 for hh:mm:ss, or 1 for dd:hh:mm:ss.

Reimplemented from OptionsTmpl.

Definition at line 63 of file options.cpp.

References globalopts.

void Options::slotSetReportSignals int    id [protected, virtual, slot]
 

Stores the settings of Report New Signals check boxes in the application-wide options.

Parameters:
id  The ID number of the clicked check box. Ranges from 0 to 4.

Reimplemented from OptionsTmpl.

Definition at line 72 of file options.cpp.

References globalopts, and QCheckBox::isChecked().

void Options::slotSetMinToPanel   [protected, virtual, slot]
 

Stores the state of the Minimize To Panel check box in the application-wide options.

Reimplemented from OptionsTmpl.

Definition at line 92 of file options.cpp.

References dockStatusChanged(), globalopts, and QCheckBox::isChecked().

void Options::slotSetDrawGrid   [protected, virtual, slot]
 

Stores the state of the Draw Grid check box in the application-wide options.

Reimplemented from OptionsTmpl.

Definition at line 99 of file options.cpp.

References globalopts, and QCheckBox::isChecked().

void Options::slotSetRefreshInterval int    ri [protected, virtual, slot]
 

Sets the refresh interval of all S@h locations to the value adjusted with the slider.

The refresh interval is also stored in the application-wide options.

Parameters:
ri  The slider position representing the refresh interval in seconds.

Reimplemented from OptionsTmpl.

Definition at line 145 of file options.cpp.

References QList< SetiLoc >::first(), globalopts, Ksetiwatch::locationList(), QList< SetiLoc >::next(), SetiContainer::setRefreshInterval(), QGroupBox::setTitle(), and QString::sprintf().

Referenced by Options().

void Options::slotSetSoundOption   [protected, virtual, slot]
 

Stores the state of the Play Sound check box in the application-wide options.

Reimplemented from OptionsTmpl.

Definition at line 105 of file options.cpp.

References globalopts, and QCheckBox::isChecked().

void Options::slotSelectSound   [protected, virtual, slot]
 

Opens a file dialog for the selection of a sound file.

The selected sound file and the path will be passed to the corresponding line edit field.

Reimplemented from OptionsTmpl.

Definition at line 111 of file options.cpp.

References QString::isEmpty(), setSound(), and QLineEdit::setText().

void Options::slotPlaySound   [protected, virtual, slot]
 

Plays the currently selected sound.

Reimplemented from OptionsTmpl.

Definition at line 122 of file options.cpp.

References globalopts, and KAudioPlayer::play().

void Options::slotSetSound   [protected, virtual, slot]
 

Sets the sound entered into the line edit field as the active sound.

Reimplemented from OptionsTmpl.

Definition at line 129 of file options.cpp.

References setSound(), and QLineEdit::text().

void Options::slotEnableRecordCheckbox bool    [protected, virtual, slot]
 

Enables/disables the 'Show Records' check box.

The 'Show Records' check box is enabled if at least one of the four different signal check boxes is checked, otherwise it is disabled.

Reimplemented from OptionsTmpl.

Definition at line 179 of file options.cpp.

References QCheckBox::isChecked().

void Options::dockStatusChanged   [signal]
 

This signal will be emitted whenever the user toggles the Minimize To Panel check box.

Referenced by slotSetMinToPanel().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Ksetiwatch API Version 2.6.1.
Documentation copyright © 2000-2003 Gordon Machel.
Generated on Fri Jun 6 00:28:51 2003 by doxygen 1.2.18, written by Dimitri van Heesch, © 1997-2002