Main Page   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

GapeSimpleController Class Reference

A general purpose simple controller which can be used to control common paramters such as freq, gain, etc. More...

#include <gapesimplecontroller.h>

Inheritance diagram for GapeSimpleController::

GapeController GapeWaveformPalette List of all members.

Public Slots

void setFreqRange (double min, double max, double step)
 Sets the range of the freq slider. More...

virtual void setChecked (bool b)
 Compensates for the fact that trolltech seems to have forgotten a "setChecked" slot on the QCheckBox... More...


Public Methods

 GapeSimpleController (QWidget *parent=NULL, const char *name=0, const QPixmap &icon=0)
 The constructor. More...

 ~GapeSimpleController ()
 The destructor.

virtual QSize sizeHint () const

Public Attributes

QWidget* pic
QLabel* title
QLabel* freqLabel
QLabel* gainLabel
QLabel* muteLabel
QwtSlider* freqSlider
QwtSlider* gainSlider
QLCDNumber* freqLcd
QLCDNumber* gainLcd
QCheckBox* muteBox
QHBox* freqControls
QHBox* gainControls
QHBox* muteControls
QVBoxLayout* columnLayout

Protected Attributes

QFont titleFont
QSize preferredSize

Detailed Description

A general purpose simple controller which can be used to control common paramters such as freq, gain, etc.

This is used to control sinewaves, etc in the demo program included with Gape, which you should check out if you want to use this class.

Author:
Dave Chisholm
Since:
Beta 1.0
Version:
Last Modified Beta 1.0

Definition at line 36 of file gapesimplecontroller.h.


Constructor & Destructor Documentation

GapeSimpleController::GapeSimpleController ( QWidget * parent = NULL,
const char * name = 0,
const QPixmap & icon = 0 )
 

The constructor.

Parameters:
parent   The widget which will contain this GUI element.
name   An (optional) name which will be displayed on the controller.
icon   A small picture to be set in the controller - not yet implemented.

Definition at line 7 of file gapesimplecontroller.cpp.


Member Function Documentation

void GapeSimpleController::setFreqRange ( double min,
double max,
double step ) [inline, slot]
 

Sets the range of the freq slider.

Parameters:
min   minimum freq
max   maximum freq
step   the amount of space between steps on the slider

Definition at line 80 of file gapesimplecontroller.h.

void GapeSimpleController::setChecked ( bool b ) [inline, virtual, slot]
 

Compensates for the fact that trolltech seems to have forgotten a "setChecked" slot on the QCheckBox...

Parameters:
b   whether the mute box should be checked or not

Definition at line 88 of file gapesimplecontroller.h.


The documentation for this class was generated from the following files:
Generated at Thu Jun 21 13:28:52 2001 for GAPE by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001