summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-03 16:53:41 (UTC)
committer simon <simon>2002-12-03 16:53:41 (UTC)
commitb92f6e69e5c243363c0f285dcf1f0d47bbc2cc17 (patch) (side-by-side diff)
tree6dd69ef8a0ce4079afe7ee3b23cedb13ad8d642c
parenta06817e1b4d8db570b87873610efefb55b0ab429 (diff)
downloadopie-b92f6e69e5c243363c0f285dcf1f0d47bbc2cc17.zip
opie-b92f6e69e5c243363c0f285dcf1f0d47bbc2cc17.tar.gz
opie-b92f6e69e5c243363c0f285dcf1f0d47bbc2cc17.tar.bz2
- starting to factor out the playlist file views into separate classes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/opieplayer2.pro4
-rw-r--r--noncore/multimedia/opieplayer2/playlistfileview.cpp14
-rw-r--r--noncore/multimedia/opieplayer2/playlistfileview.h16
-rw-r--r--noncore/multimedia/opieplayer2/playlistview.cpp14
-rw-r--r--noncore/multimedia/opieplayer2/playlistview.h16
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidgetgui.cpp5
6 files changed, 65 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/opieplayer2.pro b/noncore/multimedia/opieplayer2/opieplayer2.pro
index dbc21b1..8d549b6 100644
--- a/noncore/multimedia/opieplayer2/opieplayer2.pro
+++ b/noncore/multimedia/opieplayer2/opieplayer2.pro
@@ -7,3 +7,3 @@ HEADERS = playlistselection.h mediaplayerstate.h xinecontrol.h \
frame.h lib.h xinevideowidget.h volumecontrol.h playlistwidgetgui.h\
- alphablend.h yuv2rgb.h threadutil.h mediawidget.h
+ alphablend.h yuv2rgb.h threadutil.h mediawidget.h playlistview.h playlistfileview.h
SOURCES = main.cpp \
@@ -14,3 +14,3 @@ SOURCES = main.cpp \
alphablend.c yuv2rgb.c yuv2rgb_arm.c yuv2rgb_arm4l.S \
- threadutil.cpp mediawidget.cpp
+ threadutil.cpp mediawidget.cpp playlistview.cpp playlistfileview.cpp
TARGET = opieplayer2
diff --git a/noncore/multimedia/opieplayer2/playlistfileview.cpp b/noncore/multimedia/opieplayer2/playlistfileview.cpp
new file mode 100644
index 0000000..bdd38e0
--- a/dev/null
+++ b/noncore/multimedia/opieplayer2/playlistfileview.cpp
@@ -0,0 +1,14 @@
+
+#include "playlistfileview.h"
+
+PlayListFileView::PlayListFileView( QWidget *parent, const char *name )
+ : PlayListView( parent, name )
+{
+}
+
+PlayListFileView::~PlayListFileView()
+{
+}
+
+/* vim: et sw=4 ts=4
+ */
diff --git a/noncore/multimedia/opieplayer2/playlistfileview.h b/noncore/multimedia/opieplayer2/playlistfileview.h
new file mode 100644
index 0000000..eef4bd1
--- a/dev/null
+++ b/noncore/multimedia/opieplayer2/playlistfileview.h
@@ -0,0 +1,16 @@
+#ifndef PLAYLISTFILEVIEW_H
+#define PLAYLISTFILEVIEW_H
+
+#include "playlistview.h"
+
+class PlayListFileView : public PlayListView
+{
+ Q_OBJECT
+public:
+ PlayListFileView( QWidget *parent, const char *name = 0 );
+ virtual ~PlayListFileView();
+};
+
+#endif // PLAYLISTFILEVIEW_H
+/* vim: et sw=4 ts=4
+ */
diff --git a/noncore/multimedia/opieplayer2/playlistview.cpp b/noncore/multimedia/opieplayer2/playlistview.cpp
new file mode 100644
index 0000000..ebe1492
--- a/dev/null
+++ b/noncore/multimedia/opieplayer2/playlistview.cpp
@@ -0,0 +1,14 @@
+
+#include "playlistview.h"
+
+PlayListView::PlayListView( QWidget *parent, const char *name )
+ : QListView( parent, name )
+{
+}
+
+PlayListView::~PlayListView()
+{
+}
+
+/* vim: et sw=4 ts=4
+ */
diff --git a/noncore/multimedia/opieplayer2/playlistview.h b/noncore/multimedia/opieplayer2/playlistview.h
new file mode 100644
index 0000000..f1abb07
--- a/dev/null
+++ b/noncore/multimedia/opieplayer2/playlistview.h
@@ -0,0 +1,16 @@
+#ifndef PLAYLISTVIEW_H
+#define PLAYLISTVIEW_H
+
+#include <qlistview.h>
+
+class PlayListView : public QListView
+{
+ Q_OBJECT
+public:
+ PlayListView( QWidget *parent, const char *name );
+ virtual ~PlayListView();
+};
+
+#endif // PLAYLISTVIEW_H
+/* vim: et sw=4 ts=4
+ */
diff --git a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
index f47ddcc..de7b6d5 100644
--- a/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidgetgui.cpp
@@ -53,2 +53,3 @@
#include "inputDialog.h"
+#include "playlistfileview.h"
@@ -151,3 +152,3 @@ PlayListWidgetGui::PlayListWidgetGui( MediaPlayerState &_mediaPlayerState, QWidg
Alayout->setMargin( 2 );
- audioView = new QListView( aTab, "Audioview" );
+ audioView = new PlayListFileView( aTab, "Audioview" );
audioView->addColumn( tr( "Title" ), 140 );
@@ -173,3 +174,3 @@ PlayListWidgetGui::PlayListWidgetGui( MediaPlayerState &_mediaPlayerState, QWidg
Vlayout->setMargin( 2 );
- videoView = new QListView( vTab, "Videoview" );
+ videoView = new PlayListFileView( vTab, "Videoview" );
videoView->addColumn( tr( "Title" ), 140);