Diffstat (limited to 'noncore/multimedia/opieplayer3/mwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer3/mwindow.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer3/mwindow.h b/noncore/multimedia/opieplayer3/mwindow.h index 28f820f..10c7a29 100644 --- a/noncore/multimedia/opieplayer3/mwindow.h +++ b/noncore/multimedia/opieplayer3/mwindow.h | |||
@@ -55,36 +55,42 @@ class PlaylistView; | |||
55 | class QToolBar; | 55 | class QToolBar; |
56 | class QPopupMenu; | 56 | class QPopupMenu; |
57 | class QMenuBar; | 57 | class QMenuBar; |
58 | class AudioWidget; | 58 | class AudioWidget; |
59 | class VideoWidget; | 59 | class VideoWidget; |
60 | class PlaylistItem; | 60 | class PlaylistItem; |
61 | class QSlider; | ||
61 | 62 | ||
62 | class PMainWindow : public QMainWindow { | 63 | class PMainWindow : public QMainWindow { |
63 | Q_OBJECT | 64 | Q_OBJECT |
64 | public: | 65 | public: |
65 | static QString appName() { return QString::fromLatin1("opie-mediaplayer3" ); } | 66 | static QString appName() { return QString::fromLatin1("opie-mediaplayer3" ); } |
66 | PMainWindow(QWidget*, const char*, WFlags ); | 67 | PMainWindow(QWidget*, const char*, WFlags ); |
67 | virtual ~PMainWindow(); | 68 | virtual ~PMainWindow(); |
68 | 69 | ||
69 | public slots: | 70 | public slots: |
70 | virtual void slotVideoclicked(); | 71 | virtual void slotVideoclicked(); |
71 | protected: | 72 | protected: |
73 | |||
74 | /* GUI parts */ | ||
72 | static const int stack_list = 0; | 75 | static const int stack_list = 0; |
73 | static const int stack_file = 1; | 76 | static const int stack_file = 1; |
74 | static const int stack_audio = 2; | 77 | static const int stack_audio = 2; |
75 | static const int stack_video = 3; | 78 | static const int stack_video = 3; |
76 | Opie::Ui::OWidgetStack *m_stack; | 79 | Opie::Ui::OWidgetStack *m_stack; |
77 | Opie::Ui::OFileSelector*m_sfl; | 80 | Opie::Ui::OFileSelector*m_sfl; |
78 | PlaylistView*m_playList; | 81 | PlaylistView*m_playList; |
79 | AudioWidget*m_AudioPlayer; | 82 | AudioWidget*m_AudioPlayer; |
80 | VideoWidget*m_VideoPlayer; | 83 | VideoWidget*m_VideoPlayer; |
84 | QWidget*m_MainBox; | ||
85 | QSlider*m_scrollBar; | ||
81 | 86 | ||
82 | QAction*a_appendFiles,*a_removeFiles,*a_showPlaylist,*a_playAction,*a_deleteItem,*a_stopAction; | 87 | QAction*a_appendFiles,*a_removeFiles,*a_showPlaylist,*a_playAction,*a_stopAction; |
83 | QAction*a_playNext,*a_playPrevious,*a_ShowFull,*a_stopPlay; | 88 | QAction*a_playNext,*a_playPrevious,*a_ShowFull,*a_stopPlay,*a_ShowMedia; |
84 | QActionGroup*playersGroup; | 89 | QAction*a_addDir,*a_loadPlaylist,*a_savePlaylist; |
90 | QActionGroup*playersGroup,*playlistOnly; | ||
85 | QToolBar*m_toolBar; | 91 | QToolBar*m_toolBar; |
86 | QPopupMenu *fileMenu,*dispMenu,*playMenu; | 92 | QPopupMenu *fileMenu,*dispMenu,*playMenu; |
87 | QMenuBar*m_menuBar; | 93 | QMenuBar*m_menuBar; |
88 | XINE::Lib*m_PlayLib; | 94 | XINE::Lib*m_PlayLib; |
89 | 95 | ||
90 | void setupActions(); | 96 | void setupActions(); |
@@ -94,12 +100,13 @@ protected: | |||
94 | void setupVideo(bool full); | 100 | void setupVideo(bool full); |
95 | void hideVideo(); | 101 | void hideVideo(); |
96 | 102 | ||
97 | bool m_playing:1; | 103 | bool m_playing:1; |
98 | int m_CurrentPos; | 104 | int m_CurrentPos; |
99 | PlaylistItem*m_LastItem; | 105 | PlaylistItem*m_LastItem; |
106 | void mediaWindowraised(); | ||
100 | 107 | ||
101 | protected slots: | 108 | protected slots: |
102 | virtual void fileSelected(const DocLnk&); | 109 | virtual void fileSelected(const DocLnk&); |
103 | virtual void slotAppendFiles(); | 110 | virtual void slotAppendFiles(); |
104 | virtual void slotRemoveFiles(); | 111 | virtual void slotRemoveFiles(); |
105 | virtual void slotShowList(); | 112 | virtual void slotShowList(); |
@@ -109,12 +116,15 @@ protected slots: | |||
109 | virtual void slotPlayCurrent(); | 116 | virtual void slotPlayCurrent(); |
110 | virtual void slotStopped(); | 117 | virtual void slotStopped(); |
111 | virtual void slotCheckPos(); | 118 | virtual void slotCheckPos(); |
112 | virtual void slotToggleFull(bool); | 119 | virtual void slotToggleFull(bool); |
113 | virtual void slotUserStop(); | 120 | virtual void slotUserStop(); |
114 | virtual void slotGoNext(); | 121 | virtual void slotGoNext(); |
122 | virtual void slotTogglePlay(bool); | ||
123 | virtual void slotShowMediaWindow(); | ||
124 | virtual void slotListChanged(int); | ||
115 | 125 | ||
116 | signals: | 126 | signals: |
117 | void sigPos(int); | 127 | void sigPos(int); |
118 | }; | 128 | }; |
119 | 129 | ||
120 | #endif | 130 | #endif |