Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidgetgui.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidgetgui.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.h b/noncore/multimedia/opieplayer2/playlistwidgetgui.h index 9b5252a..0d8af43 100644 --- a/noncore/multimedia/opieplayer2/playlistwidgetgui.h +++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.h | |||
@@ -29,48 +29,49 @@ | |||
29 | Inc., 59 Temple Place - Suite 330, | 29 | Inc., 59 Temple Place - Suite 330, |
30 | Boston, MA 02111-1307, USA. | 30 | Boston, MA 02111-1307, USA. |
31 | 31 | ||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #ifndef PLAY_LIST_WIDGET_GUI_H | 34 | #ifndef PLAY_LIST_WIDGET_GUI_H |
35 | #define PLAY_LIST_WIDGET_GUI_H | 35 | #define PLAY_LIST_WIDGET_GUI_H |
36 | 36 | ||
37 | #include <qmainwindow.h> | 37 | #include <qmainwindow.h> |
38 | #include <qpe/applnk.h> | 38 | #include <qpe/applnk.h> |
39 | #include <qpe/resource.h> | 39 | #include <qpe/resource.h> |
40 | #include <qpe/qpemenubar.h> | 40 | #include <qpe/qpemenubar.h> |
41 | 41 | ||
42 | #include <qtabwidget.h> | 42 | #include <qtabwidget.h> |
43 | #include <qpe/fileselector.h> | 43 | #include <qpe/fileselector.h> |
44 | #include <qpushbutton.h> | 44 | #include <qpushbutton.h> |
45 | #include <qpopupmenu.h> | 45 | #include <qpopupmenu.h> |
46 | #include <qaction.h> | 46 | #include <qaction.h> |
47 | #include <qslider.h> | 47 | #include <qslider.h> |
48 | #include <qlcdnumber.h> | 48 | #include <qlcdnumber.h> |
49 | 49 | ||
50 | class PlayListWidgetPrivate; | 50 | class PlayListWidgetPrivate; |
51 | class PlayListSelection; | 51 | class PlayListSelection; |
52 | class MediaPlayerState; | 52 | class MediaPlayerState; |
53 | class PlayListFileView; | ||
53 | 54 | ||
54 | class Config; | 55 | class Config; |
55 | class QPEToolBar; | 56 | class QPEToolBar; |
56 | class QListViewItem; | 57 | class QListViewItem; |
57 | class QListView; | 58 | class QListView; |
58 | class QPoint; | 59 | class QPoint; |
59 | class QAction; | 60 | class QAction; |
60 | class QLabel; | 61 | class QLabel; |
61 | 62 | ||
62 | class PlayListWidgetPrivate { | 63 | class PlayListWidgetPrivate { |
63 | public: | 64 | public: |
64 | QToolButton *tbPlay, *tbFull, *tbLoop, *tbShuffle, *tbAddToList, *tbRemoveFromList, *tbMoveUp, *tbMoveDown, *tbRemove; | 65 | QToolButton *tbPlay, *tbFull, *tbLoop, *tbShuffle, *tbAddToList, *tbRemoveFromList, *tbMoveUp, *tbMoveDown, *tbRemove; |
65 | QFrame *playListFrame; | 66 | QFrame *playListFrame; |
66 | PlayListSelection *selectedFiles; | 67 | PlayListSelection *selectedFiles; |
67 | bool setDocumentUsed; | 68 | bool setDocumentUsed; |
68 | }; | 69 | }; |
69 | 70 | ||
70 | 71 | ||
71 | class ToolButton : public QToolButton { | 72 | class ToolButton : public QToolButton { |
72 | public: | 73 | public: |
73 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) | 74 | ToolButton( QWidget *parent, const char *name, const QString& icon, QObject *handler, const QString& slot, bool t = FALSE ) |
74 | : QToolButton( parent, name ) { | 75 | : QToolButton( parent, name ) { |
75 | setTextLabel( name ); | 76 | setTextLabel( name ); |
76 | setPixmap( Resource::loadPixmap( icon ) ); | 77 | setPixmap( Resource::loadPixmap( icon ) ); |
@@ -80,49 +81,50 @@ public: | |||
80 | connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); | 81 | connect( this, t ? SIGNAL( toggled(bool) ) : SIGNAL( clicked() ), handler, slot ); |
81 | QPEMenuToolFocusManager::manager()->addWidget( this ); | 82 | QPEMenuToolFocusManager::manager()->addWidget( this ); |
82 | } | 83 | } |
83 | }; | 84 | }; |
84 | 85 | ||
85 | 86 | ||
86 | class MenuItem : public QAction { | 87 | class MenuItem : public QAction { |
87 | 88 | ||
88 | public: | 89 | public: |
89 | MenuItem( QWidget *parent, const QString& text, QObject *handler, const QString& slot ) | 90 | MenuItem( QWidget *parent, const QString& text, QObject *handler, const QString& slot ) |
90 | : QAction( text, QString::null, 0, 0 ) { | 91 | : QAction( text, QString::null, 0, 0 ) { |
91 | connect( this, SIGNAL( activated() ), handler, slot ); | 92 | connect( this, SIGNAL( activated() ), handler, slot ); |
92 | addTo( parent ); | 93 | addTo( parent ); |
93 | } | 94 | } |
94 | }; | 95 | }; |
95 | 96 | ||
96 | class PlayListWidgetGui : public QMainWindow { | 97 | class PlayListWidgetGui : public QMainWindow { |
97 | Q_OBJECT | 98 | Q_OBJECT |
98 | public: | 99 | public: |
99 | PlayListWidgetGui( MediaPlayerState &_mediaPlayerState, QWidget* parent=0, const char* name=0 ); | 100 | PlayListWidgetGui( MediaPlayerState &_mediaPlayerState, QWidget* parent=0, const char* name=0 ); |
100 | ~PlayListWidgetGui(); | 101 | ~PlayListWidgetGui(); |
101 | 102 | ||
102 | protected: | 103 | protected: |
103 | QTabWidget * tabWidget; | 104 | QTabWidget * tabWidget; |
104 | QListView *audioView, *videoView, *playlistView; | 105 | PlayListFileView *audioView, *videoView; |
106 | QListView *playlistView; | ||
105 | QLabel *libString; | 107 | QLabel *libString; |
106 | QPopupMenu *pmView ; | 108 | QPopupMenu *pmView ; |
107 | QPopupMenu *gammaMenu; | 109 | QPopupMenu *gammaMenu; |
108 | QSlider *gammaSlider; | 110 | QSlider *gammaSlider; |
109 | QLCDNumber *gammaLCD; | 111 | QLCDNumber *gammaLCD; |
110 | bool fromSetDocument; | 112 | bool fromSetDocument; |
111 | bool insanityBool; | 113 | bool insanityBool; |
112 | QString setDocFileRef; | 114 | QString setDocFileRef; |
113 | // retrieve the current playlist entry (media file link) | 115 | // retrieve the current playlist entry (media file link) |
114 | QPushButton *tbDeletePlaylist; | 116 | QPushButton *tbDeletePlaylist; |
115 | int selected; | 117 | int selected; |
116 | QPopupMenu *pmPlayList; | 118 | QPopupMenu *pmPlayList; |
117 | FileSelector* playLists; | 119 | FileSelector* playLists; |
118 | QPopupMenu *skinsMenu; | 120 | QPopupMenu *skinsMenu; |
119 | PlayListWidgetPrivate *d; // Private implementation data | 121 | PlayListWidgetPrivate *d; // Private implementation data |
120 | QVBox *vbox1; | 122 | QVBox *vbox1; |
121 | QVBox *vbox5; | 123 | QVBox *vbox5; |
122 | QPEToolBar *bar; | 124 | QPEToolBar *bar; |
123 | void setActiveWindow(); // need to handle this to show the right view | 125 | void setActiveWindow(); // need to handle this to show the right view |
124 | void setView( char ); | 126 | void setView( char ); |
125 | 127 | ||
126 | MediaPlayerState &mediaPlayerState; | 128 | MediaPlayerState &mediaPlayerState; |
127 | }; | 129 | }; |
128 | 130 | ||