summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-02 14:19:55 (UTC)
committer simon <simon>2002-12-02 14:19:55 (UTC)
commit8179c80f459eeee815aeb279f73df754ba303198 (patch) (unidiff)
treeb41eecb31e04d1a04b77ec57fc0a396709f3b8e0
parent6a1400bdf754df18a1f20bd50ab5e5e4b0fd5a86 (diff)
downloadopie-8179c80f459eeee815aeb279f73df754ba303198.zip
opie-8179c80f459eeee815aeb279f73df754ba303198.tar.gz
opie-8179c80f459eeee815aeb279f73df754ba303198.tar.bz2
- oops
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.cpp b/noncore/multimedia/opieplayer2/playlistwidget.cpp
index 9918eeb..ce9faac 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.cpp
+++ b/noncore/multimedia/opieplayer2/playlistwidget.cpp
@@ -1024,147 +1024,147 @@ void PlayListWidget::writem3u() {
1024 qDebug("Writing doclink did not work"); 1024 qDebug("Writing doclink did not work");
1025 } 1025 }
1026 1026
1027 setCaption(tr("OpiePlayer: ") + name); 1027 setCaption(tr("OpiePlayer: ") + name);
1028 } 1028 }
1029 } 1029 }
1030} 1030}
1031 1031
1032void PlayListWidget::keyReleaseEvent( QKeyEvent *e ) { 1032void PlayListWidget::keyReleaseEvent( QKeyEvent *e ) {
1033 switch ( e->key() ) { 1033 switch ( e->key() ) {
1034 ////////////////////////////// Zaurus keys 1034 ////////////////////////////// Zaurus keys
1035 case Key_F9: //activity 1035 case Key_F9: //activity
1036 // if(audioUI->isHidden()) 1036 // if(audioUI->isHidden())
1037 // audioUI->showMaximized(); 1037 // audioUI->showMaximized();
1038 break; 1038 break;
1039 case Key_F10: //contacts 1039 case Key_F10: //contacts
1040 // if( videoUI->isHidden()) 1040 // if( videoUI->isHidden())
1041 // videoUI->showMaximized(); 1041 // videoUI->showMaximized();
1042 break; 1042 break;
1043 case Key_F11: //menu 1043 case Key_F11: //menu
1044 break; 1044 break;
1045 case Key_F12: //home 1045 case Key_F12: //home
1046 // doBlank(); 1046 // doBlank();
1047 break; 1047 break;
1048 case Key_F13: //mail 1048 case Key_F13: //mail
1049 // doUnblank(); 1049 // doUnblank();
1050 break; 1050 break;
1051 case Key_Q: //add to playlist 1051 case Key_Q: //add to playlist
1052 addSelected(); 1052 addSelected();
1053 break; 1053 break;
1054 case Key_R: //remove from playlist 1054 case Key_R: //remove from playlist
1055 removeSelected(); 1055 removeSelected();
1056 break; 1056 break;
1057 // case Key_P: //play 1057 // case Key_P: //play
1058 // qDebug("Play"); 1058 // qDebug("Play");
1059 // playSelected(); 1059 // playSelected();
1060 // break; 1060 // break;
1061 case Key_Space: 1061 case Key_Space:
1062 // playSelected(); puh 1062 // playSelected(); puh
1063 break; 1063 break;
1064 case Key_1: 1064 case Key_1:
1065 tabWidget->setCurrentPage( 0 ); 1065 tabWidget->setCurrentPage( 0 );
1066 break; 1066 break;
1067 case Key_2: 1067 case Key_2:
1068 tabWidget->setCurrentPage( 1 ); 1068 tabWidget->setCurrentPage( 1 );
1069 break; 1069 break;
1070 case Key_3: 1070 case Key_3:
1071 tabWidget->setCurrentPage( 2 ); 1071 tabWidget->setCurrentPage( 2 );
1072 break; 1072 break;
1073 case Key_4: 1073 case Key_4:
1074 tabWidget->setCurrentPage( 3 ); 1074 tabWidget->setCurrentPage( 3 );
1075 break; 1075 break;
1076 case Key_Down: 1076 case Key_Down:
1077 if ( !d->selectedFiles->next() ) 1077 if ( !d->selectedFiles->next() )
1078 d->selectedFiles->first(); 1078 d->selectedFiles->first();
1079 break; 1079 break;
1080 case Key_Up: 1080 case Key_Up:
1081 if ( !d->selectedFiles->prev() ) 1081 if ( !d->selectedFiles->prev() )
1082 // d->selectedFiles->last(); 1082 // d->selectedFiles->last();
1083 break; 1083 break;
1084 } 1084 }
1085} 1085}
1086 1086
1087void PlayListWidget::pmViewActivated(int index) { 1087void PlayListWidget::pmViewActivated(int index) {
1088// qDebug("%d", index); 1088// qDebug("%d", index);
1089 switch(index) { 1089 switch(index) {
1090 case -16: 1090 case -16:
1091 { 1091 {
1092 mediaPlayerState->toggleFullscreen(); 1092 mediaPlayerState->toggleFullscreen();
1093 bool b=mediaPlayerState->isFullscreen(); 1093 bool b=mediaPlayerState->isFullscreen();
1094 pmView->setItemChecked( index, b); 1094 pmView->setItemChecked( index, b);
1095 Config cfg( "OpiePlayer" ); 1095 Config cfg( "OpiePlayer" );
1096 cfg.writeEntry( "FullScreen", b ); 1096 cfg.writeEntry( "FullScreen", b );
1097 } 1097 }
1098 break; 1098 break;
1099 }; 1099 };
1100} 1100}
1101 1101
1102void PlayListWidget::populateSkinsMenu() { 1102void PlayListWidget::populateSkinsMenu() {
1103 int item = 0; 1103 int item = 0;
1104 defaultSkinIndex = 0; 1104 defaultSkinIndex = 0;
1105 QString skinName; 1105 QString skinName;
1106 Config cfg( "OpiePlayer" ); 1106 Config cfg( "OpiePlayer" );
1107 cfg.setGroup("Options" ); 1107 cfg.setGroup("Options" );
1108 QString skin = cfg.readEntry( "Skin", "default" ); 1108 QString skin = cfg.readEntry( "Skin", "default" );
1109 1109
1110 QDir skinsDir( QPEApplication::qpeDir() + "/pics/opieplayer2/skins" ); 1110 QDir skinsDir( QPEApplication::qpeDir() + "/pics/opieplayer2/skins" );
1111 skinsDir.setFilter( QDir::Dirs ); 1111 skinsDir.setFilter( QDir::Dirs );
1112 skinsDir.setSorting(QDir::Name ); 1112 skinsDir.setSorting(QDir::Name );
1113 const QFileInfoList *skinslist = skinsDir.entryInfoList(); 1113 const QFileInfoList *skinslist = skinsDir.entryInfoList();
1114 QFileInfoListIterator it( *skinslist ); 1114 QFileInfoListIterator it( *skinslist );
1115 QFileInfo *fi; 1115 QFileInfo *fi;
1116 while ( ( fi = it.current() ) ) { 1116 while ( ( fi = it.current() ) ) {
1117 skinName = fi->fileName(); 1117 skinName = fi->fileName();
1118// qDebug( fi->fileName() ); 1118// qDebug( fi->fileName() );
1119 if( skinName != "." && skinName != ".." && skinName !="CVS" ) { 1119 if( skinName != "." && skinName != ".." && skinName !="CVS" ) {
1120 item = skinsMenu->insertItem( fi->fileName() ) ; 1120 item = skinsMenu->insertItem( fi->fileName() ) ;
1121 } 1121 }
1122 if( skinName == "default" ) { 1122 if( skinName == "default" ) {
1123 defaultSkinIndex = item; 1123 defaultSkinIndex = item;
1124 } 1124 }
1125 if( skinName == skin ) { 1125 if( skinName == skin ) {
1126 skinsMenu->setItemChecked( item, TRUE ); 1126 skinsMenu->setItemChecked( item, TRUE );
1127 } 1127 }
1128 ++it; 1128 ++it;
1129 } 1129 }
1130} 1130}
1131 1131
1132void PlayListWidget::skinsMenuActivated( int item ) { 1132void PlayListWidget::skinsMenuActivated( int item ) {
1133 for(unsigned int i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) { 1133 for(unsigned int i = defaultSkinIndex; i > defaultSkinIndex - skinsMenu->count(); i-- ) {
1134 skinsMenu->setItemChecked( i, FALSE ); 1134 skinsMenu->setItemChecked( i, FALSE );
1135 } 1135 }
1136 skinsMenu->setItemChecked( item, TRUE ); 1136 skinsMenu->setItemChecked( item, TRUE );
1137 1137
1138 Config cfg( "OpiePlayer" ); 1138 Config cfg( "OpiePlayer" );
1139 cfg.setGroup("Options"); 1139 cfg.setGroup("Options");
1140 cfg.writeEntry("Skin", skinsMenu->text( item ) ); 1140 cfg.writeEntry("Skin", skinsMenu->text( item ) );
1141 QMessageBox::warning( this, tr( "OpiePlayer" ), 1141 QMessageBox::warning( this, tr( "OpiePlayer" ),
1142 tr( "You must <b>restart</b> Opieplayer<br>to see your changes." ) ); 1142 tr( "You must <b>restart</b> Opieplayer<br>to see your changes." ) );
1143} 1143}
1144 1144
1145int PlayListWidget::whichList() { 1145int PlayListWidget::whichList() {
1146 return tabWidget->currentPageIndex(); 1146 return tabWidget->currentPageIndex();
1147} 1147}
1148 1148
1149PlayListWidget::TabType PlayListWidget::currentTab() const 1149PlayListWidget::TabType PlayListWidget::currentTab() const
1150{ 1150{
1151 static const TabType indexToTabType[ NumTabTypes ] = 1151 static const TabType indexToTabType[ NumTabTypes ] =
1152 { CurrentPlaylist, AudioFiles, VideoFiles, PlayLists }; 1152 { CurrentPlayList, AudioFiles, VideoFiles, PlayLists };
1153 1153
1154 int index = tabWidget->currentPageIndex(); 1154 int index = tabWidget->currentPageIndex();
1155 assert( index < NumTabTypes && index >= 0 ); 1155 assert( index < NumTabTypes && index >= 0 );
1156 1156
1157 return indexToTabType[ index ]; 1157 return indexToTabType[ index ];
1158} 1158}
1159 1159
1160QString PlayListWidget::currentFileListPathName() { 1160QString PlayListWidget::currentFileListPathName() {
1161 switch (whichList()) { 1161 switch (whichList()) {
1162 case 1: 1162 case 1:
1163 return audioView->currentItem()->text(3); 1163 return audioView->currentItem()->text(3);
1164 break; 1164 break;
1165 case 2: 1165 case 2:
1166 return videoView->currentItem()->text(3); 1166 return videoView->currentItem()->text(3);
1167 break; 1167 break;
1168 }; 1168 };
1169 return ""; 1169 return "";
1170} 1170}