You can subscribe to this list here.
2007 |
Jan
(36) |
Feb
(79) |
Mar
(123) |
Apr
(95) |
May
(119) |
Jun
(172) |
Jul
(124) |
Aug
(100) |
Sep
(83) |
Oct
(52) |
Nov
(97) |
Dec
(87) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(131) |
Feb
(80) |
Mar
(163) |
Apr
(178) |
May
(73) |
Jun
(54) |
Jul
(106) |
Aug
(118) |
Sep
(50) |
Oct
(125) |
Nov
(100) |
Dec
(99) |
2009 |
Jan
(104) |
Feb
(99) |
Mar
(68) |
Apr
(81) |
May
(52) |
Jun
(87) |
Jul
(67) |
Aug
(33) |
Sep
(27) |
Oct
(37) |
Nov
(60) |
Dec
(116) |
2010 |
Jan
(82) |
Feb
(79) |
Mar
(38) |
Apr
(50) |
May
(45) |
Jun
(53) |
Jul
(23) |
Aug
(86) |
Sep
(22) |
Oct
(96) |
Nov
(97) |
Dec
(73) |
2011 |
Jan
(24) |
Feb
(45) |
Mar
(28) |
Apr
(31) |
May
(42) |
Jun
(25) |
Jul
|
Aug
(12) |
Sep
(28) |
Oct
(13) |
Nov
(43) |
Dec
(13) |
2012 |
Jan
(62) |
Feb
(28) |
Mar
(6) |
Apr
(16) |
May
(7) |
Jun
|
Jul
(16) |
Aug
(2) |
Sep
(1) |
Oct
(4) |
Nov
(1) |
Dec
(3) |
2013 |
Jan
(5) |
Feb
|
Mar
(34) |
Apr
(9) |
May
(6) |
Jun
(10) |
Jul
(32) |
Aug
(8) |
Sep
(11) |
Oct
(35) |
Nov
(24) |
Dec
(22) |
2014 |
Jan
(44) |
Feb
(9) |
Mar
(9) |
Apr
(15) |
May
(25) |
Jun
(34) |
Jul
(16) |
Aug
(11) |
Sep
(7) |
Oct
(6) |
Nov
(1) |
Dec
(12) |
2015 |
Jan
(33) |
Feb
(19) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(5) |
From: <rs...@us...> - 2007-07-16 17:50:20
|
Revision: 698 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=698&view=rev Author: rsparey Date: 2007-07-16 10:50:18 -0700 (Mon, 16 Jul 2007) Log Message: ----------- Added a folder remotely Added Paths: ----------- trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/ trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Block.wav trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Knock.wav trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Level.wav trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Line.wav trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/back.wav trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/click.wav trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/cursor.wav trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/notify.wav trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/photo.wav Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Block.wav =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Block.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Knock.wav =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Knock.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Level.wav =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Level.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Line.wav =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/MyTetris.Line.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/back.wav =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/back.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/click.wav =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/click.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/cursor.wav =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/cursor.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/notify.wav =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/notify.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/photo.wav =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Sounds/photo.wav ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rs...@us...> - 2007-07-16 16:34:55
|
Revision: 697 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=697&view=rev Author: rsparey Date: 2007-07-16 09:34:52 -0700 (Mon, 16 Jul 2007) Log Message: ----------- Added a folder remotely Added Paths: ----------- trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/ trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Backspin.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Backspin2.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Basic_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Basic_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultFolderBackBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultFolderBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradio.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioBigLocked.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioLocked.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioStream.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioStreamBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultPlaylist.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultPlaylistBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultShortcutBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Logo_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Mastermind_back.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Mastermind_dot.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Messenger_Buddies.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Music.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Pictures.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Playleft.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Radio.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/TVguideHeader.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Thumb_Mask.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Thumbs.db trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Trailers_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Video.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/VisualizationTrackInfo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/alarm.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/alarm_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/album_background_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/album_background_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/amazonlogo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_down_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_down_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_left_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_left_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_right_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_right_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_up_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_up_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/au.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/back_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/back_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/background_bar.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/background_browser_bar.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/background_glass_hoover_area.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/background_glass_menu_area.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/background_small_play.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/bar_hor.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/bar_vert.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/basichome_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/black.bmp trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/bottom_strip.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/browser_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/burn_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button-cd-focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button-cd-nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_back_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_back_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_close_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_close_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_green_focus_150x32.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_green_focus_165x32.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_green_nofocus_150x32.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_green_nofocus_165x32.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_long_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_new_mail.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_shutdown_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_shutdown_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_small_imdb_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_small_imdb_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_small_settings_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_small_settings_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_tvdesktop_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/button_tvdesktop_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/ca.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/calibrate_bottomright.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/calibrate_pixelratio.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/calibrate_subtitles.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/calibrate_topleft.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/calibration_bar.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/cdimage.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/check-box.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/check-boxNF.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.1.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.10.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.11.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.2.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.3.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.4.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.5.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.6.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.7.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.8.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/common.waiting.9.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/context_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/coverart_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/de.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultAlbum.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultAudio.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultAudioBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultCdda.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultCddaBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultDVDEmpty.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultDVDEmptyBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultDVDRom.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultDVDRomBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultFolder.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultFolderBack.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultFolderNF.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultHardDisk.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultHardDiskBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultNetwork.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultNetworkBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultPicture.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultPictureBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultVideo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultVideoBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/defaultVideoSeenBig.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dialog_background long.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dialog_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dialog_information.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dialog_osd_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dialog_schedule_rec.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dialogue_ok_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dialogue_ok_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dialogue_shutdown_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dialogue_shutdown_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/dvd_unmount.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/endcap_left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/endcap_right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/es.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/exit_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/exit_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/explorer_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/fastforward_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/fastforward_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/filmstrip_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/foofaraw_icon.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/fr.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/greystar.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hbar1.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/home_eq.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_basichome.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_msn messenger.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_musicvideo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my alarm.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my burner.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my dreambox.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my explorer.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my mail.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my music.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my news.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my pictures.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my plugins.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my programs.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my radio.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my recipes.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my status.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my trailers.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my tv series.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my tv.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my videos.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_my weather.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_mynumberplace.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_play dvd.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_remote.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_settings.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_tetris.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_videoeditor.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_webbrowser.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_wikipedia.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hover_x10.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hp_dvd.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hp_selectionbar.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hp_selectionbar_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/hp_start.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_dvd.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_empty_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_empty_focus_music.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_empty_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_empty_nofocus_music.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_news.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_colouroverlay.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_overlay_1.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_overlay_2.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_overlay_3.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_overlay_4.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_overlay_5.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_overlay_6.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_overlay_7.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_overlay_8.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/icon_numberplace_overlay_9.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/info_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/insert_smartcard_01.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/it.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/key.bmp trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/keyNF.bmp trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/list_sub_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/list_sub_focus_arrow.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/list_sub_focus_arrow_small.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/list_sub_focus_big.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/list_sub_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/list_sub_nofocus_big.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_crossfade.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_fastforward.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_gap.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_gapless.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_music videos.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_pause.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_play.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_rec.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_rewind.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/logo_stop.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mail_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mediaportaltext.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/menu_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/menu_list_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/menu_list_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/messenger_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mid_strip.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/minimize_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/minimize_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/missing_coverart.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mouse_left_horizontal.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mouse_left_vertical.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mouse_right_horizontal.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mouse_right_vertical.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/movieinfo_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mplogo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/music-puzzle.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/music_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/music_menu_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mynumberplace_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mytv_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/mytv_bg_big.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_back_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_back_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_enterurl_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_favorites_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_favorites_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_forward_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_forward_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_home_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_home_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_refresh_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_refresh_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_refresh_nofocus1.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_url_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nav_url_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/newMailIcon.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/news.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/newsfeed_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/nowplaying_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_back_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_back_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_bg_bottom.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_bg_settings.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_bg_settngs.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_bg_shine.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_bg_top.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_bg_video.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_dialog.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_dialog_big.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_fastforward_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_fastforward_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_language_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_language_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_menu_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_mute_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_mute_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_next_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_next_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_pause_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_pause_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_play_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_play_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_progress_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_progress_indicator.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_progress_left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_progress_mid.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_progress_mid_orange.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_progress_mid_red.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_progress_right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_progress_shine.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_progress_shine_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_record_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_record_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_rewind_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_rewind_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_settings_audio_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_settings_audio_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_settings_bookmark_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_settings_bookmark_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_settings_subs_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_settings_subs_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_settings_video_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_settings_video_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_slider_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_slider_nibFO.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_slider_nibNF.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_slider_volume_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_stop_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_stop_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_subtitles_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/osd_subtitles_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/page_down_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/page_down_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/page_up_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/page_up_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/pause_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/pause_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/photo-puzzle.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/pictures_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/play_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/play_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playback_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_item_delete_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_item_delete_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_item_delete_nofocus_dimmed.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_item_down_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_item_down_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_item_down_nofocus_dimmed.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_item_up_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_item_up_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_item_up_nofocus_dimmed.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_sub_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/playlist_sub_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/plugins_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/preview.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/previewbackground.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/programs_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/progress_back.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/progress_back_vert.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/progress_bg.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/progress_mid.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/radio-puzzle.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/radio_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/rec.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/recipies_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/recording_background_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/recording_background_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/recording_osd.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/remote_blue.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/remote_green.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/remote_red.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/remote_yellow.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/rew_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/rew_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/select_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/settingsUICalibration.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/settings_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/skipback_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/skipback_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/skipforward_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/skipforward_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/slider_vertical.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/small_button_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/small_button_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/sort_ascending_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/sort_ascending_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/sort_descending_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/sort_descending_nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/star.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/starbad.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/starbest.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/starbetter.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/stargood.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/status_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/statusbar_back.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/statusbar_left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/statusbar_mid.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/statusbar_right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/stop_disabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/stop_enabled.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tab_down.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tab_filler center.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tab_filler left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tab_filler right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tab_left_corner_down.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tab_left_corner_up.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tab_up.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/teletext_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/television_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tetris_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tetris_background_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tetris_block.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tetris_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tetris_scoreboard.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/time_block.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/togglebutton-off-focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/togglebutton-off-nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/togglebutton-on-focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/togglebutton-on-nofocus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tv-puzzle.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tv.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tv_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tv_green_border.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_arrow_left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_arrow_light_left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_arrow_light_right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_arrow_right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_arrow_selected_left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_arrow_selected_right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_button_left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_button_light_left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_button_light_middle.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_button_light_right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_button_middle.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_button_right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_button_selected_left.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_button_selected_middle.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_button_selected_right.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_notify_button.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_record_button.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_recordconflict_button.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_recordserie_button.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_recordserie_conflict_button.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_slider.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvguide_tvchannel.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/tvseries_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/uk.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/us.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/vertical-line.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video+16x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video+2x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video+32x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video+4x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video+8x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video-16x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video-2x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video-32x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video-4x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video-8x.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video-empty.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video-pause.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video-puzzle.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video.action.forbidden.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video_jump.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/video_window_focus.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/videos_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/volume.states.mute.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/volume.states.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/weather_channel.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/weather_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/white.bmp trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/wikipedia_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/x10_logo.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/zaposd_background.png trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/zaposd_background_wide.png Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Backspin.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Backspin.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Backspin2.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Backspin2.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Basic_focus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Basic_focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Basic_nofocus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Basic_nofocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultFolderBackBig.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultFolderBackBig.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultFolderBig.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultFolderBig.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradio.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradio.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioBig.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioBig.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioBigLocked.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioBigLocked.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioLocked.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioLocked.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioStream.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioStream.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioStreamBig.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultMyradioStreamBig.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultPlaylist.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultPlaylist.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultPlaylistBig.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultPlaylistBig.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultShortcutBig.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/DefaultShortcutBig.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Logo_background.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Logo_background.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Mastermind_back.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Mastermind_back.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Mastermind_dot.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Mastermind_dot.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Messenger_Buddies.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Messenger_Buddies.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Music.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Music.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Pictures.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Pictures.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Playleft.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Playleft.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Radio.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Radio.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/TVguideHeader.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/TVguideHeader.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Thumb_Mask.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Thumb_Mask.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Thumbs.db =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Thumbs.db ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Trailers_logo.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Trailers_logo.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Video.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/Video.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/VisualizationTrackInfo.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/VisualizationTrackInfo.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/alarm.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/alarm.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/alarm_logo.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/alarm_logo.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/album_background_focus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/album_background_focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/album_background_nofocus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/album_background_nofocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/amazonlogo.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/amazonlogo.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_down_focus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_down_focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_down_nofocus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_down_nofocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_left_focus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_left_focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_left_nofocus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_left_nofocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_right_focus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_right_focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_right_nofocus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_right_nofocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_up_focus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_up_focus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_up_nofocus.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/arrow_round_up_nofocus.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/au.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/au.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/back_disabled.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/back_disabled.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/back_enabled.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/back_enabled.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/background.png =================================================================== (Binary files differ) Property changes on: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/background.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/Media/background_bar.png =================================================================== (Binary files differ) P... [truncated message content] |
From: <rs...@us...> - 2007-07-16 16:15:20
|
Revision: 696 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=696&view=rev Author: rsparey Date: 2007-07-16 09:15:16 -0700 (Mon, 16 Jul 2007) Log Message: ----------- Added a folder remotely Added Paths: ----------- trunk/skins/Foofaraw/media portal skin development/Foofaraw/ trunk/skins/Foofaraw/media portal skin development/Foofaraw/BasicHome.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogAlbumInfo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogArtistInfo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogDateTime.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogFile.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogFileInfo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogMenu.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogMenuBottomRight.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogNotify.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogPictureInfo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogSelect.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogSelect2.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogTVConflict.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogText.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogVideoArtistInfo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogVideoInfo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/Mastermind.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/MusicMenu.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/MyMusicCoverArtGrabberProgress.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/MyMusicCoverArtGrabberResults.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/MyMusicFullScreenVisualization.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/MyMusicPlayingNow.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/MyRadioLastFM.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/SettingsGUI.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/SettingsMyMusic.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/SettingsOSD.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/SettingsSlideShow.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/TVCropSettings.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/TVMiniGuide.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/TVOSD.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/TVSeries.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/TvServerSetup.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/VideoEditorCompressSettings.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/VideoEditorCutScreen.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/VideoEditorStartScreen.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/WebBrowser.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/WebFavorites.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.MusicAnimation.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.PicturesAnimation.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.RadioAnimation.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.TvAnimation.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.VideoAnimation.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.dialog.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.facade.music.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.facade.pictures.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.facade.playlist.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.facade.video.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.facade.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.progressbar.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.settings.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.time.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.window.default.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/common.window.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/dialogFileStacking.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/dialogOK.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/dialogProgress.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/dialogRating.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/dialogTvGuide.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/dialogYesNo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/fonts.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/home.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mailInfo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mailnotify.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/msnosd.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/musicFullScreen.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/musicOverlay.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/musicVisualisation.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/my messenger chat.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/my messenger.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myHome.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myHomePlugIns.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myalarm.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myalarmdetails.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myalarmsleeptimer.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myburner.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mydreamboxmain.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mydreamboxradio.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mydreamboxrecordings.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myexplorer.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myfsteletext.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mymail.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mymusicgenres.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mymusicplaylist.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mymusicsongs.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mymusicvideoplaylist.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mymusicvideos.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mynumberplace.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mypics.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myplugins.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myprograms.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myradio.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myradioguide.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myrecipes.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myrss.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mystatus.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mystatusdetails.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mystatusprefs.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myteletext.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytetris.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytrailers.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvFullScreen.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvNoSignal.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvRecordedInfo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvcompress.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvcompressauto.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvcompressmain.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvcompresssettings.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvcompressstatus.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvconflicts.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvguide.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvhome.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvhomeServer.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvpriorities.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvprogram.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvrecordedtv.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvrecordedtvchannel.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvrecordedtvgenre.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvscheduler.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvschedulerServer.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvschedulerserverSearch.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvschedulerserverSearchType.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/mytvsearch.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myvideo.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myvideoTitle.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myvideoplaylist.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/myweather.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/psclientplugin_unattended.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/references.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settings.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settingsScreen.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settingsScreenCalibration.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settingsSkipSteps.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settingsUICalibration.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settings_dvd.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settings_general.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settings_movies.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settings_recording.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settings_tv.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settings_tvEpg.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settings_tvSort.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/settings_tvepg_select.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/slideshow.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/topbar.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/topbarhome.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/tvOverlay.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/tvZAPOSD.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/tvmsnosd.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/videoFullScreen.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/videoOSD.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/videoOverlay.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/videoOverlayTop.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wikipedia.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_epg_select.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_finished.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_general.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_remote_control.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_ATSC_scan.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_analog_city.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_analog_country.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_analog_country2.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_analog_imported.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_analog_rename.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_analog_renameradio.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_analog_scan.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_analog_scanradio.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_dvbc_country.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_dvbc_scan.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_dvbs_LNB1.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_dvbs_LNB2.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_dvbs_LNB3.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_dvbs_scan.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_dvbt_country.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcard_dvbt_scan.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_tvcards_detected.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/wizard_welcome.xml trunk/skins/Foofaraw/media portal skin development/Foofaraw/x10plugin.xml Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/BasicHome.xml =================================================================== --- trunk/skins/Foofaraw/media portal skin development/Foofaraw/BasicHome.xml (rev 0) +++ trunk/skins/Foofaraw/media portal skin development/Foofaraw/BasicHome.xml 2007-07-16 16:15:16 UTC (rev 696) @@ -0,0 +1,240 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<window> + <id>35</id> + <defaultcontrol>4</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <controls> + <import>common.window.xml</import> + <import>common.time.xml</import> + + + <control> + <description>icon background</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>377</width> + <height>133</height> + <texture>Logo_background.png</texture> + <animation effect="fade" time="500" delay="1000">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> + </control> + <control> + <description>Big text</description> + <type>label</type> + <id>200</id> + <posX>673</posX> + <posY>650</posY> + <label>#highlightedbutton</label> + <align>center</align> + <font>wipeout</font> + <textcolor>40ffffff</textcolor> + <animation effect="fade" time="250" delay="2000" >WindowOpen</animation> + <animation effect="fade" time="500" delay="5">WindowClose</animation> + </control> + + + <control> + <description>home BM Radio</description> + <type>button</type> + <id>2</id> + <posX>61</posX> + <posY>320</posY> + <width>200</width> + <height>400</height> + <textureFocus>Radio.png</textureFocus> + <textureNoFocus>Radio.png</textureNoFocus> + <thumbZoom>yes</thumbZoom> + <hyperlink>30</hyperlink> + <hover>-</hover> + <hoverX>502</hoverX> + <hoverY>320</hoverY> + <hoverWidth>272</hoverWidth> + <hoverHeight>306</hoverHeight> + <label>665</label> + <textcolor>00ffffff</textcolor> + <textcolorNoFocus>00ffffff</textcolorNoFocus> + <onleft>6</onleft> + <onright>3</onright> + <onup>21</onup> + <ondown>101</ondown> + <animation effect="fade" time="1000" delay="1000" >WindowOpen</animation> + <animation effect="slide" time="1000" start="-161,0" end="0,0" delay="1000" acceleration="-1" >WindowOpen</animation> + <animation effect="fade" time="1000">WindowClose</animation> + <animation effect="slide" time="1000" start="0,0" end="-161,0" acceleration="-1" >WindowClose</animation> + <animation effect="zoom" start="100,100" end="150,150" center="161,520" time="1000" acceleration ="-1" >Focus</animation> + + <animation effect="zoom" start="150,150" end="100,100" center="161,520" time="1000" acceleration ="-1" >Unfocus</animation> + <animation effect="zoom" start="100,100" end="5,5" center="161,520" time="1000" acceleration ="-1" >Control.HasFocus(101)</animation> + + + + </control> + <control> + <description>home BM Video</description> + <type>button</type> + <id>3</id> + <posX>322</posX> + <posY>320</posY> + <width>200</width> + <height>400</height> + <textureFocus>Video.png</textureFocus> + <textureNoFocus>Video.png</textureNoFocus> + <hyperlink>6</hyperlink> + <hover>-</hover> + <hoverX>502</hoverX> + <hoverY>320</hoverY> + <hoverWidth>272</hoverWidth> + <hoverHeight>306</hoverHeight> + <label>3</label> + <textcolor>00ffffff</textcolor> + <textcolorNoFocus>00ffffff</textcolorNoFocus> + <onleft>2</onleft> + <onright>4</onright> + <onup>21</onup> + <ondown>3</ondown> + <animation effect="fade" time="1000" delay="750" >WindowOpen</animation> + <animation effect="slide" time="1000" start="-422,0" end="0,0" delay="750" acceleration="-1" >WindowOpen</animation> + <animation effect="fade" time="1000" delay="250" >WindowClose</animation> + <animation effect="slide" time="1000" start="0,0" end="-422,0" delay="250" acceleration="-1" >Windowclose</animation> + <animation effect="zoom" start="100,100" end="150,150" center="422,520" time="1000" acceleration ="-1" >Focus</animation> + <animation effect="zoom" start="150,150" end="100,100" center="422,520" time="1000" acceleration ="-1" >Unfocus</animation> + </control> + + + + + <control> + <description>home BM FFS</description> + <type>button</type> + <id>4</id> + <posX>583</posX> + <posY>360</posY> + <width>200</width> + <height>400</height> + <textureFocus>TV.png</textureFocus> + <textureNoFocus>TV.png</textureNoFocus> + <hyperlink>1</hyperlink> + <hover>-</hover> + <hoverX>502</hoverX> + <hoverY>360</hoverY> + <hoverWidth>272</hoverWidth> + <hoverHeight>306</hoverHeight> + <label>605</label> + <textcolor>00ffffff</textcolor> + <textcolorNoFocus>00ffffff</textcolorNoFocus> + <onleft>3</onleft> + <onright>5</onright> + <onup>21</onup> + <ondown>4</ondown> + <animation effect="fade" time="1000" delay="500" >WindowOpen</animation> + <animation effect="slide" time="1000" start="-683,0" end="0,0" delay="500" acceleration="-1" >WindowOpen</animation> + <animation effect="fade" time="1000" delay="500">WindowClose</animation> + <animation effect="slide" time="1000" start="0,0" end="-683,0" delay="500" acceleration="-1" >Windowclose</animation> + <animation effect="zoom" start="100,100" end="150,150" center="683,520" time="1000" acceleration ="-1" >Focus</animation> + <animation effect="zoom" start="150,150" end="100,100" center="683,520" time="1000" acceleration ="-1" >Unfocus</animation> + </control> + <control> + <description>home BM Music</description> + <type>button</type> + <id>5</id> + <posX>844</posX> + <posY>320</posY> + <width>200</width> + <height>400</height> + <textureFocus>Music.png</textureFocus> + <textureNoFocus>Music.png</textureNoFocus> + <hyperlink>501</hyperlink> + <hover>-</hover> + <hoverX>502</hoverX> + <hoverY>360</hoverY> + <hoverWidth>272</hoverWidth> + <hoverHeight>306</hoverHeight> + <label>2</label> + <textcolor>00ffffff</textcolor> + <textcolorNoFocus>00ffffff</textcolorNoFocus> + <onleft>4</onleft> + <onright>6</onright> + <onup>21</onup> + <ondown>5</ondown> + <animation effect="fade" time="1000" delay="250" >WindowOpen</animation> + <animation effect="slide" time="1000" start="-944,0" end="0,0" delay="250" acceleration="-1" >WindowOpen</animation> + <animation effect="fade" time="1000" delay="750">WindowClose</animation> + <animation effect="slide" time="1000" start="0,0" end="-944,0" delay="750" acceleration="-1" >Windowclose</animation> + <animation effect="zoom" start="100,100" end="150,150" center="944,520" time="1000" acceleration ="-1" >Focus</animation> + <animation effect="zoom" start="150,150" end="100,100" center="944,520" time="1000" acceleration ="-1" >Unfocus</animation> + + + + + </control> + <control> + <description>home BM Pictures</description> + <type>button</type> + <id>6</id> + <posX>1105</posX> + <posY>320</posY> + <width>200</width> + <height>400</height> + <textureFocus>Pictures.png</textureFocus> + <textureNoFocus>Pictures.png</textureNoFocus> + <hyperlink>2</hyperlink> + <hover>-</hover> + <hoverX>502</hoverX> + <hoverY>360</hoverY> + <hoverWidth>272</hoverWidth> + <hoverHeight>306</hoverHeight> + <label>1</label> + <textcolor>00ffffff</textcolor> + <textcolorNoFocus>00ffffff</textcolorNoFocus> + <onleft>5</onleft> + <onright>2</onright> + <onup>21</onup> + <animation effect="fade" time="1000" >WindowOpen</animation> + <animation effect="slide" time="500" start="-1205,0" end="0,0" acceleration="-1" >WindowOpen</animation> + <animation effect="fade" time="1000" delay="1000">WindowClose</animation> + <animation effect="slide" time="1000" start="0,0" end="-1205,0" delay="1000" acceleration="-1" >Windowclose</animation> + <animation effect="zoom" start="100,100" end="150,150" center="1205,520" time="1000" acceleration ="-1" >Focus</animation> + <animation effect="zoom" start="150,150" end="100,100" center="1205,520" time="1000" acceleration ="-1" >Unfocus</animation> + + </control> + + + <control> + <type>image</type> + <id>1</id> + <posX>90</posX> + <posY>23</posY> + <texture>basichome_logo.png</texture> + <animation effect="fade" time="500" delay="1300">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> + </control> + + <control> + <type>image</type> + <id>1</id> + <posX>24</posX> + <posY>22</posY> + <width>46</width> + <height>89</height> + <texture>hover_basichome.png</texture> + <animation effect="fade" time="1000" delay="2000">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> + </control> + <control> + <type>label</type> + <description>Basic Home Label</description> + <id>1</id> + <posX>251</posX> + <posY>68</posY> + <label>100035</label> + <font>wipeouts</font> + <align>center</align> + <textcolor>ffffffff</textcolor> + <animation effect="fade" time="1000" end="60" delay="2000">WindowOpen</animation> + <animation effect="slide" time="1000" delay="2000" start="-600,0" end="0,0" acceleration="-1">WindowOpen</animation> + <animation effect="fade" time="500" start="50">WindowClose</animation> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogAlbumInfo.xml =================================================================== --- trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogAlbumInfo.xml (rev 0) +++ trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogAlbumInfo.xml 2007-07-16 16:15:16 UTC (rev 696) @@ -0,0 +1,248 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<window> + <id>2001</id> + <defaultcontrol>5</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>background image</description> + <type>image</type> + <id>1</id> + <width>1366</width> + <height>768</height> + </control> + <control> + <type>image</type> + <id>1</id> + <posX>113</posX> + <posY>26</posY> + <texture>info_logo.png</texture> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Album value</description> + <type>label</type> + <id>20</id> + <posX>417</posX> + <posY>66</posY> + <label>-</label> + <font>font16</font> + <align>left</align> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Artist</description> + <type>label</type> + <id>1</id> + <posX>319</posX> + <posY>133</posY> + <label>171</label> + <font>font13</font> + <align>right</align> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Date of Release</description> + <type>label</type> + <id>1</id> + <posX>319</posX> + <posY>160</posY> + <label>201</label> + <font>font13</font> + <align>right</align> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Rating</description> + <type>label</type> + <id>1</id> + <posX>319</posX> + <posY>186</posY> + <label>173</label> + <font>font13</font> + <align>right</align> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Genre</description> + <type>label</type> + <id>1</id> + <posX>319</posX> + <posY>213</posY> + <label>174</label> + <font>font13</font> + <align>right</align> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Tones</description> + <type>label</type> + <id>1</id> + <posX>319</posX> + <posY>240</posY> + <label>175</label> + <font>font13</font> + <align>right</align> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Styles</description> + <type>label</type> + <id>1</id> + <posX>319</posX> + <posY>266</posY> + <label>176</label> + <font>font13</font> + <align>right</align> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Artist value</description> + <type>label</type> + <id>21</id> + <posX>417</posX> + <posY>133</posY> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Date of Release value</description> + <type>label</type> + <id>22</id> + <posX>417</posX> + <posY>160</posY> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Rating value</description> + <type>label</type> + <id>23</id> + <posX>417</posX> + <posY>186</posY> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Genre value</description> + <type>label</type> + <id>24</id> + <posX>417</posX> + <posY>213</posY> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Tones value</description> + <type>fadelabel</type> + <id>25</id> + <posX>417</posX> + <posY>240</posY> + <width>733</width> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Styles value</description> + <type>fadelabel</type> + <id>26</id> + <posX>417</posX> + <posY>266</posY> + <width>733</width> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Album Art</description> + <type>image</type> + <id>3</id> + <posX>189</posX> + <posY>333</posY> + <width>133</width> + <height>133</height> + <texture>-</texture> + <colorkey>FFFF00FF</colorkey> + <colordiffuse>FFFFFFFF</colordiffuse> + <keepaspectratio>yes</keepaspectratio> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>textarea</description> + <type>textbox</type> + <id>4</id> + <posY>316</posY> + <width>796</width> + <onleft>5</onleft> + <onright>5</onright> + <onup>5</onup> + <ondown>5</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Tracks/Review</description> + <type>button</type> + <id>5</id> + <posX>189</posX> + <posY>506</posY> + <width>132</width> + <label>182</label> + <onleft>4</onleft> + <onright>4</onright> + <onup>6</onup> + <ondown>6</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Refresh</description> + <type>button</type> + <id>6</id> + <posX>189</posX> + <posY>554</posY> + <width>132</width> + <label>184</label> + <font>font13</font> + <onleft>4</onleft> + <onright>4</onright> + <onup>5</onup> + <ondown>5</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogArtistInfo.xml =================================================================== --- trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogArtistInfo.xml (rev 0) +++ trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogArtistInfo.xml 2007-07-16 16:15:16 UTC (rev 696) @@ -0,0 +1,265 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<window> + <id>2011</id> + <defaultcontrol>5</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>background image</description> + <type>image</type> + <id>1</id> + <width>1366</width> + <height>768</height> + </control> + <control> + <type>image</type> + <id>1</id> + <posX>113</posX> + <posY>26</posY> + <texture>info_logo.png</texture> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Artist</description> + <type>label</type> + <id>1</id> + <posX>189</posX> + <posY>133</posY> + <label>493</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Artist value</description> + <type>label</type> + <id>20</id> + <posX>417</posX> + <posY>66</posY> + <label>-</label> + <font>font16</font> + <align>left</align> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Born</description> + <type>label</type> + <id>1</id> + <posX>189</posX> + <posY>160</posY> + <label>686</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Years Active</description> + <type>label</type> + <id>1</id> + <posX>189</posX> + <posY>186</posY> + <label>687</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Genres</description> + <type>label</type> + <id>1</id> + <posX>189</posX> + <posY>213</posY> + <label>135</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Tones</description> + <type>label</type> + <id>1</id> + <posX>189</posX> + <posY>240</posY> + <label>175</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Styles</description> + <type>label</type> + <id>1</id> + <posX>189</posX> + <posY>266</posY> + <label>176</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Instruments</description> + <type>label</type> + <id>1</id> + <posX>189</posX> + <posY>293</posY> + <label>688</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Artist value</description> + <type>label</type> + <id>21</id> + <posX>417</posX> + <posY>133</posY> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Born value</description> + <type>label</type> + <id>22</id> + <posX>417</posX> + <posY>160</posY> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Years Active value</description> + <type>label</type> + <id>23</id> + <posX>417</posX> + <posY>186</posY> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Genres value</description> + <type>label</type> + <id>24</id> + <posX>417</posX> + <posY>213</posY> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Tones value</description> + <type>fadelabel</type> + <id>25</id> + <posX>417</posX> + <posY>240</posY> + <width>533</width> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Styles value</description> + <type>fadelabel</type> + <id>26</id> + <posX>417</posX> + <posY>266</posY> + <width>533</width> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Instruments value</description> + <type>label</type> + <id>27</id> + <posX>417</posX> + <posY>293</posY> + <label>-</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>artist image</description> + <type>image</type> + <id>3</id> + <posX>189</posX> + <posY>333</posY> + <width>133</width> + <height>133</height> + <texture>-</texture> + <colorkey>FFFF00FF</colorkey> + <colordiffuse>FFFFFFFF</colordiffuse> + <keepaspectratio>yes</keepaspectratio> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>textarea</description> + <type>textbox</type> + <id>4</id> + <posY>333</posY> + <onleft>5</onleft> + <onright>5</onright> + <onup>5</onup> + <ondown>5</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Bio/Albums</description> + <type>button</type> + <id>5</id> + <posX>189</posX> + <posY>506</posY> + <width>120</width> + <label>689</label> + <onleft>4</onleft> + <onright>4</onright> + <onup>6</onup> + <ondown>6</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Refresh</description> + <type>button</type> + <id>6</id> + <posX>189</posX> + <posY>554</posY> + <width>120</width> + <label>184</label> + <font>font13</font> + <onleft>4</onleft> + <onright>4</onright> + <onup>5</onup> + <ondown>5</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogDateTime.xml =================================================================== --- trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogDateTime.xml (rev 0) +++ trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogDateTime.xml 2007-07-16 16:15:16 UTC (rev 696) @@ -0,0 +1,374 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<window> + <id>2010</id> + <defaultcontrol>12</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <width>1366</width> + <height>768</height> + <texture>black.bmp</texture> + <colordiffuse>60ffffff</colordiffuse> + </control> + <control> + <description>background image</description> + <type>image</type> + <id>0</id> + <posX>199</posX> + <width>728</width> + <height>368</height> + <posY>206</posY> + <texture>dialog_schedule_rec.png</texture> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Channel</description> + <type>label</type> + <id>0</id> + <posX>284</posX> + <posY>302</posY> + <label>602</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Channel Select</description> + <type>spincontrol</type> + <id>1</id> + <posX>455</posX> + <posY>306</posY> + <showrange>no</showrange> + <digits>3</digits> + <onup>12</onup> + <ondown>2</ondown> + <onleft>1</onleft> + <onright>1</onright> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Start Date/Time</description> + <type>label</type> + <id>0</id> + <posX>284</posX> + <posY>346</posY> + <label>633</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + </control> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + <control> + <description>Time</description> + <type>label</type> + <id>0</id> + <posX>284</posX> + <posY>373</posY> + <label>635</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>time hours</description> + <type>spincontrol</type> + <spintype>int</spintype> + <orientation>vertical</orientation> + <digits>2</digits> + <id>2</id> + <posX>322</posX> + <posY>406</posY> + <showrange>no</showrange> + <onup>1</onup> + <ondown>4</ondown> + <onleft>2</onleft> + <onright>3</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>time minutes</description> + <type>spincontrol</type> + <spintype>int</spintype> + <orientation>vertical</orientation> + <digits>2</digits> + <id>3</id> + <posX>417</posX> + <posY>406</posY> + <showrange>no</showrange> + <onup>2</onup> + <ondown>4</ondown> + <onleft>2</onleft> + <onright>3</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Date</description> + <type>label</type> + <id>0</id> + <posX>284</posX> + <posY>440</posY> + <label>636</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>DD</description> + <type>spincontrol</type> + <spintype>int</spintype> + <orientation>vertical</orientation> + <id>4</id> + <posX>322</posX> + <posY>480</posY> + <showrange>no</showrange> + <onup>2</onup> + <ondown>7</ondown> + <onleft>4</onleft> + <onright>5</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>MM</description> + <type>spincontrol</type> + <spintype>int</spintype> + <orientation>vertical</orientation> + <id>5</id> + <posX>417</posX> + <posY>480</posY> + <showrange>no</showrange> + <onup>2</onup> + <ondown>7</ondown> + <onleft>4</onleft> + <onright>6</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>YYYY</description> + <type>spincontrol</type> + <spintype>int</spintype> + <digits>4</digits> + <orientation>vertical</orientation> + <id>6</id> + <posX>512</posX> + <posY>480</posY> + <showrange>no</showrange> + <onup>2</onup> + <ondown>7</ondown> + <onleft>5</onleft> + <onright>7</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>End Date/Time</description> + <type>label</type> + <id>0</id> + <posX>683</posX> + <posY>346</posY> + <label>634</label> + <font>font13</font> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Time</description> + <type>label</type> + <id>0</id> + <posX>683</posX> + <posY>373</posY> + <label>635</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>time hours</description> + <type>spincontrol</type> + <spintype>int</spintype> + <orientation>vertical</orientation> + <digits>2</digits> + <id>7</id> + <posX>720</posX> + <posY>406</posY> + <showrange>no</showrange> + <onup>4</onup> + <ondown>9</ondown> + <onleft>7</onleft> + <onright>8</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>time minutes</description> + <type>spincontrol</type> + <spintype>int</spintype> + <orientation>vertical</orientation> + <digits>2</digits> + <id>8</id> + <posX>815</posX> + <posY>406</posY> + <showrange>no</showrange> + <onup>4</onup> + <ondown>9</ondown> + <onleft>7</onleft> + <onright>9</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Date</description> + <type>label</type> + <id>0</id> + <posX>683</posX> + <posY>440</posY> + <label>636</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>DD</description> + <type>spincontrol</type> + <spintype>int</spintype> + <orientation>vertical</orientation> + <id>9</id> + <posX>720</posX> + <posY>480</posY> + <showrange>no</showrange> + <onup>7</onup> + <ondown>12</ondown> + <onleft>9</onleft> + <onright>10</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>MM</description> + <type>spincontrol</type> + <spintype>int</spintype> + <orientation>vertical</orientation> + <id>10</id> + <posX>815</posX> + <posY>480</posY> + <showrange>no</showrange> + <onup>7</onup> + <ondown>12</ondown> + <onleft>9</onleft> + <onright>11</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>YYYY</description> + <type>spincontrol</type> + <spintype>int</spintype> + <digits>4</digits> + <orientation>vertical</orientation> + <id>11</id> + <posX>910</posX> + <posY>480</posY> + <showrange>no</showrange> + <onup>7</onup> + <ondown>12</ondown> + <onleft>10</onleft> + <onright>11</onright> + <textcolor>FFFFFFFF</textcolor> + <textureUp>arrow_round_up_nofocus.png</textureUp> + <textureDown>arrow_round_down_nofocus.png</textureDown> + <textureUpFocus>arrow_round_up_focus.png</textureUpFocus> + <textureDownFocus>arrow_round_down_focus.png</textureDownFocus> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>12</id> + <posX>1062</posX> + <posY>253</posY> + <width>60</width> + <height>60</height> + <textureFocus>dialogue_ok_focus.png</textureFocus> + <textureNoFocus>dialogue_ok_nofocus.png</textureNoFocus> + <label>-</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>11</onup> + <ondown>1</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>13</id> + <posX>284</posX> + <posY>253</posY> + <label>0</label> + <font>font13</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogFile.xml =================================================================== --- trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogFile.xml (rev 0) +++ trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogFile.xml 2007-07-16 16:15:16 UTC (rev 696) @@ -0,0 +1,117 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<window> + <id>758</id> + <defaultcontrol>14</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <controls> + <import>common.dialog.xml</import> + <control> + <type>image</type> + <id>100</id> + <posX>390</posX> + <posY>401</posY> + <width>460</width> + <texture>osd_progress_background.png</texture> + </control> + <control> + <description>progress control</description> + <type>progress</type> + <id>20</id> + <posX>369</posX> + <posY>400</posY> + <width>489</width> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Yes button</description> + <type>button</type> + <id>11</id> + <posX>388</posX> + <posY>440</posY> + <width>140</width> + <height>50</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>107</label> + <onleft>14</onleft> + <onright>10</onright> + <onup>12</onup> + <ondown>12</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>No button</description> + <type>button</type> + <id>10</id> + <posX>622</posX> + <posY>440</posY> + <width>140</width> + <height>50</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>106</label> + <onleft>11</onleft> + <onright>14</onright> + <onup>13</onup> + <ondown>13</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Always</description> + <type>button</type> + <id>12</id> + <posX>388</posX> + <posY>493</posY> + <width>140</width> + <height>50</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>511</label> + <onleft>13</onleft> + <onright>13</onright> + <onup>11</onup> + <ondown>11</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Never</description> + <type>button</type> + <id>13</id> + <posX>622</posX> + <posY>493</posY> + <width>140</width> + <height>50</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>512</label> + <onleft>12</onleft> + <onright>12</onright> + <onup>10</onup> + <ondown>10</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Cancel button</description> + <type>button</type> + <id>14</id> + <posX>857</posX> + <posY>440</posY> + <width>140</width> + <height>50</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>510</label> + <onleft>10</onleft> + <onright>11</onright> + <onup>14</onup> + <ondown>14</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + </controls> +</window> \ No newline at end of file Added: trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogFileInfo.xml =================================================================== --- trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogFileInfo.xml (rev 0) +++ trunk/skins/Foofaraw/media portal skin development/Foofaraw/DialogFileInfo.xml 2007-07-16 16:15:16 UTC (rev 696) @@ -0,0 +1,263 @@ +<?xml... [truncated message content] |
From: <rs...@us...> - 2007-07-16 16:10:20
|
Revision: 695 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=695&view=rev Author: rsparey Date: 2007-07-16 09:10:13 -0700 (Mon, 16 Jul 2007) Log Message: ----------- Added a foofaraw development log folder remotely Added Paths: ----------- trunk/skins/Foofaraw/media portal skin development/ trunk/skins/Foofaraw/media portal skin development/compile.log Added: trunk/skins/Foofaraw/media portal skin development/compile.log =================================================================== This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rs...@us...> - 2007-07-16 16:08:36
|
Revision: 694 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=694&view=rev Author: rsparey Date: 2007-07-16 09:08:28 -0700 (Mon, 16 Jul 2007) Log Message: ----------- Created folder remotely Added Paths: ----------- trunk/skins/Foofaraw/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <an...@us...> - 2007-07-16 06:32:25
|
Revision: 693 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=693&view=rev Author: and-81 Date: 2007-07-15 23:32:23 -0700 (Sun, 15 Jul 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.resx trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/DeviceSelect.cs trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/NativeMethods.cs trunk/plugins/IR Server Suite/IR Server Suite.sln Added Paths: ----------- trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver v2/ trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver v2/Configure.Designer.cs trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver v2/Configure.cs trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver v2/Configure.resx trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver v2/MCE Replacement Transceiver v2.csproj trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver v2/MceIrApi.cs trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver v2/MceReplacementTransceiverV2.cs trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver v2/Properties/ trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver v2/Properties/AssemblyInfo.cs Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs 2007-07-15 16:20:48 UTC (rev 692) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs 2007-07-16 06:32:23 UTC (rev 693) @@ -98,6 +98,58 @@ this.buttonKeyHelp = new System.Windows.Forms.Button(); this.labelKeystrokes = new System.Windows.Forms.Label(); this.textBoxKeys = new System.Windows.Forms.TextBox(); + this.contextMenuStripKeystrokes = new System.Windows.Forms.ContextMenuStrip(this.components); + this.cutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.copyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.pasteToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.selectAllToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.selectNoneToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.specialKeyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.arrowsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.upToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.downToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.leftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.rightToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.functionKeysToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f1ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f3ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f4ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f5ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f6ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f7ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f8ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f9ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f10ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f11ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f12ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f13ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f14ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f15ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.f16ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.keypadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.addToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.subtractToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.multiplyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.divideToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); + this.backspaceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.breakToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.capsLockToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.delToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.endToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.enterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.escapeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.homeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.insToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.numLockToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.pageDownToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.pageUpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.scrollLockToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.tabToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tabPageMouse = new System.Windows.Forms.TabPage(); this.groupBoxMouseScroll = new System.Windows.Forms.GroupBox(); this.checkBoxMouseScrollDown = new System.Windows.Forms.CheckBox(); @@ -117,6 +169,10 @@ this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); this.toolTips = new System.Windows.Forms.ToolTip(this.components); + this.modifiersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.altToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.controlToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.shiftToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.groupBoxButton.SuspendLayout(); this.groupBoxSet.SuspendLayout(); this.tabControl.SuspendLayout(); @@ -134,6 +190,7 @@ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWParam)).BeginInit(); this.groupBoxMessageTarget.SuspendLayout(); this.tabPageKeystrokes.SuspendLayout(); + this.contextMenuStripKeystrokes.SuspendLayout(); this.tabPageMouse.SuspendLayout(); this.groupBoxMouseScroll.SuspendLayout(); this.groupBoxMouseClick.SuspendLayout(); @@ -186,6 +243,7 @@ this.textBoxKeyCode.TabIndex = 1; this.textBoxKeyCode.TabStop = false; this.textBoxKeyCode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.toolTips.SetToolTip(this.textBoxKeyCode, "This button\'s unique IR code"); // // textBoxButtonDesc // @@ -195,6 +253,7 @@ this.textBoxButtonDesc.Name = "textBoxButtonDesc"; this.textBoxButtonDesc.Size = new System.Drawing.Size(360, 20); this.textBoxButtonDesc.TabIndex = 3; + this.toolTips.SetToolTip(this.textBoxButtonDesc, "Provide a description of this button here"); this.textBoxButtonDesc.TextChanged += new System.EventHandler(this.textBoxButtonDesc_TextChanged); // // groupBoxSet @@ -297,6 +356,7 @@ this.buttonLearnIR.Size = new System.Drawing.Size(64, 24); this.buttonLearnIR.TabIndex = 6; this.buttonLearnIR.Text = "Learn"; + this.toolTips.SetToolTip(this.buttonLearnIR, "Click here to add a new IR Command to the list"); this.buttonLearnIR.UseVisualStyleBackColor = true; this.buttonLearnIR.Click += new System.EventHandler(this.buttonLearnIR_Click); // @@ -359,6 +419,7 @@ this.buttonNewMacro.Size = new System.Drawing.Size(64, 24); this.buttonNewMacro.TabIndex = 2; this.buttonNewMacro.Text = "New"; + this.toolTips.SetToolTip(this.buttonNewMacro, "Click here to create a new Macro"); this.buttonNewMacro.UseVisualStyleBackColor = true; this.buttonNewMacro.Click += new System.EventHandler(this.buttonNewMacro_Click); // @@ -479,6 +540,7 @@ this.buttonStartupFolder.Size = new System.Drawing.Size(24, 20); this.buttonStartupFolder.TabIndex = 5; this.buttonStartupFolder.Text = "..."; + this.toolTips.SetToolTip(this.buttonStartupFolder, "Click here to locate the working folder for the application"); this.buttonStartupFolder.UseVisualStyleBackColor = true; this.buttonStartupFolder.Click += new System.EventHandler(this.buttonStartupFolder_Click); // @@ -508,6 +570,7 @@ this.buttonLocate.Size = new System.Drawing.Size(24, 20); this.buttonLocate.TabIndex = 2; this.buttonLocate.Text = "..."; + this.toolTips.SetToolTip(this.buttonLocate, "Click here to locate the application to run"); this.buttonLocate.UseVisualStyleBackColor = true; this.buttonLocate.Click += new System.EventHandler(this.buttonLocate_Click); // @@ -682,6 +745,7 @@ this.buttonParamQuestion.Size = new System.Drawing.Size(24, 20); this.buttonParamQuestion.TabIndex = 2; this.buttonParamQuestion.Text = "?"; + this.toolTips.SetToolTip(this.buttonParamQuestion, "Click here for command parameters"); this.buttonParamQuestion.UseVisualStyleBackColor = true; this.buttonParamQuestion.Click += new System.EventHandler(this.buttonParamQuestion_Click); // @@ -844,6 +908,7 @@ this.buttonFindMsgTarget.Size = new System.Drawing.Size(24, 20); this.buttonFindMsgTarget.TabIndex = 5; this.buttonFindMsgTarget.Text = "..."; + this.toolTips.SetToolTip(this.buttonFindMsgTarget, "Click here to locate the target for this Window Message"); this.buttonFindMsgTarget.UseVisualStyleBackColor = true; this.buttonFindMsgTarget.Click += new System.EventHandler(this.buttonFindMsgTarget_Click); // @@ -901,6 +966,7 @@ this.buttonKeyHelp.Size = new System.Drawing.Size(64, 24); this.buttonKeyHelp.TabIndex = 2; this.buttonKeyHelp.Text = "Help"; + this.toolTips.SetToolTip(this.buttonKeyHelp, "Click here for help on keystroke commands"); this.buttonKeyHelp.UseVisualStyleBackColor = true; this.buttonKeyHelp.Click += new System.EventHandler(this.buttonKeyHelp_Click); // @@ -920,13 +986,424 @@ this.textBoxKeys.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); + this.textBoxKeys.ContextMenuStrip = this.contextMenuStripKeystrokes; this.textBoxKeys.Location = new System.Drawing.Point(8, 24); this.textBoxKeys.Multiline = true; this.textBoxKeys.Name = "textBoxKeys"; this.textBoxKeys.ScrollBars = System.Windows.Forms.ScrollBars.Both; + this.textBoxKeys.ShortcutsEnabled = false; this.textBoxKeys.Size = new System.Drawing.Size(416, 144); this.textBoxKeys.TabIndex = 1; // + // contextMenuStripKeystrokes + // + this.contextMenuStripKeystrokes.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.cutToolStripMenuItem, + this.copyToolStripMenuItem, + this.pasteToolStripMenuItem, + this.toolStripSeparator1, + this.selectAllToolStripMenuItem, + this.selectNoneToolStripMenuItem, + this.toolStripSeparator2, + this.specialKeyToolStripMenuItem}); + this.contextMenuStripKeystrokes.Name = "contextMenuStripKeystrokes"; + this.contextMenuStripKeystrokes.Size = new System.Drawing.Size(155, 170); + // + // cutToolStripMenuItem + // + this.cutToolStripMenuItem.Name = "cutToolStripMenuItem"; + this.cutToolStripMenuItem.Size = new System.Drawing.Size(154, 22); + this.cutToolStripMenuItem.Text = "Cut"; + this.cutToolStripMenuItem.Click += new System.EventHandler(this.cutToolStripMenuItem_Click); + // + // copyToolStripMenuItem + // + this.copyToolStripMenuItem.Name = "copyToolStripMenuItem"; + this.copyToolStripMenuItem.Size = new System.Drawing.Size(154, 22); + this.copyToolStripMenuItem.Text = "Copy"; + this.copyToolStripMenuItem.Click += new System.EventHandler(this.copyToolStripMenuItem_Click); + // + // pasteToolStripMenuItem + // + this.pasteToolStripMenuItem.Name = "pasteToolStripMenuItem"; + this.pasteToolStripMenuItem.Size = new System.Drawing.Size(154, 22); + this.pasteToolStripMenuItem.Text = "Paste"; + this.pasteToolStripMenuItem.Click += new System.EventHandler(this.pasteToolStripMenuItem_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(151, 6); + // + // selectAllToolStripMenuItem + // + this.selectAllToolStripMenuItem.Name = "selectAllToolStripMenuItem"; + this.selectAllToolStripMenuItem.Size = new System.Drawing.Size(154, 22); + this.selectAllToolStripMenuItem.Text = "Select All"; + this.selectAllToolStripMenuItem.Click += new System.EventHandler(this.selectAllToolStripMenuItem_Click); + // + // selectNoneToolStripMenuItem + // + this.selectNoneToolStripMenuItem.Name = "selectNoneToolStripMenuItem"; + this.selectNoneToolStripMenuItem.Size = new System.Drawing.Size(154, 22); + this.selectNoneToolStripMenuItem.Text = "Select None"; + this.selectNoneToolStripMenuItem.Click += new System.EventHandler(this.selectNoneToolStripMenuItem_Click); + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(151, 6); + // + // specialKeyToolStripMenuItem + // + this.specialKeyToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.arrowsToolStripMenuItem, + this.functionKeysToolStripMenuItem, + this.keypadToolStripMenuItem, + this.modifiersToolStripMenuItem, + this.toolStripSeparator3, + this.backspaceToolStripMenuItem, + this.breakToolStripMenuItem, + this.capsLockToolStripMenuItem, + this.delToolStripMenuItem, + this.endToolStripMenuItem, + this.enterToolStripMenuItem, + this.escapeToolStripMenuItem, + this.helpToolStripMenuItem, + this.homeToolStripMenuItem, + this.insToolStripMenuItem, + this.numLockToolStripMenuItem, + this.pageDownToolStripMenuItem, + this.pageUpToolStripMenuItem, + this.scrollLockToolStripMenuItem, + this.tabToolStripMenuItem}); + this.specialKeyToolStripMenuItem.Name = "specialKeyToolStripMenuItem"; + this.specialKeyToolStripMenuItem.Size = new System.Drawing.Size(154, 22); + this.specialKeyToolStripMenuItem.Text = "Special Key ..."; + // + // arrowsToolStripMenuItem + // + this.arrowsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.upToolStripMenuItem, + this.downToolStripMenuItem, + this.leftToolStripMenuItem, + this.rightToolStripMenuItem}); + this.arrowsToolStripMenuItem.Name = "arrowsToolStripMenuItem"; + this.arrowsToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.arrowsToolStripMenuItem.Text = "Arrows"; + // + // upToolStripMenuItem + // + this.upToolStripMenuItem.Name = "upToolStripMenuItem"; + this.upToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.upToolStripMenuItem.Text = "Up"; + this.upToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // downToolStripMenuItem + // + this.downToolStripMenuItem.Name = "downToolStripMenuItem"; + this.downToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.downToolStripMenuItem.Text = "Down"; + this.downToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // leftToolStripMenuItem + // + this.leftToolStripMenuItem.Name = "leftToolStripMenuItem"; + this.leftToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.leftToolStripMenuItem.Text = "Left"; + this.leftToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // rightToolStripMenuItem + // + this.rightToolStripMenuItem.Name = "rightToolStripMenuItem"; + this.rightToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.rightToolStripMenuItem.Text = "Right"; + this.rightToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // functionKeysToolStripMenuItem + // + this.functionKeysToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.f1ToolStripMenuItem, + this.f2ToolStripMenuItem, + this.f3ToolStripMenuItem, + this.f4ToolStripMenuItem, + this.f5ToolStripMenuItem, + this.f6ToolStripMenuItem, + this.f7ToolStripMenuItem, + this.f8ToolStripMenuItem, + this.f9ToolStripMenuItem, + this.f10ToolStripMenuItem, + this.f11ToolStripMenuItem, + this.f12ToolStripMenuItem, + this.f13ToolStripMenuItem, + this.f14ToolStripMenuItem, + this.f15ToolStripMenuItem, + this.f16ToolStripMenuItem}); + this.functionKeysToolStripMenuItem.Name = "functionKeysToolStripMenuItem"; + this.functionKeysToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.functionKeysToolStripMenuItem.Text = "Function Keys"; + // + // f1ToolStripMenuItem + // + this.f1ToolStripMenuItem.Name = "f1ToolStripMenuItem"; + this.f1ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f1ToolStripMenuItem.Text = "F1"; + this.f1ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f2ToolStripMenuItem + // + this.f2ToolStripMenuItem.Name = "f2ToolStripMenuItem"; + this.f2ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f2ToolStripMenuItem.Text = "F2"; + this.f2ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f3ToolStripMenuItem + // + this.f3ToolStripMenuItem.Name = "f3ToolStripMenuItem"; + this.f3ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f3ToolStripMenuItem.Text = "F3"; + this.f3ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f4ToolStripMenuItem + // + this.f4ToolStripMenuItem.Name = "f4ToolStripMenuItem"; + this.f4ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f4ToolStripMenuItem.Text = "F4"; + this.f4ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f5ToolStripMenuItem + // + this.f5ToolStripMenuItem.Name = "f5ToolStripMenuItem"; + this.f5ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f5ToolStripMenuItem.Text = "F5"; + this.f5ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f6ToolStripMenuItem + // + this.f6ToolStripMenuItem.Name = "f6ToolStripMenuItem"; + this.f6ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f6ToolStripMenuItem.Text = "F6"; + this.f6ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f7ToolStripMenuItem + // + this.f7ToolStripMenuItem.Name = "f7ToolStripMenuItem"; + this.f7ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f7ToolStripMenuItem.Text = "F7"; + this.f7ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f8ToolStripMenuItem + // + this.f8ToolStripMenuItem.Name = "f8ToolStripMenuItem"; + this.f8ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f8ToolStripMenuItem.Text = "F8"; + this.f8ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f9ToolStripMenuItem + // + this.f9ToolStripMenuItem.Name = "f9ToolStripMenuItem"; + this.f9ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f9ToolStripMenuItem.Text = "F9"; + this.f9ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f10ToolStripMenuItem + // + this.f10ToolStripMenuItem.Name = "f10ToolStripMenuItem"; + this.f10ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f10ToolStripMenuItem.Text = "F10"; + this.f10ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f11ToolStripMenuItem + // + this.f11ToolStripMenuItem.Name = "f11ToolStripMenuItem"; + this.f11ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f11ToolStripMenuItem.Text = "F11"; + this.f11ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f12ToolStripMenuItem + // + this.f12ToolStripMenuItem.Name = "f12ToolStripMenuItem"; + this.f12ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f12ToolStripMenuItem.Text = "F12"; + this.f12ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f13ToolStripMenuItem + // + this.f13ToolStripMenuItem.Name = "f13ToolStripMenuItem"; + this.f13ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f13ToolStripMenuItem.Text = "F13"; + this.f13ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f14ToolStripMenuItem + // + this.f14ToolStripMenuItem.Name = "f14ToolStripMenuItem"; + this.f14ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f14ToolStripMenuItem.Text = "F14"; + this.f14ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f15ToolStripMenuItem + // + this.f15ToolStripMenuItem.Name = "f15ToolStripMenuItem"; + this.f15ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f15ToolStripMenuItem.Text = "F15"; + this.f15ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // f16ToolStripMenuItem + // + this.f16ToolStripMenuItem.Name = "f16ToolStripMenuItem"; + this.f16ToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.f16ToolStripMenuItem.Text = "F16"; + this.f16ToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // keypadToolStripMenuItem + // + this.keypadToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.addToolStripMenuItem, + this.subtractToolStripMenuItem, + this.multiplyToolStripMenuItem, + this.divideToolStripMenuItem}); + this.keypadToolStripMenuItem.Name = "keypadToolStripMenuItem"; + this.keypadToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.keypadToolStripMenuItem.Text = "Keypad"; + // + // addToolStripMenuItem + // + this.addToolStripMenuItem.Name = "addToolStripMenuItem"; + this.addToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.addToolStripMenuItem.Text = "Add"; + this.addToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // subtractToolStripMenuItem + // + this.subtractToolStripMenuItem.Name = "subtractToolStripMenuItem"; + this.subtractToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.subtractToolStripMenuItem.Text = "Subtract"; + this.subtractToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // multiplyToolStripMenuItem + // + this.multiplyToolStripMenuItem.Name = "multiplyToolStripMenuItem"; + this.multiplyToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.multiplyToolStripMenuItem.Text = "Multiply"; + this.multiplyToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // divideToolStripMenuItem + // + this.divideToolStripMenuItem.Name = "divideToolStripMenuItem"; + this.divideToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.divideToolStripMenuItem.Text = "Divide"; + this.divideToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // toolStripSeparator3 + // + this.toolStripSeparator3.Name = "toolStripSeparator3"; + this.toolStripSeparator3.Size = new System.Drawing.Size(149, 6); + // + // backspaceToolStripMenuItem + // + this.backspaceToolStripMenuItem.Name = "backspaceToolStripMenuItem"; + this.backspaceToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.backspaceToolStripMenuItem.Text = "Backspace"; + this.backspaceToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // breakToolStripMenuItem + // + this.breakToolStripMenuItem.Name = "breakToolStripMenuItem"; + this.breakToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.breakToolStripMenuItem.Text = "Break"; + this.breakToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // capsLockToolStripMenuItem + // + this.capsLockToolStripMenuItem.Name = "capsLockToolStripMenuItem"; + this.capsLockToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.capsLockToolStripMenuItem.Text = "Caps Lock"; + this.capsLockToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // delToolStripMenuItem + // + this.delToolStripMenuItem.Name = "delToolStripMenuItem"; + this.delToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.delToolStripMenuItem.Text = "Delete"; + this.delToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // endToolStripMenuItem + // + this.endToolStripMenuItem.Name = "endToolStripMenuItem"; + this.endToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.endToolStripMenuItem.Text = "End"; + this.endToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // enterToolStripMenuItem + // + this.enterToolStripMenuItem.Name = "enterToolStripMenuItem"; + this.enterToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.enterToolStripMenuItem.Text = "Enter"; + this.enterToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // escapeToolStripMenuItem + // + this.escapeToolStripMenuItem.Name = "escapeToolStripMenuItem"; + this.escapeToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.escapeToolStripMenuItem.Text = "Escape"; + this.escapeToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // helpToolStripMenuItem + // + this.helpToolStripMenuItem.Name = "helpToolStripMenuItem"; + this.helpToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.helpToolStripMenuItem.Text = "Help"; + this.helpToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // homeToolStripMenuItem + // + this.homeToolStripMenuItem.Name = "homeToolStripMenuItem"; + this.homeToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.homeToolStripMenuItem.Text = "Home"; + this.homeToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // insToolStripMenuItem + // + this.insToolStripMenuItem.Name = "insToolStripMenuItem"; + this.insToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.insToolStripMenuItem.Text = "Insert"; + this.insToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // numLockToolStripMenuItem + // + this.numLockToolStripMenuItem.Name = "numLockToolStripMenuItem"; + this.numLockToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.numLockToolStripMenuItem.Text = "Num Lock"; + this.numLockToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // pageDownToolStripMenuItem + // + this.pageDownToolStripMenuItem.Name = "pageDownToolStripMenuItem"; + this.pageDownToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.pageDownToolStripMenuItem.Text = "Page Down"; + this.pageDownToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // pageUpToolStripMenuItem + // + this.pageUpToolStripMenuItem.Name = "pageUpToolStripMenuItem"; + this.pageUpToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.pageUpToolStripMenuItem.Text = "Page Up"; + this.pageUpToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // scrollLockToolStripMenuItem + // + this.scrollLockToolStripMenuItem.Name = "scrollLockToolStripMenuItem"; + this.scrollLockToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.scrollLockToolStripMenuItem.Text = "Scroll Lock"; + this.scrollLockToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // tabToolStripMenuItem + // + this.tabToolStripMenuItem.Name = "tabToolStripMenuItem"; + this.tabToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.tabToolStripMenuItem.Text = "Tab"; + this.tabToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // // tabPageMouse // this.tabPageMouse.Controls.Add(this.groupBoxMouseScroll); @@ -1162,6 +1639,37 @@ this.buttonOK.UseVisualStyleBackColor = true; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // + // modifiersToolStripMenuItem + // + this.modifiersToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.altToolStripMenuItem, + this.controlToolStripMenuItem, + this.shiftToolStripMenuItem}); + this.modifiersToolStripMenuItem.Name = "modifiersToolStripMenuItem"; + this.modifiersToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.modifiersToolStripMenuItem.Text = "Modifiers"; + // + // altToolStripMenuItem + // + this.altToolStripMenuItem.Name = "altToolStripMenuItem"; + this.altToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.altToolStripMenuItem.Text = "Alt"; + this.altToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // controlToolStripMenuItem + // + this.controlToolStripMenuItem.Name = "controlToolStripMenuItem"; + this.controlToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.controlToolStripMenuItem.Text = "Control"; + this.controlToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // + // shiftToolStripMenuItem + // + this.shiftToolStripMenuItem.Name = "shiftToolStripMenuItem"; + this.shiftToolStripMenuItem.Size = new System.Drawing.Size(152, 22); + this.shiftToolStripMenuItem.Text = "Shift"; + this.shiftToolStripMenuItem.Click += new System.EventHandler(this.KeystrokeToolStripMenuItem_Click); + // // ButtonMappingForm // this.AcceptButton = this.buttonOK; @@ -1204,6 +1712,7 @@ this.groupBoxMessageTarget.PerformLayout(); this.tabPageKeystrokes.ResumeLayout(false); this.tabPageKeystrokes.PerformLayout(); + this.contextMenuStripKeystrokes.ResumeLayout(false); this.tabPageMouse.ResumeLayout(false); this.groupBoxMouseScroll.ResumeLayout(false); this.groupBoxMouseClick.ResumeLayout(false); @@ -1302,6 +1811,62 @@ private System.Windows.Forms.CheckBox checkBoxMouseMoveDown; private System.Windows.Forms.CheckBox checkBoxMouseMoveRight; private System.Windows.Forms.ToolTip toolTips; + private System.Windows.Forms.ContextMenuStrip contextMenuStripKeystrokes; + private System.Windows.Forms.ToolStripMenuItem cutToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem copyToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem pasteToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + private System.Windows.Forms.ToolStripMenuItem selectAllToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem selectNoneToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; + private System.Windows.Forms.ToolStripMenuItem specialKeyToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem arrowsToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem upToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem downToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem leftToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem rightToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem functionKeysToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f1ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f2ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f3ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f4ToolStripMenuItem; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; + private System.Windows.Forms.ToolStripMenuItem backspaceToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem breakToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem capsLockToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem delToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem endToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem enterToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem escapeToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f5ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f6ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f7ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f8ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f9ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f10ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f11ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f12ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f13ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f14ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f15ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem f16ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem keypadToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem addToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem subtractToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem multiplyToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem helpToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem homeToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem insToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem numLockToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem pageDownToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem pageUpToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem scrollLockToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem tabToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem divideToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem modifiersToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem altToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem controlToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem shiftToolStripMenuItem; } } \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs 2007-07-15 16:20:48 UTC (rev 692) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs 2007-07-16 06:32:23 UTC (rev 693) @@ -79,6 +79,16 @@ } } + void InsertKeystroke(string keystroke) + { + string clipboardWas = Clipboard.GetText(); + + Clipboard.SetText(keystroke); + textBoxKeys.Paste(); + + Clipboard.SetText(clipboardWas); + } + private void ButtonMappingForm_Load(object sender, EventArgs e) { textBoxKeyCode.Text = _keyCode; @@ -505,8 +515,6 @@ _description = textBoxButtonDesc.Text; } - #endregion Controls - private void checkBoxMouse_CheckedChanged(object sender, EventArgs e) { CheckBox origin = (CheckBox)sender; @@ -525,6 +533,88 @@ if (origin != checkBoxMouseScrollDown) checkBoxMouseScrollDown.Checked = false; } + private void KeystrokeToolStripMenuItem_Click(object sender, EventArgs e) + { + ToolStripMenuItem origin = sender as ToolStripMenuItem; + + if (origin == null) + return; + + switch (origin.Name) + { + case "upToolStripMenuItem": InsertKeystroke("{UP}"); break; + case "downToolStripMenuItem": InsertKeystroke("{DOWN}"); break; + case "leftToolStripMenuItem": InsertKeystroke("{LEFT}"); break; + case "rightToolStripMenuItem": InsertKeystroke("{RIGHT}"); break; + + case "f1ToolStripMenuItem": InsertKeystroke("{F1}"); break; + case "f2ToolStripMenuItem": InsertKeystroke("{F2}"); break; + case "f3ToolStripMenuItem": InsertKeystroke("{F3}"); break; + case "f4ToolStripMenuItem": InsertKeystroke("{F4}"); break; + case "f5ToolStripMenuItem": InsertKeystroke("{F5}"); break; + case "f6ToolStripMenuItem": InsertKeystroke("{F6}"); break; + case "f7ToolStripMenuItem": InsertKeystroke("{F7}"); break; + case "f8ToolStripMenuItem": InsertKeystroke("{F8}"); break; + case "f9ToolStripMenuItem": InsertKeystroke("{F9}"); break; + case "f10ToolStripMenuItem": InsertKeystroke("{F10}"); break; + case "f11ToolStripMenuItem": InsertKeystroke("{F11}"); break; + case "f12ToolStripMenuItem": InsertKeystroke("{F12}"); break; + case "f13ToolStripMenuItem": InsertKeystroke("{F13}"); break; + case "f14ToolStripMenuItem": InsertKeystroke("{F14}"); break; + case "f15ToolStripMenuItem": InsertKeystroke("{F15}"); break; + case "f16ToolStripMenuItem": InsertKeystroke("{F16}"); break; + + case "addToolStripMenuItem": InsertKeystroke("{ADD}"); break; + case "subtractToolStripMenuItem": InsertKeystroke("{SUBTRACT}"); break; + case "multiplyToolStripMenuItem": InsertKeystroke("{MULTIPLY}"); break; + case "divideToolStripMenuItem": InsertKeystroke("{DIVIDE}"); break; + + case "altToolStripMenuItem": InsertKeystroke("%"); break; + case "controlToolStripMenuItem": InsertKeystroke("^"); break; + case "shiftToolStripMenuItem": InsertKeystroke("+"); break; + + case "backspaceToolStripMenuItem": InsertKeystroke("{BACKSPACE}"); break; + case "breakToolStripMenuItem": InsertKeystroke("{BREAK}"); break; + case "capsLockToolStripMenuItem": InsertKeystroke("{CAPSLOCK}"); break; + case "delToolStripMenuItem": InsertKeystroke("{DEL}"); break; + + case "endToolStripMenuItem": InsertKeystroke("{END}"); break; + case "enterToolStripMenuItem": InsertKeystroke("{ENTER}"); break; + case "escapeToolStripMenuItem": InsertKeystroke("{ESC}"); break; + case "helpToolStripMenuItem": InsertKeystroke("{HELP}"); break; + case "homeToolStripMenuItem": InsertKeystroke("{HOME}"); break; + case "insToolStripMenuItem": InsertKeystroke("{INS}"); break; + case "numLockToolStripMenuItem": InsertKeystroke("{NUMLOCK}"); break; + case "pageDownToolStripMenuItem": InsertKeystroke("{PGDN}"); break; + case "pageUpToolStripMenuItem": InsertKeystroke("{PGUP}"); break; + case "scrollLockToolStripMenuItem": InsertKeystroke("{SCROLLLOCK}"); break; + case "tabToolStripMenuItem": InsertKeystroke("{TAB}"); break; + } + } + + private void cutToolStripMenuItem_Click(object sender, EventArgs e) + { + textBoxKeys.Cut(); + } + private void copyToolStripMenuItem_Click(object sender, EventArgs e) + { + textBoxKeys.Copy(); + } + private void pasteToolStripMenuItem_Click(object sender, EventArgs e) + { + textBoxKeys.Paste(); + } + private void selectAllToolStripMenuItem_Click(object sender, EventArgs e) + { + textBoxKeys.SelectAll(); + } + private void selectNoneToolStripMenuItem_Click(object sender, EventArgs e) + { + textBoxKeys.SelectionLength = 0; + } + + #endregion Controls + } } Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.resx =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.resx 2007-07-15 16:20:48 UTC (rev 692) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.resx 2007-07-16 06:32:23 UTC (rev 693) @@ -120,6 +120,9 @@ <metadata name="toolTips.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> </metadata> + <metadata name="contextMenuStripKeystrokes.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>107, 17</value> + </metadata> <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/DeviceSelect.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/DeviceSelect.cs 2007-07-15 16:20:48 UTC (rev 692) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/DeviceSelect.cs 2007-07-16 06:32:23 UTC (rev 693) @@ -86,87 +86,83 @@ void FindHIDDevices() { - int lastError; + uint deviceCount = 0; + int dwSize = (Marshal.SizeOf(typeof(NativeMethods.RAWINPUTDEVICELIST))); - // Get the HID Guid - Guid classGuid = new Guid(); - NativeMethods.HidD_GetHidGuid(ref classGuid); - - // 0x12 = DIGCF_PRESENT | DIGCF_DEVICEINTERFACE - IntPtr handle = NativeMethods.SetupDiGetClassDevs(ref classGuid, "", IntPtr.Zero, 0x12); - lastError = Marshal.GetLastWin32Error(); - - if (handle.ToInt32() == -1) - throw new Win32Exception(lastError); - - for (int deviceIndex = 0; ; deviceIndex++) + // Get the number of raw input devices in the list, + // then allocate sufficient memory and get the entire list + if (NativeMethods.GetRawInputDeviceList(IntPtr.Zero, ref deviceCount, (uint)dwSize) == 0) { - NativeMethods.DeviceInfoData deviceInfoData = new NativeMethods.DeviceInfoData(); - deviceInfoData.Size = Marshal.SizeOf(deviceInfoData); + IntPtr pRawInputDeviceList = Marshal.AllocHGlobal((int)(dwSize * deviceCount)); + NativeMethods.GetRawInputDeviceList(pRawInputDeviceList, ref deviceCount, (uint)dwSize); - if (NativeMethods.SetupDiEnumDeviceInfo(handle, deviceIndex, ref deviceInfoData) == false) + // Iterate through the list, discarding undesired items + // and retrieving further information on keyboard devices + for (int i = 0; i < deviceCount; i++) { + string deviceName; + uint pcbSize = 0; - // out of devices or do we have an error? - /* - lastError = Marshal.GetLastWin32Error(); - if (lastError != 0x0103 && lastError != 0x007E) - { - NativeMethods.SetupDiDestroyDeviceInfoList(handle); - throw new Win32Exception(Marshal.GetLastWin32Error()); - } - */ + NativeMethods.RAWINPUTDEVICELIST rid = (NativeMethods.RAWINPUTDEVICELIST)Marshal.PtrToStructure( + new IntPtr((pRawInputDeviceList.ToInt32() + (dwSize * i))), + typeof(NativeMethods.RAWINPUTDEVICELIST)); - NativeMethods.SetupDiDestroyDeviceInfoList(handle); - break; - } + NativeMethods.GetRawInputDeviceInfo(rid.hDevice, NativeMethods.RIDI_DEVICENAME, IntPtr.Zero, ref pcbSize); - NativeMethods.DeviceInterfaceData deviceInterfaceData = new NativeMethods.DeviceInterfaceData(); - deviceInterfaceData.Size = Marshal.SizeOf(deviceInterfaceData); + if (pcbSize > 0) + { + IntPtr pData = Marshal.AllocHGlobal((int)pcbSize); + NativeMethods.GetRawInputDeviceInfo(rid.hDevice, NativeMethods.RIDI_DEVICENAME, pData, ref pcbSize); + deviceName = (string)Marshal.PtrToStringAnsi(pData); - if (NativeMethods.SetupDiEnumDeviceInterfaces(handle, ref deviceInfoData, ref classGuid, 0, ref deviceInterfaceData) == false) - { - NativeMethods.SetupDiDestroyDeviceInfoList(handle); - //throw new Win32Exception(Marshal.GetLastWin32Error()); - continue; - } + // Drop the "root" keyboard and mouse devices used for Terminal + // Services and the Remote Desktop + if (deviceName.ToUpperInvariant().Contains("ROOT")) + continue; - uint cbData = 0; + // Get Detailed Info ... + uint size = (uint)Marshal.SizeOf(typeof(NativeMethods.DeviceInfo)); + NativeMethods.DeviceInfo di = new NativeMethods.DeviceInfo(); + di.Size = Marshal.SizeOf(typeof(NativeMethods.DeviceInfo)); + NativeMethods.GetRawInputDeviceInfo(rid.hDevice, NativeMethods.RIDI_DEVICEINFO, ref di, ref size); - if (NativeMethods.SetupDiGetDeviceInterfaceDetail(handle, ref deviceInterfaceData, IntPtr.Zero, 0, ref cbData, IntPtr.Zero) == false && cbData == 0) - { - NativeMethods.SetupDiDestroyDeviceInfoList(handle); - //throw new Win32Exception(Marshal.GetLastWin32Error()); - continue; - } + di = new NativeMethods.DeviceInfo(); + di.Size = Marshal.SizeOf(typeof(NativeMethods.DeviceInfo)); + NativeMethods.GetRawInputDeviceInfo(rid.hDevice, NativeMethods.RIDI_DEVICEINFO, ref di, ref size); - NativeMethods.DeviceInterfaceDetailData deviceInterfaceDetailData = new NativeMethods.DeviceInterfaceDetailData(); - deviceInterfaceDetailData.Size = 5; + DeviceDetails deviceDetails = new DeviceDetails(); + switch (di.Type) + { + case NativeMethods.RawInputType.HID: + { + string vidAndPid = String.Format("Vid_{0:x4}&Pid_{1:x4}", di.HIDInfo.VendorID, di.HIDInfo.ProductID); + deviceDetails.Name = String.Format("HID: {0}", GetFriendlyName(vidAndPid)); + deviceDetails.ID = deviceName; + break; + } - if (NativeMethods.SetupDiGetDeviceInterfaceDetail(handle, ref deviceInterfaceData, ref deviceInterfaceDetailData, cbData, IntPtr.Zero, IntPtr.Zero) == false) - { - NativeMethods.SetupDiDestroyDeviceInfoList(handle); - //throw new Win32Exception(Marshal.GetLastWin32Error()); - continue; - } + case NativeMethods.RawInputType.Keyboard: + { + deviceDetails.Name = "Keyboard"; + deviceDetails.ID = deviceName; + break; + } - string devicePath = deviceInterfaceDetailData.DevicePath; + case NativeMethods.RawInputType.Mouse: + { + deviceDetails.Name = "Mouse"; + deviceDetails.ID = deviceName; + break; + } + } + _devices.Add(deviceDetails); - if (!String.IsNullOrEmpty(devicePath)) - { - string friendlyName = GetFriendlyName(devicePath); - if (String.IsNullOrEmpty(friendlyName)) - friendlyName = "Unknown"; - - DeviceDetails deviceDetails = new DeviceDetails(); - deviceDetails.Name = friendlyName; - deviceDetails.ID = devicePath; - _devices.Add(deviceDetails); + Marshal.FreeHGlobal(pData); + } } - NativeMethods.SetupDiDestroyDeviceInfoList(handle); + Marshal.FreeHGlobal(pRawInputDeviceList); } - } private void buttonOK_Click(object sender, EventArgs e) @@ -181,14 +177,12 @@ this.Close(); } - string GetFriendlyName(string deviceID) + string GetFriendlyName(string vidAndPid) { try { RegistryKey USBEnum = Registry.LocalMachine.OpenSubKey("SYSTEM\\CurrentControlSet\\Enum\\USB"); - string vidAndPid = GetVidAndPid(deviceID); - foreach (string usbSubKey in USBEnum.GetSubKeyNames()) { if (usbSubKey.IndexOf(vidAndPid, StringComparison.InvariantCultureIgnoreCase) == -1) @@ -201,13 +195,8 @@ foreach (string vidAndPidSubKey in vidAndPidSubKeys) { RegistryKey subKey = currentKey.OpenSubKey(vidAndPidSubKey); - string parentIdPrefix = subKey.GetValue("ParentIdPrefix", null) as string; - if (String.IsNullOrEmpty(parentIdPrefix)) - continue; - - if (deviceID.Contains(parentIdPrefix)) - return subKey.GetValue("DeviceDesc", null) as string + " (" + subKey.GetValue("LocationInformation", null) as string + ")"; + return subKey.GetValue("LocationInformation", null) as string; } } } @@ -218,18 +207,6 @@ return null; } - string GetVidAndPid(string deviceID) - { - // \\?\hid#vid_0fe9&pid_9010#6&162bd6c4&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030} - - int vidStart = deviceID.IndexOf("vid_", StringComparison.InvariantCultureIgnoreCase); - - if (vidStart != -1) - return deviceID.Substring(vidStart, 17); - else - return null; - } - private void buttonAdvanced_Click(object sender, EventArgs e) { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/NativeMethods.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/NativeMethods.cs 2007-07-15 16:20:48 UTC (rev 692) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Custom HID Receiver/NativeMethods.cs 2007-07-16 06:32:23 UTC (rev 693) @@ -11,19 +11,97 @@ internal static class NativeMethods { - #region Interop + #region Constants - [DllImport("kernel32", SetLastError = true, CharSet = CharSet.Auto)] - internal static extern SafeFileHandle CreateFile( - String fileName, - [MarshalAs(UnmanagedType.U4)] FileAccess fileAccess, - [MarshalAs(UnmanagedType.U4)] FileShare fileShare, - IntPtr securityAttributes, - [MarshalAs(UnmanagedType.U4)] FileMode creationDisposition, - [MarshalAs(UnmanagedType.U4)] EFileAttributes flags, - IntPtr template); + public const int WM_KEYDOWN = 0x0100; + public const int WM_APPCOMMAND = 0x0319; + public const int WM_INPUT = 0x00FF; + public const int WM_SYSKEYDOWN = 0x0104; + public const int RIDI_PREPARSEDDATA = 0x20000005; + public const int RIDI_DEVICENAME = 0x20000007; + public const int RIDI_DEVICEINFO = 0x2000000B; + + public const int KEYBOARD_OVERRUN_MAKE_CODE = 0x00FF; + + #endregion Constants + + #region Enumerations + + internal enum RawInputType + { + Mouse = 0, + Keyboard = 1, + HID = 2 + } + [Flags] + internal enum RawMouseFlags : ushort + { + MoveRelative = 0, + MoveAbsolute = 1, + VirtualDesktop = 2, + AttributesChanged = 4 + } + + [Flags] + internal enum RawMouseButtons : ushort + { + None = 0, + LeftDown = 0x0001, + LeftUp = 0x0002, + RightDown = 0x0004, + RightUp = 0x0008, + MiddleDown = 0x0010, + MiddleUp = 0x0020, + Button4Down = 0x0040, + Button4Up = 0x0080, + Button5Down = 0x0100, + Button5Up = 0x0200, + MouseWheel = 0x0400 + } + + [Flags] + internal enum RawKeyboardFlags : ushort + { + KeyMake = 0x00, + KeyBreak = 0x01, + KeyE0 = 0x02, + KeyE1 = 0x04, + TerminalServerSetLED = 0x08, + TerminalServerShadow = 0x10 + } + + internal enum RawInputCommand + { + Input = 0x10000003, + Header = 0x10000005 + } + + [Flags] + internal enum RawInputDeviceFlags + { + /// <summary>No flags.</summary> + None = 0, + /// <summary>If set, this removes the top level collection from the inclusion list. This tells the operating system to stop reading from a device which matches the top level collection.</summary> + Remove = 0x00000001, + /// <summary>If set, this specifies the top level collections to exclude when reading a complete usage page. This flag only affects a TLC whose usage page is already specified with PageOnly.</summary> + Exclude = 0x00000010, + /// <summary>If set, this specifies all devices whose top level collection is from the specified usUsagePage. Note that Usage must be zero. To exclude a particular top level collection, use Exclude.</summary> + PageOnly = 0x00000020, + /// <summary>If set, this prevents any devices specified by UsagePage or Usage from generating legacy messages. This is only for the mouse and keyboard.</summary> + NoLegacy = 0x00000030, + /// <summary>If set, this enables the caller to receive the input even when the caller is not in the foreground. Note that WindowHandle must be specified.</summary> + InputSink = 0x00000100, + /// <summary>If set, the mouse button click does not activate the other window.</summary> + CaptureMouse = 0x00000200, + /// <summary>If set, the application-defined keyboard device hotkeys are not handled. However, the system hotkeys; for example, ALT+TAB and CTRL+ALT+DEL, are still handled. By default, all keyboard hotkeys are handled. NoHotKeys can be specified even if NoLegacy is not specified and WindowHandle is NULL.</summary> + NoHotKeys = 0x00000200, + /// <summary>If set, application keys are handled. NoLegacy must be specified. Keyboard only.</summary> + AppKeys = 0x00000400 + } + + [Flags] internal enum EFileAttributes : uint { Readonly = 0x00000001, @@ -53,6 +131,10 @@ FirstPipeInstance = 0x00080000 } + #endregion Enumerations + + #region Structures + [StructLayout(LayoutKind.Sequential)] internal struct DeviceInfoData { @@ -79,6 +161,167 @@ public string DevicePath; } + + [StructLayout(LayoutKind.Explicit)] + internal struct DeviceInfo + { + [FieldOffset(0)] + public int Size; + [FieldOffset(4)] + public RawInputType Type; + + [FieldOffset(8)] + public DeviceInfoMouse MouseInfo; + [FieldOffset(8)] + public DeviceInfoKeyboard KeyboardInfo; + [FieldOffset(8)] + public DeviceInfoHID HIDInfo; + } + + internal struct DeviceInfoMouse + { + public uint ID; + public uint NumberOfButtons; + public uint SampleRate; + } + + internal struct DeviceInfoKeyboard + { + public uint Type; + public uint SubType; + public uint KeyboardMode; + public uint NumberOfFunctionKeys; + public uint NumberOfIndicators; + public uint NumberOfKeysTotal; + } + + internal struct DeviceInfoHID + { + public uint VendorID; + public uint ProductID; + public uint VersionNumber; + public ushort UsagePage; + public ushort Usage; + } + + + [StructLayout(LayoutKind.Sequential)] + internal struct RAWINPUTDEVICELIST + { + public IntPtr hDevice; + [MarshalAs(UnmanagedType.U4)] + public RawInputType dwType; + } + + [StructLayout(LayoutKind.Explicit)] + internal struct RAWINPUT + { + [FieldOffset(0)] + public RAWINPUTHEADER header; + [FieldOff... [truncated message content] |
From: <nor...@us...> - 2007-07-15 16:20:55
|
Revision: 692 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=692&view=rev Author: northern_sky Date: 2007-07-15 09:20:48 -0700 (Sun, 15 Jul 2007) Log Message: ----------- fixed view bug,some minor infoupdate,some redundant dbstuff rem.. Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemDirectoryCache.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemGameBase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemMame.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItemList.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -64,7 +64,6 @@ string postLaunch; bool enabled; - bool enableGUIRefresh; int appPosition; string currentView = ""; @@ -76,8 +75,11 @@ bool importMamePlaychoice10 = false; bool importMameMahjong = false; + bool refreshGUIAllowed = false; + + // more variables, maybe need some renaming or anything else Process proc; ApplicationType sourceType; @@ -193,15 +195,13 @@ get { return enabled; } set { enabled = value; } } - public bool EnableGUIRefresh + + public virtual bool RefreshGUIAllowed { - get { return enableGUIRefresh; } - set { enableGUIRefresh = value; } + get { return refreshGUIAllowed; } + set { refreshGUIAllowed = value; } } - public bool GUIRefreshPossible - { - get { return RefreshButtonVisible(); } - } + public int Position { get { return appPosition; } @@ -362,7 +362,6 @@ validExtensions = ""; appPosition = 0; importValidImagesOnly = false; - enableGUIRefresh = false; systemDefault = ""; waitForExit = true; filesAreLoaded = false; @@ -727,11 +726,6 @@ } - public virtual bool RefreshButtonVisible() - { - return false; // otherwise, override this in child class - } - public virtual bool FileEditorAllowed() { return true; // otherwise, override this in child class @@ -824,8 +818,7 @@ importValidImagesOnly, iposition, enabled, - enableGUIRefresh, - GUIRefreshPossible, + refreshGUIAllowed, systemDefault, waitForExit, preLaunch, @@ -851,8 +844,7 @@ '"+ ProgramUtils.BooleanToStr(importValidImagesOnly)+@"', '"+ Position+@"', '"+ ProgramUtils.BooleanToStr(Enabled)+@"', - '"+ ProgramUtils.BooleanToStr(EnableGUIRefresh) +@"', - '" + ProgramUtils.BooleanToStr(GUIRefreshPossible)+@"', + '" + ProgramUtils.BooleanToStr(RefreshGUIAllowed)+@"', '"+ ProgramUtils.Encode(SystemDefault)+@"', '"+ ProgramUtils.BooleanToStr(WaitForExit) +@"', '"+ ProgramUtils.Encode(PreLaunch)+@"', @@ -898,8 +890,7 @@ iposition = " + Position + @", enabled = '" + ProgramUtils.BooleanToStr(Enabled) + @"', fatherNodeId = '" + FatherID + @"', - enableGUIRefresh = '" + ProgramUtils.BooleanToStr(EnableGUIRefresh) + @"', - GUIRefreshPossible = '" + ProgramUtils.BooleanToStr(GUIRefreshPossible) +@"', + refreshGUIAllowed = '" + ProgramUtils.BooleanToStr(RefreshGUIAllowed) +@"', systemDefault = '" + ProgramUtils.Encode(SystemDefault) + @"', waitForExit = '" + ProgramUtils.BooleanToStr(WaitForExit) + @"', preLaunch = '" + ProgramUtils.Encode(PreLaunch) + @"', @@ -1070,7 +1061,6 @@ this.ValidExtensions = sourceApp.ValidExtensions; this.ImportValidImagesOnly = sourceApp.ImportValidImagesOnly; this.Position = sourceApp.Position; - this.EnableGUIRefresh = sourceApp.EnableGUIRefresh; this.WaitForExit = sourceApp.WaitForExit; this.PreLaunch = sourceApp.PreLaunch; this.PostLaunch = sourceApp.PostLaunch; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemDirectoryCache.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemDirectoryCache.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemDirectoryCache.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -201,35 +201,38 @@ { FileInfo fileInDir = null; - DirectoryInfo directoryInfo = new DirectoryInfo(dirPath); - FileSystemInfo[] allUnderLyingFiles = directoryInfo.GetFileSystemInfos(); - - for (int i = 0; i < allUnderLyingFiles.Length; i++) + if (Directory.Exists(dirPath)) { - if (allUnderLyingFiles[i] is FileInfo) + DirectoryInfo directoryInfo = new DirectoryInfo(dirPath); + FileSystemInfo[] allUnderLyingFiles = directoryInfo.GetFileSystemInfos(); + + for (int i = 0; i < allUnderLyingFiles.Length; i++) { - Boolean FileExists = false; + if (allUnderLyingFiles[i] is FileInfo) + { + Boolean FileExists = false; - fileInDir = (FileInfo)allUnderLyingFiles[i]; + fileInDir = (FileInfo)allUnderLyingFiles[i]; - foreach (FileItem DBfile in this.Files) - { - if (DBfile.Filename == fileInDir.FullName) + foreach (FileItem DBfile in this.Files) { - FileExists = true; - break;//ugly + if (DBfile.Filename == fileInDir.FullName) + { + FileExists = true; + break;//ugly + } } - } - if (!FileExists) + if (!FileExists) + { + ImportFileItem(fileInDir); + UpdateProgressDialog(fileInDir, mpGuiMode); + } + }//if dir found,, recurse + else if (allUnderLyingFiles[i] is DirectoryInfo) { - ImportFileItem(fileInDir); - UpdateProgressDialog(fileInDir, mpGuiMode); + DirectoryInfo directory = (DirectoryInfo)allUnderLyingFiles[i]; + ImportFile(directory.FullName, mpGuiMode); } - }//if dir found,, recurse - else if (allUnderLyingFiles[i] is DirectoryInfo) - { - DirectoryInfo directory = (DirectoryInfo)allUnderLyingFiles[i]; - ImportFile(directory.FullName, mpGuiMode); } } } @@ -291,12 +294,6 @@ return this.FileDirectory; } - override public bool RefreshButtonVisible() - { - return true; - } - - override public bool FileBrowseAllowed() { return true; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemGameBase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemGameBase.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemGameBase.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -117,11 +117,6 @@ } - override public bool RefreshButtonVisible() - { - return true; - } - override public bool ProfileLoadingAllowed() { return true; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -75,7 +75,7 @@ newApp.ValidExtensions = ProgramUtils.Get(results, recordIndex, "validextensions"); newApp.ImportValidImagesOnly = ProgramUtils.GetBool(results, recordIndex, "importvalidimagesonly"); newApp.Position = ProgramUtils.GetIntDef(results, recordIndex, "iposition", 0); - newApp.EnableGUIRefresh = ProgramUtils.GetBool(results, recordIndex, "enableGUIRefresh"); + newApp.RefreshGUIAllowed = ProgramUtils.GetBool(results, recordIndex, "refreshGUIAllowed"); newApp.SystemDefault = ProgramUtils.Get(results, recordIndex, "systemdefault"); newApp.WaitForExit = ProgramUtils.GetBool(results, recordIndex, "waitforexit"); newApp.PreLaunch = ProgramUtils.Get(results, recordIndex, "preLaunch"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemMame.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemMame.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemMame.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -65,11 +65,6 @@ } - override public bool RefreshButtonVisible() - { - return true; - } - override public bool ProfileLoadingAllowed() { return true; Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -128,15 +128,14 @@ enabled TEXT, importValidImagesOnly TEXT, iposition INTEGER, - enableGUIRefresh TEXT, - GUIRefreshPossible TEXT, + refreshGUIAllowed TEXT, systemdefault TEXT, waitForExit TEXT, preLaunch TEXT, postLaunch TEXT )"); - DatabaseUtility.AddTable(sqlDB, "tblFileItem", "CREATE TABLE tblFileItem (fileid INTEGER PRIMARY KEY, applicationId INTEGER, title TEXT, filename TEXT, imagefile TEXT, mainGenreId INTEGER, subGenreId INTEGER, country TEXT, manufacturerId INTEGER, year INTEGER, rating INTEGER, overview TEXT, platformId INTEGER, import_flag INTEGER, lastTimeLaunched TEXT, launchcount INTEGER, isfolder TEXT, uppertitle TEXT, tagdata TEXT, categorydata TEXT, gameInfoUrl TEXT)"); + DatabaseUtility.AddTable(sqlDB, "tblFileItem", "CREATE TABLE tblFileItem (fileid INTEGER PRIMARY KEY, applicationId INTEGER, title TEXT, filename TEXT, imagefile TEXT, mainGenreId INTEGER, subGenreId INTEGER, country TEXT, manufacturerId INTEGER, year INTEGER, rating INTEGER, overview TEXT, platformId INTEGER, import_flag INTEGER, lastTimeLaunched TEXT, launchcount INTEGER, isfolder TEXT, uppertitle TEXT,categorydata TEXT, gameInfoUrl TEXT)"); DatabaseUtility.AddTable(sqlDB, "tblFilterItem", "CREATE TABLE tblFilterItem (applicationId INTEGER, grouperAppID INTEGER, fileID INTEGER, filename TEXT, tag INTEGER)"); DatabaseUtility.AddTable(sqlDB, "tblSetting", "CREATE TABLE tblSetting (settingid INTEGER PRIMARY KEY, key TEXT, value TEXT)"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppFilesView.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -165,7 +165,6 @@ { newButton.Enabled = currentApplication.FileAddAllowed(); addFavouriteButton.Enabled = currentApplication.FilesCanBeFavourites() && (fileListView.SelectedItems.Count > 0); - updateDatabaseButton.Visible = currentApplication.RefreshButtonVisible(); } } Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsDirCache.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -58,7 +58,7 @@ quoteCheckBox.Checked = curApp.UseQuotes; waitExitCheckBox.Checked = (curApp.WaitForExit); applicationImageTextBox.Text = curApp.Imagefile; - allowRefreshCheckBox.Checked = curApp.EnableGUIRefresh; + allowRefreshCheckBox.Checked = curApp.RefreshGUIAllowed; return true; } @@ -76,7 +76,7 @@ curApp.WaitForExit = waitExitCheckBox.Checked; curApp.SourceType = ApplicationType.DIRCACHE; curApp.Imagefile = applicationImageTextBox.Text; - curApp.EnableGUIRefresh = (allowRefreshCheckBox.Checked); + curApp.RefreshGUIAllowed = (allowRefreshCheckBox.Checked); } @@ -120,7 +120,6 @@ //untiil we really do something with this option in appdircache.. allowRefreshCheckBox.Checked = false; - allowRefreshCheckBox.Visible = false; } } } \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsGamebase.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -72,7 +72,7 @@ SetWindowStyle(curApp.WindowStyle); this.applicationImageTextBox.Text = curApp.Imagefile; - this.allowRefreshCheckBox.Checked = curApp.EnableGUIRefresh; + this.allowRefreshCheckBox.Checked = curApp.RefreshGUIAllowed; return true; } @@ -92,7 +92,7 @@ curApp.SourceType = ApplicationType.GAMEBASE; curApp.Imagefile = this.applicationImageTextBox.Text; - curApp.EnableGUIRefresh = this.allowRefreshCheckBox.Checked; + curApp.RefreshGUIAllowed = this.allowRefreshCheckBox.Checked; } public override bool EntriesOK(ApplicationItem curApp) Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/AppSettingsMame.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -72,7 +72,7 @@ curApp.Imagefile = this.applicationImageTextBox.Text; - curApp.EnableGUIRefresh = true; + curApp.RefreshGUIAllowed = true; } @@ -109,7 +109,6 @@ this.enabledCheckbox.Checked = true; this.prePostButton.Visible = false; - this.allowRefreshCheckBox.Visible = false; } private void informationLabel_Click(object sender, EventArgs e) Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -69,8 +69,6 @@ DateTime lastTimeLaunched; int launchCount; - - string tagData; string categoryData; bool isFolder; string gameInfoURL; @@ -114,7 +112,6 @@ isFolder = false; lastTimeLaunched = DateTime.MinValue; launchCount = 0; - tagData = ""; categoryData = ""; gameInfoURL = string.Empty; } @@ -375,18 +372,6 @@ } } - - public string TagData - { - get - { - return tagData; - } - set - { - tagData = value; - } - } public string CategoryData { get @@ -481,8 +466,8 @@ //((GUIPropertyManager.SetProperty("#director", Director); GUIPropertyManager.SetProperty("#maingenre", MainGenre); GUIPropertyManager.SetProperty("#subgenre", SubGenre); - //GUIPropertyManager.SetProperty("#cast", Cast); - // GUIPropertyManager.SetProperty("#dvdlabel", DVDLabel); + GUIPropertyManager.SetProperty("#manufacturer", Manufacturer); + GUIPropertyManager.SetProperty("#fname", Filename); // GUIPropertyManager.SetProperty("#imdbnumber", IMDBNumber); // GUIPropertyManager.SetProperty("#file", File); GUIPropertyManager.SetProperty("#plot", Overview); @@ -528,7 +513,6 @@ launchcount, isfolder, uppertitle, - tagdata, categorydata, gameInfoUrl ) @@ -552,7 +536,6 @@ '" + LaunchCount.ToString() + @"', '" + ProgramUtils.BooleanToStr(IsFolder) + @"', '" + ProgramUtils.Encode(Title.ToUpper()) + @"', - '" + ProgramUtils.Encode(TagData) + @"', '" + ProgramUtils.Encode(CategoryData)) + @"', '" + ProgramUtils.Encode(GameInfoURL) + @"' )"; @@ -585,7 +568,7 @@ try { string strSQL = String.Format( - "UPDATE tblFileItem SET title = '{1}', filename = '{2}', imagefile = '{3}', mainGenreId = '{4}', subGenreId = '{5}', country = '{6}', manufacturerId = '{7}', year = '{8}', rating = '{9}', overview = '{10}', platformId = '{11}', uppertitle = '{12}', tagdata = '{13}', categorydata = '{14}', gameInfoURL = '" + ProgramUtils.Encode(GameInfoURL) + "' where fileid = {0}", FileID, ProgramUtils.Encode(Title), ProgramUtils.Encode(Filename), ProgramUtils.Encode(Imagefile), MainGenreId, SubGenreId, ProgramUtils.Encode(Country), ManufacturerId, strYear, Rating, ProgramUtils.Encode(Overview), PlatformId, ProgramUtils.Encode(Title.ToUpper()), ProgramUtils.Encode(TagData), ProgramUtils.Encode(CategoryData)); + "UPDATE tblFileItem SET title = '{1}', filename = '{2}', imagefile = '{3}', mainGenreId = '{4}', subGenreId = '{5}', country = '{6}', manufacturerId = '{7}', year = '{8}', rating = '{9}', overview = '{10}', platformId = '{11}', uppertitle = '{12}', categorydata = '{13}', gameInfoURL = '" + ProgramUtils.Encode(GameInfoURL) + "' where fileid = {0}", FileID, ProgramUtils.Encode(Title), ProgramUtils.Encode(Filename), ProgramUtils.Encode(Imagefile), MainGenreId, SubGenreId, ProgramUtils.Encode(Country), ManufacturerId, strYear, Rating, ProgramUtils.Encode(Overview), PlatformId, ProgramUtils.Encode(Title.ToUpper()),ProgramUtils.Encode(CategoryData)); sqlDB.Execute(strSQL); } catch (SQLiteException ex) Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItemList.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItemList.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItemList.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -75,7 +75,7 @@ newFile.Title = ProgramUtils.Get(results, iRecord, "title"); newFile.Filename = ProgramUtils.Get(results, iRecord, "filename"); newFile.Imagefile = ProgramUtils.Get(results, iRecord, "imagefile"); - newFile.MainGenre = ProgramUtils.Get(results, iRecord, "mainGenreId"); + newFile.MainGenre = ProgramUtils.Get(results, iRecord, "mainGenre"); newFile.MainGenreId = ProgramUtils.GetIntDef(results, iRecord, "mainGenreId", 1); newFile.SubGenre = ProgramUtils.Get(results, iRecord, "subGenre"); newFile.SubGenreId = ProgramUtils.GetIntDef(results, iRecord, "subGenreId", 1); @@ -90,7 +90,6 @@ newFile.LastTimeLaunched = ProgramUtils.GetDateDef(results, iRecord, "lastTimeLaunched", DateTime.MinValue); newFile.LaunchCount = ProgramUtils.GetIntDef(results, iRecord, "launchcount", 0); newFile.IsFolder = ProgramUtils.GetBool(results, iRecord, "isfolder"); - newFile.TagData = ProgramUtils.Get(results, iRecord, "tagdata"); newFile.CategoryData = ProgramUtils.Get(results, iRecord, "categorydata"); newFile.GameInfoURL= ProgramUtils.Get(results, iRecord, "gameInfoUrl"); string fieldtype2 = ProgramUtils.Get(results, iRecord, "fieldtype2"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-15 16:20:48 UTC (rev 692) @@ -555,17 +555,6 @@ } } - bool RefreshButtonVisible() - { - if (lastApp == null) - { - return false; - } - else - { - return (lastApp.RefreshButtonVisible() && lastApp.GUIRefreshPossible && lastApp.EnableGUIRefresh); - } - } bool ThereAreAppsToDisplay() { @@ -800,7 +789,17 @@ string sortBy = string.Empty; GUIPropertyManager.SetProperty("#view", DatabaseHandler.ViewHandler.LocalizedCurrentView); - btnRefresh.IsVisible = RefreshButtonVisible(); + + if (lastApp == null) + { + btnRefresh.IsVisible = false; + } + else + { + btnRefresh.IsVisible = lastApp.RefreshGUIAllowed; + } + + facadeView.IsVisible = true; GUIControl.FocusControl(GetID, facadeView.GetID); @@ -1516,7 +1515,8 @@ int nNewWindow = (int)Window.WINDOW_FILES; StartWindow = nNewWindow; CurrentLayout = Layout.List; - DatabaseHandler.ViewHandler.CurrentView = null; + CurrentView = GUILocalizeStrings.Get(100000 + GetID);//my files + DatabaseHandler.ViewHandler.CurrentView = GUILocalizeStrings.Get(100000 + GetID);//my files if (nNewWindow != GetID) { GUIWindowManager.ReplaceWindow(nNewWindow); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml 2007-07-14 10:39:11 UTC (rev 691) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml 2007-07-15 16:20:48 UTC (rev 692) @@ -34,13 +34,13 @@ <animation effect="fade" time="200">WindowClose</animation> </control> <control> - <description>MPAA Rating</description> + <description>Filename</description> <type>fadelabel</type> <id>1</id> <posX>200</posX> <posY>70</posY> - <width>400</width> - <label>(#mpaarating)</label> + <width>1000</width> + <label>(#filename)</label> <font>font12</font> <textcolor>FFFFFFFF</textcolor> <animation effect="fade" time="200">WindowOpen</animation> @@ -192,24 +192,24 @@ <animation effect="fade" time="200">WindowClose</animation> </control> <control> - <description>Runtime txt</description> + <description>Manufacturer txt</description> <type>label</type> <id>1</id> <posX>400</posX> <posY>295</posY> - <label>299</label> + <label>Manufacturer</label> <font>font13</font> <textcolor>FFB2D4F5</textcolor> <animation effect="fade" time="200">WindowOpen</animation> <animation effect="fade" time="200">WindowClose</animation> </control> <control> - <description>Runtime value</description> + <description>Manufacturer value</description> <type>label</type> <id>1</id> <posX>400</posX> <posY>310</posY> - <label>#runtime</label> + <label>#manufacturer</label> <font>font13</font> <textcolor>FFFFFFFF</textcolor> <animation effect="fade" time="200">WindowOpen</animation> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nor...@us...> - 2007-07-14 10:39:14
|
Revision: 691 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=691&view=rev Author: northern_sky Date: 2007-07-14 03:39:11 -0700 (Sat, 14 Jul 2007) Log Message: ----------- some residue code removed Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-13 02:56:29 UTC (rev 690) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-14 10:39:11 UTC (rev 691) @@ -89,7 +89,6 @@ string validExtensions; bool importValidImagesOnly; - int contentID; string systemDefault; string launchErrorMsg; @@ -299,11 +298,6 @@ set { importValidImagesOnly = value; } } - public int ContentID - { - get { return contentID; } - set { contentID = value; } - } public string SystemDefault { get { return systemDefault; } @@ -369,7 +363,6 @@ appPosition = 0; importValidImagesOnly = false; enableGUIRefresh = false; - contentID = 100; systemDefault = ""; waitForExit = true; filesAreLoaded = false; @@ -806,8 +799,6 @@ string sql = ""; - if (ContentID <= 0) - ContentID = 100; try { AppID = GetNewAppID(); // important to avoid subsequent inserts! @@ -835,7 +826,6 @@ enabled, enableGUIRefresh, GUIRefreshPossible, - contentID, systemDefault, waitForExit, preLaunch, @@ -863,7 +853,6 @@ '"+ ProgramUtils.BooleanToStr(Enabled)+@"', '"+ ProgramUtils.BooleanToStr(EnableGUIRefresh) +@"', '" + ProgramUtils.BooleanToStr(GUIRefreshPossible)+@"', - '" + ContentID +@"', '"+ ProgramUtils.Encode(SystemDefault)+@"', '"+ ProgramUtils.BooleanToStr(WaitForExit) +@"', '"+ ProgramUtils.Encode(PreLaunch)+@"', @@ -886,8 +875,6 @@ string sql = ""; - if (ContentID <= 0) - ContentID = 100; try { sql = String.Format( @@ -913,7 +900,6 @@ fatherNodeId = '" + FatherID + @"', enableGUIRefresh = '" + ProgramUtils.BooleanToStr(EnableGUIRefresh) + @"', GUIRefreshPossible = '" + ProgramUtils.BooleanToStr(GUIRefreshPossible) +@"', - contentID = '" + ContentID + @"', systemDefault = '" + ProgramUtils.Encode(SystemDefault) + @"', waitForExit = '" + ProgramUtils.BooleanToStr(WaitForExit) + @"', preLaunch = '" + ProgramUtils.Encode(PreLaunch) + @"', @@ -1089,7 +1075,7 @@ this.PreLaunch = sourceApp.PreLaunch; this.PostLaunch = sourceApp.PostLaunch; this.SystemDefault = sourceApp.SystemDefault; - this.ContentID = sourceApp.ContentID; + } #region imagedirectory stuff Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-13 02:56:29 UTC (rev 690) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-14 10:39:11 UTC (rev 691) @@ -76,7 +76,6 @@ newApp.ImportValidImagesOnly = ProgramUtils.GetBool(results, recordIndex, "importvalidimagesonly"); newApp.Position = ProgramUtils.GetIntDef(results, recordIndex, "iposition", 0); newApp.EnableGUIRefresh = ProgramUtils.GetBool(results, recordIndex, "enableGUIRefresh"); - newApp.ContentID = ProgramUtils.GetIntDef(results, recordIndex, "contentID", 100); newApp.SystemDefault = ProgramUtils.Get(results, recordIndex, "systemdefault"); newApp.WaitForExit = ProgramUtils.GetBool(results, recordIndex, "waitforexit"); newApp.PreLaunch = ProgramUtils.Get(results, recordIndex, "preLaunch"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs 2007-07-13 02:56:29 UTC (rev 690) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Database/DatabaseHandler.cs 2007-07-14 10:39:11 UTC (rev 691) @@ -130,7 +130,6 @@ iposition INTEGER, enableGUIRefresh TEXT, GUIRefreshPossible TEXT, - contentID INTEGER, systemdefault TEXT, waitForExit TEXT, preLaunch TEXT, Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-13 02:56:29 UTC (rev 690) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-14 10:39:11 UTC (rev 691) @@ -119,20 +119,6 @@ gameInfoURL = string.Empty; } - private string GetYearManu() - { - string result = ""; - if (year <= 0) - { - result = manufacturer; - } - else - { - result = manufacturer + " [" + year + "]"; - } - return (result.Trim()); - } - #region Properties public int FileID @@ -429,13 +415,6 @@ set { gameInfoURL = value; } } - public string YearManu - { - get - { - return GetYearManu(); - } - } public List<FileItemInfo> FileInfoList { @@ -474,59 +453,6 @@ return nRes; } - public string ExtractFileName() - { - if (Filename == "") - { - return ""; - } - string strRes = ""; - string strSep = ""; - string[] parts = Filename.Split(' '); - if (Filename.StartsWith("\"")) - { - // filename is quoted => traverse array and concetenate strings until two quotes are found - int nNbOfQuotes = 0; - for (int i = 0; i < parts.Length; i++) - { - if (nNbOfQuotes <= 2) - { - strRes = strRes + strSep + parts[i]; - strSep = " "; - } - if (parts[i].IndexOf("\"") >= 0) - { - nNbOfQuotes = nNbOfQuotes + CountQuotes(parts[i]); - if (nNbOfQuotes == 2) - { - break; - } - } - } - } - else - { - strRes = parts[0]; - } - return strRes; - - } - - - public string ExtractDirectory(string curFilename) - { - string strRes = ""; - string strSep = ""; - string[] parts = curFilename.Split('\\'); - for (int i = 0; i < parts.Length - 1; i++) - { - strRes = strRes + strSep + parts[i]; - strSep = "\\"; - } - strRes = strRes.TrimStart('\"'); - return strRes; - } - public string ExtractImageExtension() { string strRes = ""; @@ -549,40 +475,6 @@ } return strRes; } - - public string ExtractArguments() - { - string strRes = ""; - string strSep = ""; - string[] parts = Filename.Split(' '); - if (Filename.StartsWith("\"")) - { - // filename is quoted => traverse array and concetenate strings after two quotes have been found - int nNbOfQuotes = 0; - for (int i = 0; i < parts.Length; i++) - { - if (nNbOfQuotes >= 2) - { - strRes = strRes + strSep + parts[i]; - strSep = " "; - } - if (parts[i].IndexOf("\"") >= 0) - { - nNbOfQuotes = nNbOfQuotes + CountQuotes(parts[i]); - } - } - } - else - { - for (int i = 1; i < parts.Length; i++) - { - strRes = strRes + strSep + parts[i]; - strSep = " "; - } - } - return strRes; - } - public void SetProperties() { /* string strThumb = MediaPortal.Util.Utils.GetLargeCoverArtName(Thumbs.MovieTitle, Title);*/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <an...@us...> - 2007-07-13 02:56:31
|
Revision: 690 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=690&view=rev Author: and-81 Date: 2007-07-12 19:56:29 -0700 (Thu, 12 Jul 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.resx trunk/plugins/IR Server Suite/Applications/Translator/Program.cs trunk/plugins/IR Server Suite/Applications/Translator/Properties/Resources.Designer.cs trunk/plugins/IR Server Suite/Applications/Translator/Properties/Resources.resx trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj trunk/plugins/IR Server Suite/Common/IrssUtils/Common.cs Added Paths: ----------- trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/ trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/IR Blast (No Window).csproj trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Program.cs trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Properties/ trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Properties/AssemblyInfo.cs trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ClickLeft.png trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ClickMiddle.png trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ClickRight.png trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveDown.png trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveLeft.png trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveRight.png trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveUp.png trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ScrollDown.png trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ScrollUp.png Added: trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/IR Blast (No Window).csproj =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/IR Blast (No Window).csproj (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/IR Blast (No Window).csproj 2007-07-13 02:56:29 UTC (rev 690) @@ -0,0 +1,77 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{54E0E8FA-09C3-4755-B9CE-E7E5DDA3E932}</ProjectGuid> + <OutputType>WinExe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>IRBlast</RootNamespace> + <AssemblyName>IRBlast-NoWindow</AssemblyName> + <ApplicationIcon> + </ApplicationIcon> + <StartupObject>IRBlast.Program</StartupObject> + <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>false</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>none</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants> + </DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + <UseVSHostingProcess>false</UseVSHostingProcess> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Windows.Forms" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\Common\irssUtils\IrssUtils.csproj"> + <Project>{CA15769C-232E-4CA7-94FD-206A06CA3ABB}</Project> + <Name>IrssUtils</Name> + </ProjectReference> + <ProjectReference Include="..\..\IPC\AppModule.InterProcessComm\AppModule.InterProcessComm.csproj"> + <Project>{E98F1F7E-40B6-44C8-AC66-EC867B141FA1}</Project> + <Name>AppModule.InterProcessComm</Name> + </ProjectReference> + <ProjectReference Include="..\..\IPC\AppModule.NamedPipes\AppModule.NamedPipes.csproj"> + <Project>{077B53BB-404A-4B2F-BA17-AAE98C5E9C66}</Project> + <Name>AppModule.NamedPipes</Name> + </ProjectReference> + <ProjectReference Include="..\..\IPC\Named Pipes\Named Pipes.csproj"> + <Project>{F4EA6055-7133-4F18-8971-E19ADEB482C1}</Project> + <Name>Named Pipes</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> + <PropertyGroup> + <PostBuildEvent>copy "$(TargetFileName)" "\MediaPortal Development\Plugin Releases\IR Server Suite\IR Blast\"</PostBuildEvent> + </PropertyGroup> +</Project> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Program.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Program.cs 2007-07-13 02:56:29 UTC (rev 690) @@ -0,0 +1,480 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.IO; +using System.Text; +using System.Threading; +using System.Windows.Forms; +using System.Xml; + +using NamedPipes; +using IrssUtils; + +namespace IRBlast +{ + + static class Program + { + + #region Variables + + static bool _registered = false; + static bool _keepAlive = true; + static int _echoID = -1; + static Thread _keepAliveThread; + + static string _serverHost = null; + static string _localPipeName; + + static string _blastPort = "None"; + static string _blastSpeed = "None"; + + static bool _treatAsChannelNumber = false; + + #endregion Variables + + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main(string[] args) + { + IrssLog.LogLevel = IrssLog.Level.Debug; + IrssLog.Open(Common.FolderIrssLogs + "IR Blast (No Window).log"); + + IrssLog.Debug("Platform is {0}", (IntPtr.Size == 4 ? "32-bit" : "64-bit")); + + try + { + + if (args.Length > 0) // Command Line Start ... + { + List<String> irCommands = new List<string>(); + + for (int index = 0; index < args.Length; index++) + { + switch (args[index].ToLowerInvariant()) + { + case "-host": + _serverHost = args[++index]; + continue; + + case "-port": + _blastPort = args[++index]; + continue; + + case "-speed": + _blastSpeed = args[++index]; + continue; + + case "-channel": + _treatAsChannelNumber = true; + continue; + + default: + irCommands.Add(args[index]); + continue; + } + } + + if (String.IsNullOrEmpty(_serverHost) || irCommands.Count == 0) + { + Console.WriteLine("Malformed command line parameters ..."); + Console.WriteLine(); + + ShowHelp(); + } + else if (StartComms()) + { + Thread.Sleep(250); + + // Wait for registered ... Give up after 10 seconds ... + int attempt = 0; + while (!_registered) + { + if (++attempt >= 10) + break; + else + Thread.Sleep(1000); + } + + if (_registered) + { + string fileName; + foreach (String command in irCommands) + { + if (_treatAsChannelNumber) + { + IrssLog.Info("Processing channel: {0}", command); + foreach (char digit in command) + { + if (digit == '~') + { + Thread.Sleep(500); + } + else + { + fileName = Common.FolderIRCommands + digit + Common.FileExtensionIR; + BlastIR(fileName, _blastPort, _blastSpeed); + } + } + } + else if (command.StartsWith("~")) + { + Thread.Sleep(command.Length * 500); + } + else + { + fileName = Common.FolderIRCommands + command; + BlastIR(fileName, _blastPort, _blastSpeed); + } + } + + Thread.Sleep(500); + } + else + { + IrssLog.Warn("Failed to register with server host \"{0}\", blasting not sent", _serverHost); + } + + } + } + else + { + ShowHelp(); + } + } + catch (Exception ex) + { + IrssLog.Error(ex.ToString()); + } + + StopComms(); + + IrssLog.Close(); + } + + static void ShowHelp() + { + IrssLog.Debug("Show Help"); + + MessageBox.Show( +@"IR Blast (No Window) is a windowless version on IR Blast. +Refer to IR Blast help for more information.", +"IR Blast (No Window)", MessageBoxButtons.OK, MessageBoxIcon.Error); + } + + static bool StartComms() + { + try + { + if (OpenLocalPipe()) + { + _keepAliveThread = new Thread(new ThreadStart(KeepAliveThread)); + _keepAliveThread.Start(); + return true; + } + } + catch (Exception ex) + { + IrssLog.Error(ex.ToString()); + } + + return false; + } + static void StopComms() + { + _keepAlive = false; + + try + { + if (_keepAliveThread != null && _keepAliveThread.IsAlive) + _keepAliveThread.Abort(); + } + catch { } + + try + { + if (_registered) + { + _registered = false; + + PipeMessage message = new PipeMessage(_localPipeName, Environment.MachineName, "Unregister", null); + PipeAccess.SendMessage(Common.ServerPipeName, _serverHost, message.ToString()); + } + } + catch { } + + try + { + if (PipeAccess.ServerRunning) + PipeAccess.StopServer(); + } + catch { } + } + + static bool OpenLocalPipe() + { + try + { + int pipeNumber = 1; + bool retry = false; + + do + { + string localPipeTest = String.Format(Common.LocalPipeFormat, pipeNumber); + + if (PipeAccess.PipeExists(String.Format("\\\\.\\pipe\\{0}", localPipeTest))) + { + if (++pipeNumber <= Common.MaximumLocalClientCount) + retry = true; + else + throw new Exception(String.Format("Maximum local client limit ({0}) reached", Common.MaximumLocalClientCount)); + } + else + { + if (!PipeAccess.StartServer(localPipeTest, new PipeMessageHandler(ReceivedMessage))) + throw new Exception(String.Format("Failed to start local pipe server \"{0}\"", localPipeTest)); + + _localPipeName = localPipeTest; + retry = false; + } + } + while (retry); + + return true; + } + catch (Exception ex) + { + IrssLog.Error(ex.ToString()); + return false; + } + } + + static bool ConnectToServer() + { + try + { + PipeMessage message = new PipeMessage(_localPipeName, Environment.MachineName, "Register", null); + PipeAccess.SendMessage(Common.ServerPipeName, _serverHost, message.ToString()); + return true; + } + catch (AppModule.NamedPipes.NamedPipeIOException) + { + return false; + } + catch (Exception ex) + { + IrssLog.Error(ex.ToString()); + return false; + } + } + + static void KeepAliveThread() + { + Random random = new Random((int)DateTime.Now.Ticks); + bool reconnect; + int attempt; + + _registered = false; + _keepAlive = true; + while (_keepAlive) + { + reconnect = true; + + #region Connect to server + + IrssLog.Info("Connecting ({0}) ...", _serverHost); + attempt = 0; + while (_keepAlive && reconnect) + { + if (ConnectToServer()) + { + reconnect = false; + } + else + { + int wait; + + if (attempt <= 50) + attempt++; + + if (attempt > 50) + wait = 30; // 30 seconds + else if (attempt > 20) + wait = 10; // 10 seconds + else if (attempt > 10) + wait = 5; // 5 seconds + else + wait = 1; // 1 second + + for (int sleeps = 0; sleeps < wait && _keepAlive; sleeps++) + Thread.Sleep(1000); + } + } + + #endregion Connect to server + + #region Wait for registered + + // Give up after 10 seconds ... + attempt = 0; + while (_keepAlive && !_registered && !reconnect) + { + if (++attempt >= 10) + reconnect = true; + else + Thread.Sleep(1000); + } + + #endregion Wait for registered + + #region Ping the server repeatedly + + while (_keepAlive && _registered && !reconnect) + { + int pingID = random.Next(); + long pingTime = DateTime.Now.Ticks; + + try + { + PipeMessage message = new PipeMessage(_localPipeName, Environment.MachineName, "Ping", BitConverter.GetBytes(pingID)); + PipeAccess.SendMessage(Common.ServerPipeName, _serverHost, message.ToString()); + } + catch + { + // Failed to ping ... reconnect ... + IrssLog.Warn("Failed to ping, attempting to reconnect ..."); + _registered = false; + reconnect = true; + break; + } + + // Wait 10 seconds for a ping echo ... + bool receivedEcho = false; + while (_keepAlive && _registered && !reconnect && + !receivedEcho && DateTime.Now.Ticks - pingTime < 10 * 1000 * 10000) + { + if (_echoID == pingID) + { + receivedEcho = true; + } + else + { + Thread.Sleep(1000); + } + } + + if (receivedEcho) // Received ping echo ... + { + // Wait 60 seconds before re-pinging ... + for (int sleeps = 0; sleeps < 60 && _keepAlive && _registered; sleeps++) + Thread.Sleep(1000); + } + else // Didn't receive ping echo ... + { + IrssLog.Warn("No echo to ping, attempting to reconnect ..."); + + // Break out of pinging cycle ... + _registered = false; + reconnect = true; + } + } + + #endregion Ping the server repeatedly + + } + + } + + static void ReceivedMessage(string message) + { + PipeMessage received = PipeMessage.FromString(message); + + IrssLog.Debug("Received Message \"{0}\"", received.Name); + + try + { + switch (received.Name) + { + case "Remote Button": + break; + + case "Blast Success": + IrssLog.Info("Blast Success"); + break; + + case "Blast Failure": + IrssLog.Warn("Blast Failed!"); + break; + + case "Register Success": + { + IrssLog.Info("Registered to IR Server"); + _registered = true; + //_transceiverInfo = TransceiverInfo.FromBytes(received.Data); + break; + } + + case "Register Failure": + { + IrssLog.Warn("IR Server refused to register"); + _registered = false; + break; + } + + case "Server Shutdown": + { + IrssLog.Warn("IR Server Shutdown - Blasting disabled until IR Server returns"); + _registered = false; + break; + } + + case "Echo": + { + _echoID = BitConverter.ToInt32(received.Data, 0); + break; + } + + case "Error": + { + IrssLog.Warn(Encoding.ASCII.GetString(received.Data)); + break; + } + + default: + { + IrssLog.Warn("Unknown message received from server: " + received.Name); + break; + } + } + } + catch (Exception ex) + { + IrssLog.Error(ex.ToString()); + } + } + + static void BlastIR(string fileName, string port, string speed) + { + FileStream file = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read); + + byte[] outData = new byte[8 + port.Length + speed.Length + file.Length]; + + BitConverter.GetBytes(port.Length).CopyTo(outData, 0); + Encoding.ASCII.GetBytes(port).CopyTo(outData, 4); + BitConverter.GetBytes(speed.Length).CopyTo(outData, 4 + port.Length); + Encoding.ASCII.GetBytes(speed).CopyTo(outData, 8 + port.Length); + + file.Read(outData, 8 + port.Length + speed.Length, (int)file.Length); + file.Close(); + + PipeMessage message = new PipeMessage(_localPipeName, Environment.MachineName, "Blast", outData); + PipeAccess.SendMessage(Common.ServerPipeName, _serverHost, message.ToString()); + } + + } + +} Added: trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR Blast (No Window)/Properties/AssemblyInfo.cs 2007-07-13 02:56:29 UTC (rev 690) @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +// +[assembly: AssemblyTitle("IR Blast (No Window)")] +[assembly: AssemblyDescription("Command line application for blasting IR commands to IR Server")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("and-81")] +[assembly: AssemblyProduct("IRBlastNoWindow")] +[assembly: AssemblyCopyright("Aaron Dinnage")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: + +[assembly: AssemblyVersion("1.0.3.2")] +[assembly: AssemblyFileVersion("1.0.3.2")] + +[assembly: CLSCompliant(true)] \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs 2007-07-12 18:58:38 UTC (rev 689) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs 2007-07-13 02:56:29 UTC (rev 690) @@ -28,6 +28,7 @@ /// </summary> private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ButtonMappingForm)); this.groupBoxButton = new System.Windows.Forms.GroupBox(); this.labelKeyCode = new System.Windows.Forms.Label(); @@ -97,9 +98,25 @@ this.buttonKeyHelp = new System.Windows.Forms.Button(); this.labelKeystrokes = new System.Windows.Forms.Label(); this.textBoxKeys = new System.Windows.Forms.TextBox(); + this.tabPageMouse = new System.Windows.Forms.TabPage(); + this.groupBoxMouseScroll = new System.Windows.Forms.GroupBox(); + this.checkBoxMouseScrollDown = new System.Windows.Forms.CheckBox(); + this.checkBoxMouseScrollUp = new System.Windows.Forms.CheckBox(); + this.groupBoxMouseClick = new System.Windows.Forms.GroupBox(); + this.checkBoxMouseClickRight = new System.Windows.Forms.CheckBox(); + this.checkBoxMouseClickMiddle = new System.Windows.Forms.CheckBox(); + this.checkBoxMouseClickLeft = new System.Windows.Forms.CheckBox(); + this.groupBoxMouseMove = new System.Windows.Forms.GroupBox(); + this.checkBoxMouseMoveLeft = new System.Windows.Forms.CheckBox(); + this.checkBoxMouseMoveDown = new System.Windows.Forms.CheckBox(); + this.checkBoxMouseMoveRight = new System.Windows.Forms.CheckBox(); + this.checkBoxMouseMoveUp = new System.Windows.Forms.CheckBox(); + this.labelMouseMove = new System.Windows.Forms.Label(); + this.numericUpDownMouseMove = new System.Windows.Forms.NumericUpDown(); this.buttonTest = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); this.buttonOK = new System.Windows.Forms.Button(); + this.toolTips = new System.Windows.Forms.ToolTip(this.components); this.groupBoxButton.SuspendLayout(); this.groupBoxSet.SuspendLayout(); this.tabControl.SuspendLayout(); @@ -117,6 +134,11 @@ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWParam)).BeginInit(); this.groupBoxMessageTarget.SuspendLayout(); this.tabPageKeystrokes.SuspendLayout(); + this.tabPageMouse.SuspendLayout(); + this.groupBoxMouseScroll.SuspendLayout(); + this.groupBoxMouseClick.SuspendLayout(); + this.groupBoxMouseMove.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMouseMove)).BeginInit(); this.SuspendLayout(); // // groupBoxButton @@ -210,6 +232,7 @@ this.buttonSet.Size = new System.Drawing.Size(48, 20); this.buttonSet.TabIndex = 1; this.buttonSet.Text = "Set"; + this.toolTips.SetToolTip(this.buttonSet, "Click here to set the command"); this.buttonSet.UseVisualStyleBackColor = true; this.buttonSet.Click += new System.EventHandler(this.buttonSet_Click); // @@ -224,6 +247,7 @@ this.tabControl.Controls.Add(this.tabPageSerial); this.tabControl.Controls.Add(this.tabPageMessage); this.tabControl.Controls.Add(this.tabPageKeystrokes); + this.tabControl.Controls.Add(this.tabPageMouse); this.tabControl.Location = new System.Drawing.Point(8, 24); this.tabControl.Name = "tabControl"; this.tabControl.SelectedIndex = 0; @@ -903,6 +927,206 @@ this.textBoxKeys.Size = new System.Drawing.Size(416, 144); this.textBoxKeys.TabIndex = 1; // + // tabPageMouse + // + this.tabPageMouse.Controls.Add(this.groupBoxMouseScroll); + this.tabPageMouse.Controls.Add(this.groupBoxMouseClick); + this.tabPageMouse.Controls.Add(this.groupBoxMouseMove); + this.tabPageMouse.Location = new System.Drawing.Point(4, 22); + this.tabPageMouse.Name = "tabPageMouse"; + this.tabPageMouse.Padding = new System.Windows.Forms.Padding(3); + this.tabPageMouse.Size = new System.Drawing.Size(432, 206); + this.tabPageMouse.TabIndex = 6; + this.tabPageMouse.Text = "Mouse"; + this.tabPageMouse.UseVisualStyleBackColor = true; + // + // groupBoxMouseScroll + // + this.groupBoxMouseScroll.Anchor = System.Windows.Forms.AnchorStyles.None; + this.groupBoxMouseScroll.Controls.Add(this.checkBoxMouseScrollDown); + this.groupBoxMouseScroll.Controls.Add(this.checkBoxMouseScrollUp); + this.groupBoxMouseScroll.Location = new System.Drawing.Point(296, 16); + this.groupBoxMouseScroll.Name = "groupBoxMouseScroll"; + this.groupBoxMouseScroll.Size = new System.Drawing.Size(128, 176); + this.groupBoxMouseScroll.TabIndex = 2; + this.groupBoxMouseScroll.TabStop = false; + this.groupBoxMouseScroll.Text = "Scroll"; + // + // checkBoxMouseScrollDown + // + this.checkBoxMouseScrollDown.Appearance = System.Windows.Forms.Appearance.Button; + this.checkBoxMouseScrollDown.Image = global::Translator.Properties.Resources.ScrollDown; + this.checkBoxMouseScrollDown.Location = new System.Drawing.Point(48, 96); + this.checkBoxMouseScrollDown.Name = "checkBoxMouseScrollDown"; + this.checkBoxMouseScrollDown.Size = new System.Drawing.Size(32, 32); + this.checkBoxMouseScrollDown.TabIndex = 1; + this.toolTips.SetToolTip(this.checkBoxMouseScrollDown, "Scroll the mouse wheel down"); + this.checkBoxMouseScrollDown.UseVisualStyleBackColor = true; + this.checkBoxMouseScrollDown.CheckedChanged += new System.EventHandler(this.checkBoxMouse_CheckedChanged); + // + // checkBoxMouseScrollUp + // + this.checkBoxMouseScrollUp.Appearance = System.Windows.Forms.Appearance.Button; + this.checkBoxMouseScrollUp.Image = global::Translator.Properties.Resources.ScrollUp; + this.checkBoxMouseScrollUp.Location = new System.Drawing.Point(48, 40); + this.checkBoxMouseScrollUp.Name = "checkBoxMouseScrollUp"; + this.checkBoxMouseScrollUp.Size = new System.Drawing.Size(32, 32); + this.checkBoxMouseScrollUp.TabIndex = 0; + this.toolTips.SetToolTip(this.checkBoxMouseScrollUp, "Scroll the mouse wheel up"); + this.checkBoxMouseScrollUp.UseVisualStyleBackColor = true; + this.checkBoxMouseScrollUp.CheckedChanged += new System.EventHandler(this.checkBoxMouse_CheckedChanged); + // + // groupBoxMouseClick + // + this.groupBoxMouseClick.Anchor = System.Windows.Forms.AnchorStyles.None; + this.groupBoxMouseClick.Controls.Add(this.checkBoxMouseClickRight); + this.groupBoxMouseClick.Controls.Add(this.checkBoxMouseClickMiddle); + this.groupBoxMouseClick.Controls.Add(this.checkBoxMouseClickLeft); + this.groupBoxMouseClick.Location = new System.Drawing.Point(160, 16); + this.groupBoxMouseClick.Name = "groupBoxMouseClick"; + this.groupBoxMouseClick.Size = new System.Drawing.Size(128, 176); + this.groupBoxMouseClick.TabIndex = 1; + this.groupBoxMouseClick.TabStop = false; + this.groupBoxMouseClick.Text = "Click"; + // + // checkBoxMouseClickRight + // + this.checkBoxMouseClickRight.Appearance = System.Windows.Forms.Appearance.Button; + this.checkBoxMouseClickRight.Image = global::Translator.Properties.Resources.ClickRight; + this.checkBoxMouseClickRight.Location = new System.Drawing.Point(88, 64); + this.checkBoxMouseClickRight.Name = "checkBoxMouseClickRight"; + this.checkBoxMouseClickRight.Size = new System.Drawing.Size(32, 32); + this.checkBoxMouseClickRight.TabIndex = 2; + this.toolTips.SetToolTip(this.checkBoxMouseClickRight, "Click the right mouse button"); + this.checkBoxMouseClickRight.UseVisualStyleBackColor = true; + this.checkBoxMouseClickRight.CheckedChanged += new System.EventHandler(this.checkBoxMouse_CheckedChanged); + // + // checkBoxMouseClickMiddle + // + this.checkBoxMouseClickMiddle.Appearance = System.Windows.Forms.Appearance.Button; + this.checkBoxMouseClickMiddle.Image = global::Translator.Properties.Resources.ClickMiddle; + this.checkBoxMouseClickMiddle.Location = new System.Drawing.Point(48, 64); + this.checkBoxMouseClickMiddle.Name = "checkBoxMouseClickMiddle"; + this.checkBoxMouseClickMiddle.Size = new System.Drawing.Size(32, 32); + this.checkBoxMouseClickMiddle.TabIndex = 1; + this.toolTips.SetToolTip(this.checkBoxMouseClickMiddle, "Click the middle mouse button"); + this.checkBoxMouseClickMiddle.UseVisualStyleBackColor = true; + this.checkBoxMouseClickMiddle.CheckedChanged += new System.EventHandler(this.checkBoxMouse_CheckedChanged); + // + // checkBoxMouseClickLeft + // + this.checkBoxMouseClickLeft.Appearance = System.Windows.Forms.Appearance.Button; + this.checkBoxMouseClickLeft.Image = global::Translator.Properties.Resources.ClickLeft; + this.checkBoxMouseClickLeft.Location = new System.Drawing.Point(8, 64); + this.checkBoxMouseClickLeft.Name = "checkBoxMouseClickLeft"; + this.checkBoxMouseClickLeft.Size = new System.Drawing.Size(32, 32); + this.checkBoxMouseClickLeft.TabIndex = 0; + this.toolTips.SetToolTip(this.checkBoxMouseClickLeft, "Click the left mouse button"); + this.checkBoxMouseClickLeft.UseVisualStyleBackColor = true; + this.checkBoxMouseClickLeft.CheckedChanged += new System.EventHandler(this.checkBoxMouse_CheckedChanged); + // + // groupBoxMouseMove + // + this.groupBoxMouseMove.Anchor = System.Windows.Forms.AnchorStyles.None; + this.groupBoxMouseMove.Controls.Add(this.checkBoxMouseMoveLeft); + this.groupBoxMouseMove.Controls.Add(this.checkBoxMouseMoveDown); + this.groupBoxMouseMove.Controls.Add(this.checkBoxMouseMoveRight); + this.groupBoxMouseMove.Controls.Add(this.checkBoxMouseMoveUp); + this.groupBoxMouseMove.Controls.Add(this.labelMouseMove); + this.groupBoxMouseMove.Controls.Add(this.numericUpDownMouseMove); + this.groupBoxMouseMove.Location = new System.Drawing.Point(8, 16); + this.groupBoxMouseMove.Name = "groupBoxMouseMove"; + this.groupBoxMouseMove.Size = new System.Drawing.Size(144, 176); + this.groupBoxMouseMove.TabIndex = 0; + this.groupBoxMouseMove.TabStop = false; + this.groupBoxMouseMove.Text = "Move"; + // + // checkBoxMouseMoveLeft + // + this.checkBoxMouseMoveLeft.Appearance = System.Windows.Forms.Appearance.Button; + this.checkBoxMouseMoveLeft.Image = global::Translator.Properties.Resources.MoveLeft; + this.checkBoxMouseMoveLeft.Location = new System.Drawing.Point(24, 64); + this.checkBoxMouseMoveLeft.Name = "checkBoxMouseMoveLeft"; + this.checkBoxMouseMoveLeft.Size = new System.Drawing.Size(32, 32); + this.checkBoxMouseMoveLeft.TabIndex = 1; + this.toolTips.SetToolTip(this.checkBoxMouseMoveLeft, "Move the mouse position left on screen"); + this.checkBoxMouseMoveLeft.UseVisualStyleBackColor = true; + this.checkBoxMouseMoveLeft.CheckedChanged += new System.EventHandler(this.checkBoxMouse_CheckedChanged); + // + // checkBoxMouseMoveDown + // + this.checkBoxMouseMoveDown.Appearance = System.Windows.Forms.Appearance.Button; + this.checkBoxMouseMoveDown.Image = global::Translator.Properties.Resources.MoveDown; + this.checkBoxMouseMoveDown.Location = new System.Drawing.Point(56, 96); + this.checkBoxMouseMoveDown.Name = "checkBoxMouseMoveDown"; + this.checkBoxMouseMoveDown.Size = new System.Drawing.Size(32, 32); + this.checkBoxMouseMoveDown.TabIndex = 3; + this.toolTips.SetToolTip(this.checkBoxMouseMoveDown, "Move the mousse position down the screen"); + this.checkBoxMouseMoveDown.UseVisualStyleBackColor = true; + this.checkBoxMouseMoveDown.CheckedChanged += new System.EventHandler(this.checkBoxMouse_CheckedChanged); + // + // checkBoxMouseMoveRight + // + this.checkBoxMouseMoveRight.Appearance = System.Windows.Forms.Appearance.Button; + this.checkBoxMouseMoveRight.Image = global::Translator.Properties.Resources.MoveRight; + this.checkBoxMouseMoveRight.Location = new System.Drawing.Point(88, 64); + this.checkBoxMouseMoveRight.Name = "checkBoxMouseMoveRight"; + this.checkBoxMouseMoveRight.Size = new System.Drawing.Size(32, 32); + this.checkBoxMouseMoveRight.TabIndex = 2; + this.toolTips.SetToolTip(this.checkBoxMouseMoveRight, "Move the mouse position right on screen"); + this.checkBoxMouseMoveRight.UseVisualStyleBackColor = true; + this.checkBoxMouseMoveRight.CheckedChanged += new System.EventHandler(this.checkBoxMouse_CheckedChanged); + // + // checkBoxMouseMoveUp + // + this.checkBoxMouseMoveUp.Appearance = System.Windows.Forms.Appearance.Button; + this.checkBoxMouseMoveUp.Image = global::Translator.Properties.Resources.MoveUp; + this.checkBoxMouseMoveUp.Location = new System.Drawing.Point(56, 32); + this.checkBoxMouseMoveUp.Name = "checkBoxMouseMoveUp"; + this.checkBoxMouseMoveUp.Size = new System.Drawing.Size(32, 32); + this.checkBoxMouseMoveUp.TabIndex = 0; + this.toolTips.SetToolTip(this.checkBoxMouseMoveUp, "Move the mouse position up the screen"); + this.checkBoxMouseMoveUp.UseVisualStyleBackColor = true; + this.checkBoxMouseMoveUp.CheckedChanged += new System.EventHandler(this.checkBoxMouse_CheckedChanged); + // + // labelMouseMove + // + this.labelMouseMove.Location = new System.Drawing.Point(8, 144); + this.labelMouseMove.Name = "labelMouseMove"; + this.labelMouseMove.Size = new System.Drawing.Size(72, 20); + this.labelMouseMove.TabIndex = 4; + this.labelMouseMove.Text = "Distance:"; + this.labelMouseMove.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // numericUpDownMouseMove + // + this.numericUpDownMouseMove.Increment = new decimal(new int[] { + 5, + 0, + 0, + 0}); + this.numericUpDownMouseMove.Location = new System.Drawing.Point(80, 144); + this.numericUpDownMouseMove.Maximum = new decimal(new int[] { + 5000, + 0, + 0, + 0}); + this.numericUpDownMouseMove.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.numericUpDownMouseMove.Name = "numericUpDownMouseMove"; + this.numericUpDownMouseMove.Size = new System.Drawing.Size(56, 20); + this.numericUpDownMouseMove.TabIndex = 5; + this.numericUpDownMouseMove.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.toolTips.SetToolTip(this.numericUpDownMouseMove, "The distance (in pixels) to move the mouse"); + this.numericUpDownMouseMove.Value = new decimal(new int[] { + 16, + 0, + 0, + 0}); + // // buttonTest // this.buttonTest.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -911,6 +1135,7 @@ this.buttonTest.Size = new System.Drawing.Size(48, 20); this.buttonTest.TabIndex = 3; this.buttonTest.Text = "Test"; + this.toolTips.SetToolTip(this.buttonTest, "Click here to test the currently set command"); this.buttonTest.UseVisualStyleBackColor = true; this.buttonTest.Click += new System.EventHandler(this.buttonTest_Click); // @@ -979,6 +1204,11 @@ this.groupBoxMessageTarget.PerformLayout(); this.tabPageKeystrokes.ResumeLayout(false); this.tabPageKeystrokes.PerformLayout(); + this.tabPageMouse.ResumeLayout(false); + this.groupBoxMouseScroll.ResumeLayout(false); + this.groupBoxMouseClick.ResumeLayout(false); + this.groupBoxMouseMove.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMouseMove)).EndInit(); this.ResumeLayout(false); } @@ -1056,6 +1286,22 @@ private System.Windows.Forms.Button buttonFindMsgTarget; private System.Windows.Forms.GroupBox groupBoxMessageTarget; private System.Windows.Forms.GroupBox groupBoxMessageDetails; + private System.Windows.Forms.TabPage tabPageMouse; + private System.Windows.Forms.GroupBox groupBoxMouseMove; + private System.Windows.Forms.Label labelMouseMove; + private System.Windows.Forms.NumericUpDown numericUpDownMouseMove; + private System.Windows.Forms.CheckBox checkBoxMouseMoveUp; + private System.Windows.Forms.GroupBox groupBoxMouseScroll; + private System.Windows.Forms.CheckBox checkBoxMouseScrollDown; + private System.Windows.Forms.CheckBox checkBoxMouseScrollUp; + private System.Windows.Forms.GroupBox groupBoxMouseClick; + private System.Windows.Forms.CheckBox checkBoxMouseClickRight; + private System.Windows.Forms.CheckBox checkBoxMouseClickMiddle; + private System.Windows.Forms.CheckBox checkBoxMouseClickLeft; + private System.Windows.Forms.CheckBox checkBoxMouseMoveLeft; + private System.Windows.Forms.CheckBox checkBoxMouseMoveDown; + private System.Windows.Forms.CheckBox checkBoxMouseMoveRight; + private System.Windows.Forms.ToolTip toolTips; } } \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs 2007-07-12 18:58:38 UTC (rev 689) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs 2007-07-13 02:56:29 UTC (rev 690) @@ -209,6 +209,29 @@ textBoxKeys.Text = suffix; break; } + + case Common.CmdPrefixMouse: + { + tabControl.SelectTab(tabPageMouse); + switch (suffix) + { + case Common.MouseClickLeft: checkBoxMouseClickLeft.Checked = true; break; + case Common.MouseClickMiddle: checkBoxMouseClickMiddle.Checked = true; break; + case Common.MouseClickRight: checkBoxMouseClickRight.Checked = true; break; + case Common.MouseScrollDown: checkBoxMouseScrollDown.Checked = true; break; + case Common.MouseScrollUp: checkBoxMouseScrollUp.Checked = true; break; + + default: + if (suffix.StartsWith(Common.MouseMoveDown)) checkBoxMouseMoveDown.Checked = true; + else if (suffix.StartsWith(Common.MouseMoveLeft)) checkBoxMouseMoveLeft.Checked = true; + else if (suffix.StartsWith(Common.MouseMoveRight)) checkBoxMouseMoveRight.Checked = true; + else if (suffix.StartsWith(Common.MouseMoveUp)) checkBoxMouseMoveUp.Checked = true; + + numericUpDownMouseMove.Value = Decimal.Parse(suffix.Substring(suffix.IndexOf(" "))); + break; + } + break; + } } } @@ -335,6 +358,31 @@ textBoxCommand.Text = _command = Common.CmdPrefixKeys + textBoxKeys.Text; break; } + + case "tabPageMouse": + { + StringBuilder newCommand = new StringBuilder(); + newCommand.Append(Common.CmdPrefixMouse); + + if (checkBoxMouseClickLeft.Checked) newCommand.Append(Common.MouseClickLeft); + else if (checkBoxMouseClickRight.Checked) newCommand.Append(Common.MouseClickRight); + else if (checkBoxMouseClickMiddle.Checked) newCommand.Append(Common.MouseClickMiddle); + else if (checkBoxMouseScrollUp.Checked) newCommand.Append(Common.MouseScrollUp); + else if (checkBoxMouseScrollDown.Checked) newCommand.Append(Common.MouseScrollDown); + else + { + if (checkBoxMouseMoveUp.Checked) newCommand.Append(Common.MouseMoveUp); + else if (checkBoxMouseMoveDown.Checked) newCommand.Append(Common.MouseMoveDown); + else if (checkBoxMouseMoveLeft.Checked) newCommand.Append(Common.MouseMoveLeft); + else if (checkBoxMouseMoveRight.Checked) newCommand.Append(Common.MouseMoveRight); + else break; + + newCommand.Append(numericUpDownMouseMove.Value.ToString()); + } + + textBoxCommand.Text = _command = newCommand.ToString(); + break; + } } } @@ -459,6 +507,24 @@ #endregion Controls + private void checkBoxMouse_CheckedChanged(object sender, EventArgs e) + { + CheckBox origin = (CheckBox)sender; + + if (!origin.Checked) + return; + + if (origin != checkBoxMouseClickLeft) checkBoxMouseClickLeft.Checked = false; + if (origin != checkBoxMouseClickRight) checkBoxMouseClickRight.Checked = false; + if (origin != checkBoxMouseClickMiddle) checkBoxMouseClickMiddle.Checked = false; + if (origin != checkBoxMouseMoveUp) checkBoxMouseMoveUp.Checked = false; + if (origin != checkBoxMouseMoveDown) checkBoxMouseMoveDown.Checked = false; + if (origin != checkBoxMouseMoveLeft) checkBoxMouseMoveLeft.Checked = false; + if (origin != checkBoxMouseMoveRight) checkBoxMouseMoveRight.Checked = false; + if (origin != checkBoxMouseScrollUp) checkBoxMouseScrollUp.Checked = false; + if (origin != checkBoxMouseScrollDown) checkBoxMouseScrollDown.Checked = false; + } + } } Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.resx =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.resx 2007-07-12 18:58:38 UTC (rev 689) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.resx 2007-07-13 02:56:29 UTC (rev 690) @@ -117,6 +117,9 @@ <resheader name="writer"> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> + <metadata name="toolTips.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value> Added: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ClickLeft.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ClickLeft.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ClickMiddle.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ClickMiddle.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ClickRight.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ClickRight.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveDown.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveDown.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveLeft.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveLeft.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveRight.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveRight.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveUp.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/MoveUp.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ScrollDown.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ScrollDown.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ScrollUp.png =================================================================== (Binary files differ) Property changes on: trunk/plugins/IR Server Suite/Applications/Translator/Graphics/ScrollUp.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/plugins/IR Server Suite/Applications/Translator/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Program.cs 2007-07-12 18:58:38 UTC (rev 689) +++ trunk/plugins/IR Server Suite/Applications/Translator/Program.cs 2007-07-13 02:56:29 UTC (rev 690) @@ -990,6 +990,11 @@ string keyCommand = command.Substring(Common.CmdPrefixKeys.Length); Common.ProcessKeyCommand(keyCommand); } + else if (command.StartsWith(Common.CmdPrefixMouse)) // Mouse Command + { + string mouseCommand = command.Substring(Common.CmdPrefixMouse.Length); + Common.ProcessMouseCommand(mouseCommand); + } else { throw new ArgumentException(String.Format("Cannot process unrecognized command \"{0}\"", command), "command"); Modified: trunk/plugins/IR Server Suite/Applications/Translator/Properties/Resources.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Properties/Resources.Designer.cs 2007-07-12 18:58:38 UTC (rev 689) +++ trunk/plugins/IR Server Suite/Applications/Translator/Properties/Resources.Designer.cs 2007-07-13 02:56:29 UTC (rev 690) @@ -60,6 +60,27 @@ } } + internal static System.Drawing.Bitmap ClickLeft { + get { + object obj = ResourceManager.GetObject("ClickLeft", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + internal static System.Drawing.Bitmap ClickMiddle { + get { + object obj = ResourceManager.GetObject("ClickMiddle", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + internal static System.Drawing.Bitmap ClickRight { + get { + object obj = ResourceManager.GetObject("ClickRight", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + internal static System.Drawing.Icon Icon16 { get { object obj = ResourceManager.GetObject("Icon16", resourceCulture); @@ -73,5 +94,47 @@ return ((System.Drawing.Icon)(obj)); } } + + internal static System.Drawing.Bitmap MoveDown { + get { + object obj = ResourceManager.GetObject("MoveDown", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + internal static System.Drawing.Bitmap MoveLeft { + get { + object obj = ResourceManager.GetObject("MoveLeft", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + internal static System.Drawing.Bitmap MoveRight { + get { + object obj = ResourceManager.GetObject("MoveRight", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + internal static System.Drawing.Bitmap MoveUp { + get { + object obj = ResourceManager.GetObject("MoveUp", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + internal static System.Drawing.Bitmap ScrollDown { + get { + object obj = ResourceManager.GetObject("ScrollDown", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + internal static System.Drawing.Bitmap ScrollUp { + get { + object obj = ResourceManager.GetObject("ScrollUp", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } Modified: trunk/plugins/IR Server Suite/Applications/Translator/Properties/Resources.resx =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Properties/Resources.resx 2007-07-12 18:58:38 UTC (rev 689) +++ trunk/plugins/IR Server Suite/Applications/Translator/Properties/Resources.resx 2007-07-13 02:56:29 UTC (rev 690) @@ -118,10 +118,37 @@ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> </resheader> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> + <data name="ClickLeft" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\graphics\clickleft.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="ClickMiddle" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\graphics\clickmiddle.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="ClickRight" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\graphics\clickright.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> <data name="Icon16" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Icon16.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> <data name="Icon16Connecting" type="System.Resources.ResXFileRef, System.Windows.Forms"> <value>..\Icon16Connecting.ico;System.Drawing.Icon, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> </data> + <data name="MoveDown" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\graphics\movedown.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="MoveLeft" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\graphics\moveleft.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="MoveRight" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\graphics\moveright.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="MoveUp" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\graphics\moveup.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="ScrollDown" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\graphics\scrolldown.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> + <data name="ScrollUp" type="System.Resources.ResXFileRef, System.Windows.Forms"> + <value>..\graphics\scrollup.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> + </data> </root> \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj 2007-07-12 18:58:38 UTC (rev 689) +++ trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj 2007-07-13 02:56:29 UTC (rev 690) @@ -165,6 +165,17 @@ <ItemGroup> <None Include="Icon16Connecting.ico" /> </ItemGroup> + <ItemGroup> + <Content Include="Graphics\ClickLeft.png" /> + <Content Include="Graphics\ClickMiddle.png" /> + <Content Include="Graphics\ClickRight.png" /> + <Content Include="Graphics\MoveDown.png" /> + <Content Include="Graphics\MoveLeft.png" /> + <Content Include="Graphics\MoveRight.png" /> + <Content Include="Graphics\MoveUp.png" /> + <Content Include="Graphics\ScrollDown.png" /> + <Content Include="Graphics\ScrollUp.png" /> + </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. Modified: trunk/plugins/IR Server Suite/Common/IrssUtils/Common.cs =================================================================== --- trunk/plugins/IR Server Suite/Common/IrssUtils/Common.cs 2007-07-12 18:58:38 UTC (rev 689) +++ trunk/plugins/IR Server Suite/Common/IrssUtils/Common.cs 2007-07-13 02:56:29 UTC (rev 690) @@ -114,6 +114,8 @@ public const string CmdPrefixReboot = "Reboot"; public const string CmdPrefixShutdown = "Shutdown"; + public const string CmdPrefixMouse = "Mouse: "; + #endregion Command Prefixes #region XML Tags @@ -138,6 +140,8 @@ public const string XmlTagReboot = "REBOOT"; public const string XmlTagShutdown = "SHUTDOWN"; + public const string XmlTagMouse = "MOUSE"; + #endregion XML Tags #region User Interface Text @@ -161,8 +165,26 @@ public const string UITextReboot = "Reboot"; public const string UITextShutdown = "Shutdown"; + public const string UITextMouse = "Mouse Command"; + #endregion User Interface Text + #region Mouse Commands + + public const string MouseMoveUp = "Move_Up "; + public const string MouseMoveDown = "Move_Down "; + public const string MouseMoveLeft = "Move_Left "; + public const string MouseMoveRight = "Move_Right "; + + public const string MouseClickLeft = "Click_Left"; + public const string MouseClickRight = "Click_Right"; + public const string MouseClickMiddle = "Click_Middle"; + + public const string MouseScrollUp = "Scroll_Up"; + public const string MouseScrollDown = "Scroll_Down"; + + #endregion Mouse Commands + #endregion Strings #endregion Constants @@ -360,6 +382,52 @@ tcpClient.Close(); } + /// <summary> + /// Given a Mouse Command this method will move, click or scroll the mouse according to the command issued. + /// </summary> + /// <param name="command">The Mouse Command string</param> + public static void ProcessMouseCommand(string command) + { + switch (command) + { + case MouseClickLeft: + Mouse.Button(Mouse.MouseEvents.LeftDown); + Mouse.Button(Mouse.MouseEvents.LeftUp); + break; + + case MouseClickMiddle: + Mouse.Button(Mouse.MouseEvents.MiddleDown); + Mouse.Button(Mouse.MouseEvents.MiddleUp); + break; + + case MouseClickRight: + Mouse.Button(Mouse.MouseEvents.RightDown); + Mouse.Button(Mouse.MouseEvents.RightUp); + break; + + case MouseScrollDown: + Mouse.Scroll(Mouse.ScrollDir.Down); + break; + + case MouseScrollUp: + Mouse.Scroll(Mouse.ScrollDir.Up); + break; + + default: + if (command.StartsWith(MouseMoveDown)) + Mouse.Move(0, int.Parse(command.Substring(MouseMoveDown.Length)), false); + else if (command.StartsWith(MouseMoveLeft)) + Mouse.Move(-int.Parse(command.Substring(MouseMoveLeft.Length)), 0, false); + else if (command.StartsWith(MouseMoveRight)) + Mouse.Move(int.Parse(command.Substring(MouseMoveRight.Length)), 0, false); + else if (command.StartsWith(MouseMoveUp)) + Mouse.Move(0, -int.Parse(command.Substring(MouseMoveUp.Length)), false); + else + throw new ApplicationException("Invalid Mouse Command"); + break; + } + } + #endregion Command Execution #region Misc This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nor...@us...> - 2007-07-12 18:58:39
|
Revision: 689 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=689&view=rev Author: northern_sky Date: 2007-07-12 11:58:38 -0700 (Thu, 12 Jul 2007) Log Message: ----------- small changes Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAltFileInfo.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml trunk/plugins/myGUIProgramsAlt/README.txt Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-12 05:54:07 UTC (rev 688) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-12 18:58:38 UTC (rev 689) @@ -733,77 +733,7 @@ } } - public virtual void OnInfo(GUIListItem item, ref bool isOverviewVisible, ref ProgramInfoAction modalResult, ref int selectedFileID) - { - // GUIFileInfo fileInfoDialog = (GUIFileInfo)GUIWindowManager.GetWindow(ProgramUtils.ProgramInfoID); - // if (fileInfoDialog == null) return; - // if (item.MusicTag == null) return; - //FileItem curFile = (FileItem)item.MusicTag; - //if (curFile == null) return; - /* fileInfoDialog.App = this; - fileInfoDialog.File = curFile; - fileInfoDialog.IsOverviewVisible = isOverviewVisible; - fileInfoDialog.DoModal(GetID); - isOverviewVisible = fileInfoDialog.IsOverviewVisible; - modalResult = fileInfoDialog.ModalResult; - selectedFileID = fileInfoDialog.SelectedFileID; - return;*/ - } - - - #region old sorting stuff, some(all) might be obsolete, but maybe usefull for improving new sorting method - - public virtual void OnSort(GUIFacadeControl view, bool doSwitchState) - { - /* - * if (!filesAreLoaded) - { - LoadFiles(); - } - - if (doSwitchState) - { - dbPc.UpdateState(); - } - view.Sort(dbPc); - */ - } - - /* public virtual void OnSortToggle(GUIFacadeControl view) - { - // dbPc.SortAscending = (!dbPc.SortAscending); - //view.Sort(dbPc); - } - - public virtual int GetCurrentSortIndex() - { - return dbPc.CurrentSortMethodIndex; - } - - public virtual void SetCurrentSortIndex(int newValue) - { - dbPc.CurrentSortMethodIndex = newValue; - } - - public virtual string CurrentSortTitle() - { - return dbPc.CurrentSortMethodAsText; - } - - public virtual bool GetCurrentSortIsAscending() - { - return dbPc.SortAscending; - } - - public virtual void SetCurrentSortIsAscending(bool newValue) - { - dbPc.SortAscending = newValue; - } - */ - #endregion - - public virtual bool RefreshButtonVisible() { return false; // otherwise, override this in child class Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-12 05:54:07 UTC (rev 688) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItemList.cs 2007-07-12 18:58:38 UTC (rev 689) @@ -65,8 +65,8 @@ newApp.Arguments = ProgramUtils.Get(results, recordIndex, "arguments"); newApp.WindowStyle = ProgramUtils.GetProcessWindowStyle(results, recordIndex, "windowstyle"); newApp.StartupDir = ProgramUtils.Get(results, recordIndex, "startupdir"); - newApp.UseShellExecute = ProgramUtils.GetBool(results, recordIndex, "useshellexecute"); - newApp.UseQuotes = ProgramUtils.GetBool(results, recordIndex, "usequotes"); + newApp.UseShellExecute = ProgramUtils.GetBool(results, recordIndex, "useShellExecute"); + newApp.UseQuotes = ProgramUtils.GetBool(results, recordIndex, "useQuotes"); newApp.SourceType = ProgramUtils.GetSourceType(results, recordIndex, "applicationItemType"); newApp.Source = ProgramUtils.Get(results, recordIndex, "source"); newApp.Imagefile = ProgramUtils.Get(results, recordIndex, "imagefile"); Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-12 05:54:07 UTC (rev 688) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-12 18:58:38 UTC (rev 689) @@ -1030,103 +1030,5 @@ } } } - - public string GetValueOfTag(string TagName) - { - string strLowerTag = TagName.ToLower() + "="; - string strLowerItem = ""; - string result = ""; - foreach (string strItem in this.tagData.Split('\r')) - { - strLowerItem = strItem.ToLower(); - if (strLowerItem.StartsWith(strLowerTag)) - { - result = strItem.Remove(0, strLowerTag.Length); - } - else if (strLowerItem.StartsWith("\n" + strLowerTag)) - { - result = strItem.Remove(0, strLowerTag.Length + 1); - } - } - result = result.Replace("\n", ""); - result = result.Replace("\r", ""); - result = result.TrimStart('\"'); - result = result.TrimEnd('\"'); - return result; - } - - public string GetValueOfCategory(int CatIndex) - { - string result = ""; - List<string> Categories = new List<string>(categoryData.Split('\r')); - if ((CatIndex >= 0) && (CatIndex <= Categories.Count - 1)) - { - string strLine = (string)Categories[CatIndex]; - strLine = strLine.TrimStart('\r'); - bool bValueLine = false; - bool bFirst = true; - string strSep = ""; - foreach (string strToken in strLine.Split('=')) - { - //Log.Info("getvalueofcategory dw token {0}", strToken); - if (!bFirst) - { - bValueLine = true; - // bValueLine = strToken.EndsWith("\""); - } - if (bValueLine) - { - result = result + strSep + strToken; - strSep = "="; - } - bFirst = false; - } - } - result = result.Replace("\n", ""); - result = result.Replace("\r", ""); - result = result.TrimStart('\"'); - result = result.TrimEnd('\"'); - return result; - } - - public string GetNameOfCategory(int CatIndex) - { - string result = ""; - List<string> Categories = new List<string>(categoryData.Split('\r')); - if ((CatIndex >= 0) && (CatIndex <= Categories.Count - 1)) - { - string strLine = (string)Categories[CatIndex]; - strLine = strLine.TrimStart('\r'); - bool bValueLine = false; - bool bFirst = true; - string strSep = ""; - foreach (string strToken in strLine.Split('=')) - { - strToken.Replace("\n", ""); - strToken.Replace("\r", ""); - //Log.Info("getnameofcategory dw token {0}", strToken); - if (!bFirst) - { - //doesn't work bValueLine = strToken.EndsWith("\""); - bValueLine = true; - } - if (!bValueLine) - { - result = result + strSep + strToken; - strSep = "="; - } - else - { - break; - } - bFirst = false; - } - } - result = result.Replace("\n", ""); - result = result.Replace("\r", ""); - result = result.TrimStart('\"'); - result = result.TrimEnd('\"'); - return result; - } } } \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-12 05:54:07 UTC (rev 688) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-12 18:58:38 UTC (rev 689) @@ -1451,46 +1451,6 @@ - /* void OnInfo() - { - // <F3> keypress - if (null != lastApp) - { - selectedItemIndex = GetSelectedItemNo(); - GUIListItem item = GetSelectedItem(); - - FileItem curFile = null; - - if (!item.Label.Equals(ProgramUtils.cBackLabel) && (!item.IsFolder)) - { - if ((item.MusicTag != null) && (item.MusicTag is FileItem)) - { - curFile = (FileItem)item.MusicTag; - } - // show file info but only if the selected item is not the back button - bool ovVisible = mapSettings.OverviewVisible; - ProgramInfoAction modalResult = ProgramInfoAction.LookupFileInfo; - int selectedFileID = -1; - lastApp.OnInfo(item, ref ovVisible, ref modalResult, ref selectedFileID); - if ((null != curFile) && (modalResult == ProgramInfoAction.LookupFileInfo)) - { - FileItem scrapeFile = lastApp.Files.GetFileItemByID(selectedFileID); - if (null != scrapeFile) - { - int scrapeIndex = lastApp.Files.IndexOf(scrapeFile); - if (-1 != scrapeIndex) - { - GUIControl.SelectItemControl(GetID, facadeView.GetID, scrapeIndex + 1); - } - ScrapeFileInfo(scrapeFile); - } - } - mapSettings.OverviewVisible = ovVisible; - UpdateListControl(); - } - } - } - */ protected void OnInfo() { @@ -1507,7 +1467,8 @@ { curFile = (FileItem)item.MusicTag; GUIProgramsAltFileInfo fileInfo = (GUIProgramsAltFileInfo)GUIWindowManager.GetWindow(9999); - fileInfo.Movie = curFile; + fileInfo.CurrentFileItem = curFile; + fileInfo.CurrentApplicationItem = lastApp; fileInfo.FolderForThumbs = string.Empty; GUIWindowManager.ActivateWindow(9999); } Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAltFileInfo.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAltFileInfo.cs 2007-07-12 05:54:07 UTC (rev 688) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAltFileInfo.cs 2007-07-12 18:58:38 UTC (rev 689) @@ -58,8 +58,7 @@ protected GUIButtonControl launchButton = null; [SkinControlAttribute(3)] protected GUIToggleButtonControl overviewInfoButton = null; - [SkinControlAttribute(4)] - protected GUIToggleButtonControl btnCast = null; + [SkinControlAttribute(5)] protected GUIButtonControl btnRefresh = null; @@ -76,16 +75,14 @@ [SkinControlAttribute(30)] protected GUILabelControl lblImage = null; + FileItem currentFileItem = null; + ApplicationItem currentApplicationItem = null; - - enum ViewMode + public ApplicationItem CurrentApplicationItem { - Image, - Cast, + get { return currentApplicationItem; } + set { currentApplicationItem = value; } } - - ViewMode viewmode = ViewMode.Image; - FileItem currentFileItem = null; string folderForThumbs = string.Empty; string[] coverArtUrls = new string[1]; string imdbCoverArtUrl = String.Empty; @@ -119,8 +116,6 @@ ResetSpinControl(); - viewmode = ViewMode.Image; - Refresh(false); Update(); imageSearchThread = new Thread(new ThreadStart(AmazonLookupThread)); @@ -167,33 +162,19 @@ VideoDatabase.SetThumbURL(idMovie, currentFileItem.Imagefile); return; } - - if (control == btnCast) - { - viewmode = ViewMode.Cast; - Update(); - } if (control == overviewInfoButton) { - - viewmode = ViewMode.Image; Update(); } if (control == launchButton) { - int id = currentFileItem.FileID; - - //fix hack later - // ApplicationItem a = new ApplicationItem(DatabaseHandler.sqlDB); - // a.LaunchFile(leItem, true); - // GUIVideoFiles.PlayMovie(id); - return; + CurrentApplicationItem.LaunchFile(CurrentFileItem, true); } } - public FileItem Movie + public FileItem CurrentFileItem { get { return currentFileItem; } set { currentFileItem = value; } @@ -209,7 +190,7 @@ if (currentFileItem == null) return; //cast->image - if (viewmode == ViewMode.Cast) + /* if (viewmode == ViewMode.Cast) { tblOverviewInfoArea.IsVisible = false; tbTextArea.IsVisible = true; @@ -224,9 +205,7 @@ tbTextArea.IsVisible = false; imgCoverArt.IsVisible = true; overviewInfoButton.Selected = true; - btnCast.Selected = false; - - } + }*/ //btnWatched.Selected = (currentFileItem.Watched != 0); currentFileItem.SetProperties(); if (imgCoverArt != null) Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml 2007-07-12 05:54:07 UTC (rev 688) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml 2007-07-12 18:58:38 UTC (rev 689) @@ -53,48 +53,16 @@ <posX>60</posX> <posY>97</posY> <width>120</width> - <label>208</label> + <label>Launch</label> <font>font13</font> <onleft>22</onleft> <onright>22</onright> - <onup>7</onup> - <ondown>3</ondown> - <animation effect="fade" time="200">WindowOpen</animation> - <animation effect="fade" time="200">WindowClose</animation> - </control> - <control> - <description>Overview</description> - <type>togglebutton</type> - <id>3</id> - <posX>60</posX> - <posY>131</posY> - <width>120</width> - <label>207</label> - <font>font13</font> - <onleft>22</onleft> - <onright>22</onright> - <onup>2</onup> - <ondown>4</ondown> - <animation effect="fade" time="200">WindowOpen</animation> - <animation effect="fade" time="200">WindowClose</animation> - </control> - <!--<control> - <description>Cast</description> - <type>togglebutton</type> - <id>4</id> - <posX>60</posX> - <posY>165</posY> - <width>120</width> - <label>206</label> - <font>font13</font> - <onleft>22</onleft> - <onright>22</onright> - <onup>3</onup> + <onup>10</onup> <ondown>5</ondown> <animation effect="fade" time="200">WindowOpen</animation> <animation effect="fade" time="200">WindowClose</animation> - </control>--> - <control> + </control> + <control> <description>Refresh</description> <type>button</type> <id>5</id> @@ -104,26 +72,11 @@ <label>184</label> <onleft>22</onleft> <onright>22</onright> - <onup>4</onup> - <ondown>6</ondown> - <animation effect="fade" time="200">WindowOpen</animation> - <animation effect="fade" time="200">WindowClose</animation> - </control> -<!-- <control> - <description>Watched</description> - <type>togglebutton</type> - <id>6</id> - <posX>60</posX> - <posY>233</posY> - <width>120</width> - <label>1010</label> - <onleft>22</onleft> - <onright>22</onright> - <onup>5</onup> + <onup>2</onup> <ondown>10</ondown> <animation effect="fade" time="200">WindowOpen</animation> <animation effect="fade" time="200">WindowClose</animation> - </control>--> + </control> <control> <description>image title:</description> <type>label</type> @@ -143,8 +96,8 @@ <id>10</id> <posX>60</posX> <posY>292</posY> - <onup>6</onup> - <ondown>11</ondown> + <onup>5</onup> + <ondown>2</ondown> <animation effect="fade" time="200">WindowOpen</animation> <animation effect="fade" time="200">WindowClose</animation> </control> @@ -191,54 +144,30 @@ <animation effect="fade" time="200">WindowClose</animation> </control> <control> - <description>Main Genre</description> + <description>Genre</description> <type>label</type> <id>1</id> <posX>400</posX> <posY>160</posY> - <label>Maingenre</label> + <label>Genre</label> <font>font13</font> <textcolor>FFB2D4F5</textcolor> <animation effect="fade" time="200">WindowOpen</animation> <animation effect="fade" time="200">WindowClose</animation> </control> <control> - <description>MainGenre value</description> + <description>Genre value</description> <type>label</type> <id>1</id> <posX>400</posX> <posY>175</posY> - <label>#maingenre</label> + <label>#maingenre/#subgenre</label> <font>font13</font> <textcolor>FFFFFFFF</textcolor> <animation effect="fade" time="200">WindowOpen</animation> <animation effect="fade" time="200">WindowClose</animation> </control> <control> - <description>SubGenre</description> - <type>label</type> - <id>1</id> - <posX>400</posX> - <posY>205</posY> - <label>Subgenre</label> - <font>font13</font> - <textcolor>FFB2D4F5</textcolor> - <animation effect="fade" time="200">WindowOpen</animation> - <animation effect="fade" time="200">WindowClose</animation> - </control> - <control> - <description>SubGenre value</description> - <type>label</type> - <id>1</id> - <posX>400</posX> - <posY>220</posY> - <label>#subgenre</label> - <font>font13</font> - <textcolor>FFFFFFFF</textcolor> - <animation effect="fade" time="200">WindowOpen</animation> - <animation effect="fade" time="200">WindowClose</animation> - </control> - <control> <description>Year txt</description> <type>label</type> <id>1</id> Modified: trunk/plugins/myGUIProgramsAlt/README.txt =================================================================== --- trunk/plugins/myGUIProgramsAlt/README.txt 2007-07-12 05:54:07 UTC (rev 688) +++ trunk/plugins/myGUIProgramsAlt/README.txt 2007-07-12 18:58:38 UTC (rev 689) @@ -1,4 +1,4 @@ -Work in progress on an alternative/update to myprograms. +WIP on an alternative/update to myprograms. Still features and bugs to fix. Do NOT USE on your real MP-installation, only for tests.. Bug-reports ,not yet, there are a few=) known to fix first. @@ -7,6 +7,7 @@ :--INSTALLATION Copy contents of metadata-folder to MP root folder , and the GUIPrograms.dll to MP/windowsplugins to run. +Copy skin to relevant folder. There will possibly be db-changes and xml-changes between versions, so always make sure that you have a clean install between updates. So far: @@ -101,32 +102,9 @@ Above: mabey add an advanced option for the user. In short, allowing a merge between "easy setup" (as above) and total control filepaths etc. - - What should be the name for the plugin, when we will release it? - -Imo MyProgramsAlt sounds a bit uggly. I think it should not be too long and complicated. - - MyProgramsV2 - - MyProgramsAlt - - MyProgramsAlternative - - NewMyPrograms - - NewPrograms - ..... - could contain: new, alt -What about using a complete new name? - something with Games or Emu? +MyEmu... --myGemu --nahh --myEmu maybe... there already is myEmulators--- but this would be the most fitting maybe, as i plan to add a lot of preconfigs for this kind of stuff. --myProgramsV2 ...boring --myProgramsRemix -- nope -What do you feel is the best? - - - What about an BackUp feature? - I you wanna do it.... ...Same goes for report features. -Don't worry should not backup all stuff, just save in any fileformat you want: - - filepath and filename: to identify the file - - Launchcount - - LastTimeLaunched - - Add some more specific emulator support.. - using emulator ids??? can be used for - filter in fileinfoscraperForm.. we got system id's now.. so feel free to implement.Will add emulator table at some point. @@ -137,6 +115,8 @@ - saving the path to file for import - saving the path to image dir, or using thumbsDir of MP, are there any pros? + + Iso mounting -> pro/contra??? "Minimize MP before starting a file" as a new option for application items: @@ -160,4 +140,11 @@ - Remotes, in general, maybe we should handle it like DirectInput imo lower priority, if you play with keyboard, use it to close the app, if you play with joystick try first point +----Won't do--------------- + - What about an BackUp feature? - I you wanna do it.... ...Same goes for report features. +Don't worry should not backup all stuff, just save in any fileformat you want: + - filepath and filename: to identify the file + - Launchcount + - LastTimeLaunched + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-07-12 05:54:08
|
Revision: 688 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=688&view=rev Author: zebons Date: 2007-07-11 22:54:07 -0700 (Wed, 11 Jul 2007) Log Message: ----------- Searching filename on drives if not found with sored info (after deplacing file for ex.) Modified Paths: -------------- trunk/plugins/MyFilms/MesFilmsDetail.cs Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-12 03:31:53 UTC (rev 687) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-12 05:54:07 UTC (rev 688) @@ -809,7 +809,7 @@ string fileName = null; if (!(StrStorage == null) && !(StrStorage == "(none)") && !(StrStorage == "")) { - if (r[select_item][StrStorage].ToString() == "") + if ((r[select_item][StrStorage].ToString() == "") || (!System.IO.File.Exists(r[select_item][StrStorage].ToString()))) // recherche nom de fichier par titre du film if ((SearchFile) && (first)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <an...@us...> - 2007-07-12 03:31:59
|
Revision: 687 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=687&view=rev Author: and-81 Date: 2007-07-11 20:31:53 -0700 (Wed, 11 Jul 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.cs Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.cs 2007-07-12 03:23:10 UTC (rev 686) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.cs 2007-07-12 03:31:53 UTC (rev 687) @@ -21,9 +21,6 @@ private static extern int GetWindowText(int hWnd, StringBuilder title, int size); [DllImport("user32.dll")] - private static extern int GetWindowModuleFileName(int hWnd, StringBuilder title, int size); - - [DllImport("user32.dll")] private static extern int EnumWindows(EnumWindowsProc ewp, int lParam); #endregion Interop @@ -50,24 +47,19 @@ void PopulateList() { - EnumWindowsProc ewp = new EnumWindowsProc(EvalWindow); + EnumWindowsProc ewp = new EnumWindowsProc(AddWindow); EnumWindows(ewp, 0); } - bool EvalWindow(int hWnd, int lParam) + bool AddWindow(int hWnd, int lParam) { StringBuilder title = new StringBuilder(256); GetWindowText(hWnd, title, 256); - //StringBuilder module = new StringBuilder(256); - //GetWindowModuleFileName(hWnd, module, 256); + if (title.Length != 0) + listBoxWindows.Items.Add(title.ToString()); - if (title.Length == 0) - return true; - - listBoxWindows.Items.Add(title.ToString()); - return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <an...@us...> - 2007-07-12 03:23:12
|
Revision: 686 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=686&view=rev Author: and-81 Date: 2007-07-11 20:23:10 -0700 (Wed, 11 Jul 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/Configure.Designer.cs trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/Configure.cs trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/MceIrApi.cs trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/MceReplacementTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.Designer.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.cs trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.Designer.cs trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.cs trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.resx trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs Added Paths: ----------- trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.Designer.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.cs trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.resx Modified: trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/Applications/IR Server/IRServer.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -152,11 +152,7 @@ if (StartRelay()) IrssLog.Info("Started in Relay Mode"); else - { IrssLog.Error("Failed to start in Relay Mode"); - return false; - } - break; } @@ -165,10 +161,7 @@ if (StartRepeater()) IrssLog.Info("Started in Repeater Mode"); else - { IrssLog.Error("Failed to start in Repeater Mode"); - return false; - } break; } } @@ -331,7 +324,6 @@ return false; } - // Todo: Put in the proper retry system from other apps/plugins void StartMessageQueue() { _processMessageQueue = true; @@ -945,8 +937,8 @@ break; } - // Pause 1 second before instructing the client to start the IR learning ... - Thread.Sleep(1000); + // Pause half a second before instructing the client to start the IR learning ... + Thread.Sleep(500); // Send back a "Start Learn" trigger ... PipeMessage trigger = new PipeMessage(Common.ServerPipeName, Environment.MachineName, "Start Learn", null); Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.Designer.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -793,10 +793,12 @@ // radioButtonActiveWindow // this.radioButtonActiveWindow.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.radioButtonActiveWindow.Checked = true; this.radioButtonActiveWindow.Location = new System.Drawing.Point(16, 24); this.radioButtonActiveWindow.Name = "radioButtonActiveWindow"; this.radioButtonActiveWindow.Size = new System.Drawing.Size(104, 16); this.radioButtonActiveWindow.TabIndex = 0; + this.radioButtonActiveWindow.TabStop = true; this.radioButtonActiveWindow.Text = "Active window"; this.radioButtonActiveWindow.UseVisualStyleBackColor = true; this.radioButtonActiveWindow.CheckedChanged += new System.EventHandler(this.radioButtonActiveWindow_CheckedChanged); @@ -828,7 +830,6 @@ this.radioButtonWindowTitle.Name = "radioButtonWindowTitle"; this.radioButtonWindowTitle.Size = new System.Drawing.Size(96, 16); this.radioButtonWindowTitle.TabIndex = 3; - this.radioButtonWindowTitle.TabStop = true; this.radioButtonWindowTitle.Text = "Window title"; this.radioButtonWindowTitle.UseVisualStyleBackColor = true; this.radioButtonWindowTitle.CheckedChanged += new System.EventHandler(this.radioButtonWindowTitle_CheckedChanged); @@ -840,7 +841,6 @@ this.radioButtonApplication.Name = "radioButtonApplication"; this.radioButtonApplication.Size = new System.Drawing.Size(88, 16); this.radioButtonApplication.TabIndex = 1; - this.radioButtonApplication.TabStop = true; this.radioButtonApplication.Text = "Application"; this.radioButtonApplication.UseVisualStyleBackColor = true; this.radioButtonApplication.CheckedChanged += new System.EventHandler(this.radioButtonApplication_CheckedChanged); @@ -852,7 +852,6 @@ this.radioButtonClass.Name = "radioButtonClass"; this.radioButtonClass.Size = new System.Drawing.Size(72, 16); this.radioButtonClass.TabIndex = 2; - this.radioButtonClass.TabStop = true; this.radioButtonClass.Text = "Class"; this.radioButtonClass.UseVisualStyleBackColor = true; this.radioButtonClass.CheckedChanged += new System.EventHandler(this.radioButtonClass_CheckedChanged); Modified: trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/ButtonMappingForm.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -373,7 +373,9 @@ } else if (radioButtonWindowTitle.Checked) { - // TODO: Locate Window + WindowList windowList = new WindowList(); + if (windowList.ShowDialog(this) == DialogResult.OK) + textBoxMsgTarget.Text = windowList.SelectedWindowTitle; } } @@ -394,7 +396,7 @@ } private void radioButtonWindowTitle_CheckedChanged(object sender, EventArgs e) { - buttonFindMsgTarget.Enabled = false; + buttonFindMsgTarget.Enabled = true; textBoxMsgTarget.Enabled = true; } Added: trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.Designer.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.Designer.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -0,0 +1,70 @@ +namespace Translator +{ + partial class WindowList + { + /// <summary> + /// Required designer variable. + /// </summary> + private System.ComponentModel.IContainer components = null; + + /// <summary> + /// Clean up any resources being used. + /// </summary> + /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// <summary> + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// </summary> + private void InitializeComponent() + { + this.listBoxWindows = new System.Windows.Forms.ListBox(); + this.SuspendLayout(); + // + // listBoxWindows + // + this.listBoxWindows.Dock = System.Windows.Forms.DockStyle.Fill; + this.listBoxWindows.FormattingEnabled = true; + this.listBoxWindows.HorizontalScrollbar = true; + this.listBoxWindows.IntegralHeight = false; + this.listBoxWindows.Location = new System.Drawing.Point(0, 0); + this.listBoxWindows.Name = "listBoxWindows"; + this.listBoxWindows.Size = new System.Drawing.Size(292, 376); + this.listBoxWindows.TabIndex = 0; + this.listBoxWindows.DoubleClick += new System.EventHandler(this.listBoxWindows_DoubleClick); + this.listBoxWindows.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.listBoxWindows_KeyPress); + // + // WindowList + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(292, 376); + this.Controls.Add(this.listBoxWindows); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "WindowList"; + this.ShowIcon = false; + this.ShowInTaskbar = false; + this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Window List"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ListBox listBoxWindows; + } +} \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Runtime.InteropServices; +using System.Text; +using System.Windows.Forms; + +namespace Translator +{ + + public partial class WindowList : Form + { + + #region Interop + + public delegate bool EnumWindowsProc(int hWnd, int lParam); + + [DllImport("user32.dll")] + private static extern int GetWindowText(int hWnd, StringBuilder title, int size); + + [DllImport("user32.dll")] + private static extern int GetWindowModuleFileName(int hWnd, StringBuilder title, int size); + + [DllImport("user32.dll")] + private static extern int EnumWindows(EnumWindowsProc ewp, int lParam); + + #endregion Interop + + #region Properties + + public string SelectedWindowTitle + { + get { return listBoxWindows.SelectedItem as string; } + } + + #endregion Properties + + #region Constructor + + public WindowList() + { + InitializeComponent(); + + PopulateList(); + } + + #endregion Constructor + + void PopulateList() + { + EnumWindowsProc ewp = new EnumWindowsProc(EvalWindow); + + EnumWindows(ewp, 0); + } + + bool EvalWindow(int hWnd, int lParam) + { + StringBuilder title = new StringBuilder(256); + GetWindowText(hWnd, title, 256); + + //StringBuilder module = new StringBuilder(256); + //GetWindowModuleFileName(hWnd, module, 256); + + if (title.Length == 0) + return true; + + listBoxWindows.Items.Add(title.ToString()); + + return true; + } + + private void listBoxWindows_DoubleClick(object sender, EventArgs e) + { + this.DialogResult = DialogResult.OK; + this.Close(); + } + + private void listBoxWindows_KeyPress(object sender, KeyPressEventArgs e) + { + if (e.KeyChar == 27) + { + this.DialogResult = DialogResult.Cancel; + this.Close(); + } + } + + } + +} Added: trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.resx =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.resx (rev 0) +++ trunk/plugins/IR Server Suite/Applications/Translator/Forms/WindowList.resx 2007-07-12 03:23:10 UTC (rev 686) @@ -0,0 +1,120 @@ +<?xml version="1.0" encoding="utf-8"?> +<root> + <!-- + Microsoft ResX Schema + + Version 2.0 + + The primary goals of this format is to allow a simple XML format + that is mostly human readable. The generation and parsing of the + various data types are done through the TypeConverter classes + associated with the data types. + + Example: + + ... ado.net/XML headers & schema ... + <resheader name="resmimetype">text/microsoft-resx</resheader> + <resheader name="version">2.0</resheader> + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> + <value>[base64 mime encoded serialized .NET Framework object]</value> + </data> + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> + <comment>This is a comment</comment> + </data> + + There are any number of "resheader" rows that contain simple + name/value pairs. + + Each data row contains a name, and value. The row also contains a + type or mimetype. Type corresponds to a .NET class that support + text/value conversion through the TypeConverter architecture. + Classes that don't support this are serialized and stored with the + mimetype set. + + The mimetype is used for serialized objects, and tells the + ResXResourceReader how to depersist the object. This is currently not + extensible. For a given mimetype the value must be set accordingly: + + Note - application/x-microsoft.net.object.binary.base64 is the format + that the ResXResourceWriter will generate, however the reader can + read any of the formats listed below. + + mimetype: application/x-microsoft.net.object.binary.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.soap.base64 + value : The object must be serialized with + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter + : and then encoded with base64 encoding. + + mimetype: application/x-microsoft.net.object.bytearray.base64 + value : The object must be serialized into a byte array + : using a System.ComponentModel.TypeConverter + : and then encoded with base64 encoding. + --> + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> + <xsd:element name="root" msdata:IsDataSet="true"> + <xsd:complexType> + <xsd:choice maxOccurs="unbounded"> + <xsd:element name="metadata"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" /> + </xsd:sequence> + <xsd:attribute name="name" use="required" type="xsd:string" /> + <xsd:attribute name="type" type="xsd:string" /> + <xsd:attribute name="mimetype" type="xsd:string" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="assembly"> + <xsd:complexType> + <xsd:attribute name="alias" type="xsd:string" /> + <xsd:attribute name="name" type="xsd:string" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="data"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> + <xsd:attribute ref="xml:space" /> + </xsd:complexType> + </xsd:element> + <xsd:element name="resheader"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> + </xsd:sequence> + <xsd:attribute name="name" type="xsd:string" use="required" /> + </xsd:complexType> + </xsd:element> + </xsd:choice> + </xsd:complexType> + </xsd:element> + </xsd:schema> + <resheader name="resmimetype"> + <value>text/microsoft-resx</value> + </resheader> + <resheader name="version"> + <value>2.0</value> + </resheader> + <resheader name="reader"> + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> + <resheader name="writer"> + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> + </resheader> +</root> \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj =================================================================== --- trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/Applications/Translator/Translator.csproj 2007-07-12 03:23:10 UTC (rev 686) @@ -88,6 +88,12 @@ <Compile Include="Forms\MainForm.Designer.cs"> <DependentUpon>MainForm.cs</DependentUpon> </Compile> + <Compile Include="Forms\WindowList.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="Forms\WindowList.Designer.cs"> + <DependentUpon>WindowList.cs</DependentUpon> + </Compile> <Compile Include="MappedEvent.cs" /> <Compile Include="Program.cs" /> <Compile Include="ProgramSettings.cs" /> @@ -120,6 +126,10 @@ <SubType>Designer</SubType> <DependentUpon>MainForm.cs</DependentUpon> </EmbeddedResource> + <EmbeddedResource Include="Forms\WindowList.resx"> + <DependentUpon>WindowList.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> <EmbeddedResource Include="Properties\Resources.resx"> <Generator>ResXFileCodeGenerator</Generator> <LastGenOutput>Resources.Designer.cs</LastGenOutput> Modified: trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/Configure.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/Configure.Designer.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/Configure.Designer.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -40,10 +40,15 @@ this.comboBoxBlasterType = new System.Windows.Forms.ComboBox(); this.labelBlasterType = new System.Windows.Forms.Label(); this.groupBoxBlaster = new System.Windows.Forms.GroupBox(); + this.groupBoxLearnTimeout = new System.Windows.Forms.GroupBox(); + this.labelLearnIRTimeout = new System.Windows.Forms.Label(); + this.numericUpDownLearnTimeout = new System.Windows.Forms.NumericUpDown(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonRepeatDelay)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonHeldDelay)).BeginInit(); this.groupBoxTimes.SuspendLayout(); this.groupBoxBlaster.SuspendLayout(); + this.groupBoxLearnTimeout.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLearnTimeout)).BeginInit(); this.SuspendLayout(); // // labelButtonRepeatDelay @@ -127,7 +132,7 @@ // // buttonOK // - this.buttonOK.Location = new System.Drawing.Point(96, 168); + this.buttonOK.Location = new System.Drawing.Point(96, 232); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(64, 24); this.buttonOK.TabIndex = 2; @@ -138,7 +143,7 @@ // buttonCancel // this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.buttonCancel.Location = new System.Drawing.Point(168, 168); + this.buttonCancel.Location = new System.Drawing.Point(168, 232); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(64, 24); this.buttonCancel.TabIndex = 3; @@ -189,14 +194,65 @@ this.groupBoxBlaster.TabStop = false; this.groupBoxBlaster.Text = "Blaster setup"; // + // groupBoxLearnTimeout + // + this.groupBoxLearnTimeout.Controls.Add(this.labelLearnIRTimeout); + this.groupBoxLearnTimeout.Controls.Add(this.numericUpDownLearnTimeout); + this.groupBoxLearnTimeout.Location = new System.Drawing.Point(8, 168); + this.groupBoxLearnTimeout.Name = "groupBoxLearnTimeout"; + this.groupBoxLearnTimeout.Size = new System.Drawing.Size(224, 56); + this.groupBoxLearnTimeout.TabIndex = 4; + this.groupBoxLearnTimeout.TabStop = false; + this.groupBoxLearnTimeout.Text = "Learn IR timeout (in milliseconds)"; + // + // labelLearnIRTimeout + // + this.labelLearnIRTimeout.Location = new System.Drawing.Point(8, 24); + this.labelLearnIRTimeout.Name = "labelLearnIRTimeout"; + this.labelLearnIRTimeout.Size = new System.Drawing.Size(120, 20); + this.labelLearnIRTimeout.TabIndex = 2; + this.labelLearnIRTimeout.Text = "Learn IR timeout:"; + this.labelLearnIRTimeout.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // numericUpDownLearnTimeout + // + this.numericUpDownLearnTimeout.Increment = new decimal(new int[] { + 500, + 0, + 0, + 0}); + this.numericUpDownLearnTimeout.Location = new System.Drawing.Point(136, 24); + this.numericUpDownLearnTimeout.Maximum = new decimal(new int[] { + 60000, + 0, + 0, + 0}); + this.numericUpDownLearnTimeout.Minimum = new decimal(new int[] { + 2000, + 0, + 0, + 0}); + this.numericUpDownLearnTimeout.Name = "numericUpDownLearnTimeout"; + this.numericUpDownLearnTimeout.Size = new System.Drawing.Size(80, 20); + this.numericUpDownLearnTimeout.TabIndex = 3; + this.numericUpDownLearnTimeout.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.numericUpDownLearnTimeout.ThousandsSeparator = true; + this.toolTips.SetToolTip(this.numericUpDownLearnTimeout, "When teaching IR commands this is how long before the process times out"); + this.numericUpDownLearnTimeout.Value = new decimal(new int[] { + 8000, + 0, + 0, + 0}); + // // Configure // this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.buttonCancel; - this.ClientSize = new System.Drawing.Size(240, 202); + this.ClientSize = new System.Drawing.Size(240, 263); this.ControlBox = false; + this.Controls.Add(this.groupBoxLearnTimeout); this.Controls.Add(this.groupBoxBlaster); this.Controls.Add(this.groupBoxTimes); this.Controls.Add(this.buttonCancel); @@ -209,6 +265,8 @@ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonHeldDelay)).EndInit(); this.groupBoxTimes.ResumeLayout(false); this.groupBoxBlaster.ResumeLayout(false); + this.groupBoxLearnTimeout.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLearnTimeout)).EndInit(); this.ResumeLayout(false); } @@ -226,5 +284,8 @@ private System.Windows.Forms.ComboBox comboBoxBlasterType; private System.Windows.Forms.Label labelBlasterType; private System.Windows.Forms.GroupBox groupBoxBlaster; + private System.Windows.Forms.GroupBox groupBoxLearnTimeout; + private System.Windows.Forms.Label labelLearnIRTimeout; + private System.Windows.Forms.NumericUpDown numericUpDownLearnTimeout; } } \ No newline at end of file Modified: trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/Configure.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/Configure.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/Configure.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -31,6 +31,12 @@ set { numericUpDownButtonHeldDelay.Value = new Decimal(value); } } + public int LearnTimeout + { + get { return Decimal.ToInt32(numericUpDownLearnTimeout.Value); } + set { numericUpDownLearnTimeout.Value = new Decimal(value); } + } + #endregion Properties #region Constructor Modified: trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/MceIrApi.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/MceIrApi.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/MceIrApi.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -164,7 +164,6 @@ #region Methods [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrRegisterEvents(HandleRef windowHandle); /// <summary> /// Register your window handle to receive window messages from the MceIrApi. @@ -184,7 +183,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrUnregisterEvents(); /// <summary> /// Unregister from receiving window messages from the MceIrApi. @@ -203,7 +201,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrSetRepeatTimes(int firstRepeat, int nextRepeats); /// <summary> /// Sets the time between key presses being repeated. @@ -218,7 +215,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrRecordToFile(SafeFileHandle fileHandle, int timeout); /// <summary> /// Record an IR code to file. @@ -233,7 +229,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrPlaybackFromFile(SafeFileHandle fileHandle); /// <summary> /// Transmit an IR Code from a file. @@ -249,7 +244,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrSuspend(); /// <summary> /// Suspend the MceIrApi. @@ -265,7 +259,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrResume(); /// <summary> /// Resume the MceIrApi. @@ -282,7 +275,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrSelectBlaster(int portNumber); /// <summary> /// Select the Blaster port to use for transmitting IR Codes. @@ -295,7 +287,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrCheckFile(SafeFileHandle fileHandle); /// <summary> /// Check an IR Code file to ensure it is valid. @@ -309,7 +300,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrSetBlasterSpeed(int speed); /// <summary> /// Set the Speed to transmit IR Codes at. @@ -322,7 +312,6 @@ } [DllImport("MceIr.dll")] - [return: MarshalAs(UnmanagedType.Bool)] static extern bool MceIrSetBlasterType(int type); /// <summary> /// Set the Type of MCE unit. Modified: trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/MceReplacementTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/MceReplacementTransceiver.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/MCE Replacement Transceiver/MceReplacementTransceiver.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -36,6 +36,7 @@ int _repeatDelay; int _heldDelay; + int _learnTimeout; #endregion Variables @@ -74,12 +75,14 @@ config.BlastType = _blasterType; config.RepeatDelay = _repeatDelay; config.HeldDelay = _heldDelay; + config.LearnTimeout = _learnTimeout; if (config.ShowDialog() == DialogResult.OK) { _blasterType = config.BlastType; _repeatDelay = config.RepeatDelay; _heldDelay = config.HeldDelay; + _learnTimeout = config.LearnTimeout; SaveSettings(); } @@ -157,19 +160,16 @@ DateTime start = DateTime.Now; - // TODO: Implement proper timeout ... - int timeout = 8000; + bool result = MceIrApi.RecordToFile(fileStream.SafeFileHandle, _learnTimeout); - bool result = MceIrApi.RecordToFile(fileStream.SafeFileHandle, timeout); - fileStream.Close(); TimeSpan timeTaken = start.Subtract(DateTime.Now); - if (timeTaken.Milliseconds >= timeout) + if (result) + return LearnStatus.Success; + else if (timeTaken.Milliseconds >= _learnTimeout) return LearnStatus.Timeout; - else if (result) - return LearnStatus.Success; else return LearnStatus.Failure; } @@ -215,6 +215,7 @@ _blasterType = (MceIrApi.BlasterType)Enum.Parse(typeof(MceIrApi.BlasterType), doc.DocumentElement.Attributes["BlastType"].Value); _repeatDelay = int.Parse(doc.DocumentElement.Attributes["RepeatDelay"].Value); _heldDelay = int.Parse(doc.DocumentElement.Attributes["HeldDelay"].Value); + _learnTimeout = int.Parse(doc.DocumentElement.Attributes["LearnTimeout"].Value); } catch (Exception ex) { @@ -223,6 +224,7 @@ _blasterType = MceIrApi.BlasterType.Microsoft; _repeatDelay = 500; _heldDelay = 250; + _learnTimeout = 8000; } } void SaveSettings() @@ -239,6 +241,7 @@ writer.WriteAttributeString("BlastType", Enum.GetName(typeof(MceIrApi.BlasterType), _blasterType)); writer.WriteAttributeString("RepeatDelay", _repeatDelay.ToString()); writer.WriteAttributeString("HeldDelay", _heldDelay.ToString()); + writer.WriteAttributeString("LearnTimeout", _learnTimeout.ToString()); writer.WriteEndElement(); // </settings> writer.WriteEndDocument(); Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.Designer.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.Designer.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -40,10 +40,15 @@ this.comboBoxBlasterType = new System.Windows.Forms.ComboBox(); this.labelBlasterType = new System.Windows.Forms.Label(); this.groupBoxBlaster = new System.Windows.Forms.GroupBox(); + this.groupBoxLearnTimeout = new System.Windows.Forms.GroupBox(); + this.labelLearnIRTimeout = new System.Windows.Forms.Label(); + this.numericUpDownLearnTimeout = new System.Windows.Forms.NumericUpDown(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonRepeatDelay)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonHeldDelay)).BeginInit(); this.groupBoxTimes.SuspendLayout(); this.groupBoxBlaster.SuspendLayout(); + this.groupBoxLearnTimeout.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLearnTimeout)).BeginInit(); this.SuspendLayout(); // // labelButtonRepeatDelay @@ -127,7 +132,7 @@ // // buttonOK // - this.buttonOK.Location = new System.Drawing.Point(96, 168); + this.buttonOK.Location = new System.Drawing.Point(96, 232); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(64, 24); this.buttonOK.TabIndex = 2; @@ -138,7 +143,7 @@ // buttonCancel // this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.buttonCancel.Location = new System.Drawing.Point(168, 168); + this.buttonCancel.Location = new System.Drawing.Point(168, 232); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(64, 24); this.buttonCancel.TabIndex = 3; @@ -189,14 +194,65 @@ this.groupBoxBlaster.TabStop = false; this.groupBoxBlaster.Text = "Blaster setup"; // + // groupBoxLearnTimeout + // + this.groupBoxLearnTimeout.Controls.Add(this.labelLearnIRTimeout); + this.groupBoxLearnTimeout.Controls.Add(this.numericUpDownLearnTimeout); + this.groupBoxLearnTimeout.Location = new System.Drawing.Point(8, 168); + this.groupBoxLearnTimeout.Name = "groupBoxLearnTimeout"; + this.groupBoxLearnTimeout.Size = new System.Drawing.Size(224, 56); + this.groupBoxLearnTimeout.TabIndex = 5; + this.groupBoxLearnTimeout.TabStop = false; + this.groupBoxLearnTimeout.Text = "Learn IR timeout (in milliseconds)"; + // + // labelLearnIRTimeout + // + this.labelLearnIRTimeout.Location = new System.Drawing.Point(8, 24); + this.labelLearnIRTimeout.Name = "labelLearnIRTimeout"; + this.labelLearnIRTimeout.Size = new System.Drawing.Size(120, 20); + this.labelLearnIRTimeout.TabIndex = 2; + this.labelLearnIRTimeout.Text = "Learn IR timeout:"; + this.labelLearnIRTimeout.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // numericUpDownLearnTimeout + // + this.numericUpDownLearnTimeout.Increment = new decimal(new int[] { + 500, + 0, + 0, + 0}); + this.numericUpDownLearnTimeout.Location = new System.Drawing.Point(136, 24); + this.numericUpDownLearnTimeout.Maximum = new decimal(new int[] { + 60000, + 0, + 0, + 0}); + this.numericUpDownLearnTimeout.Minimum = new decimal(new int[] { + 2000, + 0, + 0, + 0}); + this.numericUpDownLearnTimeout.Name = "numericUpDownLearnTimeout"; + this.numericUpDownLearnTimeout.Size = new System.Drawing.Size(80, 20); + this.numericUpDownLearnTimeout.TabIndex = 3; + this.numericUpDownLearnTimeout.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.numericUpDownLearnTimeout.ThousandsSeparator = true; + this.toolTips.SetToolTip(this.numericUpDownLearnTimeout, "When teaching IR commands this is how long before the process times out"); + this.numericUpDownLearnTimeout.Value = new decimal(new int[] { + 8000, + 0, + 0, + 0}); + // // Configure // this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.buttonCancel; - this.ClientSize = new System.Drawing.Size(240, 202); + this.ClientSize = new System.Drawing.Size(240, 263); this.ControlBox = false; + this.Controls.Add(this.groupBoxLearnTimeout); this.Controls.Add(this.groupBoxBlaster); this.Controls.Add(this.groupBoxTimes); this.Controls.Add(this.buttonCancel); @@ -209,6 +265,8 @@ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonHeldDelay)).EndInit(); this.groupBoxTimes.ResumeLayout(false); this.groupBoxBlaster.ResumeLayout(false); + this.groupBoxLearnTimeout.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLearnTimeout)).EndInit(); this.ResumeLayout(false); } @@ -226,5 +284,8 @@ private System.Windows.Forms.ComboBox comboBoxBlasterType; private System.Windows.Forms.Label labelBlasterType; private System.Windows.Forms.GroupBox groupBoxBlaster; + private System.Windows.Forms.GroupBox groupBoxLearnTimeout; + private System.Windows.Forms.Label labelLearnIRTimeout; + private System.Windows.Forms.NumericUpDown numericUpDownLearnTimeout; } } \ No newline at end of file Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/Configure.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -31,6 +31,12 @@ set { numericUpDownButtonHeldDelay.Value = new Decimal(value); } } + public int LearnTimeout + { + get { return Decimal.ToInt32(numericUpDownLearnTimeout.Value); } + set { numericUpDownLearnTimeout.Value = new Decimal(value); } + } + #endregion Properties #region Constructor Modified: trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/Microsoft MCE Transceiver/MicrosoftMceTransceiver.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -318,6 +318,8 @@ static int _repeatDelay; static int _heldDelay; + static int _learnTimeout; + static ArrayList _packetArray; static Guid _blasterGuid; static FileStream _blasterStream; @@ -367,12 +369,14 @@ config.BlastType = _blasterType; config.RepeatDelay = _repeatDelay; config.HeldDelay = _heldDelay; + config.LearnTimeout = _learnTimeout; if (config.ShowDialog() == DialogResult.OK) { _blasterType = config.BlastType; _repeatDelay = config.RepeatDelay; _heldDelay = config.HeldDelay; + _learnTimeout = config.LearnTimeout; SaveSettings(); } @@ -454,14 +458,11 @@ { _irData = null; - // TODO: Implement proper timeout - int timeout = 8000; - BeginLearn(new RemoteEventHandler(LearnIRDone)); // Wait for the learning to finish ... - while (_learning && Environment.TickCount < _learnStartTick + timeout) - Thread.Sleep(1000); + while (_learning && Environment.TickCount < _learnStartTick + _learnTimeout) + Thread.Sleep(500); if (_learning) { Modified: trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.Designer.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.Designer.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.Designer.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -36,8 +36,11 @@ this.toolTips = new System.Windows.Forms.ToolTip(this.components); this.labelRepeatCount = new System.Windows.Forms.Label(); this.numericUpDownRepeatCount = new System.Windows.Forms.NumericUpDown(); + this.labelLearnIRTimeout = new System.Windows.Forms.Label(); + this.numericUpDownLearnTimeout = new System.Windows.Forms.NumericUpDown(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonRepeatDelay)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownRepeatCount)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLearnTimeout)).BeginInit(); this.SuspendLayout(); // // labelButtonRepeatDelay @@ -82,7 +85,7 @@ // buttonOK // this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonOK.Location = new System.Drawing.Point(104, 72); + this.buttonOK.Location = new System.Drawing.Point(104, 104); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(64, 24); this.buttonOK.TabIndex = 4; @@ -94,7 +97,7 @@ // this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.buttonCancel.Location = new System.Drawing.Point(176, 72); + this.buttonCancel.Location = new System.Drawing.Point(176, 104); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(64, 24); this.buttonCancel.TabIndex = 5; @@ -130,13 +133,54 @@ 0, 0}); // + // labelLearnIRTimeout + // + this.labelLearnIRTimeout.Location = new System.Drawing.Point(8, 72); + this.labelLearnIRTimeout.Name = "labelLearnIRTimeout"; + this.labelLearnIRTimeout.Size = new System.Drawing.Size(144, 20); + this.labelLearnIRTimeout.TabIndex = 6; + this.labelLearnIRTimeout.Text = "Learn IR timeout:"; + this.labelLearnIRTimeout.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // numericUpDownLearnTimeout + // + this.numericUpDownLearnTimeout.Increment = new decimal(new int[] { + 500, + 0, + 0, + 0}); + this.numericUpDownLearnTimeout.Location = new System.Drawing.Point(152, 72); + this.numericUpDownLearnTimeout.Maximum = new decimal(new int[] { + 60000, + 0, + 0, + 0}); + this.numericUpDownLearnTimeout.Minimum = new decimal(new int[] { + 2000, + 0, + 0, + 0}); + this.numericUpDownLearnTimeout.Name = "numericUpDownLearnTimeout"; + this.numericUpDownLearnTimeout.Size = new System.Drawing.Size(88, 20); + this.numericUpDownLearnTimeout.TabIndex = 7; + this.numericUpDownLearnTimeout.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.numericUpDownLearnTimeout.ThousandsSeparator = true; + this.toolTips.SetToolTip(this.numericUpDownLearnTimeout, "When teaching IR commands this is how long before the process times out"); + this.numericUpDownLearnTimeout.Value = new decimal(new int[] { + 10000, + 0, + 0, + 0}); + // // Configure // this.AcceptButton = this.buttonOK; this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.CancelButton = this.buttonCancel; - this.ClientSize = new System.Drawing.Size(248, 105); + this.ClientSize = new System.Drawing.Size(248, 137); + this.Controls.Add(this.labelLearnIRTimeout); + this.Controls.Add(this.numericUpDownLearnTimeout); this.Controls.Add(this.labelButtonRepeatDelay); this.Controls.Add(this.numericUpDownRepeatCount); this.Controls.Add(this.numericUpDownButtonRepeatDelay); @@ -145,7 +189,7 @@ this.Controls.Add(this.buttonOK); this.MaximizeBox = false; this.MinimizeBox = false; - this.MinimumSize = new System.Drawing.Size(256, 132); + this.MinimumSize = new System.Drawing.Size(256, 164); this.Name = "Configure"; this.ShowIcon = false; this.ShowInTaskbar = false; @@ -153,6 +197,7 @@ this.Text = "USB-UIRT Configuration"; ((System.ComponentModel.ISupportInitialize)(this.numericUpDownButtonRepeatDelay)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDownRepeatCount)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.numericUpDownLearnTimeout)).EndInit(); this.ResumeLayout(false); } @@ -166,5 +211,7 @@ private System.Windows.Forms.ToolTip toolTips; private System.Windows.Forms.Label labelRepeatCount; private System.Windows.Forms.NumericUpDown numericUpDownRepeatCount; + private System.Windows.Forms.Label labelLearnIRTimeout; + private System.Windows.Forms.NumericUpDown numericUpDownLearnTimeout; } } \ No newline at end of file Modified: trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -24,6 +24,11 @@ get { return Decimal.ToInt32(numericUpDownRepeatCount.Value); } set { numericUpDownRepeatCount.Value = new Decimal(value); } } + public int LearnTimeout + { + get { return Decimal.ToInt32(numericUpDownLearnTimeout.Value); } + set { numericUpDownLearnTimeout.Value = new Decimal(value); } + } #endregion Properties Modified: trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.resx =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.resx 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/Configure.resx 2007-07-12 03:23:10 UTC (rev 686) @@ -120,4 +120,7 @@ <metadata name="toolTips.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <value>17, 17</value> </metadata> + <metadata name="toolTips.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> + <value>17, 17</value> + </metadata> </root> \ No newline at end of file Modified: trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs =================================================================== --- trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs 2007-07-11 22:05:26 UTC (rev 685) +++ trunk/plugins/IR Server Suite/IR Server Plugins/USB-UIRT Transceiver/UirtTransceiver.cs 2007-07-12 03:23:10 UTC (rev 686) @@ -145,6 +145,7 @@ int _repeatDelay; int _blastRepeats; + int _learnTimeout; string _lastCode = String.Empty; DateTime _lastCodeTime = DateTime.Now; @@ -227,11 +228,13 @@ config.RepeatDelay = _repeatDelay; config.BlastRepeats = _blastRepeats; + config.LearnTimeout = _learnTimeout; if (config.ShowDialog() == DialogResult.OK) { _repeatDelay = config.RepeatDelay; _blastRepeats = config.BlastRepeats; + _learnTimeout = config.LearnTimeout; SaveSettings(); } @@ -308,9 +311,7 @@ _learnTimedOut = false; Timer timer = new Timer(); - - // TODO: Implement proper timeout ... - timer.Interval = 8000; + timer.Interval = _learnTimeout; timer.Tick += new EventHandler(timer_Tick); result = UirtTransceiver.UUIRTLearnIR( @@ -379,6 +380,7 @@ _repeatDelay = int.Parse(doc.DocumentElement.Attributes["RepeatDelay"].Value); _blastRepeats = int.Parse(doc.DocumentElement.Attributes["BlastRepeats"].Value); + _learnTimeout = int.Parse(doc.DocumentElement.Attributes["LearnTimeout"].Value); } catch (Exception ex) { @@ -386,6 +388,7 @@ _repeatDelay = 500; _blastRepeats = 4; + _learnTimeout = 10000; } } void SaveSettings() @@ -401,6 +404,7 @@ writer.WriteAttributeString("RepeatDelay", _repeatDelay.ToString()); writer.WriteAttributeString("BlastRepeats", _blastRepeats.ToString()); + writer.WriteAttributeString("LearnTimeout", _learnTimeout.ToString()); writer.WriteEndElement(); // </settings> writer.WriteEndDocument(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nor...@us...> - 2007-07-11 22:05:28
|
Revision: 685 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=685&view=rev Author: northern_sky Date: 2007-07-11 15:05:26 -0700 (Wed, 11 Jul 2007) Log Message: ----------- added fileinfo (from mpvideo)..needs more work Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAlt.csproj Added Paths: ----------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAltFileInfo.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml Removed Paths: ------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIFileDetailsInfoParser.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramInfo.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/MetaData/myProgramsAltFileDetailsInfo.xml Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-11 22:03:07 UTC (rev 684) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-11 22:05:26 UTC (rev 685) @@ -735,20 +735,20 @@ public virtual void OnInfo(GUIListItem item, ref bool isOverviewVisible, ref ProgramInfoAction modalResult, ref int selectedFileID) { - GUIFileInfo fileInfoDialog = (GUIFileInfo)GUIWindowManager.GetWindow(ProgramUtils.ProgramInfoID); - if (fileInfoDialog == null) return; - if (item.MusicTag == null) return; - FileItem curFile = (FileItem)item.MusicTag; - if (curFile == null) return; + // GUIFileInfo fileInfoDialog = (GUIFileInfo)GUIWindowManager.GetWindow(ProgramUtils.ProgramInfoID); + // if (fileInfoDialog == null) return; + // if (item.MusicTag == null) return; + //FileItem curFile = (FileItem)item.MusicTag; + //if (curFile == null) return; - fileInfoDialog.App = this; + /* fileInfoDialog.App = this; fileInfoDialog.File = curFile; fileInfoDialog.IsOverviewVisible = isOverviewVisible; fileInfoDialog.DoModal(GetID); isOverviewVisible = fileInfoDialog.IsOverviewVisible; modalResult = fileInfoDialog.ModalResult; selectedFileID = fileInfoDialog.SelectedFileID; - return; + return;*/ } Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-11 22:03:07 UTC (rev 684) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/FileItems/FileItem.cs 2007-07-11 22:05:26 UTC (rev 685) @@ -583,6 +583,33 @@ return strRes; } + public void SetProperties() + { + /* string strThumb = MediaPortal.Util.Utils.GetLargeCoverArtName(Thumbs.MovieTitle, Title);*/ + //((GUIPropertyManager.SetProperty("#director", Director); + GUIPropertyManager.SetProperty("#maingenre", MainGenre); + GUIPropertyManager.SetProperty("#subgenre", SubGenre); + //GUIPropertyManager.SetProperty("#cast", Cast); + // GUIPropertyManager.SetProperty("#dvdlabel", DVDLabel); + // GUIPropertyManager.SetProperty("#imdbnumber", IMDBNumber); + // GUIPropertyManager.SetProperty("#file", File); + GUIPropertyManager.SetProperty("#plot", Overview); + // GUIPropertyManager.SetProperty("#plotoutline", PlotOutline); + GUIPropertyManager.SetProperty("#rating", Rating.ToString()); + //GUIPropertyManager.SetProperty("#tagline", TagLine); + // GUIPropertyManager.SetProperty("#votes", Votes); + // GUIPropertyManager.SetProperty("#credits", WritingCredits); + GUIPropertyManager.SetProperty("#thumb", Imagefile); + GUIPropertyManager.SetProperty("#title", Title); + GUIPropertyManager.SetProperty("#year", Year.ToString()); + GUIPropertyManager.SetProperty("#platform", Platform); + /*GUIPropertyManager.SetProperty("#runtime", RunTime.ToString()); + GUIPropertyManager.SetProperty("#mpaarating", MPARating.ToString());*/ + /* string strValue = "no"; + if (Watched > 0) strValue = "yes"; + GUIPropertyManager.SetProperty("#iswatched", strValue);*/ + } + private void Insert() { try Deleted: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIFileDetailsInfoParser.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIFileDetailsInfoParser.cs 2007-07-11 22:03:07 UTC (rev 684) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIFileDetailsInfoParser.cs 2007-07-11 22:05:26 UTC (rev 685) @@ -1,307 +0,0 @@ -#region Copyright (C) 2005-2007 Team MediaPortal - -/* - * Copyright (C) 2005-2007 Team MediaPortal - * http://www.team-mediaportal.com - * - * This Program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This Program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Make; see the file COPYING. If not, write to - * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. - * http://www.gnu.org/copyleft/gpl.html - * - */ - -#endregion - -using System; -using System.Xml; -using MediaPortal.GUI.Library; -using MediaPortal.Util; -using GUIPrograms.Database; -using MediaPortal.Configuration; - -using GUIPrograms.ApplicationItems; -using GUIPrograms.FileItems; - - - -namespace GUIPrograms -{ - /// <summary> - /// Summary description for GUIFileDetailsInfoParser. - /// </summary> - public class GUIFileDetailsInfoParser - { - static XmlNodeList NodeList = null; - static XmlElement rootElement = null; - - - private GUIFileDetailsInfoParser() - { - // - // TODO: Add constructor logic here - // - } - - static GUIFileDetailsInfoParser() - { - - if (System.IO.File.Exists(Config.GetFile(Config.Dir.Config, "myProgramsAltFileDetailsInfo.xml"))) - { - try - { - XmlDocument document = new XmlDocument(); - document.Load(Config.GetFile(Config.Dir.Config, "myProgramsAltFileDetailsInfo.xml")); - rootElement = document.DocumentElement; - if ((rootElement != null) && (rootElement.Name.Equals("contentprofiles"))) - { - NodeList = rootElement.SelectNodes("/contentprofiles/profile"); - } - } - catch (Exception ex) - { - Log.Info("exception in GUIFileDetailsInfoParser err:{0} stack:{1}", ex.Message, ex.StackTrace); - } - } - else - { - Log.Info("Warning: myPrograms did not find the expected 'myProgramsAltFileDetailsInfo.xml' in your MP root directory!"); - } - } - - static public string GetFieldValue(ApplicationItem curApp, FileItem curFile, string strFieldName, string strValueIfEmpty) - { - string result = ""; - if (rootElement == null) - { - return ""; - } - XmlNode node = rootElement.SelectSingleNode(String.Format("/contentprofiles/profile[@id={0}]", curApp.ContentID)); - if (node != null) - { - XmlNode fieldnode = node.SelectSingleNode(String.Format("fields/field[@fieldid=\"{0}\"]", strFieldName)); - if (fieldnode != null) - { - result = ParseExpressions(fieldnode.InnerText, curApp, curFile); - } - else - { - Log.Info("GUIFileDetailsInfoParser Warning, no data found for \n{0}\n{1}\n{2}", curApp.Title, curFile.Title, node.InnerXml); - } - } - else - { - Log.Info("GUIFileDetailsInfoParser Warning, no data found for \n{0}\n{1}", curApp.Title, curFile.Title); - } - if (result == "") - { - result = strValueIfEmpty; - } - return result; - } - - static string ParseExpressions(string strExpression, ApplicationItem curApp, FileItem curFile) - { - string result = strExpression; - if (curApp == null) - return result; - if (curFile == null) - return result; - if (result.Length == 0) - return result; - - int iNextValueTagStart = result.IndexOf("["); - int iNextValueTagEnd = -1; - string Head = ""; - string Expression = ""; - string Tail = ""; - while (iNextValueTagStart >= 0) - { - iNextValueTagEnd = result.IndexOf("]", iNextValueTagStart); - if (iNextValueTagEnd > iNextValueTagStart) - { - iNextValueTagEnd = iNextValueTagEnd + 1; - if (iNextValueTagStart > 0) - { - Head = result.Substring(0, iNextValueTagStart); - } - else - { - Head = ""; - } - Expression = result.Substring(iNextValueTagStart, iNextValueTagEnd - iNextValueTagStart); - if (result.Length - iNextValueTagEnd > 0) - { - Tail = result.Substring(iNextValueTagEnd, result.Length - iNextValueTagEnd); - } - else - { - Tail = ""; - } - result = Head + ParseOneExpression(Expression, curFile) + Tail; - } - iNextValueTagStart = result.IndexOf("["); - } - - return result; - } - - static string ParseOneExpression(string strTagExpression, FileItem curFile) - { - string result = ""; - if (strTagExpression.StartsWith("[VALUEOFTAG(")) - { - result = ParseVALUEOFTAG(strTagExpression, curFile); - } - else if (strTagExpression.StartsWith("[NAMEOFCATEGORY(")) - { - result = ParseNAMEOFCATEGORY(strTagExpression, curFile); - } - else if (strTagExpression.StartsWith("[VALUEOFCATEGORY(")) - { - result = ParseVALUEOFCATEGORY(strTagExpression, curFile); - } - return result; - } - - static string ParseVALUEOFTAG(string strTagExpression, FileItem curFile) - { - string result = ""; - string TagName = ""; - int Start = strTagExpression.IndexOf("\""); - int End = strTagExpression.IndexOf("\"", Start + 1); - if ((Start >= 0) && (End > Start)) - { - TagName = strTagExpression.Substring(Start, End - Start + 1); - TagName = TagName.TrimStart('"'); - TagName = TagName.TrimEnd('"'); - TagName = TagName.ToLower(); - - switch (TagName) - { - case "platform": - { - result = curFile.Platform; - break; - } - case "yearmanu": - { - result = curFile.YearManu; - break; - } - case "rating": - { - if (curFile.Rating >= 0) - { - result = String.Format("{0}/10", curFile.Rating); - } - break; - } - case "genre": - { - string sep = ""; - if (curFile.MainGenre != "") - { - result = curFile.MainGenre; - sep = " / "; - } - if (curFile.SubGenre != "") - { - result = result + sep + curFile.SubGenre; - sep = " / "; - } - break; - } - case "overview": - { - result = curFile.Overview; - break; - } - case "year": - { - if (curFile.Year >= 1900) - { - result = String.Format("{0}", curFile.Year); - } - break; - } - case "manufacturer": - { - result = curFile.Manufacturer; - break; - } - default: - { - result = curFile.GetValueOfTag(TagName); - break; - } - } - } - return result; - } - - static string ParseNAMEOFCATEGORY(string strTagExpression, FileItem curFile) - { - string result = ""; - string TagName = ""; - int TagNumber = -1; - int Start = strTagExpression.IndexOf("("); - int End = strTagExpression.IndexOf(")", Start + 1); - if ((Start >= 0) && (End > Start)) - { - TagName = strTagExpression.Substring(Start, End - Start + 1); - TagName = TagName.TrimStart('('); - TagName = TagName.TrimEnd(')'); - TagName = TagName.ToLower(); - TagNumber = ProgramUtils.StringToInteger(TagName, -1); - if (TagNumber >= 0) - { - result = curFile.GetNameOfCategory(TagNumber); - } - else - { - Log.Info("Warning: GUIFileDetailsInfoParser: Invalid number {0}", TagName); - } - } - return result; - } - - static string ParseVALUEOFCATEGORY(string strTagExpression, FileItem curFile) - { - string result = ""; - string TagName = ""; - int TagNumber = -1; - int Start = strTagExpression.IndexOf("("); - int End = strTagExpression.IndexOf(")", Start + 1); - if ((Start >= 0) && (End > Start)) - { - TagName = strTagExpression.Substring(Start, End - Start + 1); - TagName = TagName.TrimStart('('); - TagName = TagName.TrimEnd(')'); - TagName = TagName.ToLower(); - TagNumber = ProgramUtils.StringToInteger(TagName, -1); - if (TagNumber >= 0) - { - result = curFile.GetValueOfCategory(TagNumber); - } - else - { - Log.Info("Warning: GUIFileDetailsInfoParser: Invalid number {0}", TagName); - } - - } - return result; - } - - } -} \ No newline at end of file Deleted: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramInfo.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramInfo.cs 2007-07-11 22:03:07 UTC (rev 684) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramInfo.cs 2007-07-11 22:05:26 UTC (rev 685) @@ -1,554 +0,0 @@ -#region Copyright (C) 2005-2007 Team MediaPortal - -/* - * Copyright (C) 2005-2007 Team MediaPortal - * http://www.team-mediaportal.com - * - * This Program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This Program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with GNU Make; see the file COPYING. If not, write to - * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. - * http://www.gnu.org/copyleft/gpl.html - * - */ - -#endregion - -using System; -using Microsoft.DirectX.Direct3D; - -using MediaPortal.Dialogs; -using MediaPortal.GUI.Library; -using MediaPortal.Util; - -using GUIPrograms.ApplicationItems; -using GUIPrograms.Database; -using GUIPrograms.FileItems; - -namespace GUIPrograms -{ - /// <summary> - /// - /// </summary> - public class GUIFileInfo : GUIWindow, IRenderLayer - { - #region SkinControls - - // Labels - [SkinControlAttribute(20)] - protected GUILabelControl lblTitle = null; - [SkinControlAttribute(31)] - protected GUILabelControl lblSystemCaption = null; - [SkinControlAttribute(32)] - protected GUILabelControl lblYearManuCaption = null; - [SkinControlAttribute(33)] - protected GUILabelControl lblRatingCaption = null; - [SkinControlAttribute(34)] - protected GUILabelControl lblGenreCaption = null; - - // Fadelabels - [SkinControlAttribute(21)] - protected GUIFadeLabel lblSystemData = null; - [SkinControlAttribute(22)] - protected GUIFadeLabel lblYearManuData = null; - [SkinControlAttribute(23)] - protected GUIFadeLabel lblRatingData = null; - [SkinControlAttribute(24)] - protected GUIFadeLabel lblGenreData = null; - - - // Textbox - [SkinControlAttribute(4)] - // protected GUITextScrollUpControl tbOverviewData = null; - protected GUITextControl tbOverviewData = null; - - //Images - [SkinControlAttribute(3)] - protected GUIImage imgSmall = null; - [SkinControlAttribute(10)] - protected GUIImage imgBig = null; - - // Buttons - [SkinControlAttribute(7)] - protected GUIButtonControl btnPrev = null; - [SkinControlAttribute(8)] - protected GUIButtonControl btnLaunch = null; - [SkinControlAttribute(9)] - protected GUIButtonControl btnNext = null; - [SkinControlAttribute(11)] - protected GUIButtonControl btnToggleOverview = null; - [SkinControlAttribute(12)] - protected GUIButtonControl btnRefreshData = null; - - #endregion - - #region Base & Content Variables - - bool isRunning = false; - int parentWindowID = 0; - GUIWindow parentWindow = null; - Texture curTexture = null; - FileItem curFile = null; - ApplicationItem curApp = null; - int textureWidth = 0; - int textureHeight = 0; - bool isOverlay = false; - bool isOverviewVisible = true; - int slideSpeed = 3; - long slideTime = 0; - - string programSystemLabel = ""; - string programManufacturerLabel = ""; - string programRatingLabel = ""; - string programGenreLabel = ""; - - string programSystem = ""; - string programManufacturer = ""; - string programRating = ""; - string programGenre = ""; - - string programOverview = ""; - - ProgramInfoAction modalResult = ProgramInfoAction.None; - int selectedFileID = -1; - - #endregion - - #region Properties / Helper Routines - public ProgramInfoAction ModalResult - { - get { return modalResult; } - set { modalResult = value; } - } - - public int SelectedFileID - { - get - { return selectedFileID; } - } - - void SyncFileID() - { - if (null != curFile) - { - selectedFileID = curFile.FileID; - } - else - { - selectedFileID = -1; - } - } - - #endregion - - #region Constructor / Destructor - - public GUIFileInfo() - { - GetID = ProgramUtils.ProgramInfoID; - } - - #endregion - - #region Properties - - public FileItem File - { - set - { - curFile = value; - SyncFileID(); - } - } - - public ApplicationItem App - { - set - { - curApp = value; - if (curApp != null) - curApp.ResetThumbs(); - } - } - - public bool IsOverviewVisible - { - get - { - return isOverviewVisible; - } - set - { - isOverviewVisible = value; - } - } - - #endregion - - #region Overrides - - public override bool Init() - { - return Load(GUIGraphicsContext.Skin + @"\DialogFileInfo.xml"); - } - - public override bool OnMessage(GUIMessage message) - { - switch (message.Message) - { - case GUIMessage.MessageType.GUI_MSG_WINDOW_INIT: - isOverlay = GUIGraphicsContext.Overlay; - base.OnMessage(message); - return true; - case GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT: - base.OnMessage(message); - GUIGraphicsContext.Overlay = isOverlay; - return true; - } - return base.OnMessage(message); - } - - - protected override void OnPageLoad() - { - base.OnPageLoad(); - // isOverlay = GUIGraphicsContext.Overlay; - curTexture = null; - - if (curApp != null) - { - curApp.ResetThumbs(); - } - // if there is no overview text, default to bigger pictures - if (curFile != null) - { - if (curFile.Overview == "") - { - this.isOverviewVisible = false; - } - } - Refresh(); - } - - - protected override void OnPageDestroy(int newWindowId) - { - curFile = null; - if (curTexture != null) - { - curTexture.Dispose(); - curTexture = null; - } - // GUIGraphicsContext.Overlay = isOverlay; - base.OnPageDestroy(newWindowId); - } - - - protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) - { - base.OnClicked(controlId, control, actionType); - if (control == btnPrev) - { - curFile = curApp.PrevFile(curFile); - SyncFileID(); - curApp.ResetThumbs(); - Refresh(); - } - else if (control == btnNext) - { - curFile = curApp.NextFile(curFile); - SyncFileID(); - curApp.ResetThumbs(); - Refresh(); - } - else if (control == btnLaunch) - { - if (curApp != null) - { - curApp.LaunchFile(curFile, true); - Refresh(); - } - - } - else if (control == btnToggleOverview) - { - isOverviewVisible = !isOverviewVisible; - Refresh(); - } - else if (control == this.btnRefreshData) - { - Close(ProgramInfoAction.LookupFileInfo); - RefreshData(); - Refresh(); - } - } - - - public override void OnAction(Action action) - { - if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG || action.wID == Action.ActionType.ACTION_PARENT_DIR || action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) - { - Close(ProgramInfoAction.None); - return; - } - base.OnAction(action); - } - - public override void Render(float timePassed) - { - RenderDlg(timePassed); - - if (null == curTexture) - return; - - // does the thumb needs replacing?? - long timeElapsed = (DateTime.Now.Ticks / 10000) - slideTime; - if (timeElapsed >= (slideSpeed * 1000)) - { - RefreshPicture(); // only refresh the picture, don't refresh the other data otherwise scrolling of labels is interrupted! - } - - - GUIControl curImg = null; - if (this.isOverviewVisible) - { - curImg = imgSmall; - } - else - { - curImg = imgBig; - } - if (curImg != null) - { - float x = (float)curImg.XPosition; - float y = (float)curImg.YPosition; - int curWidth; - int curHeight; - GUIGraphicsContext.Correct(ref x, ref y); - - int maxWidth = curImg.Width; - int maxHeight = curImg.Height; - GUIGraphicsContext.GetOutputRect(textureWidth, textureHeight, maxWidth, maxHeight, out curWidth, out curHeight); - GUIFontManager.Present(); - int deltaX = ((curImg.Width - curWidth) / 2); - if (deltaX < 0) - { - deltaX = 0; - } - int deltaY = ((curImg.Height - curHeight) / 2); - if (deltaY < 0) - { - deltaY = 0; - } - x = x + deltaX; - y = y + deltaY; - Picture.RenderImage(curTexture, (int)x, (int)y, curWidth, curHeight, textureWidth, textureHeight, 0, 0, true); - } - } - - #endregion - - #region Display - - void Close(ProgramInfoAction res) - { - modalResult = res; - GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT, GetID, 0, 0, 0, 0, null); - OnMessage(msg); - - GUIWindowManager.UnRoute(); - parentWindow = null; - isRunning = false; - } - - - public void DoModal(int parentId) - { - parentWindowID = parentId; - parentWindow = GUIWindowManager.GetWindow(parentWindowID); - if (null == parentWindow) - { - parentWindowID = 0; - return; - } - - GUIWindowManager.RouteToWindow(GetID); - - // activate this window... - GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, GetID, 0, 0, 0, 0, null); - OnMessage(msg); - GUILayerManager.RegisterLayer(this, GUILayerManager.LayerType.Dialog); - - isRunning = true; - while (isRunning && GUIGraphicsContext.CurrentState == GUIGraphicsContext.State.RUNNING) - { - GUIWindowManager.Process(); - } - GUILayerManager.UnRegisterLayer(this); - } - - void RefreshPicture() - { - if (curTexture != null) - { - curTexture.Dispose(); - curTexture = null; - } - - if (curFile != null) - { - string thumbFile = curApp.GetCurThumb(curFile); - // load the found thumbnail picture - if (System.IO.File.Exists(thumbFile)) - { - curTexture = Picture.Load(thumbFile, 0, 512, 512, true, false, out textureWidth, out textureHeight); - } - curApp.NextThumb(); // try to find a next thumbnail - } - slideTime = (DateTime.Now.Ticks / 10000); // reset timer! - } - - void RefreshData() - { - if (curFile == null) - return; - - curFile.ToFileInfoFavourite(); - - if (curFile.FindFileInfoDetail(curApp, curFile.FileInfoFavourite, ScraperType.ALLGAME, ScraperSaveType.Data)) - { - curFile.SaveFromFileInfoFavourite(); - } - } - - - void Refresh() - { - RefreshPicture(); - Update(); - } - - - void Update() - { - if (null == curFile) - return; - - ReadContent(); - - if (isOverviewVisible) - { - imgBig.IsVisible = false; - tbOverviewData.IsVisible = true; - tbOverviewData.Clear(); - tbOverviewData.Label = programOverview; // ... and set text next! - btnToggleOverview.Label = GUILocalizeStrings.Get(13006); - } - else - { - imgBig.IsVisible = true; - tbOverviewData.IsVisible = false; - tbOverviewData.Clear(); - btnToggleOverview.Label = GUILocalizeStrings.Get(13007); - } - - lblTitle.Label = curFile.Title; - - // if any title is overwritten, re-set the fresh text - if (programSystemLabel != "") - { - lblSystemCaption.Label = programSystemLabel; - } - else - { - lblSystemCaption.Label = GUILocalizeStrings.Get(13000); - } - if (programManufacturerLabel != "") - { - lblYearManuCaption.Label = programManufacturerLabel; - } - else - { - lblYearManuCaption.Label = GUILocalizeStrings.Get(13001); - } - - if (programRatingLabel != "") - { - lblRatingCaption.Label = programRatingLabel; - } - else - { - lblRatingCaption.Label = GUILocalizeStrings.Get(173); - } - if (programGenreLabel != "") - { - lblGenreCaption.Label = programGenreLabel; - } - else - { - lblGenreCaption.Label = GUILocalizeStrings.Get(174); - } - - lblSystemData.Label = programSystem; - lblYearManuData.Label = programManufacturer; - lblRatingData.Label = programRating; - lblGenreData.Label = programGenre; - - if (curFile.Filename != "") - { - btnLaunch.Disabled = false; - } - else - { - btnLaunch.Disabled = true; - } - - } - - - void ReadContent() - { - string notAvailableText = GUILocalizeStrings.Get(416); - // read fields out of the content profile - // fields can contain texts and / or references to fields - /* programSystemLabel = GUIFileDetailsInfoParser.GetFieldValue(curApp, curFile, "Line1Label", ""); - programManufacturerLabel = GUIFileDetailsInfoParser.GetFieldValue(curApp, curFile, "Line2Label", ""); - programRatingLabel = GUIFileDetailsInfoParser.GetFieldValue(curApp, curFile, "Line3Label", ""); - programGenreLabel = GUIFileDetailsInfoParser.GetFieldValue(curApp, curFile, "Line4Label", ""); - */ - programSystem = GUIFileDetailsInfoParser.GetFieldValue(curApp, curFile, "Line1Data", notAvailableText); - programManufacturer = GUIFileDetailsInfoParser.GetFieldValue(curApp, curFile, "Line2Data", notAvailableText); - programRating = GUIFileDetailsInfoParser.GetFieldValue(curApp, curFile, "Line3Data", notAvailableText); - programGenre = GUIFileDetailsInfoParser.GetFieldValue(curApp, curFile, "Line4Data", notAvailableText); - programOverview = GUIFileDetailsInfoParser.GetFieldValue(curApp, curFile, "OverviewData", ""); - } - - public void RenderDlg(float timePassed) - { - base.Render(timePassed); - } - - #endregion - - #region IRenderLayer - public bool ShouldRenderLayer() - { - return true; - } - - public void RenderLayer(float timePassed) - { - Render(timePassed); - } - #endregion - } -} \ No newline at end of file Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-11 22:03:07 UTC (rev 684) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-11 22:05:26 UTC (rev 685) @@ -323,7 +323,7 @@ curText = xmlreader.GetValueAsString("myprograms", "viewLayout", "list"); if (curText == "list") mapSettings.ViewLayout = (int)Layout.List; - else if (curText == "icons") mapSettings.ViewLayout = (int)Layout.Icons; + else if (curText == "icons") mapSettings.ViewLayout = (int)Layout.Icons; else if (curText == "largeicons") mapSettings.ViewLayout = (int)Layout.LargeIcons; else if (curText == "filmstrip") mapSettings.ViewLayout = (int)Layout.FilmStrip; else mapSettings.ViewLayout = (int)Layout.List; @@ -467,7 +467,7 @@ protected ProgramSort.SortMethod currentSortMethod = ProgramSort.SortMethod.Name; string currentView = ""; bool currentSortAsc = true; - + static ApplicationItemList applicationList = DatabaseHandler.ApplicationItemList; MapSettings mapSettings = new MapSettings(); DirectoryHistory itemHistory = new DirectoryHistory(); @@ -532,7 +532,7 @@ get { return currentSortMethod; } set { currentSortMethod = value; } } - + GUIListItem GetSelectedItem() { return facadeView.SelectedListItem; @@ -1451,44 +1451,90 @@ - void OnInfo() + /* void OnInfo() + { + // <F3> keypress + if (null != lastApp) + { + selectedItemIndex = GetSelectedItemNo(); + GUIListItem item = GetSelectedItem(); + + FileItem curFile = null; + + if (!item.Label.Equals(ProgramUtils.cBackLabel) && (!item.IsFolder)) + { + if ((item.MusicTag != null) && (item.MusicTag is FileItem)) + { + curFile = (FileItem)item.MusicTag; + } + // show file info but only if the selected item is not the back button + bool ovVisible = mapSettings.OverviewVisible; + ProgramInfoAction modalResult = ProgramInfoAction.LookupFileInfo; + int selectedFileID = -1; + lastApp.OnInfo(item, ref ovVisible, ref modalResult, ref selectedFileID); + if ((null != curFile) && (modalResult == ProgramInfoAction.LookupFileInfo)) + { + FileItem scrapeFile = lastApp.Files.GetFileItemByID(selectedFileID); + if (null != scrapeFile) + { + int scrapeIndex = lastApp.Files.IndexOf(scrapeFile); + if (-1 != scrapeIndex) + { + GUIControl.SelectItemControl(GetID, facadeView.GetID, scrapeIndex + 1); + } + ScrapeFileInfo(scrapeFile); + } + } + mapSettings.OverviewVisible = ovVisible; + UpdateListControl(); + } + } + } + */ + protected void OnInfo() { - // <F3> keypress - if (null != lastApp) + + if (lastApp == null) return; + + selectedItemIndex = GetSelectedItemNo(); + GUIListItem item = GetSelectedItem(); + FileItem curFile = null; + + if (item.Label.Equals(ProgramUtils.cBackLabel)) return; + if (item is ApplicationItem) return;//&& (!item.IsFolder)) + if (item.MusicTag == null) return; + if (item.MusicTag is FileItem) { - selectedItemIndex = GetSelectedItemNo(); - GUIListItem item = GetSelectedItem(); + curFile = (FileItem)item.MusicTag; + GUIProgramsAltFileInfo fileInfo = (GUIProgramsAltFileInfo)GUIWindowManager.GetWindow(9999); + fileInfo.Movie = curFile; + fileInfo.FolderForThumbs = string.Empty; + GUIWindowManager.ActivateWindow(9999); + } - FileItem curFile = null; + // show file info but only if the selected item is not the back button + // bool ovVisible = mapSettings.OverviewVisible; + /* ProgramInfoAction modalResult = ProgramInfoAction.LookupFileInfo; + int selectedFileID = -1; + lastApp.OnInfo(item, ref ovVisible, ref modalResult, ref selectedFileID); + if ((null != curFile) && (modalResult == ProgramInfoAction.LookupFileInfo)) + { + FileItem scrapeFile = lastApp.Files.GetFileItemByID(selectedFileID); + if (null != scrapeFile) + { + int scrapeIndex = lastApp.Files.IndexOf(scrapeFile); + if (-1 != scrapeIndex) + { + GUIControl.SelectItemControl(GetID, facadeView.GetID, scrapeIndex + 1); + } + ScrapeFileInfo(scrapeFile); + } + } + mapSettings.OverviewVisible = ovVisible; + UpdateListControl(); - if (!item.Label.Equals(ProgramUtils.cBackLabel) && (!item.IsFolder)) - { - if ((item.MusicTag != null) && (item.MusicTag is FileItem)) - { - curFile = (FileItem)item.MusicTag; - } - // show file info but only if the selected item is not the back button - bool ovVisible = mapSettings.OverviewVisible; - ProgramInfoAction modalResult = ProgramInfoAction.LookupFileInfo; - int selectedFileID = -1; - lastApp.OnInfo(item, ref ovVisible, ref modalResult, ref selectedFileID); - if ((null != curFile) && (modalResult == ProgramInfoAction.LookupFileInfo)) - { - FileItem scrapeFile = lastApp.Files.GetFileItemByID(selectedFileID); - if (null != scrapeFile) - { - int scrapeIndex = lastApp.Files.IndexOf(scrapeFile); - if (-1 != scrapeIndex) - { - GUIControl.SelectItemControl(GetID, facadeView.GetID, scrapeIndex + 1); - } - ScrapeFileInfo(scrapeFile); - } - } - mapSettings.OverviewVisible = ovVisible; - UpdateListControl(); - } - } + */ + } void OnShowViews() Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAlt.csproj =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAlt.csproj 2007-07-11 22:03:07 UTC (rev 684) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAlt.csproj 2007-07-11 22:05:26 UTC (rev 685) @@ -145,9 +145,8 @@ <Compile Include="FileItems\FileItemList.cs" /> <Compile Include="FileItems\FilelinkItem.cs" /> <Compile Include="FileItems\FilelinkList.cs" /> - <Compile Include="GUIFileDetailsInfoParser.cs" /> - <Compile Include="GUIProgramInfo.cs" /> <Compile Include="GUIPrograms.cs" /> + <Compile Include="GUIProgramsAltFileInfo.cs" /> <Compile Include="Imports\AllGameScraper.cs" /> <Compile Include="Imports\GamebaseImport.cs" /> <Compile Include="Imports\MameImport.cs" /> @@ -163,7 +162,6 @@ </Compile> </ItemGroup> <ItemGroup> - <Content Include="MetaData\myProgramsAltFileDetailsInfo.xml" /> <Content Include="MetaData\myProgramsAltPreconfiguration.xml" /> <Content Include="skin\BlueTwo\myprograms.xml" /> </ItemGroup> Added: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAltFileInfo.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAltFileInfo.cs (rev 0) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAltFileInfo.cs 2007-07-11 22:05:26 UTC (rev 685) @@ -0,0 +1,562 @@ +#region Copyright (C) 2005-2007 Team MediaPortal + +/* + * Copyright (C) 2005-2007 Team MediaPortal + * http://www.team-mediaportal.com + * + * This Program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This Program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Make; see the file COPYING. If not, write to + * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. + * http://www.gnu.org/copyleft/gpl.html + * + */ + +#endregion + +using System; +using System.Drawing; +using System.Net; +using System.Threading; +using System.Web; +using Microsoft.DirectX; +using Microsoft.DirectX.Direct3D; +using Direct3D = Microsoft.DirectX.Direct3D; + +using MediaPortal.Dialogs; +using MediaPortal.GUI.Library; +//using MediaPortal.Services; +//using MediaPortal.Threading; +using MediaPortal.Util; +using MediaPortal.Video.Database; + + +using GUIPrograms.Database; +using MediaPortal.Configuration; + +using GUIPrograms.ApplicationItems; +using GUIPrograms.FileItems; + + +namespace GUIPrograms +{ + /// <summary> + /// + /// </summary> + public class GUIProgramsAltFileInfo : GUIWindow, IRenderLayer + { + [SkinControlAttribute(2)] + protected GUIButtonControl launchButton = null; + [SkinControlAttribute(3)] + protected GUIToggleButtonControl overviewInfoButton = null; + [SkinControlAttribute(4)] + protected GUIToggleButtonControl btnCast = null; + [SkinControlAttribute(5)] + protected GUIButtonControl btnRefresh = null; + + + [SkinControlAttribute(10)] + protected GUISpinControl spinImages = null; + + [SkinControlAttribute(20)] + protected GUITextScrollUpControl tblOverviewInfoArea = null; + [SkinControlAttribute(21)] + protected GUIImage imgCoverArt = null; + [SkinControlAttribute(22)] + protected GUITextControl tbTextArea = null; + [SkinControlAttribute(30)] + protected GUILabelControl lblImage = null; + + + + enum ViewMode + { + Image, + Cast, + } + + ViewMode viewmode = ViewMode.Image; + FileItem currentFileItem = null; + string folderForThumbs = string.Empty; + string[] coverArtUrls = new string[1]; + string imdbCoverArtUrl = String.Empty; + + Thread imageSearchThread = null; + + public GUIProgramsAltFileInfo() + { + GetID = 9999; + } + + public override bool Init() + { + return Load(GUIGraphicsContext.Skin + @"\myProgramsAltFileInfo.xml"); + } + + + protected override void OnPageLoad() + { + base.OnPageLoad(); + this._isOverlayAllowed = true; + + if (currentFileItem == null) + { + return; + } + // Default picture + imdbCoverArtUrl = currentFileItem.Imagefile; + coverArtUrls = new string[1]; + coverArtUrls[0] = imdbCoverArtUrl; + + ResetSpinControl(); + + viewmode = ViewMode.Image; + + Refresh(false); + Update(); + imageSearchThread = new Thread(new ThreadStart(AmazonLookupThread)); + imageSearchThread.Start(); + } + protected override void OnPageDestroy(int newWindowId) + { + base.OnPageDestroy(newWindowId); + if ((imageSearchThread != null) && (imageSearchThread.IsAlive)) + { + imageSearchThread.Abort(); + imageSearchThread = null; + } + } + + + protected override void OnClicked(int controlId, GUIControl control, MediaPortal.GUI.Library.Action.ActionType actionType) + { + base.OnClicked(controlId, control, actionType); + if (control == btnRefresh) + { + + return; + } + + if (control == spinImages) + { + int item = spinImages.Value - 1; + if (item < 0 || item >= coverArtUrls.Length) item = 0; + if (currentFileItem.Imagefile == coverArtUrls[item]) + { + return; + } + + currentFileItem.Imagefile = coverArtUrls[item]; + string coverArtImage = MediaPortal.Util.Utils.GetCoverArtName(Thumbs.MovieTitle, currentFileItem.Title); + string largeCoverArtImage = MediaPortal.Util.Utils.GetLargeCoverArtName(Thumbs.MovieTitle, currentFileItem.Title); + MediaPortal.Util.Utils.FileDelete(coverArtImage); + MediaPortal.Util.Utils.FileDelete(largeCoverArtImage); + Refresh(true); + Update(); + int idMovie = currentFileItem.FileID; + if (idMovie >= 0) + VideoDatabase.SetThumbURL(idMovie, currentFileItem.Imagefile); + return; + } + + if (control == btnCast) + { + viewmode = ViewMode.Cast; + Update(); + } + if (control == overviewInfoButton) + { + + viewmode = ViewMode.Image; + Update(); + } + + if (control == launchButton) + { + int id = currentFileItem.FileID; + + //fix hack later + // ApplicationItem a = new ApplicationItem(DatabaseHandler.sqlDB); + // a.LaunchFile(leItem, true); + // GUIVideoFiles.PlayMovie(id); + return; + } + } + + + public FileItem Movie + { + get { return currentFileItem; } + set { currentFileItem = value; } + } + public string FolderForThumbs + { + get { return folderForThumbs; } + set { folderForThumbs = value; } + } + + void Update() + { + if (currentFileItem == null) return; + + //cast->image + if (viewmode == ViewMode.Cast) + { + tblOverviewInfoArea.IsVisible = false; + tbTextArea.IsVisible = true; + imgCoverArt.IsVisible = true; + overviewInfoButton.Selected = false; + btnCast.Selected = true; + } + //cast->plot + if (viewmode == ViewMode.Image) + { + tblOverviewInfoArea.IsVisible = true; + tbTextArea.IsVisible = false; + imgCoverArt.IsVisible = true; + overviewInfoButton.Selected = true; + btnCast.Selected = false; + + } + //btnWatched.Selected = (currentFileItem.Watched != 0); + currentFileItem.SetProperties(); + if (imgCoverArt != null) + { + imgCoverArt.FreeResources(); + imgCoverArt.AllocResources(); + } + + } + + + void Refresh(bool forceFolderThumb) + { + string coverArtImage = String.Empty; + try + { + string imageUrl = currentFileItem.Imagefile; + if (imageUrl.Length > 0) + { + coverArtImage = MediaPortal.Util.Utils.GetCoverArtName(Thumbs.MovieTitle, currentFileItem.Title); + string largeCoverArtImage = MediaPortal.Util.Utils.ConvertToLargeCoverArt(coverArtImage); + + //no deafult file.. until farther check path + if (!System.IO.File.Exists(coverArtImage)) + { + coverArtImage = currentFileItem.Imagefile; + } + + + + } + } + catch (Exception ex2) + { + Log.Error("GUIVideoInfo: Error creating new thumbs for {0} - {1}", currentFileItem.Imagefile, ex2.Message); + } + currentFileItem.SetProperties(); + } + + void AmazonLookupThread() + { + try + { + if (currentFileItem == null) return; + // Search for more pictures + FileItem movie = currentFileItem; + IMPawardsSearch impSearch = new IMPawardsSearch(); + impSearch.Search(movie.Title); + AmazonImageSearch amazonSearch = new AmazonImageSearch(); + amazonSearch.Search(movie.Title); + int thumb = 0; + + if (movie.Imagefile != string.Empty) + thumb = 1; + + int pictureCount = amazonSearch.Count + impSearch.Count + thumb; + if (pictureCount == 0) + return; + + int pictureIndex = 0; + coverArtUrls = new string[pictureCount]; + + if (movie.Imagefile != string.Empty) + coverArtUrls[pictureIndex++] = movie.Imagefile; + + if ((impSearch.Count > 0) && (impSearch[0] != string.Empty)) + { + for (int i = 0; i < impSearch.Count; ++i) + { + coverArtUrls[pictureIndex++] = impSearch[i]; + } + } + + if (amazonSearch.Count > 0) + { + for (int i = 0; i < amazonSearch.Count; ++i) + { + coverArtUrls[pictureIndex++] = amazonSearch[i]; + } + } + + // AmazonImagesDownloaded(); + } + catch (ThreadAbortException) + { + } + finally + { + imageSearchThread = null; + } + } + + private void ResetSpinControl() + { + spinImages.Reset(); + //spinImages.SetReverse(true); + //spinImages.SetRange(1, pictureCount); + spinImages.SetRange(1, coverArtUrls.Length); + spinImages.Value = 1; + + spinImages.ShowRange = true; + spinImages.UpDownType = GUISpinControl.SpinType.SPIN_CONTROL_TYPE_INT; + } + + private void OnAmazonImagesDownloaded() + { + ResetSpinControl(); + } + + #region IMDB.IProgress + public bool OnDisableCancel(IMDBFetcher fetcher) + { + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + if (pDlgProgress.IsInstance(fetcher)) + { + pDlgProgress.DisableCancel(true); + } + return true; + } + public void OnProgress(string line1, string line2, string line3, int percent) + { + if (!GUIWindowManager.IsRouted) return; + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + pDlgProgress.ShowProgressBar(true); + pDlgProgress.SetLine(1, line1); + pDlgProgress.SetLine(2, line2); + if (percent > 0) + pDlgProgress.SetPercentage(percent); + pDlgProgress.Progress(); + } + public bool OnSearchStarting(IMDBFetcher fetcher) + { + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + // show dialog that we're busy querying www.imdb.com + pDlgProgress.Reset(); + pDlgProgress.SetHeading(197); + pDlgProgress.SetLine(1, fetcher.MovieName); + pDlgProgress.SetLine(2, String.Empty); + pDlgProgress.SetObject(fetcher); + pDlgProgress.StartModal(GUIWindowManager.ActiveWindow); + return true; + } + public bool OnSearchStarted(IMDBFetcher fetcher) + { + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + pDlgProgress.SetObject(fetcher); + pDlgProgress.DoModal(GUIWindowManager.ActiveWindow); + if (pDlgProgress.IsCanceled) + { + return false; + } + return true; + } + public bool OnSearchEnd(IMDBFetcher fetcher) + { + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + if ((pDlgProgress != null) && (pDlgProgress.IsInstance(fetcher))) + { + pDlgProgress.Close(); + } + return true; + } + public bool OnMovieNotFound(IMDBFetcher fetcher) + { + // show dialog... + GUIDialogOK pDlgOK = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + pDlgOK.SetHeading(195); + pDlgOK.SetLine(1, fetcher.MovieName); + pDlgOK.SetLine(2, String.Empty); + pDlgOK.DoModal(GUIWindowManager.ActiveWindow); + return true; + } + public bool OnDetailsStarted(IMDBFetcher fetcher) + { + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + pDlgProgress.SetObject(fetcher); + pDlgProgress.DoModal(GUIWindowManager.ActiveWindow); + if (pDlgProgress.IsCanceled) + { + return false; + } + return true; + } + public bool OnDetailsStarting(IMDBFetcher fetcher) + { + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + // show dialog that we're downloading the movie info + pDlgProgress.Reset(); + pDlgProgress.SetHeading(198); + pDlgProgress.SetLine(1, fetcher.MovieName); + pDlgProgress.SetLine(2, String.Empty); + pDlgProgress.SetObject(fetcher); + pDlgProgress.StartModal(GUIWindowManager.ActiveWindow); + return true; + } + public bool OnDetailsEnd(IMDBFetcher fetcher) + { + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + if ((pDlgProgress != null) && (pDlgProgress.IsInstance(fetcher))) + { + pDlgProgress.Close(); + } + return true; + } + public bool OnActorsStarted(IMDBFetcher fetcher) + { + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + pDlgProgress.SetObject(fetcher); + pDlgProgress.DoModal(GUIWindowManager.ActiveWindow); + if (pDlgProgress.IsCanceled) + { + return false; + } + return true; + } + public bool OnActorsStarting(IMDBFetcher fetcher) + { + GUIDialogProgress pDlgProgress = (GUIDialogProgress)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_PROGRESS); + // show dialog that we're downloading the actor info + pDlgProgress.Reset(); + pDlgProgress.SetHeading(986); + pDlgProgress.SetLine(1, fetcher.MovieName); + pDlgProgress.SetLine(2, String.Empty); + pDlgProgress.SetObject(fetcher); + pDlgProgress.StartModal(GUIWindowManager.ActiveWindow); + return true; + } + public bool OnActorsEnd(IMDBFetcher fetcher) + { + return true; + } + public bool OnDetailsNotFound(IMDBFetcher fetcher) + { + // show dialog... + GUIDialogOK pDlgOK = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); + // show dialog... + pDlgOK.SetHeading(195); + pDlgOK.SetLine(1, fetcher.MovieName); + pDlgOK.SetLine(2, String.Empty); + pDlgOK.DoModal(GUIWindowManager.ActiveWindow); + return false; + } + + public bool OnRequestMovieTitle(IMDBFetcher fetcher, out string movieName) + { + string strMovieName = ""; + GetStringFromKeyboard(ref strMovieName); + movieName = strMovieName; + if (movieName == string.Empty) + { + return false; + } + return true; + } + + public bool OnSelectMovie(IMDBFetcher fetcher, out int selectedMovie) + { + GUIDialogSelect pDlgSelect = (GUIDialogSelect)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_SELECT); + // more then 1 movie found + // ask user to select 1 + pDlgSelect.SetHeading(196);//select movie + pDlgSelect.Reset(); + for (int i = 0; i < fetcher.Count; ++i) + { + pDlgSelect.Add(fetcher[i].Title); + } + pDlgSelect.EnableButton(true); + pDlgSelect.SetButtonLabel(413); // manual + pDlgSelect.DoModal(GUIWindowManager.ActiveWindow); + + // and wait till user selects one + selectedMovie = pDlgSelect.SelectedLabel; + if (selectedMovie != -1) + { + return true; + } + if (!pDlgSelect.IsButtonPressed) + { + return false; + } + else + { + return true; + } + } + + public bool OnScanStart(int total) + { + return true; + } + public bool OnScanEnd() + { + return true; + } + public bool OnScanIterating(int count) + { + return true; + } + public bool OnScanIterated(int count) + { + return true; + } + + #endregion + + static public void GetStringFromKeyboard(ref string strLine) + { + VirtualKeyboard keyboard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD); + if (null == keyboard) return; + keyboard.Reset(); + keyboard.Text = strLine; + keyboard.DoModal(GUIWindowManager.ActiveWindow); + strLine = String.Empty; + if (keyboard.IsConfirmed) + { + strLine = keyboard.Text; + } + } + + + #region IRenderLayer + public bool ShouldRenderLayer() + { + return true; + } + + public void RenderLayer(float timePassed) + { + Render(timePassed); + } + #endregion + } +} Deleted: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/MetaData/myProgramsAltFileDetailsInfo.xml =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/MetaData/myProgramsAltFileDetailsInfo.xml 2007-07-11 22:03:07 UTC (rev 684) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/MetaData/myProgramsAltFileDetailsInfo.xml 2007-07-11 22:05:26 UTC (rev 685) @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<contentprofiles> - <profile id="100"> - <title>Default Profile</title> - <fields> - <field fieldid="Line1Data">[VALUEOFTAG("system")]</field> - <field fieldid="Line2Data">[VALUEOFTAG("yearmanu")]</field> - <field fieldid="Line3Data">[VALUEOFTAG("rating")]</field> - <field fieldid="Line4Data">[VALUEOFTAG("genre")]</field> - <field fieldid="OverviewData">[VALUEOFTAG("overview")]</field> - </fields> - </profile> - </contentprofiles> Added: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml (rev 0) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myProgramsAltFileInfo.xml 2007-07-11 22:05:26 UTC (rev 685) @@ -0,0 +1,335 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<window> + <id>9999</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>background image</description> + <type>image</type> + <id>1</id> + <width>720</width> + <height>576</height> + </control> + <control> + <type>image</type> + <id>1</id> + <posX>60</posX> + <posY>20</posY> + <texture>movieinfo_logo.png</texture> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Movie Title value</description> + <type>fadelabel</type> + <id>1</id> + <posX>200</posX> + <posY>40</posY> + <width>400</width> + <label>#title</label> + <font>font18</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>MPAA Rating</description> + <type>fadelabel</type> + <id>1</id> + <posX>200</posX> + <posY>70</posY> + <width>400</width> + <label>(#mpaarating)</label> + <font>font12</font> + <textcolor>FFFFFFFF</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Launch Button</description> + <type>button</type> + <id>2</id> + <posX>60</posX> + <posY>97</posY> + <width>120</width> + <label>208</label> + <font>font13</font> + <onleft>22</onleft> + <onright>22</onright> + <onup>7</onup> + <ondown>3</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Overview</description> + <type>togglebutton</type> + <id>3</id> + <posX>60</posX> + <posY>131</posY> + <width>120</width> + <label>207</label> + <font>font13</font> + <onleft>22</onleft> + <onright>22</onright> + <onup>2</onup> + <ondown>4</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <!--<control> + <description>Cast</description> + <type>togglebutton</type> + <id>4</id> + <posX>60</posX> + <posY>165</posY> + <width>120</width> + <label>206</label> + <font>font13</font> + <onleft>22</onleft> + <onright>22</onright> + <onup>3</onup> + <ondown>5</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control>--> + <control> + <description>Refresh</description> + <type>button</type> + <id>5</id> + <posX>60</posX> + <posY>199</posY> + <width>120</width> + <label>184</label> + <onleft>22</onleft> + <onright>22</onright> + <onup>4</onup> + <ondown>6</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> +<!-- <control> + <description>Watched</description> + <type>togglebutton</type> + <id>6</id> + <posX>60</posX> + <posY>233</posY> + <width>120</width> + <label>1010</label> + <onleft>22</onleft> + <onright>22</onright> + <onup>5</onup> + <ondown>10</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control>--> + <control> + <description>image title:</description> + <type>label</type> + <id>30</id> + <posX>60</posX> + <posY>270</posY> + <label>734</label> + <font>font13</font> + <align>left</align> + <textcolor>FFB2D4F5</textcolor> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>spin control</description> + <type>spincontrol</type> + <id>10</id> + <posX>60</posX> + <posY>292</posY> + <onup>6</onup> + <ondown>11</ondown> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <type>imagelist</type> + <id>1</id> + <posX>400</posX> + <posY>100</posY> + <width>160</width> + <height>32</height> + <textureWidth>16</textureWidth> + <textureHeight>16</textureHeight> + <subitems> + <subitem>greystar.png</subitem> + <subitem>star.png</subitem> + </subitems> + <orientation>horizontal</orientation> + <percentage>#rating</percentage> + <animation effect="fade" time="200">WindowOpen</animation> + <animation effect="fade" time="200">WindowClose</animation> + </control> + <control> + <description>Platform</description> + <type>label</type> + <id>1</id> + <posX>400</posX> + <posY>115</posY> + <label>Platform</label> + <... [truncated message content] |
From: <nor...@us...> - 2007-07-11 22:03:25
|
Revision: 684 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=684&view=rev Author: northern_sky Date: 2007-07-11 15:03:07 -0700 (Wed, 11 Jul 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/README.txt Modified: trunk/plugins/myGUIProgramsAlt/README.txt =================================================================== --- trunk/plugins/myGUIProgramsAlt/README.txt 2007-07-11 21:55:32 UTC (rev 683) +++ trunk/plugins/myGUIProgramsAlt/README.txt 2007-07-11 22:03:07 UTC (rev 684) @@ -11,17 +11,11 @@ So far: -Code restructure phase 1: -- code divided into more fitting entitys. -- redundant code,classes moved/removed +Code restructure.. -GUI restructure phase 1: -- drag n drop instead of up/down buttons. Menu items -- Some unnecessary applicationitems removed. May re-add some later, but not in the same form as before. -- Is now dbcentric. -- files options moved to fileviews instead, makes for better "division" of gui settings (specific app or file setting.) +GUI restructure.. -Database/views: grouping added, fileinfodetails back again. +Database/views: grouping added, fileinfodetails Allgamesupport updated. Fileinfoscraper reworked @@ -37,11 +31,8 @@ - AllGame-Import -> Do we want to import the Name of the game, too? --Will add some more options under save later.. so user can choose to overwrite title. - - fileinfodetails : fixup - - plugin is always starting in Genre View - -> not sure, i will have a look at it. -chef--- this doesn't happen here at least?? verify - - cleanup for old/obsolete view/sort/db code - -needs some more work, but is partially implemented now. + - fileinfodetails : replaced with real window from videodetails...not done yet. + - cleanup for old/obsolete view/sort/db code: needs some more work, but is partially implemented now. + a lot others;) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <moi...@us...> - 2007-07-11 21:55:36
|
Revision: 683 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=683&view=rev Author: moiristo Date: 2007-07-11 14:55:32 -0700 (Wed, 11 Jul 2007) Log Message: ----------- Settings dialog update Modified Paths: -------------- trunk/plugins/VideoLAN/ConfigurationForm.cs trunk/plugins/VideoLAN/VideoLAN.csproj Modified: trunk/plugins/VideoLAN/ConfigurationForm.cs =================================================================== --- trunk/plugins/VideoLAN/ConfigurationForm.cs 2007-07-11 20:31:36 UTC (rev 682) +++ trunk/plugins/VideoLAN/ConfigurationForm.cs 2007-07-11 21:55:32 UTC (rev 683) @@ -41,10 +41,8 @@ /// </summary> public class ConfigurationForm : System.Windows.Forms.Form { - private string bufsize = ""; - private string m_deinterlace = "Disable"; private MediaPortal.UserInterface.Controls.MPButton okBtn; - private GroupBox groupBox1; + private GroupBox transBox; private TextBox bufBox; private Label label3; private Label label4; @@ -84,6 +82,8 @@ private Panel audPanel; private Panel vidPanel; private bool isCancelled = false; + private ComboBox avBox; + private Label label1; /// <summary> /// Required designer variable. /// </summary> @@ -120,7 +120,9 @@ private void InitializeComponent() { this.okBtn = new MediaPortal.UserInterface.Controls.MPButton(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.transBox = new System.Windows.Forms.GroupBox(); + this.avBox = new System.Windows.Forms.ComboBox(); + this.label1 = new System.Windows.Forms.Label(); this.deintBox = new System.Windows.Forms.ComboBox(); this.label4 = new System.Windows.Forms.Label(); this.bufBox = new System.Windows.Forms.TextBox(); @@ -142,6 +144,7 @@ this.checkBox15 = new System.Windows.Forms.CheckBox(); this.checkBox10 = new System.Windows.Forms.CheckBox(); this.checkBox11 = new System.Windows.Forms.CheckBox(); + this.checkBox13 = new System.Windows.Forms.CheckBox(); this.checkBox7 = new System.Windows.Forms.CheckBox(); this.checkBox8 = new System.Windows.Forms.CheckBox(); this.checkBox6 = new System.Windows.Forms.CheckBox(); @@ -151,7 +154,6 @@ this.checkBox1 = new System.Windows.Forms.CheckBox(); this.allAudBtn = new System.Windows.Forms.Button(); this.allVidBtn = new System.Windows.Forms.Button(); - this.checkBox13 = new System.Windows.Forms.CheckBox(); this.protBox = new System.Windows.Forms.GroupBox(); this.httpOpt = new System.Windows.Forms.CheckBox(); this.udpOpt = new System.Windows.Forms.CheckBox(); @@ -159,7 +161,7 @@ this.mmsOpt = new System.Windows.Forms.CheckBox(); this.cancelBtn = new System.Windows.Forms.Button(); this.applyBtn = new System.Windows.Forms.Button(); - this.groupBox1.SuspendLayout(); + this.transBox.SuspendLayout(); this.groupBox2.SuspendLayout(); this.audPanel.SuspendLayout(); this.vidPanel.SuspendLayout(); @@ -168,7 +170,7 @@ // // okBtn // - this.okBtn.Location = new System.Drawing.Point(170, 367); + this.okBtn.Location = new System.Drawing.Point(191, 358); this.okBtn.Name = "okBtn"; this.okBtn.Size = new System.Drawing.Size(75, 23); this.okBtn.TabIndex = 3; @@ -176,19 +178,45 @@ this.okBtn.UseVisualStyleBackColor = true; this.okBtn.Click += new System.EventHandler(this.buttonEnable_Click); // - // groupBox1 + // transBox // - this.groupBox1.Controls.Add(this.deintBox); - this.groupBox1.Controls.Add(this.label4); - this.groupBox1.Controls.Add(this.bufBox); - this.groupBox1.Controls.Add(this.label3); - this.groupBox1.Location = new System.Drawing.Point(11, 12); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(222, 89); - this.groupBox1.TabIndex = 7; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "General settings"; + this.transBox.Controls.Add(this.avBox); + this.transBox.Controls.Add(this.label1); + this.transBox.Controls.Add(this.deintBox); + this.transBox.Controls.Add(this.label4); + this.transBox.Controls.Add(this.bufBox); + this.transBox.Controls.Add(this.label3); + this.transBox.Location = new System.Drawing.Point(11, 4); + this.transBox.Name = "transBox"; + this.transBox.Size = new System.Drawing.Size(241, 102); + this.transBox.TabIndex = 7; + this.transBox.TabStop = false; + this.transBox.Text = "General settings"; // + // avBox + // + this.avBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.avBox.FormattingEnabled = true; + this.avBox.Items.AddRange(new object[] { + "Disable", + "Goom", + "Scope", + "Spectrometer", + "Spectrum"}); + this.avBox.Location = new System.Drawing.Point(112, 72); + this.avBox.Name = "avBox"; + this.avBox.Size = new System.Drawing.Size(123, 21); + this.avBox.TabIndex = 13; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(4, 75); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(102, 13); + this.label1.TabIndex = 12; + this.label1.Text = "Audio visualizations:"; + // // deintBox // this.deintBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; @@ -201,15 +229,16 @@ "Linear", "Mean", "X"}); - this.deintBox.Location = new System.Drawing.Point(104, 50); + this.deintBox.Location = new System.Drawing.Point(112, 43); this.deintBox.Name = "deintBox"; this.deintBox.Size = new System.Drawing.Size(110, 21); this.deintBox.TabIndex = 11; + this.deintBox.SelectedIndexChanged += new System.EventHandler(this.deintBox_SelectedIndexChanged); // // label4 // this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(6, 54); + this.label4.Location = new System.Drawing.Point(4, 46); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(64, 13); this.label4.TabIndex = 10; @@ -217,7 +246,7 @@ // // bufBox // - this.bufBox.Location = new System.Drawing.Point(104, 24); + this.bufBox.Location = new System.Drawing.Point(112, 17); this.bufBox.Name = "bufBox"; this.bufBox.Size = new System.Drawing.Size(59, 20); this.bufBox.TabIndex = 9; @@ -225,7 +254,7 @@ // label3 // this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(6, 24); + this.label3.Location = new System.Drawing.Point(4, 20); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(92, 13); this.label3.TabIndex = 8; @@ -237,9 +266,9 @@ this.groupBox2.Controls.Add(this.vidPanel); this.groupBox2.Controls.Add(this.allAudBtn); this.groupBox2.Controls.Add(this.allVidBtn); - this.groupBox2.Location = new System.Drawing.Point(239, 12); + this.groupBox2.Location = new System.Drawing.Point(258, 2); this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(169, 349); + this.groupBox2.Size = new System.Drawing.Size(169, 350); this.groupBox2.TabIndex = 8; this.groupBox2.TabStop = false; this.groupBox2.Text = "Associated extensions"; @@ -420,6 +449,16 @@ this.checkBox11.Text = ".mp4"; this.checkBox11.UseVisualStyleBackColor = true; // + // checkBox13 + // + this.checkBox13.AutoSize = true; + this.checkBox13.Location = new System.Drawing.Point(6, 263); + this.checkBox13.Name = "checkBox13"; + this.checkBox13.Size = new System.Drawing.Size(51, 17); + this.checkBox13.TabIndex = 9; + this.checkBox13.Text = ".wmv"; + this.checkBox13.UseVisualStyleBackColor = true; + // // checkBox7 // this.checkBox7.AutoSize = true; @@ -510,28 +549,18 @@ this.allVidBtn.UseVisualStyleBackColor = true; this.allVidBtn.Click += new System.EventHandler(this.allVidBtn_Click); // - // checkBox13 - // - this.checkBox13.AutoSize = true; - this.checkBox13.Location = new System.Drawing.Point(6, 263); - this.checkBox13.Name = "checkBox13"; - this.checkBox13.Size = new System.Drawing.Size(51, 17); - this.checkBox13.TabIndex = 9; - this.checkBox13.Text = ".wmv"; - this.checkBox13.UseVisualStyleBackColor = true; - // // protBox // this.protBox.Controls.Add(this.httpOpt); this.protBox.Controls.Add(this.udpOpt); this.protBox.Controls.Add(this.rtspOpt); this.protBox.Controls.Add(this.mmsOpt); - this.protBox.Location = new System.Drawing.Point(12, 109); + this.protBox.Location = new System.Drawing.Point(12, 111); this.protBox.Name = "protBox"; - this.protBox.Size = new System.Drawing.Size(221, 84); + this.protBox.Size = new System.Drawing.Size(240, 73); this.protBox.TabIndex = 24; this.protBox.TabStop = false; - this.protBox.Text = "Associated protocols"; + this.protBox.Text = "Associated input protocols"; // // httpOpt // @@ -575,7 +604,7 @@ // // cancelBtn // - this.cancelBtn.Location = new System.Drawing.Point(251, 367); + this.cancelBtn.Location = new System.Drawing.Point(272, 358); this.cancelBtn.Name = "cancelBtn"; this.cancelBtn.Size = new System.Drawing.Size(75, 23); this.cancelBtn.TabIndex = 25; @@ -585,7 +614,7 @@ // // applyBtn // - this.applyBtn.Location = new System.Drawing.Point(333, 367); + this.applyBtn.Location = new System.Drawing.Point(352, 358); this.applyBtn.Name = "applyBtn"; this.applyBtn.Size = new System.Drawing.Size(75, 23); this.applyBtn.TabIndex = 26; @@ -596,20 +625,20 @@ // ConfigurationForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); - this.ClientSize = new System.Drawing.Size(417, 398); + this.ClientSize = new System.Drawing.Size(438, 386); this.Controls.Add(this.applyBtn); this.Controls.Add(this.cancelBtn); this.Controls.Add(this.protBox); this.Controls.Add(this.groupBox2); - this.Controls.Add(this.groupBox1); + this.Controls.Add(this.transBox); this.Controls.Add(this.okBtn); this.Name = "ConfigurationForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "VideoLan Player Configuration"; this.Closing += new System.ComponentModel.CancelEventHandler(this.ConfigurationForm_Closing); this.Load += new System.EventHandler(this.ConfigurationForm_Load); - this.groupBox1.ResumeLayout(false); - this.groupBox1.PerformLayout(); + this.transBox.ResumeLayout(false); + this.transBox.PerformLayout(); this.groupBox2.ResumeLayout(false); this.audPanel.ResumeLayout(false); this.audPanel.PerformLayout(); @@ -626,10 +655,13 @@ { using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Directory.GetCurrentDirectory() + @"\MediaPortal.xml")) { + bool transcode = xmlreader.GetValueAsBool("vlcplugin", "transcode", false); + string audiovisual = xmlreader.GetValueAsString("vlcplugin", "visual", "Disable"); + string out_protocol = xmlreader.GetValueAsString("vlcplugin", "protocol", "Leave unchanged"); string m_enabledExt = xmlreader.GetValueAsString("vlcplugin", "enabledextensions", ".ts,.gary"); string m_enabledStreams = xmlreader.GetValueAsString("vlcplugin", "enabledstreams", "udp"); - bufsize = xmlreader.GetValueAsString("vlcplugin", "buffer", "5000"); - m_deinterlace = xmlreader.GetValueAsString("vlcplugin", "deinterlace", "Disable"); + string bufsize = xmlreader.GetValueAsString("vlcplugin", "buffer", "5000"); + string m_deinterlace = xmlreader.GetValueAsString("vlcplugin", "deinterlace", "Disable"); m_enabledExt.Replace(":", ","); // in case it was using the old plugin code where the separator was ":" if (m_enabledExt != null && m_enabledExt.Length > 0) { @@ -645,9 +677,10 @@ foreach (CheckBox pbox in protBox.Controls) if (protArrayList.Contains(pbox.Text)) pbox.Checked = true; } - } this.bufBox.Text = bufsize; this.deintBox.SelectedItem = m_deinterlace; + this.avBox.Text = audiovisual; + } } private void ConfigurationForm_Closing(object sender, System.ComponentModel.CancelEventArgs e) @@ -692,6 +725,7 @@ { using (MediaPortal.Profile.Settings xmlWriter = new MediaPortal.Profile.Settings(Directory.GetCurrentDirectory() + @"\MediaPortal.xml")) { + xmlWriter.SetValue("vlcplugin", "visual", avBox.Text); xmlWriter.SetValue("vlcplugin", "enabledextensions", getCheckedExtensions()); xmlWriter.SetValue("vlcplugin", "enabledstreams", getCheckedProtocols()); xmlWriter.SetValue("vlcplugin", "buffer", bufBox.Text); @@ -718,5 +752,10 @@ return result.Substring(0, result.Length - 1); } + + private void deintBox_SelectedIndexChanged(object sender, EventArgs e) + { + + } } } Modified: trunk/plugins/VideoLAN/VideoLAN.csproj =================================================================== --- trunk/plugins/VideoLAN/VideoLAN.csproj 2007-07-11 20:31:36 UTC (rev 682) +++ trunk/plugins/VideoLAN/VideoLAN.csproj 2007-07-11 21:55:32 UTC (rev 683) @@ -36,18 +36,22 @@ <SpecificVersion>False</SpecificVersion> <HintPath>bin\AXVLC.dll</HintPath> </Reference> - <Reference Include="Core, Version=1.0.2546.32606, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Core, Version=1.0.2586.6922, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>C:\Program Files (x86)\MediaPortal\Core.DLL</HintPath> + <HintPath>..\..\trunk\mediaportal\Dialogs\bin\Release\Core.dll</HintPath> </Reference> + <Reference Include="Dialogs, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\..\trunk\mediaportal\Dialogs\bin\Release\Dialogs.dll</HintPath> + </Reference> <Reference Include="System" /> <Reference Include="System.Data" /> <Reference Include="System.Drawing" /> <Reference Include="System.Windows.Forms" /> <Reference Include="System.Xml" /> - <Reference Include="Utils, Version=1.0.2546.32604, Culture=neutral, processorArchitecture=x86"> + <Reference Include="Utils, Version=1.0.2586.6921, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> - <HintPath>C:\Program Files (x86)\MediaPortal\Utils.DLL</HintPath> + <HintPath>..\..\trunk\mediaportal\Dialogs\bin\Release\Utils.dll</HintPath> </Reference> </ItemGroup> <ItemGroup> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-07-11 20:31:43
|
Revision: 682 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=682&view=rev Author: zebons Date: 2007-07-11 13:31:36 -0700 (Wed, 11 Jul 2007) Log Message: ----------- corrected bug in filename for searching movie (extra blank) Modified Paths: -------------- trunk/plugins/MyFilms/MesFilmsDetail.cs Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-11 10:32:38 UTC (rev 681) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-11 20:31:36 UTC (rev 682) @@ -1092,7 +1092,7 @@ idMovie = update_database(file, select_item, idMovie); if (!multifile) { //case monofile search files belonging same movie (extension cdx or diskx) - string folder = file.Substring(0, file.LastIndexOf(@"\")); + string folder = file.Substring(0, file.LastIndexOf(@"\")).Trim(); //if ((folder.Length == 2) && (folder.Substring(1,1) == ":")) // file = folder +file.Substring(file.LastIndexOf(@"\") + 1); //else @@ -1426,12 +1426,12 @@ if (fi.Attributes.ToString() == "Directory") if (path.LastIndexOf(@"\") + 1 == path.Length) { - if (System.IO.File.Exists(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) - result.Add(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); + if (System.IO.File.Exists(path.Trim() + fi.Name.Trim() + "\\VIDEO_TS\\VIDEO_TS.IFO")) + result.Add(path.Trim() + fi.Name.Trim() + "\\VIDEO_TS\\VIDEO_TS.IFO"); } else - if (System.IO.File.Exists(path + "\\" + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) - result.Add(path + " \\" + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); + if (System.IO.File.Exists(path.Trim() + "\\" + fi.Name.Trim() + "\\VIDEO_TS\\VIDEO_TS.IFO")) + result.Add(path.Trim() + "\\" + fi.Name.Trim() + "\\VIDEO_TS\\VIDEO_TS.IFO"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-07-11 10:32:41
|
Revision: 681 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=681&view=rev Author: zebons Date: 2007-07-11 03:32:38 -0700 (Wed, 11 Jul 2007) Log Message: ----------- Bug corrected when launching a list of movies separated by semicolon. Bug corrected if search path for movies is not ended by a'\' Modified Paths: -------------- trunk/plugins/MyFilms/MesFilmsDetail.cs Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-08 22:17:27 UTC (rev 680) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-11 10:32:38 UTC (rev 681) @@ -1047,7 +1047,7 @@ } else { - wfile = filename.Substring(start, at - 1); + wfile = filename.Substring(start, at); file = SearchMovie(filename.Substring(start, at - start).Trim().ToString(), StrDirStor); } //DataRow[] r = LectureDonn\xE9es(StrSelect, StrSort, StrSortSens); @@ -1424,8 +1424,14 @@ else { if (fi.Attributes.ToString() == "Directory") - if (System.IO.File.Exists(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) - result.Add(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); + if (path.LastIndexOf(@"\") + 1 == path.Length) + { + if (System.IO.File.Exists(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) + result.Add(path + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); + } + else + if (System.IO.File.Exists(path + "\\" + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO")) + result.Add(path + " \\" + fi.Name + "\\VIDEO_TS\\VIDEO_TS.IFO"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-07-08 22:17:28
|
Revision: 680 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=680&view=rev Author: zebons Date: 2007-07-08 15:17:27 -0700 (Sun, 08 Jul 2007) Log Message: ----------- Diffusion release v4.2.6 Modified Paths: -------------- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs Modified: trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-07-08 20:07:22 UTC (rev 679) +++ trunk/plugins/MyFilms/MesFilmsSetup.Designer.cs 2007-07-08 22:17:27 UTC (rev 680) @@ -210,7 +210,7 @@ this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(69, 13); this.label10.TabIndex = 34; - this.label10.Text = "Version 4.2.5"; + this.label10.Text = "Version 4.2.6"; // // textBox1 // This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nor...@us...> - 2007-07-08 20:07:35
|
Revision: 679 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=679&view=rev Author: northern_sky Date: 2007-07-08 13:07:22 -0700 (Sun, 08 Jul 2007) Log Message: ----------- forgot to add skin with sortbutton Added Paths: ----------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myprograms.xml Added: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myprograms.xml =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myprograms.xml (rev 0) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/myprograms.xml 2007-07-08 20:07:22 UTC (rev 679) @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="utf-8" standalone="yes"?> +<window> + <id>3</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>yes</allowoverlay> + <define>#header.label:#curheader</define> + <define>#header.image:programs_logo.png</define> + <define>#header.hover:hover_my programs.png</define> + <controls> + <import>common.window.xml</import> + <import>common.time.xml</import> + <control> + <description>group element</description> + <type>group</type> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> + <animation effect="slide" time="250" start="-300,0">WindowOpen</animation> + <animation effect="slide" time="500" end="0,-300">WindowClose</animation> + <posX>60</posX> + <posY>97</posY> + <layout>StackLayout</layout> + <control> + <description>View-As</description> + <type>button</type> + <id>2</id> + <label>100</label> + <onright>50</onright> + <onup>17</onup> + </control> + <control> + <description>Sort</description> + <type>sortbutton</type> + <id>3</id> + <label>103</label> + <onright>50</onright> + </control> + <control> + <description>Switch View</description> + <type>button</type> + <id>4</id> + <label>457</label> + <onright>50</onright> + <ondown>3</ondown> + </control> + <control> + <description>Refresh</description> + <type>button</type> + <id>5</id> + <label>184</label> + <onright>50</onright> + <ondown>99</ondown> + </control> + </control> + <control> + <description>Screenshot</description> + <type>image</type> + <animation effect="fade" time="250">WindowOpen</animation> + <animation effect="fade" time="500">WindowClose</animation> + <animation effect="slide" time="250" start="-300,0">WindowOpen</animation> + <animation effect="slide" time="500" end="0,-300">WindowClose</animation> + <id>6</id> + <posX>60</posX> + <posY>200</posY> + <width>190</width> + <height>190</height> + <texture /> + <align>center</align> + <keepaspectratio>yes</keepaspectratio> + </control> + <import>common.facade.xml</import> + </controls> +</window> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ze...@us...> - 2007-07-08 19:15:53
|
Revision: 678 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=678&view=rev Author: zebons Date: 2007-07-08 12:15:51 -0700 (Sun, 08 Jul 2007) Log Message: ----------- Memory position bug correction Search for movie file bug corrected (not found if there is in the root directory) Modified Paths: -------------- trunk/plugins/MyFilms/MesFilms.cs trunk/plugins/MyFilms/MesFilmsDetail.cs Modified: trunk/plugins/MyFilms/MesFilms.cs =================================================================== --- trunk/plugins/MyFilms/MesFilms.cs 2007-07-07 21:15:11 UTC (rev 677) +++ trunk/plugins/MyFilms/MesFilms.cs 2007-07-08 19:15:51 UTC (rev 678) @@ -329,7 +329,7 @@ if (CurrentConfig == "") CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Current_Config", ""); - if (xmlreader.GetValueAsBool("MyFilms", "Menu_Config", false)) + if (!(xmlreader.GetValueAsBool("MyFilms", "Menu_Config", false))) CurrentConfig = xmlreader.GetValueAsString("MyFilms", "Default_Config", ""); else CurrentConfig = ""; @@ -652,8 +652,8 @@ if (boolselect) { string sLabel = wselectedlabel; - if (WStrSort == "Date") - StrSelect = "Date" + " like '" + string.Format("{0:dd/MM/yyyy}",DateTime.Parse(sLabel).ToShortDateString()) + "'"; + if ((WStrSort == "Date") || (WStrSort == "DateAdded")) + StrSelect = "Date" + " like '*" + string.Format("{0:dd/MM/yyyy}",DateTime.Parse(sLabel).ToShortDateString()) + "*'"; else { if (sLabel == "") @@ -716,7 +716,11 @@ { if (boolreturn)//in case of selection by view verify if value correspond excatly to the searched string { - string[] split = r[WStrSort].ToString().Split(new Char[] { ',' }); + string[] split; + if (WStrSort == "DateAdded") + split = string.Format("{0:yyyy/MM/dd}", r[WStrSort]).Split(new Char[] { ',' }); + else + split = r[WStrSort].ToString().Split(new Char[] { ',' }); foreach (string s in split) { if (s.Trim().ToLower() == wselectedlabel.Trim().ToLower()) @@ -1132,7 +1136,7 @@ foreach (DataRow enr in LectureDonn\xE9es(WstrSelect, WStrSort, WStrSortSens)) { - if (WStrSort == "Date") + if ((WStrSort == "Date") ||(WStrSort == "DateAdded")) champselect = string.Format("{0:yyyy/MM/dd}", enr["DateAdded"]); else { @@ -1439,7 +1443,7 @@ if (boolselect) { Change_LayOut(0); - getSelectFromDivx(StrSelect, WStrSort, " ASC", Wstar, false, ""); // preserve index from last time + getSelectFromDivx(StrSelect, WStrSort, StrSortSens, Wstar, false, ""); // preserve index from last time } else if (!(LoadDfltSlct)) Modified: trunk/plugins/MyFilms/MesFilmsDetail.cs =================================================================== --- trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-07 21:15:11 UTC (rev 677) +++ trunk/plugins/MyFilms/MesFilmsDetail.cs 2007-07-08 19:15:51 UTC (rev 678) @@ -1033,15 +1033,23 @@ int at = 0; int count; string file = null; + string wfile = null; GUIDialogOK dlgOk = (GUIDialogOK)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_OK); while ((start <= end)) { count = end - start; at = filename.IndexOf(";", start, count); + if (at == -1) + { + wfile = filename.Trim(); file = SearchMovie(filename.Substring(start, end - start).Trim().ToString(), StrDirStor); + } else + { + wfile = filename.Substring(start, at - 1); file = SearchMovie(filename.Substring(start, at - start).Trim().ToString(), StrDirStor); + } //DataRow[] r = LectureDonn\xE9es(StrSelect, StrSort, StrSortSens); if (file == "false") { @@ -1147,7 +1155,7 @@ } } newItems.Clear(); - start = start + file.Length + 1; + start = start + wfile.Length + 1; } if (movies.Count > 1) { @@ -1489,16 +1497,20 @@ at = wdirstor.IndexOf(";", start, count); if (at == -1) { + if (wdirstor.Substring(end - start - 1, 1).Trim() == "\\") + if (System.IO.File.Exists(wdirstor.Substring(start, end - start).Trim().ToString() + file)) + return (wdirstor.Substring(start, end - start).Trim().ToString() + file); + else if (System.IO.File.Exists(wdirstor.Substring(start, end - start).Trim().ToString() + "\\" + file)) - { return (wdirstor.Substring(start, end - start).Trim().ToString() + "\\" + file); - } break; } - if (System.IO.File.Exists(wdirstor.Substring(start, at - start).Trim().ToString() + "\\" + file)) - { - return (wdirstor.Substring(start, at - start).Trim().ToString() + "\\" + file); - } + if (wdirstor.Substring(at - start - 1, 1).Trim() == "\\") + if (System.IO.File.Exists(wdirstor.Substring(start, at - start).Trim().ToString() + file)) + return (wdirstor.Substring(start, at - start).Trim().ToString() + file); + else + if (System.IO.File.Exists(wdirstor.Substring(start, at - start).Trim().ToString() + "\\" + file)) + return (wdirstor.Substring(start, at - start).Trim().ToString() + "\\" + file); start = at + 1; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nor...@us...> - 2007-07-07 21:15:17
|
Revision: 677 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=677&view=rev Author: northern_sky Date: 2007-07-07 14:15:11 -0700 (Sat, 07 Jul 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/README.txt Modified: trunk/plugins/myGUIProgramsAlt/README.txt =================================================================== --- trunk/plugins/myGUIProgramsAlt/README.txt 2007-07-07 21:10:58 UTC (rev 676) +++ trunk/plugins/myGUIProgramsAlt/README.txt 2007-07-07 21:15:11 UTC (rev 677) @@ -9,7 +9,7 @@ Copy contents of metadata-folder to MP root folder , and the GUIPrograms.dll to MP/windowsplugins to run. There will possibly be db-changes and xml-changes between versions, so always make sure that you have a clean install between updates. -Done so far: +So far: Code restructure phase 1: - code divided into more fitting entitys. @@ -41,12 +41,11 @@ - plugin is always starting in Genre View -> not sure, i will have a look at it. -chef--- this doesn't happen here at least?? verify - cleanup for old/obsolete view/sort/db code - -> ApplicationItem.cs: old db-sort code (replaced by ProgramSort) - -> remove (maybe) obsolete DatabaseSorter.cs, replaced by ProgramSort.cs - -> maybe: merging CurrentView/CurrentSort..... code in GUIprograms.cs DatabaseSettings.cs: - or having this stuff only in one place + -needs some more work, but is partially implemented now. ++ a lot others;) + FEATURES: Add some more specific emulator support.. - bring/keep the profiles up-to-date @@ -66,14 +65,7 @@ - [low] genre: thumbs for genre, for example it could be created on AllGame lookup, for first file with this genre - ....... -Clean programviews--- some redundancy etc.. and gets worse=) -AllTime Todo: - --> TESTING ;) - --> BugFixing :P - --> Revise the code =) - - --------------------- .: Things to clear :. --------------------- @@ -137,7 +129,7 @@ What do you feel is the best? - - What about an BackUp feature? - + - What about an BackUp feature? - I you wanna do it.... ...Same goes for report features. Don't worry should not backup all stuff, just save in any fileformat you want: - filepath and filename: to identify the file - Launchcount @@ -146,7 +138,8 @@ Add some more specific emulator support.. - using emulator ids??? can be used for - - filter in fileinfoscraperForm.. we got system id's now.. so feel free to implement. + - filter in fileinfoscraperForm.. we got system id's now.. so feel free to implement.Will add emulator table at some point. + - easier application image assigning together with thumbsdir -> we also could provide icons for most common system ConfigurationTool redesign: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nor...@us...> - 2007-07-07 21:11:01
|
Revision: 676 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=676&view=rev Author: northern_sky Date: 2007-07-07 14:10:58 -0700 (Sat, 07 Jul 2007) Log Message: ----------- merged programsort, added base for sorting. Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/ProgramViews.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAlt.csproj trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ProgramSort.cs Added Paths: ----------- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/skin/BlueTwo/ Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-06 05:03:26 UTC (rev 675) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ApplicationItems/ApplicationItem.cs 2007-07-07 21:10:58 UTC (rev 676) @@ -40,6 +40,7 @@ using GUIPrograms.Database; using GUIPrograms.FileItems; + namespace GUIPrograms.ApplicationItems { public class ApplicationItem @@ -67,6 +68,7 @@ int appPosition; string currentView = ""; + public bool filesAreLoaded = false; // load on demand.... protected FileItemList fileList = null; public bool linksAreLoaded = false; // load on demand.... @@ -98,7 +100,7 @@ string lastFilepath = ""; // cached path //private DatabaseSorter dbPc = new DatabaseSorter(); - private ProgramSort dbPc = new ProgramSort(ProgramSort.SortMethod.Name, true); + //private ProgramSort dbPc = new ProgramSort(ProgramSort.SortMethod.Name, true); #endregion @@ -213,6 +215,8 @@ get { return currentView; } set { currentView = value; } } + + public FileItemList Files { // load on demand.... @@ -312,16 +316,18 @@ } - public int CurrentSortIndex - { + /* public int CurrentSortIndex + { get { return GetCurrentSortIndex(); } - set { SetCurrentSortIndex(value); } - } - public bool CurrentSortIsAscending - { - get { return GetCurrentSortIsAscending(); } - set { SetCurrentSortIsAscending(value); } - } + set { SetCurrentSortIndex(value); } + + }*/ + /* public bool CurrentSortIsAscending + { + get { return GetCurrentSortIsAscending(); } + set { SetCurrentSortIsAscending(value); } + + } */ #endregion @@ -764,10 +770,10 @@ */ } - public virtual void OnSortToggle(GUIFacadeControl view) + /* public virtual void OnSortToggle(GUIFacadeControl view) { - dbPc.SortAscending = (!dbPc.SortAscending); - view.Sort(dbPc); + // dbPc.SortAscending = (!dbPc.SortAscending); + //view.Sort(dbPc); } public virtual int GetCurrentSortIndex() @@ -794,7 +800,7 @@ { dbPc.SortAscending = newValue; } - + */ #endregion Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/ProgramViews.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/ProgramViews.cs 2007-07-06 05:03:26 UTC (rev 675) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/Design/ProgramViews.cs 2007-07-07 21:10:58 UTC (rev 676) @@ -305,7 +305,7 @@ cbOperators.SelectionChangeCommitted += new EventHandler(ComboBox_SelectionChangeCommitted); //Create the combo box object and set its properties - SyncedComboBox cbView = new SyncedComboBox("ViewAs"); + SyncedComboBox cbView = new SyncedComboBox("ViewLayout"); foreach (string strText in viewsAs) cbView.Items.Add(strText); cbView.Grid = dataGrid; @@ -329,7 +329,7 @@ arrColumnNames[1] = "Operator"; arrColumnNames[2] = "Restriction"; arrColumnNames[3] = "Limit"; - arrColumnNames[4] = "ViewAs"; + arrColumnNames[4] = "ViewLayout"; arrColumnNames[5] = "SortBy"; //Create the Data Table object which will then be used to hold Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-06 05:03:26 UTC (rev 675) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIPrograms.cs 2007-07-07 21:10:58 UTC (rev 676) @@ -94,7 +94,7 @@ } public string Author() { - return "Reconstruct by Northern & chefkoch"; + return "Reconstruct by Northern/Chefkoch"; } public void ShowPlugin() { @@ -140,8 +140,8 @@ [Serializable] public class MapSettings { - protected int sortBy; - protected int viewAs; + protected int sortMethod; + protected int viewLayout; protected bool sortAscending; protected int lastApplicationID; protected int lastFileID; @@ -150,8 +150,8 @@ public MapSettings() { - sortBy = 0; //name - viewAs = 0; //list + sortMethod = 0; //name + viewLayout = 0; //list sortAscending = true; overviewVisible = true; lastApplicationID = -1; @@ -160,18 +160,18 @@ } - [XmlElement("SortBy")] - public int SortBy + [XmlElement("SortMethod")] + public int SortMethod { - get { return sortBy; } - set { sortBy = value; } + get { return sortMethod; } + set { sortMethod = value; } } - [XmlElement("ViewAs")] - public int ViewAs + [XmlElement("ViewLayout")] + public int ViewLayout { - get { return viewAs; } - set { viewAs = value; } + get { return viewLayout; } + set { viewLayout = value; } } [XmlElement("SortAscending")] @@ -210,34 +210,38 @@ } - public string ViewAsText + public string ViewLayoutTextName { - get { return GetViewAsText(); } + get { return GetViewLayoutAsText(); } } - public void SwitchToNextView() + public void SwitchToNextViewLayout() { - switch ((Layout)ViewAs) + switch ((Layout)ViewLayout) { case Layout.List: - ViewAs = (int)Layout.Icons; + ViewLayout = (int)Layout.Icons; + break; case Layout.Icons: - ViewAs = (int)Layout.LargeIcons; + ViewLayout = (int)Layout.LargeIcons; + break; case Layout.LargeIcons: - ViewAs = (int)Layout.FilmStrip; + ViewLayout = (int)Layout.FilmStrip; + break; case Layout.FilmStrip: - ViewAs = (int)Layout.List; + ViewLayout = (int)Layout.List; + break; } } - string GetViewAsText() + string GetViewLayoutAsText() { string result = ""; - switch ((Layout)ViewAs) + switch ((Layout)ViewLayout) { case Layout.List: result = GUILocalizeStrings.Get(101); @@ -261,33 +265,33 @@ { using (Settings xmlwriter = new Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml"))) { - switch ((Layout)mapSettings.ViewAs) + switch ((Layout)mapSettings.ViewLayout) { case Layout.List: - xmlwriter.SetValue("myprograms", "viewby", "list"); + xmlwriter.SetValue("myprograms", "viewLayout", "list"); break; case Layout.Icons: - xmlwriter.SetValue("myprograms", "viewby", "icons"); + xmlwriter.SetValue("myprograms", "viewLayout", "icons"); break; case Layout.LargeIcons: - xmlwriter.SetValue("myprograms", "viewby", "largeicons"); + xmlwriter.SetValue("myprograms", "viewLayout", "largeicons"); break; case Layout.FilmStrip: - xmlwriter.SetValue("myprograms", "viewby", "filmstrip"); + xmlwriter.SetValue("myprograms", "viewLayout", "filmstrip"); break; } xmlwriter.SetValue("myprograms", "lastAppID", mapSettings.LastAppID.ToString()); // xmlwriter.SetValue("myprograms", "lastViewLevel", mapSettings.LastViewLevel.ToString()); xmlwriter.SetValue("myprograms", "lastViewLevel", DatabaseHandler.ViewHandler.CurrentLevel); - xmlwriter.SetValue("myprograms", "sortby", mapSettings.SortBy); + xmlwriter.SetValue("myprograms", "sortMethod", mapSettings.SortMethod); // avoid bool conversion...... don't wanna know why it doesn't work! :-( if (mapSettings.SortAscending) { - xmlwriter.SetValue("myprograms", "sortasc", "yes"); + xmlwriter.SetValue("myprograms", "sortASC", "yes"); } else { - xmlwriter.SetValue("myprograms", "sortasc", "no"); + xmlwriter.SetValue("myprograms", "sortASC", "no"); } if (mapSettings.OverviewVisible) @@ -300,13 +304,14 @@ } xmlwriter.SetValue("myprograms", "startWindow", StartWindow.ToString()); - xmlwriter.SetValue("myprograms", "startview", CurrentView); + xmlwriter.SetValue("myprograms", "startview", (int)CurrentLayout); } } void LoadSettings() { string _slideSpeed = DatabaseHandler.ReadSetting(ProgramUtils.cSLIDESPEED); + if ((_slideSpeed != "") && (_slideSpeed != null)) { slideSpeed = int.Parse(_slideSpeed); @@ -315,26 +320,22 @@ using (Settings xmlreader = new Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml"))) { string curText = ""; - curText = xmlreader.GetValueAsString("myprograms", "viewby", "list"); - if (curText == "list") - mapSettings.ViewAs = (int)Layout.List; - else if (curText == "icons") - mapSettings.ViewAs = (int)Layout.Icons; - else if (curText == "largeicons") - mapSettings.ViewAs = (int)Layout.LargeIcons; - else if (curText == "filmstrip") - mapSettings.ViewAs = (int)Layout.FilmStrip; - else - mapSettings.ViewAs = (int)Layout.List; + curText = xmlreader.GetValueAsString("myprograms", "viewLayout", "list"); + if (curText == "list") mapSettings.ViewLayout = (int)Layout.List; + else if (curText == "icons") mapSettings.ViewLayout = (int)Layout.Icons; + else if (curText == "largeicons") mapSettings.ViewLayout = (int)Layout.LargeIcons; + else if (curText == "filmstrip") mapSettings.ViewLayout = (int)Layout.FilmStrip; + else mapSettings.ViewLayout = (int)Layout.List; + + CurrentSortMethod = (ProgramSort.SortMethod)xmlreader.GetValueAsInt("myprograms", "sortMethod", (int)ProgramSort.SortMethod.Name); + mapSettings.LastAppID = xmlreader.GetValueAsInt("myprograms", "lastAppID", -1); mapSettings.LastViewLevel = xmlreader.GetValueAsInt("myprograms", "lastViewLevel", -1); - mapSettings.SortBy = xmlreader.GetValueAsInt("myprograms", "sortby", 0); - mapSettings.SortAscending = xmlreader.GetValueAsBool("myprograms", "sortasc", true); - mapSettings.OverviewVisible = xmlreader.GetValueAsBool("myprograms", "sortasc", true); + mapSettings.SortAscending = xmlreader.GetValueAsBool("myprograms", "sortASC", true); + mapSettings.OverviewVisible = xmlreader.GetValueAsBool("myprograms", "sortASC", true); StartWindow = xmlreader.GetValueAsInt("myprograms", "startWindow", GetID); - CurrentView = xmlreader.GetValueAsString("myprograms", "startview", String.Empty); } } @@ -345,8 +346,8 @@ { mapSettings.LastAppID = xmlreader.GetValueAsInt("myprograms", "lastAppID", -1); mapSettings.LastViewLevel = xmlreader.GetValueAsInt("myprograms", "lastViewLevel", -1); - mapSettings.SortBy = xmlreader.GetValueAsInt("myprograms", "sortby", 0); - mapSettings.SortAscending = xmlreader.GetValueAsBool("myprograms", "sortasc", true); + mapSettings.SortMethod = xmlreader.GetValueAsInt("myprograms", "sortMethod", 0); + mapSettings.SortAscending = xmlreader.GetValueAsBool("myprograms", "sortAsc", true); mapSettings.OverviewVisible = xmlreader.GetValueAsBool("myprograms", "overviewvisible", true); } } @@ -374,7 +375,7 @@ #region SkinControls - enum Layout + public enum Layout { List = 0, Icons = 1, @@ -385,11 +386,12 @@ // Buttons [SkinControl(2)] protected GUIButtonControl btnViewAs = null; - [SkinControl(3)] - protected GUIButtonControl btnRefresh = null; + [SkinControlAttribute(3)] + protected GUISortButtonControl btnSortBy = null; [SkinControl(4)] protected GUIButtonControl btnViews = null; - + [SkinControl(5)] + protected GUIButtonControl btnRefresh = null; //Images [SkinControl(6)] protected GUIImage screenShotImage = null; @@ -411,12 +413,6 @@ skipInit = true; } - ~GUIPrograms() - { - SaveSettings(); - //FolderSettings.DeleteFolderSetting("root", "Programs"); - } - #endregion #region Init / DeInit @@ -450,8 +446,7 @@ if (lastApp != null) { lastFilepath = lastApp.DefaultFilepath(); - lastApp.CurrentSortIndex = mapSettings.SortBy; - lastApp.CurrentSortIsAscending = mapSettings.SortAscending; + this.CurrentSortAsc = mapSettings.SortAscending; DatabaseHandler.ViewHandler.CurrentLevel = mapSettings.LastViewLevel; } else @@ -467,24 +462,25 @@ #region Base & Content Variables + static int startWindow = (int)GUIWindow.Window.WINDOW_FILES; - + protected ProgramSort.SortMethod currentSortMethod = ProgramSort.SortMethod.Name; + string currentView = ""; + bool currentSortAsc = true; + static ApplicationItemList applicationList = DatabaseHandler.ApplicationItemList; MapSettings mapSettings = new MapSettings(); DirectoryHistory itemHistory = new DirectoryHistory(); ApplicationItem lastApp = null; + string lastFilepath = ""; int selectedItemIndex = -1; int slideSpeed = 3000; // speed in milliseconds between two slides long slideTime = 0; + public Layout currentLayout = Layout.List; bool skipInit = false; - static string currentView = ""; - Layout[,] layout; - bool[,] sortasc; - ProgramSort.SortMethod[,] sortby; - static string _thumbnailPath = string.Empty; static string _lastThumbnailPath = string.Empty; @@ -507,129 +503,36 @@ } } + public string CurrentView + { + get { return currentView; } + set { currentView = value; } + } + public int StartWindow { get { return startWindow; } set { startWindow = value; } } - public string CurrentView + public virtual Layout CurrentLayout { - get { return currentView; } - set { currentView = value; } + get { return currentLayout; } + set { currentLayout = value; } } - Layout CurrentLayout - {//maybe we can remove this property, not sure if we would need it - get - { - if (DatabaseHandler.ViewHandler.View == null) - return Layout.List; - - if (layout == null) - { - layout = new Layout[DatabaseHandler.ViewHandler.Views.Count, 50]; - - List<String> viewStrings = new List<String>(); - viewStrings.Add("List"); - viewStrings.Add("Icons"); - viewStrings.Add("Big Icons"); - viewStrings.Add("Filmstrip"); - - for (int i = 0; i < DatabaseHandler.ViewHandler.Views.Count; ++i) - { - for (int j = 0; j < DatabaseHandler.ViewHandler.Views[i].Filters.Count; ++j) - { - FilterDefinition def = (FilterDefinition)DatabaseHandler.ViewHandler.Views[i].Filters[j]; - int defaultView = viewStrings.IndexOf(def.DefaultView); - - if (defaultView != -1) - layout[i, j] = (Layout)defaultView; - else - layout[i, j] = Layout.List; - } - } - } - - return layout[DatabaseHandler.ViewHandler.Views.IndexOf(DatabaseHandler.ViewHandler.View), DatabaseHandler.ViewHandler.CurrentLevel]; - } - set - { - layout[DatabaseHandler.ViewHandler.Views.IndexOf(DatabaseHandler.ViewHandler.View), DatabaseHandler.ViewHandler.CurrentLevel] = value; - } - } - bool CurrentSortAsc { - get - { - if (DatabaseHandler.ViewHandler.View == null) - return true; - - if (sortasc == null) - { - sortasc = new bool[DatabaseHandler.ViewHandler.Views.Count, 50]; - - for (int i = 0; i < DatabaseHandler.ViewHandler.Views.Count; ++i) - { - for (int j = 0; j < DatabaseHandler.ViewHandler.Views[i].Filters.Count; ++j) - { - FilterDefinition def = (FilterDefinition)DatabaseHandler.ViewHandler.Views[i].Filters[j]; - sortasc[i, j] = def.SortAscending; - } - } - } - - return sortasc[DatabaseHandler.ViewHandler.Views.IndexOf(DatabaseHandler.ViewHandler.View), DatabaseHandler.ViewHandler.CurrentLevel]; - } - set - { - sortasc[DatabaseHandler.ViewHandler.Views.IndexOf(DatabaseHandler.ViewHandler.View), DatabaseHandler.ViewHandler.CurrentLevel] = value; - } + get { return currentSortAsc; } + set { currentSortAsc = value; } } - ProgramSort.SortMethod CurrentSortMethod + protected virtual ProgramSort.SortMethod CurrentSortMethod { - get - { - if (DatabaseHandler.ViewHandler.View == null) - return ProgramSort.SortMethod.Name; - - if (sortby == null) - { - sortby = new ProgramSort.SortMethod[DatabaseHandler.ViewHandler.Views.Count, 50]; - - List<String> sortStrings = new List<String>(); - sortStrings.Add("Name"); - sortStrings.Add("Title"); - sortStrings.Add("Filename"); - sortStrings.Add("Rating"); - sortStrings.Add("LaunchCount"); - sortStrings.Add("LastTimeLaunched"); - - for (int i = 0; i < DatabaseHandler.ViewHandler.Views.Count; ++i) - { - for (int j = 0; j < DatabaseHandler.ViewHandler.Views[i].Filters.Count; ++j) - { - FilterDefinition def = (FilterDefinition)DatabaseHandler.ViewHandler.Views[i].Filters[j]; - int defaultSort = sortStrings.IndexOf(def.DefaultSort); - - if (defaultSort != -1) - sortby[i, j] = (ProgramSort.SortMethod)defaultSort; - else - sortby[i, j] = ProgramSort.SortMethod.Name; - } - } - } - - return sortby[DatabaseHandler.ViewHandler.Views.IndexOf(DatabaseHandler.ViewHandler.View), DatabaseHandler.ViewHandler.CurrentLevel]; - } - set - { - sortby[DatabaseHandler.ViewHandler.Views.IndexOf(DatabaseHandler.ViewHandler.View), DatabaseHandler.ViewHandler.CurrentLevel] = value; - } + get { return currentSortMethod; } + set { currentSortMethod = value; } } - + GUIListItem GetSelectedItem() { return facadeView.SelectedListItem; @@ -697,9 +600,13 @@ protected override void OnPageLoad() { - string view = CurrentView; - DatabaseHandler.ViewHandler.CurrentView = view; + //string view = CurrentView; + base.OnPageLoad(); + + if (btnSortBy != null) + btnSortBy.SortChanged += new SortEventHandler(SortChanged); + InitMyPrograms(); } @@ -709,6 +616,14 @@ base.OnPageDestroy(newWindowId); } + void SortChanged(object sender, SortEventArgs args) + { + this.CurrentSortAsc = args.Order != System.Windows.Forms.SortOrder.Descending; + + OnSort(); + UpdateButtonStates(); + } + public override void OnAction(Action action) { switch (action.wID) @@ -717,7 +632,7 @@ case Action.ActionType.ACTION_PREVIOUS_MENU: // <U> keypress BackItemClicked(); - UpdateButtons(); + UpdateButtonStates(); break; case Action.ActionType.ACTION_CLOSE_DIALOG: SaveFolderSettings(""); @@ -757,7 +672,24 @@ base.OnClicked(controlId, control, actionType); if (control == btnViewAs) { - mapSettings.SwitchToNextView(); + mapSettings.SwitchToNextViewLayout(); + + switch (mapSettings.ViewLayout) + { + case (int)Layout.List: + CurrentLayout = Layout.Icons; + break; + case (int)Layout.Icons: + CurrentLayout = Layout.LargeIcons; + break; + case (int)Layout.LargeIcons: + CurrentLayout = Layout.FilmStrip; + break; + case (int)Layout.FilmStrip: + CurrentLayout = Layout.List; + break; + } + ShowThumbPanel(); } @@ -768,7 +700,7 @@ lastApp.Refresh(true); lastFilepath = lastApp.DefaultFilepath(); // todo: reset viewHandler - UpdateButtons(); + UpdateButtonStates(); UpdateListControl(); } } @@ -776,6 +708,11 @@ { OnShowViews(); } + else if (control == btnSortBy) + { + OnShowSort(); + } + else if (control == facadeView) { // application or file-item was clicked.... @@ -858,12 +795,16 @@ #region Display - void UpdateButtons() + protected virtual void UpdateButtonStates() { + string sortBy = string.Empty; + GUIPropertyManager.SetProperty("#view", DatabaseHandler.ViewHandler.LocalizedCurrentView); - btnViewAs.Label = mapSettings.ViewAsText; btnRefresh.IsVisible = RefreshButtonVisible(); + facadeView.IsVisible = true; + GUIControl.FocusControl(GetID, facadeView.GetID); + // display apptitle if available..... if (lastApp != null) { @@ -888,13 +829,43 @@ GUIPropertyManager.SetProperty("#curheader", GUILocalizeStrings.Get(0)); } } + + btnViewAs.Label = mapSettings.ViewLayoutTextName; + + switch (CurrentSortMethod) + { + case ProgramSort.SortMethod.Name: + sortBy = GUILocalizeStrings.Get(103); + break; + case ProgramSort.SortMethod.Title: + sortBy = GUILocalizeStrings.Get(268); + break; + case ProgramSort.SortMethod.Filename: + sortBy = GUILocalizeStrings.Get(363); + break; + case ProgramSort.SortMethod.Rating: + sortBy = GUILocalizeStrings.Get(367); + break; + case ProgramSort.SortMethod.LastTimeLaunched: //tmp + sortBy = GUILocalizeStrings.Get(31); + break; + case ProgramSort.SortMethod.LaunchCount: + sortBy = GUILocalizeStrings.Get(30); //tmp + break; + } + + if (btnSortBy != null) + { + btnSortBy.Label = sortBy; + btnSortBy.IsAscending = CurrentSortAsc; + } } void ShowThumbPanel() { int itemIndex = facadeView.SelectedListItemIndex; - switch ((Layout)mapSettings.ViewAs) + switch ((Layout)mapSettings.ViewLayout) { case Layout.List: facadeView.View = GUIFacadeControl.ViewMode.List; @@ -915,7 +886,7 @@ } facadeView.SelectedListItemIndex = itemIndex; - UpdateButtons(); + UpdateButtonStates(); } void RenderThumbnail(float timePassed) @@ -1120,7 +1091,7 @@ } } } - UpdateButtons(); + UpdateButtonStates(); UpdateListControl(); RestoreItemIndex(lastApp, lastFilepath); } @@ -1319,6 +1290,9 @@ } } + + + void OnClick() { GUIListItem item = GetSelectedItem(); @@ -1335,17 +1309,148 @@ if (item.Label.Equals(ProgramUtils.cBackLabel)) { BackItemClicked(); - UpdateButtons(); + UpdateButtonStates(); } else { // application-item or subfolder FolderItemClicked(item); - UpdateButtons(); + UpdateButtonStates(); } } } + protected void OnShowSort() + { + GUIDialogMenu dlg = (GUIDialogMenu)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_DIALOG_MENU); + if (dlg == null) + return; + dlg.Reset(); + dlg.SetHeading(495); + + dlg.AddLocalizedString(103); // name + dlg.AddLocalizedString(268); // title + dlg.AddLocalizedString(363); // filename + dlg.AddLocalizedString(367); // rating + dlg.AddLocalizedString(30);//"LaunchCount"//whats the maopping to these??? + dlg.AddLocalizedString(31); //dlg.Add("LastLaunched"); + + + dlg.DoModal(GetID); + + if (dlg.SelectedLabel == -1) + return; + + switch (dlg.SelectedId) + { + case 103: + CurrentSortMethod = ProgramSort.SortMethod.Name; + break; + case 268: + CurrentSortMethod = ProgramSort.SortMethod.Title; + break; + case 363: + CurrentSortMethod = ProgramSort.SortMethod.Filename; + break; + case 367: + CurrentSortMethod = ProgramSort.SortMethod.Rating; + break; + case 20: + CurrentSortMethod = ProgramSort.SortMethod.LaunchCount; + break; + case 31: + CurrentSortMethod = ProgramSort.SortMethod.LastTimeLaunched; + break; + default: + CurrentSortMethod = ProgramSort.SortMethod.Name; + break; + } + + OnSort(); + GUIControl.FocusControl(GetID, btnSortBy.GetID); + } + + protected virtual void OnSort() + { + //SetLabels(); + facadeView.Sort(new ProgramSort(CurrentSortMethod, CurrentSortAsc)); + UpdateButtonStates(); + } + + protected virtual void SetLabels() + { + ProgramSort.SortMethod method = CurrentSortMethod; + + /* for (int i = 0; i < facadeView.Count; ++i) + { + GUIListItem item = facadeView[i]; + MusicTag tag = (MusicTag)item.MusicTag; + if (tag != null) + { + string trackNr = String.Format("{0:00}", tag.Track); + string fileSize = MediaPortal.Util.Utils.GetSize(item.Size); + string year = tag.Year.ToString(); + string filename = MediaPortal.Util.Utils.GetFilename(item.Path); + // For an index view, don't translate the duration + string duration = ""; + // When in Shares View, the View = null + if (handler.View != null) + { + FilterDefinition filter = (FilterDefinition)handler.View.Filters[handler.CurrentLevel]; + if (filter.SqlOperator == "group") + { + duration = Convert.ToString(tag.Duration); + } + else + { + duration = MediaPortal.Util.Utils.SecondsToHMSString(tag.Duration); + } + } + else + { + duration = MediaPortal.Util.Utils.SecondsToHMSString(tag.Duration); + } + string rating = tag.Rating.ToString(); + if (tag.Track <= 0) + trackNr = ""; + if (tag.Year < 1900) + year = ""; + + string date = ""; + if (item.FileInfo != null) + date = item.FileInfo.ModificationTime.ToShortDateString() + " " + item.FileInfo.ModificationTime.ToString("t", CultureInfo.CurrentCulture.DateTimeFormat); + ; + + string line1 = _sortTags1[(int)method]; + string line2 = _sortTags2[(int)method]; + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%track%", trackNr); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%track%", trackNr); + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%filesize%", fileSize); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%filesize%", fileSize); + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%artist%", tag.Artist); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%artist%", tag.Artist); + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%album%", tag.Album); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%album%", tag.Album); + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%title%", tag.Title); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%title%", tag.Title); + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%year%", year); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%year%", year); + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%filename%", filename); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%filename%", filename); + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%rating%", rating); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%rating%", rating); + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%duration%", duration); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%duration%", duration); + line1 = MediaPortal.Util.Utils.ReplaceTag(line1, "%date%", date); + line2 = MediaPortal.Util.Utils.ReplaceTag(line2, "%date%", date); + item.Label = line1; + item.Label2 = line2; + } + }*/ + } + + + void OnInfo() { // <F3> keypress @@ -1403,7 +1508,7 @@ { int nNewWindow = (int)Window.WINDOW_FILES; StartWindow = nNewWindow; - CurrentView = ""; + CurrentLayout = Layout.List; DatabaseHandler.ViewHandler.CurrentView = null; if (nNewWindow != GetID) { @@ -1414,6 +1519,7 @@ { ViewDefinition selectedView = (ViewDefinition)DatabaseHandler.ViewHandler.Views[dlg.SelectedLabel - 1]; CurrentView = selectedView.Name; + DatabaseHandler.ViewHandler.CurrentView = selectedView.Name; int nNewWindow = (int)Window.WINDOW_FILES; if (GetID != nNewWindow) @@ -1432,7 +1538,7 @@ } } } - UpdateButtons(); + UpdateButtonStates(); UpdateListControl(); } Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAlt.csproj =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAlt.csproj 2007-07-06 05:03:26 UTC (rev 675) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/GUIProgramsAlt.csproj 2007-07-07 21:10:58 UTC (rev 676) @@ -165,6 +165,7 @@ <ItemGroup> <Content Include="MetaData\myProgramsAltFileDetailsInfo.xml" /> <Content Include="MetaData\myProgramsAltPreconfiguration.xml" /> + <Content Include="skin\BlueTwo\myprograms.xml" /> </ItemGroup> <ItemGroup> <EmbeddedResource Include="Design\AppFilesImportProgress.resx"> Modified: trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ProgramSort.cs =================================================================== --- trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ProgramSort.cs 2007-07-06 05:03:26 UTC (rev 675) +++ trunk/plugins/myGUIProgramsAlt/GUIProgramsAlt/ProgramSort.cs 2007-07-07 21:10:58 UTC (rev 676) @@ -32,6 +32,7 @@ using GUIPrograms.Database; using GUIPrograms.FileItems; +using GUIPrograms.ApplicationItems; namespace GUIPrograms { @@ -55,16 +56,6 @@ bool sortAscending = true; - public bool SortAscending - { - get { return sortAscending; } - set { sortAscending = value; } - } - public int CurrentSortMethodIndex - { - get { return (int) currentSortMethod; } - set { SetCurrentSortMethodAsIndex(value); } - } public ProgramSort(SortMethod method, bool ascending) { @@ -74,9 +65,22 @@ public int Compare(GUIListItem item1, GUIListItem item2) { + if (item1 == item2) return 0; if (item1 == null) return -1; if (item2 == null) return -1; + if (item1.MusicTag == null) return -1; + if (item2.MusicTag == null) return -1; + + if (item1.MusicTag.GetType().BaseType.Name == "ApplicationItem") return -1;//quick fix for not allowing applicationsitems... be solve by inheritence etc + if (item2.MusicTag.GetType().BaseType.Name == "ApplicationItem") return -1;//quick fix for not allowing applicationsitems... be solve by inheritence etc + if (item1.MusicTag.GetType().BaseType.Name == "ProgramFilterItem") return -1;//quick fix for not allowing applicationsitems... be solve by inheritence etc + if (item2.MusicTag.GetType().BaseType.Name == "ProgramFilterItem") return -1;//quick fix for not allowing applicationsitems... be solve by inheritence etc + + + + + if (item1 == null) return -1; if (item1.IsFolder && item1.Label == "..") return -1; if (item2.IsFolder && item2.Label == "..") return -1; if (item1.IsFolder && !item2.IsFolder) return -1; @@ -172,47 +176,5 @@ } return 0; } - - public string CurrentSortMethodAsText - { - get - { - return GetCurrentSortMethodAsText(); - } - } - - private string GetCurrentSortMethodAsText() - { - string strLine = ""; - SortMethod method = currentSortMethod; - switch (method) - { - case SortMethod.Name: - strLine = GUILocalizeStrings.Get(103); - break; - case SortMethod.LaunchCount: - strLine = GUILocalizeStrings.Get(13016); - break; - case SortMethod.LastTimeLaunched: - strLine = GUILocalizeStrings.Get(13017); - break; - case SortMethod.Rating: - strLine = GUILocalizeStrings.Get(13018); - break; - } - return strLine; - } - - private void SetCurrentSortMethodAsIndex(int value) - { - try - { - currentSortMethod = (SortMethod)value; - } - catch - { - currentSortMethod = 0; - } - } } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <an...@us...> - 2007-07-06 05:03:28
|
Revision: 675 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=675&view=rev Author: and-81 Date: 2007-07-05 22:03:26 -0700 (Thu, 05 Jul 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/IR Server Suite/Applications/Virtual Remote/Program.cs trunk/plugins/IR Server Suite/IR Server Suite.sln Added Paths: ----------- trunk/plugins/IR Server Suite/Applications/IR Blast/ trunk/plugins/IR Server Suite/Applications/IR Blast/IR Blast.csproj trunk/plugins/IR Server Suite/Applications/IR Blast/Program.cs trunk/plugins/IR Server Suite/Applications/IR Blast/Properties/ trunk/plugins/IR Server Suite/Applications/IR Blast/Properties/AssemblyInfo.cs Added: trunk/plugins/IR Server Suite/Applications/IR Blast/IR Blast.csproj =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Blast/IR Blast.csproj (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR Blast/IR Blast.csproj 2007-07-06 05:03:26 UTC (rev 675) @@ -0,0 +1,76 @@ +<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProductVersion>8.0.50727</ProductVersion> + <SchemaVersion>2.0</SchemaVersion> + <ProjectGuid>{C6B0CF12-01D3-439A-9FB4-DEFD5B32F6FB}</ProjectGuid> + <OutputType>Exe</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>IRBlast</RootNamespace> + <AssemblyName>IRBlast</AssemblyName> + <ApplicationIcon> + </ApplicationIcon> + <StartupObject>IRBlast.Program</StartupObject> + <RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> + <DebugSymbols>false</DebugSymbols> + <DebugType>full</DebugType> + <Optimize>false</Optimize> + <OutputPath>bin\Debug\</OutputPath> + <DefineConstants>DEBUG</DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + </PropertyGroup> + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> + <DebugType>none</DebugType> + <Optimize>true</Optimize> + <OutputPath>bin\Release\</OutputPath> + <DefineConstants> + </DefineConstants> + <ErrorReport>prompt</ErrorReport> + <WarningLevel>4</WarningLevel> + <TreatWarningsAsErrors>true</TreatWarningsAsErrors> + <UseVSHostingProcess>false</UseVSHostingProcess> + </PropertyGroup> + <ItemGroup> + <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Xml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="Program.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\..\Common\irssUtils\IrssUtils.csproj"> + <Project>{CA15769C-232E-4CA7-94FD-206A06CA3ABB}</Project> + <Name>IrssUtils</Name> + </ProjectReference> + <ProjectReference Include="..\..\IPC\AppModule.InterProcessComm\AppModule.InterProcessComm.csproj"> + <Project>{E98F1F7E-40B6-44C8-AC66-EC867B141FA1}</Project> + <Name>AppModule.InterProcessComm</Name> + </ProjectReference> + <ProjectReference Include="..\..\IPC\AppModule.NamedPipes\AppModule.NamedPipes.csproj"> + <Project>{077B53BB-404A-4B2F-BA17-AAE98C5E9C66}</Project> + <Name>AppModule.NamedPipes</Name> + </ProjectReference> + <ProjectReference Include="..\..\IPC\Named Pipes\Named Pipes.csproj"> + <Project>{F4EA6055-7133-4F18-8971-E19ADEB482C1}</Project> + <Name>Named Pipes</Name> + </ProjectReference> + </ItemGroup> + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. + Other similar extension points exist, see Microsoft.Common.targets. + <Target Name="BeforeBuild"> + </Target> + <Target Name="AfterBuild"> + </Target> + --> + <PropertyGroup> + <PostBuildEvent>copy "*.*" "\MediaPortal Development\Plugin Releases\IR Server Suite\$(ProjectName)\"</PostBuildEvent> + </PropertyGroup> +</Project> \ No newline at end of file Added: trunk/plugins/IR Server Suite/Applications/IR Blast/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Blast/Program.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR Blast/Program.cs 2007-07-06 05:03:26 UTC (rev 675) @@ -0,0 +1,538 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.IO; +using System.Text; +using System.Threading; +using System.Xml; + +using NamedPipes; +using IrssUtils; + +namespace IRBlast +{ + + static class Program + { + + #region Variables + + static bool _registered = false; + static bool _keepAlive = true; + static int _echoID = -1; + static Thread _keepAliveThread; + + static string _serverHost = null; + static string _localPipeName; + + static string _blastPort = "None"; + static string _blastSpeed = "None"; + + static bool _treatAsChannelNumber = false; + + #endregion Variables + + /// <summary> + /// The main entry point for the application. + /// </summary> + [STAThread] + static void Main(string[] args) + { + IrssLog.LogLevel = IrssLog.Level.Debug; + IrssLog.Open(Common.FolderIrssLogs + "IR Blast.log"); + + IrssLog.Debug("Platform is {0}", (IntPtr.Size == 4 ? "32-bit" : "64-bit")); + + ShowHeader(); + + try + { + + if (args.Length > 0) // Command Line Start ... + { + List<String> irCommands = new List<string>(); + + for (int index = 0; index < args.Length; index++) + { + switch (args[index].ToLowerInvariant()) + { + case "-host": + _serverHost = args[++index]; + continue; + + case "-port": + _blastPort = args[++index]; + continue; + + case "-speed": + _blastSpeed = args[++index]; + continue; + + case "-channel": + _treatAsChannelNumber = true; + continue; + + default: + irCommands.Add(args[index]); + continue; + } + } + + if (String.IsNullOrEmpty(_serverHost) || irCommands.Count == 0) + { + Console.WriteLine("Malformed command line parameters ..."); + Console.WriteLine(); + + ShowHelp(); + } + else if (StartComms()) + { + Thread.Sleep(250); + + // Wait for registered ... Give up after 10 seconds ... + int attempt = 0; + while (!_registered) + { + if (++attempt >= 10) + break; + else + Thread.Sleep(1000); + } + + if (_registered) + { + string fileName; + foreach (String command in irCommands) + { + if (_treatAsChannelNumber) + { + Info("Processing channel: {0}", command); + foreach (char digit in command) + { + if (digit == '~') + { + Thread.Sleep(500); + } + else + { + fileName = Common.FolderIRCommands + digit + Common.FileExtensionIR; + BlastIR(fileName, _blastPort, _blastSpeed); + } + } + } + else if (command.StartsWith("~")) + { + Thread.Sleep(command.Length * 500); + } + else + { + fileName = Common.FolderIRCommands + command; + BlastIR(fileName, _blastPort, _blastSpeed); + } + } + + Thread.Sleep(500); + } + else + { + Warn("Failed to register with server host \"{0}\", blasting not sent", _serverHost); + } + + } + } + else // Give help ... + { + ShowHelp(); + } + } + catch (Exception ex) + { + Error(ex); + } + + StopComms(); + + IrssLog.Close(); + } + + static void ShowHeader() + { + Console.WriteLine(""); + Console.WriteLine("IR Blast"); + Console.WriteLine("-----------------------------------------------------------------------------"); + Console.WriteLine("Command line IR blaster for IR Server Suite."); + Console.WriteLine("By and-81."); + Console.WriteLine(""); + Console.WriteLine(""); + } + + static void ShowHelp() + { + IrssLog.Debug("Show Help"); + + Console.WriteLine("IRBlast.exe -host <server> -port [port] -speed [speed] [-channel] <commands>"); + Console.WriteLine(""); + Console.WriteLine("Use -host to specify the computer that is hosting the IR Server."); + Console.WriteLine("Use -port to blast to a particular blaster port (Optional)."); + Console.WriteLine("Use -speed to set the blaster speed (Optional)."); + Console.WriteLine("Use -channel to tell IR Blast to break apart the following IR Command and"); + Console.WriteLine(" use each digit for a separate IR blast (Optional)."); + Console.WriteLine("Use a tilde ~ between commands to insert half second pauses."); + Console.WriteLine(""); + Console.WriteLine(""); + Console.WriteLine("Examples:"); + Console.WriteLine(""); + Console.WriteLine("IRBlast -host HTPC TV_Power.IR"); + Console.WriteLine(""); + Console.WriteLine("This would blast the TV_Power.IR command on the HTPC computer to the default"); + Console.WriteLine("blaster port at the default blaster speed."); + Console.WriteLine(""); + Console.WriteLine("IRBlast -host MEDIAPC -port Port_2 \"Turn on surround.IR\""); + Console.WriteLine(""); + Console.WriteLine("This would blast the \"Turn on surround.IR\" command on the MEDIAPC computer"); + Console.WriteLine("to blaster port 2 at the default blaster speed."); + Console.WriteLine(""); + Console.WriteLine("IRBlast -host HTPC -channel 302"); + Console.WriteLine(""); + Console.WriteLine("This would blast the 3.IR, 0.IR, and 2.IR commands on the HTPC computer to"); + Console.WriteLine("the default blaster port at the default blaster speed."); + Console.WriteLine(""); + Console.WriteLine(""); + } + + static bool StartComms() + { + try + { + if (OpenLocalPipe()) + { + _keepAliveThread = new Thread(new ThreadStart(KeepAliveThread)); + _keepAliveThread.Start(); + return true; + } + } + catch (Exception ex) + { + Error(ex); + } + + return false; + } + static void StopComms() + { + _keepAlive = false; + + try + { + if (_keepAliveThread != null && _keepAliveThread.IsAlive) + _keepAliveThread.Abort(); + } + catch { } + + try + { + if (_registered) + { + _registered = false; + + PipeMessage message = new PipeMessage(_localPipeName, Environment.MachineName, "Unregister", null); + PipeAccess.SendMessage(Common.ServerPipeName, _serverHost, message.ToString()); + } + } + catch { } + + try + { + if (PipeAccess.ServerRunning) + PipeAccess.StopServer(); + } + catch { } + } + + static bool OpenLocalPipe() + { + try + { + int pipeNumber = 1; + bool retry = false; + + do + { + string localPipeTest = String.Format(Common.LocalPipeFormat, pipeNumber); + + if (PipeAccess.PipeExists(String.Format("\\\\.\\pipe\\{0}", localPipeTest))) + { + if (++pipeNumber <= Common.MaximumLocalClientCount) + retry = true; + else + throw new Exception(String.Format("Maximum local client limit ({0}) reached", Common.MaximumLocalClientCount)); + } + else + { + if (!PipeAccess.StartServer(localPipeTest, new PipeMessageHandler(ReceivedMessage))) + throw new Exception(String.Format("Failed to start local pipe server \"{0}\"", localPipeTest)); + + _localPipeName = localPipeTest; + retry = false; + } + } + while (retry); + + return true; + } + catch (Exception ex) + { + Error(ex); + return false; + } + } + + static bool ConnectToServer() + { + try + { + PipeMessage message = new PipeMessage(_localPipeName, Environment.MachineName, "Register", null); + PipeAccess.SendMessage(Common.ServerPipeName, _serverHost, message.ToString()); + return true; + } + catch (AppModule.NamedPipes.NamedPipeIOException) + { + return false; + } + catch (Exception ex) + { + Error(ex); + return false; + } + } + + static void KeepAliveThread() + { + Random random = new Random((int)DateTime.Now.Ticks); + bool reconnect; + int attempt; + + _registered = false; + _keepAlive = true; + while (_keepAlive) + { + reconnect = true; + + #region Connect to server + + Info("Connecting ({0}) ...", _serverHost); + attempt = 0; + while (_keepAlive && reconnect) + { + if (ConnectToServer()) + { + reconnect = false; + } + else + { + int wait; + + if (attempt <= 50) + attempt++; + + if (attempt > 50) + wait = 30; // 30 seconds + else if (attempt > 20) + wait = 10; // 10 seconds + else if (attempt > 10) + wait = 5; // 5 seconds + else + wait = 1; // 1 second + + for (int sleeps = 0; sleeps < wait && _keepAlive; sleeps++) + Thread.Sleep(1000); + } + } + + #endregion Connect to server + + #region Wait for registered + + // Give up after 10 seconds ... + attempt = 0; + while (_keepAlive && !_registered && !reconnect) + { + if (++attempt >= 10) + reconnect = true; + else + Thread.Sleep(1000); + } + + #endregion Wait for registered + + #region Ping the server repeatedly + + while (_keepAlive && _registered && !reconnect) + { + int pingID = random.Next(); + long pingTime = DateTime.Now.Ticks; + + try + { + PipeMessage message = new PipeMessage(_localPipeName, Environment.MachineName, "Ping", BitConverter.GetBytes(pingID)); + PipeAccess.SendMessage(Common.ServerPipeName, _serverHost, message.ToString()); + } + catch + { + // Failed to ping ... reconnect ... + Warn("Failed to ping, attempting to reconnect ..."); + _registered = false; + reconnect = true; + break; + } + + // Wait 10 seconds for a ping echo ... + bool receivedEcho = false; + while (_keepAlive && _registered && !reconnect && + !receivedEcho && DateTime.Now.Ticks - pingTime < 10 * 1000 * 10000) + { + if (_echoID == pingID) + { + receivedEcho = true; + } + else + { + Thread.Sleep(1000); + } + } + + if (receivedEcho) // Received ping echo ... + { + // Wait 60 seconds before re-pinging ... + for (int sleeps = 0; sleeps < 60 && _keepAlive && _registered; sleeps++) + Thread.Sleep(1000); + } + else // Didn't receive ping echo ... + { + Warn("No echo to ping, attempting to reconnect ..."); + + // Break out of pinging cycle ... + _registered = false; + reconnect = true; + } + } + + #endregion Ping the server repeatedly + + } + + } + + static void ReceivedMessage(string message) + { + PipeMessage received = PipeMessage.FromString(message); + + IrssLog.Debug("Received Message \"{0}\"", received.Name); + + try + { + switch (received.Name) + { + case "Remote Button": + break; + + case "Blast Success": + Info("Blast Success"); + break; + + case "Blast Failure": + Warn("Blast Failed!"); + break; + + case "Register Success": + { + Info("Registered to IR Server"); + _registered = true; + //_transceiverInfo = TransceiverInfo.FromBytes(received.Data); + break; + } + + case "Register Failure": + { + Warn("IR Server refused to register"); + _registered = false; + break; + } + + case "Server Shutdown": + { + Warn("IR Server Shutdown - Blasting disabled until IR Server returns"); + _registered = false; + break; + } + + case "Echo": + { + _echoID = BitConverter.ToInt32(received.Data, 0); + break; + } + + case "Error": + { + Warn(Encoding.ASCII.GetString(received.Data)); + break; + } + + default: + { + Warn("Unknown message received from server: " + received.Name); + break; + } + } + } + catch (Exception ex) + { + Error(ex); + } + } + + static void BlastIR(string fileName, string port, string speed) + { + FileStream file = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read); + + byte[] outData = new byte[8 + port.Length + speed.Length + file.Length]; + + BitConverter.GetBytes(port.Length).CopyTo(outData, 0); + Encoding.ASCII.GetBytes(port).CopyTo(outData, 4); + BitConverter.GetBytes(speed.Length).CopyTo(outData, 4 + port.Length); + Encoding.ASCII.GetBytes(speed).CopyTo(outData, 8 + port.Length); + + file.Read(outData, 8 + port.Length + speed.Length, (int)file.Length); + file.Close(); + + PipeMessage message = new PipeMessage(_localPipeName, Environment.MachineName, "Blast", outData); + PipeAccess.SendMessage(Common.ServerPipeName, _serverHost, message.ToString()); + } + + #region Log Commands + + static void Info(string format, params object[] args) + { + string message = String.Format(format, args); + Console.WriteLine(message); + IrssLog.Info(message); + } + static void Warn(string format, params object[] args) + { + string message = String.Format(format, args); + Console.WriteLine(message); + IrssLog.Warn(message); + } + static void Error(Exception ex) + { + Console.WriteLine(ex.Message); + IrssLog.Error(ex.ToString()); + } + + #endregion Log Commands + + } + +} Added: trunk/plugins/IR Server Suite/Applications/IR Blast/Properties/AssemblyInfo.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/IR Blast/Properties/AssemblyInfo.cs (rev 0) +++ trunk/plugins/IR Server Suite/Applications/IR Blast/Properties/AssemblyInfo.cs 2007-07-06 05:03:26 UTC (rev 675) @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +// +[assembly: AssemblyTitle("IR Blast")] +[assembly: AssemblyDescription("Command line application for blasting IR commands to IR Server")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("and-81")] +[assembly: AssemblyProduct("IRBlast")] +[assembly: AssemblyCopyright("Aaron Dinnage")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: + +[assembly: AssemblyVersion("1.0.3.2")] +[assembly: AssemblyFileVersion("1.0.3.2")] + +[assembly: CLSCompliant(true)] \ No newline at end of file Modified: trunk/plugins/IR Server Suite/Applications/Virtual Remote/Program.cs =================================================================== --- trunk/plugins/IR Server Suite/Applications/Virtual Remote/Program.cs 2007-07-05 19:08:21 UTC (rev 674) +++ trunk/plugins/IR Server Suite/Applications/Virtual Remote/Program.cs 2007-07-06 05:03:26 UTC (rev 675) @@ -112,7 +112,7 @@ } catch (Exception ex) { - IrssLog.Error("Error processing command line parameters: {0}", ex.Message); + IrssLog.Error("Error processing command line parameters: {0}", ex.ToString()); } if (virtualButtons.Count != 0 && StartComms()) @@ -150,8 +150,6 @@ { IrssLog.Warn("Failed to register with server host \"{0}\", custom message(s) not sent", Program.ServerHost); } - - StopComms(); } } @@ -166,15 +164,13 @@ } if (StartComms()) - { Application.Run(new MainForm()); - StopComms(); - } - SaveSettings(); } + StopComms(); + IrssLog.Close(); } @@ -401,13 +397,6 @@ #endregion Wait for registered - #region Registered ... - - if (_keepAlive && _registered && !reconnect) - IrssLog.Info("Connected ({0})", _serverHost); - - #endregion Registered ... - #region Ping the server repeatedly while (_keepAlive && _registered && !reconnect) @@ -496,7 +485,7 @@ case "Server Shutdown": { - IrssLog.Warn("IR Server Shutdown - Tray Launcher disabled until IR Server returns"); + IrssLog.Warn("IR Server Shutdown - Virtual Remote disabled until IR Server returns"); _registered = false; break; } Modified: trunk/plugins/IR Server Suite/IR Server Suite.sln =================================================================== --- trunk/plugins/IR Server Suite/IR Server Suite.sln 2007-07-05 19:08:21 UTC (rev 674) +++ trunk/plugins/IR Server Suite/IR Server Suite.sln 2007-07-06 05:03:26 UTC (rev 675) @@ -67,6 +67,8 @@ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Custom HID Receiver", "IR Server Plugins\Custom HID Receiver\Custom HID Receiver.csproj", "{0F6576B4-C88E-4E79-B7E9-9480498C5A32}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IR Blast", "Applications\IR Blast\IR Blast.csproj", "{C6B0CF12-01D3-439A-9FB4-DEFD5B32F6FB}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -185,6 +187,10 @@ {0F6576B4-C88E-4E79-B7E9-9480498C5A32}.Debug|Any CPU.Build.0 = Debug|Any CPU {0F6576B4-C88E-4E79-B7E9-9480498C5A32}.Release|Any CPU.ActiveCfg = Release|Any CPU {0F6576B4-C88E-4E79-B7E9-9480498C5A32}.Release|Any CPU.Build.0 = Release|Any CPU + {C6B0CF12-01D3-439A-9FB4-DEFD5B32F6FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C6B0CF12-01D3-439A-9FB4-DEFD5B32F6FB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C6B0CF12-01D3-439A-9FB4-DEFD5B32F6FB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C6B0CF12-01D3-439A-9FB4-DEFD5B32F6FB}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -196,6 +202,7 @@ {A8B8B9C6-9E88-486B-AE9C-F2D945ED05A6} = {0C209E91-5AD5-4662-AD0E-976A940D4806} {46C08F6B-F3C8-461B-9B6F-3BFD4AAAFD63} = {0C209E91-5AD5-4662-AD0E-976A940D4806} {D871AB9A-71B3-4D63-8320-084BAD75064E} = {0C209E91-5AD5-4662-AD0E-976A940D4806} + {C6B0CF12-01D3-439A-9FB4-DEFD5B32F6FB} = {0C209E91-5AD5-4662-AD0E-976A940D4806} {A4023992-CCD6-461E-8E14-219A496734C5} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} {7C686499-7517-4338-8837-7E8617549D9A} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} {470D3C31-8D08-45D5-8C67-AEDEAD834402} = {0D1620EE-01B9-43B5-9FAA-E983BD9EBDBD} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <nor...@us...> - 2007-07-05 19:08:23
|
Revision: 674 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=674&view=rev Author: northern_sky Date: 2007-07-05 12:08:21 -0700 (Thu, 05 Jul 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/myGUIProgramsAlt/README.txt Modified: trunk/plugins/myGUIProgramsAlt/README.txt =================================================================== --- trunk/plugins/myGUIProgramsAlt/README.txt 2007-07-05 19:07:07 UTC (rev 673) +++ trunk/plugins/myGUIProgramsAlt/README.txt 2007-07-05 19:08:21 UTC (rev 674) @@ -26,21 +26,20 @@ Allgamesupport updated. Fileinfoscraper reworked -Mame, Gamebase support partially rewritten.much faster... now sloq again as we import stuff to lexicon tables.. +Mame, Gamebase support partially rewritten.much faster... now slow again as we import stuff to lexicon tables.. Some new options: Skip mahjong games,etc ---------------- .: To-do next :. ---------------- BUGS: -- Probaly some introduced with latest big resturcture: - AllGame-Import -> Do we want to import the Name of the game, too? --Will add some more options under save later.. so user can choose to overwrite title. - fileinfodetails : fixup - plugin is always starting in Genre View - -> not sure, i will have a look at it. -chef--- this doesn't happen here at least. + -> not sure, i will have a look at it. -chef--- this doesn't happen here at least?? verify - cleanup for old/obsolete view/sort/db code -> ApplicationItem.cs: old db-sort code (replaced by ProgramSort) -> remove (maybe) obsolete DatabaseSorter.cs, replaced by ProgramSort.cs @@ -67,7 +66,7 @@ - [low] genre: thumbs for genre, for example it could be created on AllGame lookup, for first file with this genre - ....... -Clean programviews--- it'a a alltime hacking class and gets worse=) +Clean programviews--- some redundancy etc.. and gets worse=) AllTime Todo: --> TESTING ;) @@ -138,7 +137,7 @@ What do you feel is the best? - - What about an BackUp feature? - + - What about an BackUp feature? - Don't worry should not backup all stuff, just save in any fileformat you want: - filepath and filename: to identify the file - Launchcount This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |