From e2de64d6f1beb9e492daf5b886e19933c1fa41dd Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- noatun/modules/kaiman/userinterface.h | 85 +++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 noatun/modules/kaiman/userinterface.h (limited to 'noatun/modules/kaiman/userinterface.h') diff --git a/noatun/modules/kaiman/userinterface.h b/noatun/modules/kaiman/userinterface.h new file mode 100644 index 00000000..2fb46184 --- /dev/null +++ b/noatun/modules/kaiman/userinterface.h @@ -0,0 +1,85 @@ +/* + Copyright (c) 2000 Stefan Schimanski <1Stein@gmx.de> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + aint with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ + +#ifndef USERINTERFACE_H +#define USERINTERFACE_H + +#include +#include +#include +#include "style.h" + + +class Player; + +/** + * @short Main window class + * @author Stefan Schimanski <1Stein@gmx.de> + * @version 0.1 + */ +class Kaiman : public KMainWindow, public UserInterface +{ +Q_OBJECT + public: + Kaiman(); + virtual ~Kaiman(); + + bool changeStyle( const QString &style, const QString &desc=QString::null ); + public slots: + void dropEvent( QDropEvent * ); + void doDropEvent( QDropEvent * ); + void dragEnterEvent( QDragEnterEvent * ); + void closeEvent(QCloseEvent*); + + protected slots: + void seekStart( int ); + void seekDrag( int ); + void seekStop( int ); + void seek( int ); + void toggleSkin(); + + void setVolume( int vol ); + void volumeUp(); + void volumeDown(); + + void execMixer(); + + + void timeout(); + void loopTypeChange( int t ); + void newSongLen( int mins, int sec ); + void newSong(); + void updateMode(); + void toggleLoop(); + void toggleShuffle(); + + public: + static const char DEFAULT_SKIN[]; + static Kaiman *kaiman; + + protected: + bool loadStyle( const QString &style, const QString &desc ); + + + bool _seeking; + bool _altSkin; + KaimanStyle *_style; +}; + + +#endif -- cgit v1.2.1