You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdemultimedia/noatun/modules/kaiman/userinterface.h

87 lines
2.0 KiB

/*
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef USERINTERFACE_H
#define USERINTERFACE_H
#include <noatun/plugin.h>
#include <noatun/app.h>
#include <kmainwindow.h>
#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
TQ_OBJECT
public:
Kaiman();
virtual ~Kaiman();
bool changeStyle( const TQString &style, const TQString &desc=TQString() );
public slots:
void dropEvent( TQDropEvent * );
void doDropEvent( TQDropEvent * );
void dragEnterEvent( TQDragEnterEvent * );
void closeEvent(TQCloseEvent*);
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 TQString &style, const TQString &desc );
bool _seeking;
bool _altSkin;
KaimanStyle *_style;
};
#endif