summaryrefslogtreecommitdiff
authorharlekin <harlekin>2002-08-15 22:33:41 (UTC)
committer harlekin <harlekin>2002-08-15 22:33:41 (UTC)
commit47e3b3c20e17b257fb2d3d56bace2a89a8f0d28b (patch) (unidiff)
treecebec6dd1a9e41bd73c9f3b61ab0065b366eb904
parent5601604b83df32c6bc412325581753fa0121eed5 (diff)
downloadopie-47e3b3c20e17b257fb2d3d56bace2a89a8f0d28b.zip
opie-47e3b3c20e17b257fb2d3d56bace2a89a8f0d28b.tar.gz
opie-47e3b3c20e17b257fb2d3d56bace2a89a8f0d28b.tar.bz2
fixed pics dir
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/opie-mediaplayer2.control2
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp26
2 files changed, 14 insertions, 14 deletions
diff --git a/noncore/multimedia/opieplayer2/opie-mediaplayer2.control b/noncore/multimedia/opieplayer2/opie-mediaplayer2.control
index 3869b14..6825fb9 100644
--- a/noncore/multimedia/opieplayer2/opie-mediaplayer2.control
+++ b/noncore/multimedia/opieplayer2/opie-mediaplayer2.control
@@ -1,7 +1,7 @@
1Files: bin/opieplayer2 pics/opieplayer2 apps/Applications/mediaplayer.desktop 1Files: bin/opieplayer2 pics/opieplayer2 apps/Applications/mediaplayer.desktop
2Priority: optional 2Priority: optional
3Section: opie/applications 3Section: opie/applications
4Maintainer: L.J.Potter <ljp@llornkcor.com> 4Maintainer: L.J.Potter <ljp@llornkcor.com>
5Architecture: arm 5Architecture: arm
6Version: $QPE_VERSION-$SUB_VERSION 6Version: $QPE_VERSION-$SUB_VERSION
7Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION) 7Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION)
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 83161ec..e33998f 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -110,13 +110,13 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
110 audioScan = FALSE; 110 audioScan = FALSE;
111 videoScan = FALSE; 111 videoScan = FALSE;
112 112
113 setBackgroundMode( PaletteButton ); 113 setBackgroundMode( PaletteButton );
114 114
115 setCaption( tr("OpiePlayer") ); 115 setCaption( tr("OpiePlayer") );
116 setIcon( Resource::loadPixmap( "opieplayer/MPEGPlayer" ) ); 116 setIcon( Resource::loadPixmap( "opieplayer2/MPEGPlayer" ) );
117 117
118 setToolBarsMovable( FALSE ); 118 setToolBarsMovable( FALSE );
119 119
120 // Create Toolbar 120 // Create Toolbar
121 QPEToolBar *toolbar = new QPEToolBar( this ); 121 QPEToolBar *toolbar = new QPEToolBar( this );
122 toolbar->setHorizontalStretchable( TRUE ); 122 toolbar->setHorizontalStretchable( TRUE );
@@ -129,21 +129,21 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
129 bar->setLabel( tr( "Play Operations" ) ); 129 bar->setLabel( tr( "Play Operations" ) );
130 130
131 tbDeletePlaylist = new QPushButton( Resource::loadIconSet("trash"),"",bar,"close"); 131 tbDeletePlaylist = new QPushButton( Resource::loadIconSet("trash"),"",bar,"close");
132 tbDeletePlaylist->setFlat(TRUE); 132 tbDeletePlaylist->setFlat(TRUE);
133 tbDeletePlaylist->setFixedSize(20,20); 133 tbDeletePlaylist->setFixedSize(20,20);
134 134
135 d->tbAddToList = new ToolButton( bar, tr( "Add to Playlist" ), "opieplayer/add_to_playlist", 135 d->tbAddToList = new ToolButton( bar, tr( "Add to Playlist" ), "opieplayer2/add_to_playlist",
136 this , SLOT(addSelected()) ); 136 this , SLOT(addSelected()) );
137 d->tbRemoveFromList = new ToolButton( bar, tr( "Remove from Playlist" ), "opieplayer/remove_from_playlist", 137 d->tbRemoveFromList = new ToolButton( bar, tr( "Remove from Playlist" ), "opieplayer2/remove_from_playlist",
138 this , SLOT(removeSelected()) ); 138 this , SLOT(removeSelected()) );
139 d->tbPlay = new ToolButton( bar, tr( "Play" ), "opieplayer/play", 139 d->tbPlay = new ToolButton( bar, tr( "Play" ), "opieplayer2/play",
140 this , SLOT( btnPlay(bool) ), TRUE ); 140 this , SLOT( btnPlay(bool) ), TRUE );
141 d->tbShuffle = new ToolButton( bar, tr( "Randomize" ),"opieplayer/shuffle", 141 d->tbShuffle = new ToolButton( bar, tr( "Randomize" ),"opieplayer2/shuffle",
142 mediaPlayerState, SLOT(setShuffled(bool)), TRUE ); 142 mediaPlayerState, SLOT(setShuffled(bool)), TRUE );
143 d->tbLoop = new ToolButton( bar, tr( "Loop" ),"opieplayer/loop", 143 d->tbLoop = new ToolButton( bar, tr( "Loop" ),"opieplayer2/loop",
144 mediaPlayerState, SLOT(setLooping(bool)), TRUE ); 144 mediaPlayerState, SLOT(setLooping(bool)), TRUE );
145 tbDeletePlaylist->hide(); 145 tbDeletePlaylist->hide();
146 146
147 QPopupMenu *pmPlayList = new QPopupMenu( this ); 147 QPopupMenu *pmPlayList = new QPopupMenu( this );
148 menu->insertItem( tr( "File" ), pmPlayList ); 148 menu->insertItem( tr( "File" ), pmPlayList );
149 new MenuItem( pmPlayList, tr( "Clear List" ), this, SLOT( clearList() ) ); 149 new MenuItem( pmPlayList, tr( "Clear List" ), this, SLOT( clearList() ) );
@@ -204,15 +204,15 @@ PlayListWidget::PlayListWidget( QWidget* parent, const char* name, WFlags fl )
204 d->selectedFiles = new PlayListSelection( hbox2); 204 d->selectedFiles = new PlayListSelection( hbox2);
205 QVBox *vbox1 = new QVBox( hbox2 ); vbox1->setBackgroundMode( PaletteButton ); 205 QVBox *vbox1 = new QVBox( hbox2 ); vbox1->setBackgroundMode( PaletteButton );
206 206
207 QPEApplication::setStylusOperation( d->selectedFiles->viewport(),QPEApplication::RightOnHold); 207 QPEApplication::setStylusOperation( d->selectedFiles->viewport(),QPEApplication::RightOnHold);
208 208
209 QVBox *stretch1 = new QVBox( vbox1 ); stretch1->setBackgroundMode( PaletteButton ); // add stretch 209 QVBox *stretch1 = new QVBox( vbox1 ); stretch1->setBackgroundMode( PaletteButton ); // add stretch
210 new ToolButton( vbox1, tr( "Move Up" ), "opieplayer/up", d->selectedFiles, SLOT(moveSelectedUp()) ); 210 new ToolButton( vbox1, tr( "Move Up" ), "opieplayer2/up", d->selectedFiles, SLOT(moveSelectedUp()) );
211 new ToolButton( vbox1, tr( "Remove" ), "opieplayer/cut", d->selectedFiles, SLOT(removeSelected()) ); 211 new ToolButton( vbox1, tr( "Remove" ), "opieplayer2/cut", d->selectedFiles, SLOT(removeSelected()) );
212 new ToolButton( vbox1, tr( "Move Down" ), "opieplayer/down", d->selectedFiles, SLOT(moveSelectedDown()) ); 212 new ToolButton( vbox1, tr( "Move Down" ), "opieplayer2/down", d->selectedFiles, SLOT(moveSelectedDown()) );
213 QVBox *stretch2 = new QVBox( vbox1 ); stretch2->setBackgroundMode( PaletteButton ); // add stretch 213 QVBox *stretch2 = new QVBox( vbox1 ); stretch2->setBackgroundMode( PaletteButton ); // add stretch
214 214
215 QWidget *aTab; 215 QWidget *aTab;
216 aTab = new QWidget( tabWidget, "aTab" ); 216 aTab = new QWidget( tabWidget, "aTab" );
217 audioView = new QListView( aTab, "Audioview" ); 217 audioView = new QListView( aTab, "Audioview" );
218 audioView->setMinimumSize(233,260); 218 audioView->setMinimumSize(233,260);
@@ -580,13 +580,13 @@ void PlayListWidget::saveList() {
580 Config cfg( filename +".playlist"); 580 Config cfg( filename +".playlist");
581 writeConfig( cfg ); 581 writeConfig( cfg );
582 582
583 DocLnk lnk; 583 DocLnk lnk;
584 lnk.setFile(QDir::homeDirPath()+"/Settings/"+filename+".playlist.conf"); //sets File property 584 lnk.setFile(QDir::homeDirPath()+"/Settings/"+filename+".playlist.conf"); //sets File property
585 lnk.setType("playlist/plain");// hey is this a REGISTERED mime type?!?!? ;D 585 lnk.setType("playlist/plain");// hey is this a REGISTERED mime type?!?!? ;D
586 lnk.setIcon("opieplayer/playlist2"); 586 lnk.setIcon("opieplayer2/playlist2");
587 lnk.setName( filename); //sets file name 587 lnk.setName( filename); //sets file name
588 // qDebug(filename); 588 // qDebug(filename);
589 if(!lnk.writeLink()) { 589 if(!lnk.writeLink()) {
590 qDebug("Writing doclink did not work"); 590 qDebug("Writing doclink did not work");
591 } 591 }
592 } 592 }
@@ -920,13 +920,13 @@ void PlayListWidget::populateAudioView() {
920 920
921 QListViewItem * newItem; 921 QListViewItem * newItem;
922 if ( QFile( dit.current()->file()).exists() ) { 922 if ( QFile( dit.current()->file()).exists() ) {
923 // qDebug(dit.current()->name()); 923 // qDebug(dit.current()->name());
924 newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(), 924 newItem= /*(void)*/ new QListViewItem( audioView, dit.current()->name(),
925 QString::number( QFile( dit.current()->file()).size() ), storage); 925 QString::number( QFile( dit.current()->file()).size() ), storage);
926 newItem->setPixmap(0, Resource::loadPixmap( "opieplayer/musicfile" )); 926 newItem->setPixmap(0, Resource::loadPixmap( "opieplayer2/musicfile" ));
927 } 927 }
928 } 928 }
929 929
930} 930}
931 931
932void PlayListWidget::populateVideoView() { 932void PlayListWidget::populateVideoView() {
@@ -948,13 +948,13 @@ void PlayListWidget::populateVideoView() {
948 } 948 }
949 949
950 QListViewItem * newItem; 950 QListViewItem * newItem;
951 if ( QFile( Vdit.current()->file()).exists() ) { 951 if ( QFile( Vdit.current()->file()).exists() ) {
952 newItem= /*(void)*/ new QListViewItem( videoView, Vdit.current()->name(), 952 newItem= /*(void)*/ new QListViewItem( videoView, Vdit.current()->name(),
953 QString::number( QFile( Vdit.current()->file()).size() ), storage); 953 QString::number( QFile( Vdit.current()->file()).size() ), storage);
954 newItem->setPixmap(0, Resource::loadPixmap( "opieplayer/videofile" )); 954 newItem->setPixmap(0, Resource::loadPixmap( "opieplayer2/videofile" ));
955 } 955 }
956 } 956 }
957} 957}
958 958
959void PlayListWidget::openFile() { 959void PlayListWidget::openFile() {
960 QString filename, name; 960 QString filename, name;
@@ -973,13 +973,13 @@ void PlayListWidget::openFile() {
973 DocLnk lnk; 973 DocLnk lnk;
974 974
975 lnk.setName(filename); //sets file name 975 lnk.setName(filename); //sets file name
976 lnk.setFile(filename); //sets File property 976 lnk.setFile(filename); //sets File property
977 lnk.setType("audio/x-mpegurl"); 977 lnk.setType("audio/x-mpegurl");
978 lnk.setExec("opieplayer"); 978 lnk.setExec("opieplayer");
979 lnk.setIcon("opieplayer/MPEGPlayer"); 979 lnk.setIcon("opieplayer2/MPEGPlayer");
980 980
981 if(!lnk.writeLink()) { 981 if(!lnk.writeLink()) {
982 qDebug("Writing doclink did not work"); 982 qDebug("Writing doclink did not work");
983 } 983 }
984 d->selectedFiles->addToSelection( lnk); 984 d->selectedFiles->addToSelection( lnk);
985 } 985 }