interfaces Library API Documentation

KMediaPlayer::View Class Reference

View is part of the user interface of a Player. More...

#include <view.h>

Inheritance diagram for KMediaPlayer::View:

QWidget List of all members.

Public Types

enum  Button {
  Play = 1, Stop = 2, Pause = 4, Seeker = 8,
  All = 255
}

Public Slots

void setButtons (int)
bool button (int)
void showButton (int)
void hideButton (int)
void toggleButton (int)

Signals

void buttonsChanged (int)

Public Member Functions

 View (QWidget *parent, const char *name)
int buttons (void)
QWidgetvideoWidget ()

Protected Member Functions

void setVideoWidget (QWidget *videoWidget)

Detailed Description

View is part of the user interface of a Player.

Definition at line 34 of file kmediaplayer/view.h.


Member Enumeration Documentation

enum KMediaPlayer::View::Button
 

The Possible buttons that can appear in the UI.

Enumeration values:
Play  Button that connects to Player::play.
Stop  Button that connects to Player::stop.
Pause  Button that connects to Player::pause.
Seeker  A seeker that interfaces with Player::seek.
All  Show all buttons.

Definition at line 44 of file kmediaplayer/view.h.


Constructor & Destructor Documentation

KMediaPlayer::View::View QWidget parent,
const char *  name
 

Your typical QWidget constructor.


Member Function Documentation

int KMediaPlayer::View::buttons void   ) 
 

Return which buttons are being displayed.

QWidget* KMediaPlayer::View::videoWidget  ) 
 

Return the QWidget in which video is displayed.

May Return 0L if there is none.

void KMediaPlayer::View::setButtons int   )  [slot]
 

Set which buttons to display.

See also:
Button.

bool KMediaPlayer::View::button int   )  [slot]
 

Returns if a particular button is being displayed.

void KMediaPlayer::View::showButton int   )  [slot]
 

Display a particular button.

void KMediaPlayer::View::hideButton int   )  [slot]
 

Stop displaying a particular button.

void KMediaPlayer::View::toggleButton int   )  [slot]
 

Toggle the display of a particular button.

void KMediaPlayer::View::buttonsChanged int   )  [signal]
 

Emitted when the set of displayed buttons changes.

void KMediaPlayer::View::setVideoWidget QWidget videoWidget  )  [protected]
 

The implementing view should set the widget in which the video will be displayed.

KMediaPlayer users may reparent() it to somewhere else, for example.


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for interfaces Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed May 4 07:17:01 2005 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003