Main Page   Class Hierarchy   Compound List   File List   Compound Members  

QtVisionWidget Class Reference

A widget that displays a television picture. More...

#include <qtvisionwidget.h>

Inheritance diagram for QtVisionWidget::

QtVisionViewIface List of all members.

Public Types

enum  ViewMode {
  ViewNormal = 0, ViewFullScreen = 1, ViewTopLevel = 2, ViewMaxIterable = ViewTopLevel,
  ViewNone = 128, ViewVideoDesktop = 129
}

Public Slots

void setDriver (QtVision *qtv)
void resetViewMode ()
void nextViewMode ()
void toggleFullScreen ()
void setViewMode (int mode)
void setShowNone (bool active)
void setShowNormal (bool active)
void setShowTopLevel (bool active)
void setShowFullScreen (bool active)
void setShowVideoDesktop (bool active)
void stayOnTopCfgChanged (bool)
void bringToFront ()

Signals

void viewModeChanged (int mode)
void showNone (bool enabled)
void showNormal (bool enabled)
void showTopLevel (bool enabled)
void showFullScreen (bool enabled)
void showVideoDesktop (bool enabled)
void floatingAboutToChange (bool oldval)
void floatingChanged (bool newval)
void frameCloseEvent ()

Public Methods

 QtVisionWidget (QWidget *parent=0, const char *name=0, int wflags=0)
 QtVisionWidget (QtVision *qtv, QWidget *parent=0, const char *name=0, int wflags=0)
virtual ~QtVisionWidget ()
QtVisiondriver () const
QtVisionViewview () const
DCOPRef driverIface () const
ChannelStorechannels () const
ViewManagerviews () const
void addContextMenu (QPopupMenu *pop)
int viewMode () const
bool isShowNormal () const
bool isShowTopLevel () const
bool isShowFullScreen () const
bool isShowVideoDesktop () const
bool isShowNone () const
bool isFloating () const

Protected Slots

void setFloating (bool enable)

Protected Methods

void attachScreen ()
void detachScreen ()

Detailed Description

A widget that displays a television picture.

Author:
Richard Moore, rich@kde.org


Member Enumeration Documentation

enum QtVisionWidget::ViewMode
 

Identifiers for the various view modes.


Constructor & Destructor Documentation

QtVisionWidget::QtVisionWidget QWidget * parent = 0,
const char * name = 0,
int wflags = 0
 

Creates a TV widget.

QtVisionWidget::QtVisionWidget QtVision * qtv,
QWidget * parent = 0,
const char * name = 0,
int wflags = 0
 

Creates a TV widget with a specified driver.

virtual QtVisionWidget::~QtVisionWidget [virtual]
 

Cleans up.


Member Function Documentation

QtVision* QtVisionWidget::driver const [inline]
 

Returns the QtVision object driving the TV picture.

QtVisionView* QtVisionWidget::view const [inline]
 

Returns the internal screen widget.

DCOPRef QtVisionWidget::driverIface const [virtual]
 

Returns a DCOP reference to the driver object.

Reimplemented from QtVisionViewIface.

ChannelStore* QtVisionWidget::channels const [inline]
 

Returns the current channel store.

ViewManager* QtVisionWidget::views const [inline]
 

Returns the current view manager.

void QtVisionWidget::addContextMenu QPopupMenu * pop
 

Adds the specified context menu to the screen widget.

See also:
KContextMenuManager

int QtVisionWidget::viewMode const [inline, virtual]
 

Returns the current view mode.

Reimplemented from QtVisionViewIface.

bool QtVisionWidget::isShowNormal const [inline, virtual]
 

Returns true if the view mode is ViewNormal.

Reimplemented from QtVisionViewIface.

bool QtVisionWidget::isShowTopLevel const [inline, virtual]
 

Returns true if the view mode is ViewTopLevel.

Reimplemented from QtVisionViewIface.

bool QtVisionWidget::isShowFullScreen const [inline, virtual]
 

Returns true if the view mode is ViewFullScreen.

Reimplemented from QtVisionViewIface.

bool QtVisionWidget::isShowVideoDesktop const [inline, virtual]
 

Returns true if the view mode is ViewVideoDesktop.

Reimplemented from QtVisionViewIface.

bool QtVisionWidget::isShowNone const [inline, virtual]
 

Returns true if the view mode is ViewNone.

Reimplemented from QtVisionViewIface.

bool QtVisionWidget::isFloating const [inline, virtual]
 

Returns true if the screen widget has been detached from its parent as a floating window.

Reimplemented from QtVisionViewIface.

void QtVisionWidget::setDriver QtVision * qtv [slot]
 

Sets the QtVision object that drives the TV picture.

void QtVisionWidget::resetViewMode [virtual, slot]
 

Forces a return to normal mode.

Reimplemented from QtVisionViewIface.

void QtVisionWidget::nextViewMode [virtual, slot]
 

Switches to the next view mode.

Reimplemented from QtVisionViewIface.

void QtVisionWidget::toggleFullScreen [slot]
 

Toggle full screen.

Change to fullscreen, and store the old mode. If already in fullscreen change back to Normal mode, or to the stored old mode.

void QtVisionWidget::setViewMode int mode [virtual, slot]
 

Activates the specified view mode.

Reimplemented from QtVisionViewIface.

void QtVisionWidget::setShowNone bool active [virtual, slot]
 

If active is true, this method enables the view mode 'None'.

This is a special mode that disables the video feed allowing another application (eg. the QtVision screensaver to take over the video source.

Reimplemented from QtVisionViewIface.

void QtVisionWidget::stayOnTopCfgChanged bool [slot]
 

Changes stay on top of frame.

void QtVisionWidget::bringToFront [slot]
 

Brings window to front.


The documentation for this class was generated from the following file:
Generated at Thu Jan 30 02:56:03 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001