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

arts

  • arts
  • kde
kvideowidget.h
1/*
2 This file is part of KDE/aRts (Noatun) - xine integration
3 Copyright (C) 2002 Ewald Snel <ewald@rambo.its.tudelft.nl>
4 Copyright (C) 2002 Neil Stevens <neil@qualityassistant.com>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License version 2 as published by the Free Software Foundation.
9*/
10
11#ifndef ARTSKDE_KVIDEOWIDGET_H
12#define ARTSKDE_KVIDEOWIDGET_H
13
14#include <tqevent.h>
15#include <tqimage.h>
16#include <tqwidget.h>
17#include <kmedia2.h>
18#include <kxmlguiclient.h>
19
20
21class KDE_ARTS_EXPORT KVideoWidget : public TQWidget, virtual public KXMLGUIClient
22{
23TQ_OBJECT
24
25public:
26 KVideoWidget( KXMLGUIClient *clientParent, TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
27 KVideoWidget( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
28 virtual ~KVideoWidget();
29
30 void embed( Arts::VideoPlayObject vpo );
31 static TQImage snapshot( Arts::VideoPlayObject vpo );
32
33 bool isEmbedded();
34 bool isFullscreen();
35 bool isHalfSize();
36 bool isNormalSize();
37 bool isDoubleSize();
38
39 TQSize sizeHint() const;
40
41 virtual int heightForWidth ( int w ) const;
42
43protected:
44 virtual void mousePressEvent( TQMouseEvent *event );
45 virtual void mouseDoubleClickEvent( TQMouseEvent *event);
46 virtual void resizeEvent( TQResizeEvent *event );
47 virtual bool x11Event( XEvent *event );
48
49public slots:
50 void setFullscreen();
51 void setWindowed();
52 void setHalfSize();
53 void setNormalSize();
54 void setDoubleSize();
55
56 void resizeNotify( int width, int height );
57
58protected slots:
59 void fullscreenActivated();
60 void halfSizeActivated();
61 void normalSizeActivated();
62 void doubleSizeActivated();
63
64signals:
65 void adaptSize( int width, int height );
66 void mouseButtonPressed( int type, const TQPoint &, int state );
67 void mouseButtonDoubleClick( const TQPoint &, int state );
72 void rightButtonPressed( const TQPoint & );
73
74private:
75 void init(void);
76 TQWidget *fullscreenWidget;
77 int videoWidth;
78 int videoHeight;
79 Arts::VideoPlayObject poVideo;
80};
81
82#endif
KXMLGUIClient

arts

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

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.9.4
This website is maintained by Timothy Pearson.