~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to noatun/noatun/modules/kaiman/userinterface.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   Copyright (c) 2000 Stefan Schimanski <1Stein@gmx.de>                 
 
3
 
 
4
   This program is free software; you can redistribute it and/or modify
 
5
   it under the terms of the GNU General Public License as published by
 
6
   the Free Software Foundation; either version 2, or (at your option)
 
7
   any later version.
 
8
 
 
9
   This program is distributed in the hope that it will be useful,
 
10
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
   GNU General Public License for more details.
 
13
 
 
14
   You should have received a copy of the GNU General Public License
 
15
   aint with this program; if not, write to the Free Software
 
16
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
*/
 
18
 
 
19
#ifndef USERINTERFACE_H
 
20
#define USERINTERFACE_H
 
21
 
 
22
#include <plugin.h>
 
23
#include <noatunapp.h>
 
24
#include <kmainwindow.h>
 
25
#include "style.h"
 
26
 
 
27
 
 
28
class Player;
 
29
 
 
30
/**
 
31
 * @short Main window class
 
32
 * @author Stefan Schimanski <1Stein@gmx.de>
 
33
 * @version 0.1
 
34
 */
 
35
class Kaiman : public KMainWindow, public UserInterface
 
36
{
 
37
Q_OBJECT
 
38
 public:
 
39
    Kaiman();
 
40
    virtual ~Kaiman();
 
41
        
 
42
    bool changeStyle( const QString &style, const QString &desc=QString::null );    
 
43
 public slots:
 
44
    void dropEvent( QDropEvent * );
 
45
    void doDropEvent( QDropEvent * );
 
46
    void dragEnterEvent( QDragEnterEvent * );
 
47
    void closeEvent(QCloseEvent*);
 
48
 
 
49
 protected slots:
 
50
    void seekStart( int );
 
51
    void seekDrag( int );
 
52
    void seekStop( int );
 
53
    void seek( int );
 
54
    void toggleSkin();
 
55
 
 
56
    void setVolume( int vol );
 
57
    void volumeUp();
 
58
    void volumeDown();
 
59
 
 
60
    void execMixer();
 
61
 
 
62
 
 
63
    void timeout();
 
64
    void loopTypeChange( int t );
 
65
    void newSongLen( int mins, int sec );
 
66
    void newSong();
 
67
    void updateMode();
 
68
 
 
69
 public:
 
70
    static const char DEFAULT_SKIN[];
 
71
    static Kaiman *kaiman;
 
72
 
 
73
 protected:
 
74
    bool loadStyle( const QString &style, const QString &desc );
 
75
    
 
76
 
 
77
    bool _seeking;
 
78
    bool _altSkin;
 
79
    KaimanStyle *_style;
 
80
};
 
81
 
 
82
 
 
83
#endif