Changeset 15606
- Timestamp:
- 05/09/12 14:30:43 (11 years ago)
- Location:
- titan
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/mc/mc_audioplayer.h
r14161 r15606 9 9 char* filename = NULL; 10 10 char* currentdirectory = NULL; 11 int rcret = 0, rcwait = 1000, playerret = 0, flag = 2, skip = 0, eof = 0, playinfobarcount = 0, playinfobarstatus = 1, count = 0, tmpview = 1, playlist = 0, playertype = 0;11 int rcret = 0, rcwait = 1000, playerret = 0, flag = 2, skip = 0, eof = 0, playinfobarcount = 0, playinfobarstatus = 1, count = 0, tmpview = 0, playlist = 0, playertype = 0; 12 12 13 13 // workaround for grey background mvi … … 39 39 40 40 // read configs 41 int style = getconfigint("style", NULL); 42 int view = getconfigint("view", NULL); 41 int view = getconfigint("ap_view", NULL); 43 42 int screensaver_delay = getconfigint("screensaver_delay", NULL); 44 43 … … 55 54 status.playspeed = 0, status.play = 0, status.pause = 0, status.random = 0; 56 55 57 debug(50, "start screenmc_audioplayer style=%d, view=%d", style, view);56 debug(50, "start screenmc_audioplayer view=%d", view); 58 57 59 58 singlepicstart("/var/usr/local/share/titan/plugins/mc/skin/default.mvi", 0); … … 62 61 initscreensaver(); 63 62 63 tmpview = view; 64 64 mc_changeview(view, filelist); 65 65 … … 199 199 200 200 addconfiginttmp("dirsort", sort); 201 mc_changeview(view, filelist); 201 mc_changeview(tmpview, filelist); 202 203 delownerrc(apskin); 202 204 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text); 205 addscreenrc(apskin, filelist); 206 drawscreen(apskin, 0); 203 207 } 204 208 } … … 214 218 debug(50, "rcmenu: settings"); 215 219 220 view = getconfigint("ap_view", NULL); 216 221 screenmc_audioplayer_settings(); 217 view = getconfigint("view", NULL); 218 mc_changeview(view, filelist); 222 223 if(view != getconfigint("ap_view", NULL)) 224 { 225 printf("view changed > change tmpview\n"); 226 tmpview = getconfigint("ap_view", NULL); 227 } 228 229 mc_changeview(tmpview, filelist); 230 231 delownerrc(apskin); 232 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text); 233 addscreenrc(apskin, filelist); 234 219 235 screensaver_delay = getconfigint("screensaver_delay", NULL); 220 236 deinitscreensaver(); … … 289 305 playlist = 0; 290 306 writevfd("Mediacenter"); 307 308 printf("exit: view=%d tmpview=%d\n", view, tmpview); 309 status.filelistextend = 0; 291 310 break; 292 311 } … … 431 450 delownerrc(apskin); 432 451 clearscreen(apskin); 433 if(style == 1)434 {435 delmarkedpic(1010);436 delmarkedpic(1011);437 delmarkedpic(1012);438 delmarkedpic(1013);439 }440 452 441 453 free(filename), filename = NULL; -
titan/plugins/mc/mc_audioplayer_settings.h
r15521 r15606 27 27 setchoiceboxselection(dirsort, getconfig("dirsort", NULL)); 28 28 29 addchoicebox(view, "0", _("default")); 30 // addchoicebox(view, "1", _("big")); 31 // addchoicebox(view, "2", _("fullcover")); 32 // addchoicebox(view, "3", _("details")); 33 // addchoicebox(view, "4", _("smal")); 34 // addchoicebox(view, "5", _("fast")); 35 setchoiceboxselection(view, getconfig("view", NULL)); 29 addchoicebox(view, "0", _("fast")); 30 addchoicebox(view, "1", _("big")); 31 addchoicebox(view, "2", _("cover")); 32 addchoicebox(view, "3", _("default")); 33 addchoicebox(view, "4", _("details")); 34 // addchoicebox(view, "5", _("fullcover")); 35 setchoiceboxselection(view, getconfig("ap_view", NULL)); 36 36 37 37 38 addchoicebox(ap_autostart_playlist, "0", _("no")); … … 73 74 { 74 75 addconfigscreencheck("dirsort", dirsort, NULL); 75 addconfigscreencheck(" view", view, NULL);76 addconfigscreencheck("ap_view", view, NULL); 76 77 addconfigscreencheck("ap_autostart_playlist", ap_autostart_playlist, NULL); 77 78 // addconfigscreencheck("dimmer", dimmer, NULL); -
titan/plugins/mc/mc_global.h
r15259 r15606 89 89 filelist->transparent = 40; 90 90 filelist->posx = 20; 91 } 91 } 92 92 } 93 93 -
titan/plugins/mc/mc_pictureplayer.h
r15245 r15606 36 36 37 37 // read configs 38 int style = getconfigint("style", NULL); 39 int view = getconfigint("view", NULL); 38 int view = getconfigint("pp_view", NULL); 40 39 char* sound = getconfig("sound", NULL); 41 40 … … 48 47 status.playspeed = 0, status.play = 0, status.pause = 0, status.random = 0; 49 48 50 debug(50, "start screenmc_pictureplayer style=%d, view=%d", style, view);49 debug(50, "start screenmc_pictureplayer view=%d", view); 51 50 52 51 singlepicstart("/var/usr/local/share/titan/plugins/mc/skin/default.mvi", 0); … … 57 56 tmpview = view; 58 57 mc_changeview(view, filelist); 59 60 58 getfilelist(apskin, filelistpath, filelist, currentdirectory, filemask, tmpview, NULL); 61 mc_changeview(view, filelist);62 59 addscreenrc(apskin, filelist); 63 60 … … 142 139 int sort = screenmc_sort(); 143 140 debug(50, "rcred: tmpsort=%d", sort); 144 145 141 addconfiginttmp("dirsort", sort); 142 146 143 mc_changeview(view, filelist); 144 delownerrc(apskin); 147 145 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text); 146 addscreenrc(apskin, filelist); 147 drawscreen(apskin, 0); 148 148 } 149 149 } … … 171 171 debug(50, "rcmenu: settings"); 172 172 173 view = getconfigint(" view", NULL);173 view = getconfigint("pp_view", NULL); 174 174 screenmc_pictureplayer_settings(); 175 176 if(view != getconfigint("view", NULL)) 175 if(view != getconfigint("pp_view", NULL)) 177 176 { 178 177 printf("view changed > change tmpview\n"); 179 tmpview = getconfigint("view", NULL); 180 } 181 mc_changeview(tmpview, filelist); 178 tmpview = getconfigint("pp_view", NULL); 179 } 182 180 183 181 sound = getconfig("sound", NULL); … … 200 198 playerstop(); 201 199 200 mc_changeview(tmpview, filelist); 201 202 202 delownerrc(apskin); 203 drawscreen(skin, 0);204 203 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text); 205 204 addscreenrc(apskin, filelist); 206 205 207 206 drawscreen(apskin, 0); 208 207 } … … 271 270 writevfd("Mediacenter"); 272 271 playinfobarcount = 0; 273 status.filelistextend = 0; 272 273 printf("exit: view=%d tmpview=%d\n", view, tmpview); 274 status.filelistextend = 0; 274 275 break; 275 276 } … … 418 419 clearscreen(apskin); 419 420 clearscreen(picscreen); 420 if(style == 1)421 {422 delmarkedpic(1010);423 delmarkedpic(1011);424 delmarkedpic(1012);425 delmarkedpic(1013);426 }427 421 428 422 free(track), track = NULL; -
titan/plugins/mc/mc_pictureplayer_settings.h
r15521 r15606 26 26 addchoicebox(showpictitle, "0", _("off")); 27 27 addchoicebox(showpictitle, "1", _("on")); 28 setchoiceboxselection( view, getconfig("showpictitle", NULL));28 setchoiceboxselection(showpictitle, getconfig("showpictitle", NULL)); 29 29 30 30 addchoicebox(dirsort, "0", _("alpha")); … … 36 36 setchoiceboxselection(dirsort, getconfig("dirsort", NULL)); 37 37 38 addchoicebox(view, "0", "fast");39 // addchoicebox(view, "1", "big");40 // addchoicebox(view, "2", "cover");41 // addchoicebox(view, "3", "default");42 // addchoicebox(view, "4", "details");43 // // addchoicebox(view, "5", "fullcover");44 setchoiceboxselection(view, getconfig(" view", NULL));38 addchoicebox(view, "0", _("fast")); 39 addchoicebox(view, "1", _("big")); 40 addchoicebox(view, "2", _("cover")); 41 addchoicebox(view, "3", _("default")); 42 addchoicebox(view, "4", _("details")); 43 // addchoicebox(view, "5", _("fullcover")); 44 setchoiceboxselection(view, getconfig("pp_view", NULL)); 45 45 46 46 addchoicebox(sound, "http://stream.mth-house.de:8500/", _("MTH House")); … … 71 71 { 72 72 addconfigscreen("dirsort", dirsort); 73 addconfigscreen(" view", view);73 addconfigscreen("pp_view", view); 74 74 addconfigscreen("sound", sound); 75 75 addconfigscreen("pp_interval", pp_interval); -
titan/plugins/mc/mc_videoplayer.h
r15245 r15606 10 10 char* tmppolicy = NULL; 11 11 char* currentdirectory = NULL; 12 char* selectedfile = NULL; 12 13 int rcret = 0, rcwait = 1000, playerret = 0, flag = 1, skip = 0, eof = 0, playinfobarcount = 0, playinfobarstatus = 1, tmpview = 0, playlist = 0, playertype = 0; 13 14 // workaround for grey background mvi … … 28 29 29 30 currentdirectory = ostrcat(currentdirectory, getconfig("mc_videoplayerpath", NULL), 1, 0); 31 selectedfile = ostrcat(selectedfile, getconfig("mc_selectedfile", NULL), 1, 0); 30 32 31 33 // enable listbox and set hidden … … 35 37 36 38 // read configs 37 int style = getconfigint("style", NULL); 38 int view = getconfigint("view", NULL); 39 int view = getconfigint("vp_view", NULL); 39 40 int skip13 = getconfigint("skip13", NULL); 40 41 int skip46 = getconfigint("skip46", NULL); … … 56 57 status.playspeed = 0, status.play = 0, status.pause = 0, status.random = 0; 57 58 58 debug(50, "start screenmc_videoplayer style=%d, view=%d", style, view);59 debug(50, "start screenmc_videoplayer view=%d", view); 59 60 60 61 singlepicstart("/var/usr/local/share/titan/plugins/mc/skin/default.mvi", 0); … … 66 67 mc_changeview(view, filelist); 67 68 68 getfilelist(apskin, filelistpath, filelist, currentdirectory, filemask, tmpview, NULL);69 getfilelist(apskin, filelistpath, filelist, currentdirectory, filemask, tmpview, selectedfile); 69 70 addscreenrc(apskin, filelist); 70 71 … … 245 246 246 247 addconfiginttmp("dirsort", sort); 247 // mc_changeview(tmpview, filelist); 248 mc_changeview(tmpview, filelist); 249 250 delownerrc(apskin); 248 251 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text); 252 addscreenrc(apskin, filelist); 253 drawscreen(apskin, 0); 249 254 } 250 255 } … … 272 277 debug(50, "rcmenu: settings"); 273 278 singlepicstart("/var/usr/local/share/titan/plugins/mc/skin/default.mvi", 0); 274 view = getconfigint("v iew", NULL);279 view = getconfigint("vp_view", NULL); 275 280 screenmc_videoplayer_settings(); 276 281 277 if(view != getconfigint("v iew", NULL))282 if(view != getconfigint("vp_view", NULL)) 278 283 { 279 284 printf("view changed > change tmpview\n"); 280 tmpview = getconfigint("v iew", NULL);285 tmpview = getconfigint("vp_view", NULL); 281 286 } 282 287 … … 286 291 getfilelist(apskin, filelistpath, filelist, filelistpath->text, filemask, tmpview, filelist->select->text); 287 292 addscreenrc(apskin, filelist); 288 289 293 drawscreen(apskin, 0); 290 294 } … … 349 353 if(ostrcmp(getconfig("mc_videoplayerpath", NULL), filelistpath->text) != 0) 350 354 addconfig("mc_videoplayerpath", filelistpath->text); 355 if(ostrcmp(getconfig("mc_selectedfile", NULL), filelist->select->name) != 0) 356 addconfig("mc_selectedfile", filelist->select->name); 351 357 } 352 358 … … 369 375 writevfd("Mediacenter"); 370 376 playinfobarcount = 0; 371 printf("exit: view=%d tmpview=%d\n", view, tmpview); 377 378 printf("exit: view=%d tmpview=%d\n", view, tmpview); 372 379 status.filelistextend = 0; 373 380 break; … … 494 501 //addconfig("mc_videoplayerpath", filelistpath->text); 495 502 currentdirectory = ostrcat("", getconfig("mc_videoplayerpath", NULL), 0, 0); 503 selectedfile = ostrcat(selectedfile, getconfig("mc_selectedfile", NULL), 0, 0); 496 504 497 505 mc_mounter_main(0,filename,filelistpath,filelist,apskin,filemask,tmpview,currentdirectory); … … 576 584 delownerrc(apskin); 577 585 clearscreen(apskin); 578 if(style == 1)579 {580 delmarkedpic(1010);581 delmarkedpic(1011);582 delmarkedpic(1012);583 delmarkedpic(1013);584 }585 586 586 587 free(filename), filename = NULL; 587 588 free(currentdirectory), currentdirectory = NULL; 589 free(selectedfile), selectedfile = NULL; 588 590 589 591 free(status.playfile); status.playfile = NULL; -
titan/plugins/mc/mc_videoplayer_settings.h
r15521 r15606 22 22 setchoiceboxselection(dirsort, getconfig("dirsort", NULL)); 23 23 24 addchoicebox(view, "0", "fast"); 25 // addchoicebox(view, "1", "big"); 26 // addchoicebox(view, "2", "cover"); 27 // addchoicebox(view, "3", "default"); 28 // addchoicebox(view, "4", "details"); 29 // addchoicebox(view, "5", "fullcover"); 30 31 // addchoicebox(view, "0", _("default")); 32 // addchoicebox(view, "1", _("cover")); 33 // addchoicebox(view, "2", _("size")); 34 // addchoicebox(view, "3", _("details")); 35 // addchoicebox(view, "4", _("smal")); 36 // addchoicebox(view, "5", _("fast")); 37 setchoiceboxselection(view, getconfig("view", NULL)); 24 addchoicebox(view, "0", _("fast")); 25 addchoicebox(view, "1", _("big")); 26 addchoicebox(view, "2", _("cover")); 27 addchoicebox(view, "3", _("default")); 28 addchoicebox(view, "4", _("details")); 29 addchoicebox(view, "5", _("fullcover")); 30 setchoiceboxselection(view, getconfig("vp_view", NULL)); 38 31 39 32 addchoicebox(vp_autostart_playlist, "0", _("no")); … … 93 86 { 94 87 addconfigscreencheck("dirsort", dirsort, NULL); 95 addconfigscreencheck("v iew", view, NULL);88 addconfigscreencheck("vp_view", view, NULL); 96 89 addconfigscreencheck("imdb_directory", imdb_directory, NULL); 97 90 addconfigscreencheck("vp_autostart_playlist", vp_autostart_playlist, NULL); -
titan/skins/mc/skin.xml
r15395 r15606 66 66 <node name=mc_filelistpath valign=middle bordersize=1 posx=center posy=100 width=95% height=30> 67 67 <node fontsize=30 bordercol=bordercol scrollbar=auto type=listbox name=listbox posx=center posy=140 width=92% height=50%> 68 <node hspace=10 picmem=skin/ folder.png textposx=30 fontsize=20 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=50%>68 <node hspace=10 picmem=skin/ext_directory.png textposx=30 fontsize=25 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=480> 69 69 <node name=b1 text="Sorting" halign=center valign=middle bordercol=bgcol bordersize=0 posx=15% posy=90% width=150 height=30/> 70 70 <node name=b1 text="Sorting" halign=center valign=middle bordercol=red bordersize=2 posx=15% posy=95% width=150 height=2/> … … 110 110 <node fontsize=30 bordercol=bordercol scrollbar=auto type=listbox name=listbox posx=center posy=140 width=92% height=480> 111 111 <node name=mc_filelistpath valign=middle bordersize=1 posx=center posy=100 width=95% height=30> 112 <node hspace=10 picmem=skin/ folder.png textposx=30 fontsize=40 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=480>112 <node hspace=10 picmem=skin/ext_directory.png textposx=30 fontsize=40 bordersize=0 bordercol=bordercol scrollbar=auto type=filelist name=mc_filelist posx=center posy=140 width=92% height=480> 113 113 <node name=b1 text="Sorting" halign=center valign=middle bordercol=bgcol bordersize=0 posx=15% posy=90% width=150 height=30/> 114 114 <node name=b1 text="Sorting" halign=center valign=middle bordercol=red bordersize=2 posx=15% posy=95% width=150 height=2/> -
titan/titan/filelist.h
r15298 r15606 722 722 int view = 0; 723 723 if (tmpview == -1) 724 view = getconfigint("view", NULL);724 view = 0; 725 725 else 726 726 view = tmpview;
Note: See TracChangeset
for help on using the changeset viewer.