class pDisplay : public QFrame

Special QFrame for displaying player info.

Inheritance:

pDisplay


Public Methods

void changeDTextFont( QFont& f )
void changePalette( QPalette& p )
void changeTDMFont( QFont& f )
void modePressed(QPoint)
[signal]
void modeReleased()
[signal]
inline void moveAll( int x, int y )
inline void moveAll( QPoint pos )
void moving(QPoint)
[signal]
void newPlayMode(int)
[public slot]
void newTime(int)
[public slot]
void newTimeMode(int)
[public slot]
void newTitleName(char *)
[public slot]
void newTrack(int)
[public slot]
void newTrackName(char *)
[public slot]
void newVolume(float)
[public slot]
pDisplay( QWidget* parent, QColor& dispfgcol, QFont& ifn, float scale=1.0, bool compact=false )
void pressed(QPoint)
[signal]
void released()
[signal]
void timePressed(QPoint)
[signal]
void timeReleased()
[signal]
void titlePressed(QPoint)
[signal]
void titleReleased()
[signal]
void tracknamePressed(QPoint)
[signal]
void tracknameReleased()
[signal]
void trackPressed(QPoint)
[signal]
void trackReleased()
[signal]
inline QPoint xEndPt()
inline QPoint yEndPt()
~pDisplay( void )

Documentation

The pDisplay object is a colection of Qt-widgets for displaying all sorts of information. The widgets themselves are all private members of the class, but we'll describe them here.

There are two QeLCDNumbers, one for the track number and another for the time display. Associated with these are a number of QeLabels for displaying the play state, the play mode, and the time display mode. There are also two QeLabels for the program title and the track label. Lastly, a QMeter displays the volume level.

Both the time and track QeLCDNumbers have their own press- and release-signals in this class. The QeLabels all emit generic press- and release-signals for the time being.

  
  ----------------------------------------------------------
  ----------------------------------------------------------
  

pDisplay( QWidget* parent, QColor& dispfgcol, QFont& ifn, float scale=1.0, bool compact=false )
Class Constructor.
Parameters:
parent - The parent object of this widget.
dispfgcol - the default foreground color for the chil widgets of the pDisplay.
ifn - The font to use for the title and track labels
scale - The scale factor for the mode icons.
compact - Flag to indicate label styles. compact=true tells pDisplay to use shorten the size of the track and title labels.

~pDisplay( void )
Class Destructor

inline void moveAll( int x, int y )
Moves the object, performing some internal bookkeeping at the same time.

inline void moveAll( QPoint pos )
Overloaded version.

inline QPoint xEndPt()
Returns:
The point in the x-direction where this widget ends.

inline QPoint yEndPt()
Returns:
The point in the y-direction where this widget ends.

void changePalette( QPalette& p )
Changes the palette of this object to p.

void changeDTextFont( QFont& f )
Change the font of the title and track labels to f.

void changeTDMFont( QFont& f )
Change the font of the time mode label to f. This could have unexpected effects; you're better off using the default.

void newTime(int)
Public Slot

Displays the new time specified in the argument. The time should be in seconds.

void newTrack(int)
Public Slot

Displays the new track number specified in the argument.

void newTrackName(char *)
Public Slot

Displays the new track label specified as an argument.

void newTitleName(char *)
Public Slot

Displays the new title label specified as an argument.

void newPlayMode(int)
Public Slot

Changes the play mode and play state icons, depending on the value of the argument. The argument should be a PlayMode enum OR-ed with a PlayState enum.

void newTimeMode(int)
Public Slot

Changes the time mode label, depending on the value of the argument. The argument should be a TimeMode enum.

void newVolume(float)
Public Slot

Changes the volume meter to display the new volume specified as an argument to this slot.

void timePressed(QPoint)
Signal

Emitted when a mouse press-event occurs on the time LCD. Contains the current mouse position, in global screen coordinates.

See Also:
timeReleased, pressed

void timeReleased()
Signal

Emitted when a mouse release-event occurs on the time LCD.

See Also:
timePressed, released

void trackPressed(QPoint)
Signal

Emitted when a mouse press-event occurs on the track LCD. Contains the current mouse position, in global screen coordinates.

See Also:
trackReleased, pressed

void trackReleased()
Signal

Emitted when a mouse release-event occurs on the track LCD.

See Also:
trackPressed, released

void tracknamePressed(QPoint)
Signal

Emitted when a mouse press-event occurs on the box displaying the track name. Contains the current mouse position, in global screen coordinates.

See Also:
tracknameReleased, pressed

void tracknameReleased()
Signal

Emitted when a mouse release-event occurs on the box displaying the track name.

See Also:
tracknamePressed, released

void titlePressed(QPoint)
Signal

Emitted when a mouse press-event occurs on the box displaying the title. Contains the current mouse position, in global screen coordinates.

See Also:
titleReleased, pressed

void titleReleased()
Signal

Emitted when a mouse release-event occurs on the box displaying the title.

See Also:
titlePressed, released

void modePressed(QPoint)
Signal

Emitted when a mouse press-event occurs on the mode light. Contains the current mouse position, in global screen coordinates.

See Also:
modeReleased, pressed

void modeReleased()
Signal

Emitted when a mouse release-event occurs on the mode light.

See Also:
modePressed, released

void pressed(QPoint)
Signal

Emitted when a mouse press-event occurs anywhere else on the panel outside of one of the widgets with their own press-signal. Contains the current mouse position, in global screen coordinates.

See Also:
timePressed, trackPressed, tracknamePressed, titlePressed, modePressed

void released()
Signal

Emitted when a mouse release-event occurs anywhere else on the panel outside of one of the widgets with their own release-signal.

See Also:
timeReleased, trackReleased, tracknameReleased, titleReleased, modeReleased

void moving(QPoint)
Signal

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.


This class has no child classes.
See Also:
QeLCDNumber, QeLabel, QMeter, PixData

alphabetic index hierarchy of classes


Copyright 1997 by John Weiss [John.Weiss@colorado.edu] "generated by doc++"?! More like mangled ...

generated by doc++