summaryrefslogtreecommitdiffstats
path: root/noatun/modules/simple/userinterface.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commite2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch)
tree9047cf9e6b5c43878d5bf82660adae77ceee097a /noatun/modules/simple/userinterface.h
downloadtdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz
tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/simple/userinterface.h')
-rw-r--r--noatun/modules/simple/userinterface.h80
1 files changed, 80 insertions, 0 deletions
diff --git a/noatun/modules/simple/userinterface.h b/noatun/modules/simple/userinterface.h
new file mode 100644
index 00000000..c545fd2c
--- /dev/null
+++ b/noatun/modules/simple/userinterface.h
@@ -0,0 +1,80 @@
+/*
+ This file is part of KDE/aRts (Noatun) - xine integration
+ Copyright (C) 2002 Ewald Snel <ewald@rambo.its.tudelft.nl>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+*/
+
+#ifndef __USERINTERFACE_H
+#define __USERINTERFACE_H
+
+#include <noatun/controls.h>
+#include <noatun/plugin.h>
+#include <noatun/video.h>
+#include <kaction.h>
+#include <kmainwindow.h>
+#include <kmedia2.h>
+#include <qevent.h>
+#include <qlabel.h>
+#include <qpopupmenu.h>
+#include <qpushbutton.h>
+#include <qvbox.h>
+#include "propertiesdialog.h"
+
+
+class SimpleUI : public KMainWindow, public UserInterface
+{
+ Q_OBJECT
+
+public:
+ SimpleUI();
+ ~SimpleUI();
+
+protected:
+ void setupActions();
+ void setupCentralWidget();
+
+ virtual void closeEvent( QCloseEvent * );
+ virtual void dragEnterEvent( QDragEnterEvent *event );
+ virtual void dropEvent( QDropEvent *event );
+
+public slots:
+ void slotAdaptSize( int width, int height );
+ void slotPlaying();
+ void slotStopped();
+ void slotPaused();
+ void slotTimeout();
+ void slotSkipTo( int sec );
+ void slotChanged();
+ void slotContextMenu( const QPoint &pos );
+
+private slots:
+ void slotSliderMoved( int sec );
+ void slotVolumeSliderMoved( int volume );
+ void slotVolumeFrame();
+ void slotVolumeChanged( int volume );
+ void showMenubar();
+ void showStatusbar();
+
+private:
+ PropertiesDialog *propertiesDialog;
+ QPopupMenu *contextMenu;
+ QPushButton *stopButton;
+ QPushButton *playButton;
+ QPushButton *volumeButton;
+ QVBox *volumeFrame;
+ QLabel *volumeLabel;
+ QLabel *positionLabel;
+ VideoFrame *video;
+ L33tSlider *volumeSlider;
+ L33tSlider *slider;
+ int extra_width;
+ int extra_height;
+ KToggleAction *menubarAction;
+ KToggleAction *statusbarAction;
+};
+
+#endif