MainWindow

The main interface to XCd. More...

Publicly inherits QWidget.

Public Methods

MainWindow( QWidget* parent=???, const char* name=??? );

Public Slots

voidchangeDiscArtist( const char* artist );
voidchangeDiscTitle( const char* title );
voidchangeIconMode( );
voidchangeProgram( int length, int* tracks );
voidchangeRepeat( );
voidchangeShuffle( );
voidchangeStatus( CdromStatus status );
voidchangeStep( int step );
voidchangeTime( int minute, int second );
voidchangeTimeMode( );
voidchangeTrack( int track, const char* name );
voidchangeTrackTitle( int track, const char* title );
voidchangeVolume( int volume );
voidnewDisc( CompactDisc* cd );
voidnextIconMode( );
voidnextTimeMode( );
voidnoDisc( );

Protected Methods

virtual voidmousePressEvent( QMouseEvent* e );
virtual voidtimerEvent( QTimerEvent* e );

Private Methods

voidredrawIcon( );

Private Slots

voidprocCommandsMenu( int id );
voidprocIconMenu( int id );
voidprocMainMenu( int id );
voidprocRepeat( bool b );
voidprocShuffle( bool b );
voidprocTimeMenu( int id );
voidprocTrackMenu( int id );

Signals

voiddecrVolume( );
voideject( );
voidincrVolume( );
voidnextTrack( );
voidpause( );
voidplay( );
voidplayTrack( int track );
voidpreviousTrack( );
voidstop( );

Private Data Members

CompactDisc*_cd;
QString_discArtist;
QString_discTitle;
QBitmap_icon;
QPopupMenu*_mainMenu;
QPushButton*_repeat;
QPushButton*_shuffle;
CdromStatus_status;
QString_step;
MyLabel*_stepLabel;
MyLCDNumber*_stepValue;
QString_time;
MyLabel*_timeLabel;
MyLCDNumber*_timeValue;
QString_track;
MyLabel*_trackLabel;
QPopupMenu*_trackMenu;
MyLabel*_trackName;
int_trackNumber;
QString_trackTitle;
MyLCDNumber*_trackValue;
QString_volume;
MyLabel*_volumeLabel;
MyLCDNumber*_volumeValue;

Detailed Documentation

The main interface to XCd.

This is the only window that is guaranteed to be onscreen at all times. It allows full manipulation of the CDDrive, and provides access to the other windows.

Public Methods Documentation

MainWindow ( QWidget* parent=???, const char* name=??? );

Create a MainWindow just like any other QWidget.

Public Slots Documentation

void changeDiscArtist ( const char* artist );

Change the discs artist.

void changeDiscTitle ( const char* title );

Change the discs title.

void changeIconMode ( );

Change the icon mode pref.

void changeStep ( int step );

Update the Step display.

void changeTime ( int minute, int second );

Update the Time display.

void changeTimeMode ( );

Toggle the time display mode.

void changeTrack ( int track, const char* name );

Update the Track display.

void changeTrackTitle ( int track, const char* title );

Change the tracks title.

void changeVolume ( int volume );

Update the Volume display.

void newDisc ( CompactDisc* cd );

Configure the MainWindow for the new disc.

void noDisc ( );

Configure the MainWindow for no disc in the CDROM drive.

Protected Methods Documentation

virtual void mousePressEvent ( QMouseEvent* e );

Use the mouse to popup the main menu and the track list.

Signals Documentation

void decrVolume ( );

Emitted when the user presses decrVolume.

void eject ( );

Emitted when the user presses eject.

void incrVolume ( );

Emitted when the user presses incrVolume.

void nextTrack ( );

Emitted when the user presses nextTrack.

void pause ( );

Emitted when the user presses pause.

void play ( );

Emitted when the user presses play.

void playTrack ( int track );

Emitted when the user selects a track.

void previousTrack ( );

Emitted when the user presses previousTrack.

void stop ( );

Emitted when the user presses stop.


Return to Index.
Automatically generated on Dec 29 18:17