summaryrefslogtreecommitdiffstats
path: root/noatun/modules/simple/userinterface.h
blob: 17f5b3eac2300223d3de4af11c6e4f9a60ae3920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
   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 <tdeaction.h>
#include <tdemainwindow.h>
#include <kmedia2.h>
#include <tqevent.h>
#include <tqlabel.h>
#include <tqpopupmenu.h>
#include <tqpushbutton.h>
#include <tqvbox.h>
#include "propertiesdialog.h"


class SimpleUI : public TDEMainWindow, public UserInterface
{
    TQ_OBJECT
  

public:
    SimpleUI();
    ~SimpleUI();

protected:
    void setupActions();
    void setupCentralWidget();

    virtual void closeEvent( TQCloseEvent * );
    virtual void dragEnterEvent( TQDragEnterEvent *event );
    virtual void dropEvent( TQDropEvent *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 TQPoint &pos );

private slots:
    void slotSliderMoved( int sec );
    void slotVolumeSliderMoved( int volume );
    void slotVolumeFrame();
    void slotVolumeChanged( int volume );
    void showMenubar();
    void showStatusbar();

private:
    PropertiesDialog *propertiesDialog;
    TQPopupMenu *contextMenu;
    TQPushButton *stopButton;
    TQPushButton *playButton;
    TQPushButton *volumeButton;
    TQVBox *volumeFrame;
    TQLabel *volumeLabel;
    TQLabel *positionLabel;
    VideoFrame *video;
    L33tSlider *volumeSlider;
    L33tSlider *slider;
    int extra_width;
    int extra_height;
    TDEToggleAction *menubarAction;
    TDEToggleAction *statusbarAction;
};

#endif