Control panel object
This is a QWidget containing buttons that control program operations. There are the obvious buttons: " power" to exit the program, and "iconify" to iconify it. There are some not-so-obvious ones, too.There is a button for ejecting a CD or loading things. It can have either an "eject" icon on it, or a folder. That way, the button can truly do double-duty and not confuse the end-user.
There is a "lock" check button, and a lock-light. When the lock button is checked, the lock-light changes color to indicate that the program is now "locked". [What it means for the program to be "locked" really depends on implementation external to this widget, but it should disable the power button and the load/eject button at the very least.]
There is also a check button for toggling the presence of the main window's title bar, permitting the user to change the look and feel of the main window on-the-fly.
---------------------------------------------------------- ----------------------------------------------------------
Emitted when the lockb is checked.
Emitted when the titleb is checked.
Emitted when a mouse press-event occurs anywhere else on the
panel outside of one of the widgets. Contains the current
mouse position, in global screen coordinates.
Emitted when a mouse move-event occurs anywhere else on the
panel outside of one of the widgets. Contains the current
mouse position, in global screen coordinates.
bool isLocked
PixButton* iconifyb
PixButton* loadejectb
PixButton* powerb
QCheckBox* lockb
QCheckBox* titleb
pControl( QWidget *parent, float scale=1.0, bool useEject=true )
scale - Determines the size of the \Re{PixButton}s in
this object. It's a multiplicative factor, so scale=2
means double the default size, and so on.
useEject - When true, tells pControl that it should
use an "eject" icon on the load/eject button. When false,
pControl will use a folder icon.
~pControl( void )
inline void moveAll( int x, int y )
inline void moveAll( QPoint pos )
inline QPoint xEndPt(void)
inline QPoint yEndPt(void)
inline void setLockedColor( QColor& c )
inline void setUnlockedColor( QColor& c )
void changePalette( QPalette& p )
void changeFont( QFont& f )
void lockThis(bool)
void titlebarOn(bool)
void pressed(QPoint)
void moving(QPoint)
Copyright 1997 by John Weiss [John.Weiss@colorado.edu]
"generated by doc++"?! More like mangled generated by doc++