blob: 0b44d0ccbf51d0b1ffc80f2243aad882bce4d9aa (
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
|
// (c) 2004 Max Howell ([email protected])
// See COPYING file for licensing information
#ifndef CODEINEMAINWINDOW_H
#define CODEINEMAINWINDOW_H
#include "../codeine.h"
#include <tdemainwindow.h>
class KURL;
class TQLabel;
class TQPopupMenu;
class TQSlider;
namespace Codeine
{
class MainWindow : public TDEMainWindow
{
Q_OBJECT
MainWindow();
~MainWindow();
friend int ::main( int, char** );
enum { SubtitleChannelsMenuItemId = 2000, AudioChannelsMenuItemId, AspectRatioMenuItemId };
public slots:
void play();
void playMedia( bool show_welcome_dialog = false );
void configure();
void streamInformation();
void captureFrame();
private slots:
void engineMessage( const TQString& );
void engineStateChanged( Engine::State );
void init();
void showTime( int = -1 );
void setChannels( const TQStringList& );
void aboutToShowMenu();
void fullScreenToggled( bool );
private:
void setupActions();
bool load( const KURL& );
bool open( const KURL& );
TQPopupMenu *menu( const char *name );
virtual void timerEvent( TQTimerEvent* );
virtual void dragEnterEvent( TQDragEnterEvent* );
virtual void dropEvent( TQDropEvent* );
virtual void keyPressEvent( TQKeyEvent* );
virtual void saveProperties( TDEConfig* );
virtual void readProperties( TDEConfig* );
virtual bool queryExit();
TQSlider *m_positionSlider;
TQLabel *m_timeLabel;
TQLabel *m_titleLabel;
TQWidget *m_analyzer;
//undefined
MainWindow( const MainWindow& );
MainWindow &operator=( const MainWindow& );
};
}
#endif
|