From: <fr...@us...> - 2007-01-31 19:51:32
|
Revision: 63 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=63&view=rev Author: framug Date: 2007-01-31 11:51:26 -0800 (Wed, 31 Jan 2007) Log Message: ----------- Add file explorer plugin Added Paths: ----------- trunk/plugins/file explorer/ trunk/plugins/file explorer/Release/ trunk/plugins/file explorer/Release/Plugins/ trunk/plugins/file explorer/Release/Plugins/Windows/ trunk/plugins/file explorer/Release/Plugins/Windows/Explorer.dll trunk/plugins/file explorer/Release/Plugins/Windows/FileExplorer/ trunk/plugins/file explorer/Release/Plugins/Windows/FileExplorer/Compression.dll trunk/plugins/file explorer/Release/Skin/ trunk/plugins/file explorer/Release/Skin/BlueTwo/ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_dialog.xml trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_main.xml trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_modulepreview.xml trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_musicpreview.xml trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_textpreview.xml trunk/plugins/file explorer/Release/Skin/MCE/ trunk/plugins/file explorer/Release/Skin/MCE/explorer_dialog.xml trunk/plugins/file explorer/Release/Skin/MCE/explorer_main.xml trunk/plugins/file explorer/Release/Skin/MCE/explorer_modulepreview.xml trunk/plugins/file explorer/Release/Skin/MCE/explorer_musicpreview.xml trunk/plugins/file explorer/Release/Skin/MCE/explorer_textpreview.xml trunk/plugins/file explorer/Release/Skin/Project X/ trunk/plugins/file explorer/Release/Skin/Project X/explorer_dialog.xml trunk/plugins/file explorer/Release/Skin/Project X/explorer_main.xml trunk/plugins/file explorer/Release/Skin/Project X/explorer_modulepreview.xml trunk/plugins/file explorer/Release/Skin/Project X/explorer_musicpreview.xml trunk/plugins/file explorer/Release/Skin/Project X/explorer_textpreview.xml trunk/plugins/file explorer/Source/ trunk/plugins/file explorer/Source/AssemblyInfo.cs trunk/plugins/file explorer/Source/Compression/ trunk/plugins/file explorer/Source/Compression/Compression.dsp trunk/plugins/file explorer/Source/Compression/Compression.dsw trunk/plugins/file explorer/Source/Compression/Compression.ncb trunk/plugins/file explorer/Source/Compression/Compression.opt trunk/plugins/file explorer/Source/Compression/Compression.plg trunk/plugins/file explorer/Source/Compression/export.cpp trunk/plugins/file explorer/Source/Compression/export.h trunk/plugins/file explorer/Source/Compression/main.cpp trunk/plugins/file explorer/Source/Constants.cs trunk/plugins/file explorer/Source/Dialogs/ trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs trunk/plugins/file explorer/Source/DrivesView.cs trunk/plugins/file explorer/Source/ExceptionViewer.cs trunk/plugins/file explorer/Source/Explorer.cs trunk/plugins/file explorer/Source/Explorer.csproj trunk/plugins/file explorer/Source/Explorer.sln trunk/plugins/file explorer/Source/Explorer.suo trunk/plugins/file explorer/Source/Preview/ trunk/plugins/file explorer/Source/Preview/ModulePreview.cs trunk/plugins/file explorer/Source/Preview/PicturePreview.cs trunk/plugins/file explorer/Source/Preview/StreamingPreview.cs trunk/plugins/file explorer/Source/Preview/TextPreview.cs trunk/plugins/file explorer/Source/Setup.Designer.cs trunk/plugins/file explorer/Source/Setup.cs trunk/plugins/file explorer/Source/Setup.resx trunk/plugins/file explorer/Source/bin/ trunk/plugins/file explorer/Source/bin/Release/ trunk/plugins/file explorer/Source/bin/Release/Core.dll trunk/plugins/file explorer/Source/bin/Release/Dialogs.dll trunk/plugins/file explorer/Source/bin/Release/Explorer.dll trunk/plugins/file explorer/Source/bin/Release/System.Drawing.dll trunk/plugins/file explorer/Source/bin/Release/System.Windows.Forms.dll trunk/plugins/file explorer/Source/bin/Release/Utils.dll trunk/plugins/file explorer/doc/ trunk/plugins/file explorer/doc/Bugs.txt trunk/plugins/file explorer/doc/COPYING.txt Added: trunk/plugins/file explorer/Release/Plugins/Windows/Explorer.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/file explorer/Release/Plugins/Windows/Explorer.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/file explorer/Release/Plugins/Windows/FileExplorer/Compression.dll =================================================================== (Binary files differ) Property changes on: trunk/plugins/file explorer/Release/Plugins/Windows/FileExplorer/Compression.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_dialog.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_dialog.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_dialog.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_main.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_main.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_main.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,112 @@ +<window> + <id>557311</id> + <defaultcontrol>1</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>5</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>1</id> + <posX>1</posX> + <posY>1</posY> + <label>Menu left</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>1</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>352</posX> + <posY>1</posY> + <label>Menu right</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>2</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>1</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>4</onright> + <onleft>1</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>240</spinPosX> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>352</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>1</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>352</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>1</posX> + <posY>35</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>352</posX> + <posY>36</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_modulepreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_modulepreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_modulepreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_musicpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_musicpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_musicpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_textpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_textpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/BlueTwo/explorer_textpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,29 @@ +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>1</posX> + <posY>1</posY> + <width>700</width> + <height>576</height> + <font>font12</font> + <textcolor>White</textcolor> + <spinPosX>640</spinPosX> + <spinPosY>560</spinPosY> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_dialog.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_dialog.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_dialog.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_main.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_main.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_main.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,112 @@ +<window> + <id>557311</id> + <defaultcontrol>1</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>5</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>1</id> + <posX>1</posX> + <posY>1</posY> + <label>Menu left</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>1</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>352</posX> + <posY>1</posY> + <label>Menu right</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>2</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>1</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>4</onright> + <onleft>1</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>240</spinPosX> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>352</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>1</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>352</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>1</posX> + <posY>35</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>352</posX> + <posY>36</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_modulepreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_modulepreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_modulepreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_musicpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_musicpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_musicpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/MCE/explorer_textpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/MCE/explorer_textpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/MCE/explorer_textpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,29 @@ +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>1</posX> + <posY>1</posY> + <width>700</width> + <height>576</height> + <font>font12</font> + <textcolor>White</textcolor> + <spinPosX>640</spinPosX> + <spinPosY>560</spinPosY> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_dialog.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_dialog.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_dialog.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,46 @@ +<window> + <id>557316</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label>0</label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_main.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_main.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_main.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,112 @@ +<window> + <id>557311</id> + <defaultcontrol>1</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>5</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <description>Menu left</description> + <type>button</type> + <id>1</id> + <posX>1</posX> + <posY>1</posY> + <label>Menu left</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>1</onup> + <ondown>3</ondown> + </control> + <control> + <description>Menu right</description> + <type>button</type> + <id>2</id> + <posX>352</posX> + <posY>1</posY> + <label>Menu right</label> + <onleft>1</onleft> + <onright>2</onright> + <onup>2</onup> + <ondown>4</ondown> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>3</id> + <posX>1</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>4</onright> + <onleft>1</onleft> + <onup>3</onup> + <ondown>3</ondown> + <spinPosX>240</spinPosX> + </control> + <control> + <description>file listcontrol</description> + <type>listcontrol</type> + <id>4</id> + <posX>352</posX> + <posY>55</posY> + <height>500</height> + <width>350</width> + <onright>2</onright> + <onleft>3</onleft> + <onup>4</onup> + <ondown>4</ondown> + </control> + <control> + <description>label left</description> + <type>label</type> + <id>6</id> + <posX>1</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>label right</description> + <type>label</type> + <id>7</id> + <posX>352</posX> + <posY>500</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir left</description> + <type>label</type> + <id>9</id> + <posX>1</posX> + <posY>35</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + <control> + <description>labeldir right</description> + <type>label</type> + <id>10</id> + <posX>352</posX> + <posY>36</posY> + <label>Test</label> + <font>font10</font> + <align>left</align> + <textcolor>White</textcolor> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_modulepreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_modulepreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_modulepreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557313</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_musicpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_musicpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_musicpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,64 @@ +<window> + <id>557314</id> + <defaultcontrol>10</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <type>image</type> + <id>0</id> + <posX>177</posX> + <posY>225</posY> + <width>409</width> + <height>202</height> + <texture>dialog_background.png</texture> + </control> + <control> + <description>dialog Heading</description> + <type>label</type> + <id>2</id> + <posX>190</posX> + <posY>230</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 1</description> + <type>label</type> + <id>3</id> + <posX>190</posX> + <posY>260</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>dialog line 2</description> + <type>label</type> + <id>4</id> + <posX>190</posX> + <posY>280</posY> + <label></label> + <font>font13</font> + <textcolor>ffffffff</textcolor> + </control> + <control> + <description>OK button</description> + <type>button</type> + <id>10</id> + <posX>435</posX> + <posY>355</posY> + <textXOff>10</textXOff> + <textYOff>7</textYOff> + <width>105</width> + <height>38</height> + <textureFocus>small_button_focus.png</textureFocus> + <textureNoFocus>small_button_nofocus.png</textureNoFocus> + <label>186</label> + <onleft>10</onleft> + <onright>10</onright> + <onup>10</onup> + <ondown>10</ondown> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Release/Skin/Project X/explorer_textpreview.xml =================================================================== --- trunk/plugins/file explorer/Release/Skin/Project X/explorer_textpreview.xml (rev 0) +++ trunk/plugins/file explorer/Release/Skin/Project X/explorer_textpreview.xml 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,29 @@ +<window> + <id>557312</id> + <defaultcontrol>2</defaultcontrol> + <allowoverlay>no</allowoverlay> + <controls> + <control> + <description>BackGround</description> + <type>image</type> + <id>1</id> + <posX>0</posX> + <posY>0</posY> + <width>720</width> + <height>576</height> + <texture>background.png</texture> + </control> + <control> + <type>textbox</type> + <id>2</id> + <posX>1</posX> + <posY>1</posY> + <width>700</width> + <height>576</height> + <font>font12</font> + <textcolor>White</textcolor> + <spinPosX>640</spinPosX> + <spinPosY>560</spinPosY> + </control> + </controls> +</window> Added: trunk/plugins/file explorer/Source/AssemblyInfo.cs =================================================================== --- trunk/plugins/file explorer/Source/AssemblyInfo.cs (rev 0) +++ trunk/plugins/file explorer/Source/AssemblyInfo.cs 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,31 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Information about this assembly is defined by the following +// attributes. +// +// change them to the information which is associated with the assembly +// you compile. + +[assembly: AssemblyTitle("Explorer")] +[assembly: AssemblyDescription("File Explorer")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Sinus Arts")] +[assembly: AssemblyProduct("Explorer")] +[assembly: AssemblyCopyright("2006 Andreas Groß")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// This sets the default COM visibility of types in the assembly to invisible. +// If you need to expose a type to COM, use [ComVisible(true)] on that type. +[assembly: ComVisible(false)] + +// The assembly version has following format : +// +// Major.Minor.Build.Revision +// +// You can specify all values by your own or you can build default build and revision +// numbers with the '*' character (the default): + +[assembly: AssemblyVersion("0.1.0.0")] Added: trunk/plugins/file explorer/Source/Compression/Compression.dsp =================================================================== --- trunk/plugins/file explorer/Source/Compression/Compression.dsp (rev 0) +++ trunk/plugins/file explorer/Source/Compression/Compression.dsp 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,113 @@ +# Microsoft Developer Studio Project File - Name="Compression" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** NICHT BEARBEITEN ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=Compression - Win32 Debug +!MESSAGE Dies ist kein g\xFCltiges Makefile. Zum Erstellen dieses Projekts mit NMAKE +!MESSAGE verwenden Sie den Befehl "Makefile exportieren" und f\xFChren Sie den Befehl +!MESSAGE +!MESSAGE NMAKE /f "Compression.mak". +!MESSAGE +!MESSAGE Sie k\xF6nnen beim Ausf\xFChren von NMAKE eine Konfiguration angeben +!MESSAGE durch Definieren des Makros CFG in der Befehlszeile. Zum Beispiel: +!MESSAGE +!MESSAGE NMAKE /f "Compression.mak" CFG="Compression - Win32 Debug" +!MESSAGE +!MESSAGE F\xFCr die Konfiguration stehen zur Auswahl: +!MESSAGE +!MESSAGE "Compression - Win32 Release" (basierend auf "Win32 (x86) Dynamic-Link Library") +!MESSAGE "Compression - Win32 Debug" (basierend auf "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "Compression - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /YX /FD /c +# ADD CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /YX /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "NDEBUG" +# ADD RSC /l 0x407 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 + +!ELSEIF "$(CFG)" == "Compression - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /YX /FD /GZ /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x407 /d "_DEBUG" +# ADD RSC /l 0x407 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "Compression - Win32 Release" +# Name "Compression - Win32 Debug" +# Begin Group "Quellcodedateien" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=.\export.cpp +# End Source File +# Begin Source File + +SOURCE=.\main.cpp +# End Source File +# End Group +# Begin Group "Header-Dateien" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=.\export.h +# End Source File +# End Group +# Begin Group "Ressourcendateien" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# End Target +# End Project Added: trunk/plugins/file explorer/Source/Compression/Compression.dsw =================================================================== --- trunk/plugins/file explorer/Source/Compression/Compression.dsw (rev 0) +++ trunk/plugins/file explorer/Source/Compression/Compression.dsw 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,29 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL\xD6SCHT WERDEN! + +############################################################################### + +Project: "Compression"=".\Compression.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + Added: trunk/plugins/file explorer/Source/Compression/Compression.ncb =================================================================== (Binary files differ) Property changes on: trunk/plugins/file explorer/Source/Compression/Compression.ncb ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/file explorer/Source/Compression/Compression.opt =================================================================== (Binary files differ) Property changes on: trunk/plugins/file explorer/Source/Compression/Compression.opt ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/plugins/file explorer/Source/Compression/Compression.plg =================================================================== --- trunk/plugins/file explorer/Source/Compression/Compression.plg (rev 0) +++ trunk/plugins/file explorer/Source/Compression/Compression.plg 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,36 @@ +<html> +<body> +<pre> +<h1>Erstellungsprotokoll</h1> +<h3> +--------------------Konfiguration: Compression - Win32 Release-------------------- +</h3> +<h3>Befehlszeilen</h3> +Erstellen der tempor\xE4ren Datei "C:\DOKUME~1\Admin\LOKALE~1\Temp\RSP185.tmp" mit Inhalten +[ +/nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "COMPRESSION_EXPORTS" /Fp"Release/Compression.pch" /YX /Fo"Release/" /Fd"Release/" /FD /c +"e:\Eigene Dateien\SharpDevelop Projects\MediaPortal PlugIns\Explorer\Compression\export.cpp" +"e:\Eigene Dateien\SharpDevelop Projects\MediaPortal PlugIns\Explorer\Compression\main.cpp" +] +Creating command line "cl.exe @C:\DOKUME~1\Admin\LOKALE~1\Temp\RSP185.tmp" +Erstellen der tempor\xE4ren Datei "C:\DOKUME~1\Admin\LOKALE~1\Temp\RSP186.tmp" mit Inhalten +[ +kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:no /pdb:"Release/Compression.pdb" /machine:I386 /out:"Release/Compression.dll" /implib:"Release/Compression.lib" +".\Release\export.obj" +".\Release\main.obj" +] +Erstellen der Befehlzeile "link.exe @C:\DOKUME~1\Admin\LOKALE~1\Temp\RSP186.tmp" +<h3>Ausgabefenster</h3> +Kompilierung l\xE4uft... +export.cpp +main.cpp +Linker-Vorgang l\xE4uft... + Bibliothek Release/Compression.lib und Objekt Release/Compression.exp wird erstellt + + + +<h3>Ergebnisse</h3> +Compression.dll - 0 Fehler, 0 Warnung(en) +</pre> +</body> +</html> Added: trunk/plugins/file explorer/Source/Compression/export.cpp =================================================================== --- trunk/plugins/file explorer/Source/Compression/export.cpp (rev 0) +++ trunk/plugins/file explorer/Source/Compression/export.cpp 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,69 @@ +/* export.cpp + * + * + * File created on: 07.08.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Gro\xDF (contact: sin...@gm...) + * + * 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 of the License, 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#include "export.h" +#include <windows.h> +#include <winioctl.h> + + +EXPORT bool CompressFile(char* file) +{ + HANDLE hFile = CreateFile(file, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); + if (hFile == INVALID_HANDLE_VALUE) + { + return false; + } + + USHORT usCompression = COMPRESSION_FORMAT_DEFAULT; + DWORD dwReturned = 0; + if (DeviceIoControl(hFile, FSCTL_SET_COMPRESSION, &usCompression, sizeof(USHORT), NULL, 0, &dwReturned, NULL) == 0) + { + CloseHandle(hFile); + return false; + } + + CloseHandle(hFile); + return true; +} + +EXPORT bool UncompressFile(char* file) +{ + HANDLE hFile = CreateFile(file, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL); + if (hFile == INVALID_HANDLE_VALUE) + { + return false; + } + + USHORT usCompression = COMPRESSION_FORMAT_NONE; + DWORD dwReturned = 0; + if (DeviceIoControl(hFile, FSCTL_SET_COMPRESSION, &usCompression, sizeof(USHORT), NULL, 0, &dwReturned, NULL) == 0) + { + CloseHandle(hFile); + return false; + } + + CloseHandle(hFile); + return true; +} Added: trunk/plugins/file explorer/Source/Compression/export.h =================================================================== --- trunk/plugins/file explorer/Source/Compression/export.h (rev 0) +++ trunk/plugins/file explorer/Source/Compression/export.h 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,33 @@ +/* export.h + * + * + * File created on: 07.08.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Gro\xDF (contact: sin...@gm...) + * + * 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 of the License, 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#define EXPORT __declspec(dllexport) + + +extern "C" +{ + EXPORT bool CompressFile(char* file); + EXPORT bool UncompressFile(char* file); +} \ No newline at end of file Added: trunk/plugins/file explorer/Source/Compression/main.cpp =================================================================== --- trunk/plugins/file explorer/Source/Compression/main.cpp (rev 0) +++ trunk/plugins/file explorer/Source/Compression/main.cpp 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,32 @@ +/* main.cpp + * + * + * File created on: 07.08.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Gro\xDF (contact: sin...@gm...) + * + * 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 of the License, 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +#include <windows.h> + + +BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReasonForCall, LPVOID pvReserved) +{ + return TRUE; +} Added: trunk/plugins/file explorer/Source/Constants.cs =================================================================== --- trunk/plugins/file explorer/Source/Constants.cs (rev 0) +++ trunk/plugins/file explorer/Source/Constants.cs 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,110 @@ +/* Constants.cs + * + * + * File created on: 17.07.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Groß (contact: sin...@gm...) + * + * 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 of the License, 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +using System; + +namespace Explorer +{ + /// <summary> + /// Description of Constants. + /// </summary> + public static class Constants + { + #region PlugIn Info constants + public struct PlugInInfo + { + /// <summary> + /// Name of PlugIn. + /// </summary> + public static readonly string NAME = "File Explorer"; + + /// <summary> + /// Description of PlugIn. + /// </summary> + public static readonly string DESCRIPTION = "File Explorer"; + + /// <summary> + /// Author of PlugIn. + /// </summary> + public static readonly string AUTHOR = "Andreas Groß"; + } + #endregion + + #region Window IDs + public struct WindowIDs + { + /// <summary> + /// The main windows id. + /// </summary> + public static readonly int MAIN = 557311; + public static readonly int TEXTVIEWER = 557312; + public static readonly int MUSICVIEWER = 557313; + public static readonly int STREAMINGVIEWER = 557314; + public static readonly int PICTUREVIEWER = 557315; + public static readonly int DIALOGOPERATION = 557316; + } + #endregion + + #region CotnrolIDs + public struct ControlIDs + { + public static readonly int LISTBOX_LEFT = 3; + public static readonly int LISTBOX_RIGHT = 4; + } + #endregion + + #region SetupForm + public struct SetupForm + { + public static readonly string[] valueNames = + {"Extensions", "Trashbin", "AllFiles", "SystemFiles", "SystemDirs"}; + + public static readonly string[] valueDescriptions = + {"Show file extensions", "Copy files to trashcan instead of deleting them", + "Show all files", "Show system files", "Show system directories" }; + + public static readonly bool[] valueStandards = {true, true, false, false, false}; + } + #endregion + + #region DriveTypes + public struct DriveTypes + { + public static readonly int REMOVEABLE = 2; + public static readonly int FIXED = 3; + public static readonly int REMOTEDISK = 4; + public static readonly int CD_DVD = 5; + public static readonly int RAMDISK = 6; + } + #endregion + + #region ViewerExtensions + public struct ViewerExtensions + { + public static readonly string[] TextPreviewExtensions = {".txt", ".ini", ".inf", ".bat", ".cs", ".cpp", ".xml", ".h", ".hpp", ".bas", ".vb", ".asm"}; + } + #endregion + } +} Added: trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs =================================================================== --- trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs (rev 0) +++ trunk/plugins/file explorer/Source/Dialogs/GUIDialogOperation.cs 2007-01-31 19:51:26 UTC (rev 63) @@ -0,0 +1,401 @@ +/* GUIDialogOperation.cs + * + * + * File created on: 27.07.2006 + * Version : 0.1 + * + * + * Copyright (C) 2006 Andreas Groß (contact: sin...@gm...) + * + * 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 of the License, 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 this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + +using System; +using MediaPortal.GUI.Library; +using System.Threading; + +namespace Explorer.Dialogs +{ + /// <summary> + /// This class shows a dialog which shows information about + /// operations done by DrivesView class. + /// </summary> + public class GUIDialogOperation : GUIWindow, IRenderLayer + { + #region enum DialogType + /// <summary> + /// Available dialogtypes. + /// </summary> + public enum DialogType : int + { + COPY = 0, + MOVE = 1, + DELETE = 2, + ENCRYPT = 3, + DECRYPT = 4, + COMPRESS = 5, + UNCOMPRESS = 6, + HIDE = 7, + UNHIDE = 8, + READONLY_FLAG_ADD = 9, + READONLY_FLAG_REMOVE = 10, + AUDIO_PLAYLIST_CREATE = 11, + VIDEO_PLAYLIST_CREATE = 12, + AUDIO_PLAYLIST_ADD = 13, + VIDEO_PLAYLIST_ADD = 14 + }; + #endregion + + #region vars + private int parentID; + private bool running = false; + + private DialogType type = 0; + + private string file = string.Empty; + private string to = string.Empty; + + private Thread processThread = null; + #endregion + + #region skin vars + [SkinControlAttribute(2)] private GUILabelControl lblHeading = null; + [SkinControlAttribute(3)] private GUILabelControl lblText1 = null; + [SkinControlAttribute(4)] private GUILabelControl lblText2 = null; + #endregion + + #region public members + /// <summary> + /// Shows the dialog and waits until the user has closed it. + /// </summary> + /// <param name="parentID">Parentwindow id.</param> + public void DoModal(int parentID) + { + this.parentID = parentID; + + GUIWindow win = GUIWindowManager.GetWindow(parentID); + + GUIWindowManager.IsSwitchingToNewWindow = true; + GUIWindowManager.RouteToWindow(GetID); + + // activate this window + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, GetID, 0, 0, 0, 0, null); + OnMessage(msg); + + GUIWindowManager.IsSwitchingToNewWindow = false; + + running = true; + while (running && GUIGraphicsContext.CurrentState == GUIGraphicsContext.State.RUNNING) + { + GUIWindowManager.Process(); + } + } + + /// <summary> + /// Shows the dialog. + /// </summary> + /// <param name="parentID">Parentwindow id.</param> + public void Show(int parentID) + { + this.parentID = parentID; + + GUIWindow win = GUIWindowManager.GetWindow(parentID); + + GUIWindowManager.IsSwitchingToNewWindow = true; + GUIWindowManager.RouteToWindow(GetID); + + // activate this window + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_INIT, GetID, 0, 0, 0, 0, null); + OnMessage(msg); + + GUIWindowManager.IsSwitchingToNewWindow = false; + GUIWindowManager.Process(); + + running = true; + + processThread = new Thread(new ThreadStart(this.ProcessThread)); + processThread.Start(); + } + + /// <summary> + /// Closes the dialog. Only available if the dialog was shown using Show(). + /// </summary> + public void Close() + { + this.OnAction(new Action(Action.ActionType.ACTION_CLOSE_DIALOG, 0, 0)); + } + + /// <summary> + /// Sets/returns the dialogtype. + /// </summary> + public DialogType Type + { + get { return type; } + set { SetType(value); } + } + + /// <summary> + /// Sets the dialogtype. + /// </summary> + /// <param name="type">Dialogtype.</param> + public void SetType(DialogType type) + { + this.type = type; + + switch (type) + { + case DialogType.AUDIO_PLAYLIST_CREATE: + lblHeading.Label = "Create Audio Playlist"; + lblText1.Label = "Adding File: "; + lblText2.Label = "Path: "; + break; + case DialogType.COMPRESS: + lblHeading.Label = "Compressing"; + lblText1.Label = "Compressing File: "; + lblText2.Label = "Path: "; + break; + case DialogType.COPY: + lblHeading.Label = "Copy"; + lblText1.Label = "File: "; + lblText2.Label = "To: "; + break; + case DialogType.DECRYPT: + lblHeading.Label = "Decrypting"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.DELETE: + lblHeading.Label = "Delete"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.ENCRYPT: + lblHeading.Label = "Encrypting"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.HIDE: + lblHeading.Label = "Hide"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.MOVE: + lblHeading.Label = "Move"; + lblText1.Label = "File: "; + lblText2.Label = "To: "; + break; + case DialogType.READONLY_FLAG_ADD: + lblHeading.Label = "Set readonly flag"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.READONLY_FLAG_REMOVE: + lblHeading.Label = "Remove readonly flag"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.UNCOMPRESS: + lblHeading.Label = "Uncompressing"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.UNHIDE: + lblHeading.Label = "Unhide"; + lblText1.Label = "File: "; + lblText2.Label = "Path: "; + break; + case DialogType.VIDEO_PLAYLIST_CREATE: + lblHeading.Label = "Create Video Playlist"; + lblText1.Label = "Adding File: "; + lblText2.Label = "Path: "; + break; + case DialogType.AUDIO_PLAYLIST_ADD: + lblHeading.Label = "Add to Audio Playlist"; + lblText1.Label = "Reading files . . . "; + lblText2.Label = string.Empty; + break; + case DialogType.VIDEO_PLAYLIST_ADD: + lblHeading.Label = "Add to Video Playlist"; + lblText1.Label = "Reading files . . . "; + lblText2.Label = string.Empty; + break; + } + } + + public void SetCurrentFile(string file) + { + SuspendThread(); + this.file = file; + lblText1.Label = "File: " + file; + ResumeThread(); + } + + public void SetToPath(string path) + { + SuspendThread(); + if (path.Length > 30) + { + path = path.Substring(0, 3) + "..\\" + GetFilename(path); + } + this.to = path; + lblText2.Label = "To: " + path; + ResumeThread(); + } + + public void SetPath(string path) + { + SuspendThread(); + if (path.Length > 30) + { + path = path.Substring(0, 3) + "..\\" + GetFilename(path); + } + lblText2.Label = "Path: " + path; + ResumeThread(); + } + + /// <summary> + /// Adds text to the dialog's first label. + /// </summary> + /// <param name="text">Text</param> + public void SetText(string text) + { + SuspendThread(); + lblText1.Label = text; + lblText2.Label = string.Empty; + ResumeThread(); + } + + /// <summary> + /// Adds text to the dialog's first and second label. + /// </summary> + /// <param name="text1">Text for label 1.</param> + /// <param name="text2">Text for label 2.</param> + public void SetText(string text1, string text2) + { + SuspendThread(); + lblText1.Label = text1; + lblText1.Label = text2; + ResumeThread(); + } + #endregion + + #region private members + private void ProcessThread() + { + while (running) + { + GUIWindowManager.Process(); + } + } + + private void SuspendThread() + { + processThread.Suspend(); + } + + private void ResumeThread() + { + processThread.Resume(); + } + + private string GetFilename(string filePath) + { + int index = filePath.LastIndexOf("\\"); + + if (index == -1) + { + index = filePath.LastIndexOf("/"); + } + + if (index == -1) + { + return filePath; + } + + return filePath.Substring(index + 1); + } + #endregion + + #region Overrides + public override int GetID + { + get { return Constants.WindowIDs.DIALOGOPERATION; } + set { base.GetID = value; } + } + + public override bool Init() + { + return Load(GUIGraphicsContext.Skin + "\\explorer_dialog.xml"); + } + + public override void OnAction(Action action) + { + if (action.wID == Action.ActionType.ACTION_CLOSE_DIALOG || action.wID == Action.ActionType.ACTION_PREVIOUS_MENU) + { + GUIMessage msg = new GUIMessage(GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT, GetID, 0, 0, 0, 0, null); + OnMessage(msg); + + return; + } + + base.OnAction(action); + } + + public override bool OnMessage(GUIMessage message) + { + if (message.Message == GUIMessage.MessageType.GUI_MSG_WINDOW_DEINIT) + { + GUIWindowManager.IsSwitchingToNewWindow = true; + + lock (this) + { + FreeResources(); + DeInitControls(); + GUILayerManager.UnRegisterLayer(this); + ... [truncated message content] |