• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • arts
 

arts

kvideowidget.h

00001 /*
00002    This file is part of KDE/aRts (Noatun) - xine integration
00003    Copyright (C) 2002 Ewald Snel <ewald@rambo.its.tudelft.nl>
00004    Copyright (C) 2002 Neil Stevens <neil@qualityassistant.com>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Lesser General Public
00008    License version 2 as published by the Free Software Foundation.
00009 */
00010 
00011 #ifndef ARTSKDE_KVIDEOWIDGET_H
00012 #define ARTSKDE_KVIDEOWIDGET_H
00013 
00014 #include <tqevent.h>
00015 #include <tqimage.h>
00016 #include <tqwidget.h>
00017 #include <kmedia2.h>
00018 #include <kxmlguiclient.h>
00019 
00020 
00021 class KDE_ARTS_EXPORT KVideoWidget : public TQWidget, virtual public KXMLGUIClient
00022 {
00023 Q_OBJECT
00024 
00025 public:
00026     KVideoWidget( KXMLGUIClient *clientParent, TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
00027     KVideoWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
00028     virtual ~KVideoWidget();
00029 
00030     void embed( Arts::VideoPlayObject vpo );
00031     static TQImage snapshot( Arts::VideoPlayObject vpo );
00032 
00033     bool isEmbedded();
00034     bool isFullscreen();
00035     bool isHalfSize();
00036     bool isNormalSize();
00037     bool isDoubleSize();
00038 
00039     TQSize sizeHint() const;
00040 
00041     virtual int heightForWidth ( int w ) const;
00042 
00043 protected:
00044     virtual void mousePressEvent( TQMouseEvent *event );
00045     virtual void mouseDoubleClickEvent( TQMouseEvent *event);
00046     virtual void resizeEvent( TQResizeEvent *event );
00047     virtual bool x11Event( XEvent *event );
00048 
00049 public slots:
00050     void setFullscreen();
00051     void setWindowed();
00052     void setHalfSize();
00053     void setNormalSize();
00054     void setDoubleSize();
00055 
00056     void resizeNotify( int width, int height );
00057 
00058 protected slots:
00059     void fullscreenActivated();
00060     void halfSizeActivated();
00061     void normalSizeActivated();
00062     void doubleSizeActivated();
00063 
00064 signals:
00065     void adaptSize( int width, int height );
00066     void mouseButtonPressed( int type, const TQPoint &, int state );
00067     void mouseButtonDoubleClick( const TQPoint &, int state );
00072     void rightButtonPressed( const TQPoint & );
00073 
00074 private:
00075     void init(void);
00076     TQWidget *fullscreenWidget;
00077     int videoWidth;
00078     int videoHeight;
00079     Arts::VideoPlayObject poVideo;
00080 };
00081 
00082 #endif

arts

Skip menu "arts"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

arts

Skip menu "arts"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for arts by doxygen 1.6.3
This website is maintained by Timothy Pearson.