<?xml version="1.0" encoding="macintosh"?>
<widget version="1.5" minimumVersion="2.0">
	<debug>off</debug>
<!--
	Phex Widget, based on Where is it? by Arlo Rose. 
	
	Design & Code: Arne Babenhauserheide ( http://draketo.de )
	
	This Widget lets you control the Phex p2p Filesharing program via a 
	simple and hopefully pleasing interface. 
	

	Encoding: utf-16


	Copyright (C) 2005 Arne Babenhauserheide, cc-attribution-sharealike.
-->

	<window title="Phex remote Widget">
		<name>mainWindow</name>
		<width>380</width>
		<height>380</height>
		<alignment>left</alignment>
		<visible>false</visible>
		<shadow>false</shadow>
		<onContextMenu>
			if (preferences.lastSearchItems.value != "")
			{
				var items = new Array();
				var mySearch = 0;
				myItems = preferences.lastSearchItems.value.split("*a*");
				
				items[mySearch] = new MenuItem();
				items[mySearch].title = "Recent Searches";
				items[mySearch].enabled = 0;
				mySearch++

				for (item in myItems)
				{	
					items[mySearch] = new MenuItem();
					items[mySearch].title = myItems[item];
					items[mySearch].onSelect = "searchText.data = '" + myItems[item].replace(/'/, "\\'") + "'";
					mySearch++
				}

				items[mySearch] = new MenuItem();
				items[mySearch].title = "-";
				mySearch++;
				items[mySearch] = new MenuItem();
				items[mySearch].title = "Clear Recent Searches";
				items[mySearch].onSelect = "preferences.lastSearchItems.value = '';";
			}
			else
			{
				var items = new Array();
				
				items[0] = new MenuItem();
				items[0].title = "No Recent Searches";
				items[0].enabled = 0;
			}
			
			mainWindow.contextMenuItems = items;
		</onContextMenu>
		<onFirstDisplay>
			mainWindow.hOffset = 10 + screen.availLeft;
			mainWindow.vOffset = (screen.availHeight + screen.availTop) - 106;
			if (system.platform == "windows")
			{
				preferences.macUpdate.value = 0;
				preferences.appleSupport.value = 0;
			}
		</onFirstDisplay>
	</window>
	
	<image src="Images/Search Background.png">
		<name>background</name>
		<vOffset>12</vOffset>
		<hOffset>50</hOffset>
	</image>

	<image src="Images/Viewer Background.png">
		<name>viewerBackground</name>
		<vOffset>54</vOffset>
		<hOffset>57</hOffset>
	</image>

	<image src="Images/Focus Ring.png">
		<name>focusRing</name>
		<vOffset>18</vOffset>
		<hOffset>61</hOffset>
		<opacity>0</opacity>
	</image>
	
	<image src="Images/Back.png">
		<name>backButton</name>
		<vOffset>47</vOffset>
		<hOffset>5</hOffset>
		<onMouseDown>
			backButton.src = "Images/Back Pressed.png";
			backButtonDown = 1;
		</onMouseDown>
		<onMouseEnter>
			backButtonOver = 1;
			if ( backButtonDown )
			{
				backButton.src = "Images/back Pressed.png";
			}
		</onMouseEnter>
		<onMouseExit>
			backButtonOver = 0;
			if ( backButtonDown )
			{
				backButton.src = "Images/back.png";
			}
		</onMouseExit>
		<onMouseUp>
			backButton.src = "Images/Back.png";
			backButtonDown = 0;
			if (backButtonOver)
			{
				doSwitch("back");
			}
		</onMouseUp>
	</image>
	
	<image src="Images/Forward.png">
		<name>forwardButton</name>
		<vOffset>47</vOffset>
		<hOffset>74</hOffset>
		<onMouseDown>
			forwardButton.src = "Images/Forward Pressed.png";
			forwardButtonDown = 1;
		</onMouseDown>
		<onMouseEnter>
			forwardButtonOver = 1;
			if ( forwardButtonDown )
			{
				forwardButton.src = "Images/Forward Pressed.png";
			}
		</onMouseEnter>
		<onMouseExit>
			forwardButtonOver = 0;
			if ( forwardButtonDown )
			{
				forwardButton.src = "Images/Forward.png";
			}
		</onMouseExit>
		<onMouseUp>
			forwardButton.src = "Images/Forward.png";
			forwardButtonDown = 0;
			if (forwardButtonOver)
			{
				doSwitch("forward");
			}
		</onMouseUp>
		
	</image>
	
	<image src="Images/Search.png">
		<name>searchButton</name>
		<vOffset>22</vOffset>
		<hOffset>312</hOffset>
		<onMouseDown>
			searchButton.src = "Images/Search Pressed.png";
			searchButtonDown = 1;
		</onMouseDown>
		<onMouseEnter>
			searchButtonOver = 1;
			if ( searchButtonDown )
			{
				searchButton.src = "Images/search Pressed.png";
			}
		</onMouseEnter>
		<onMouseExit>
			searchButtonOver = 0;
			if ( searchButtonDown )
			{
				searchButton.src = "Images/search.png";
			}
		</onMouseExit>
		<onMouseUp>
			searchButton.src = "Images/Search.png";
			searchButtonDown = 0;
			if (searchButtonOver)
			{
				doSearch(sites[lastSite], searchText.data);
			}
		</onMouseUp>
	</image>
	
	<textArea>
		<name>searchText</name>
		<hOffset>116</hOffset>
		<vOffset>26</vOffset>
		<lines>1</lines>
		<columns>24</columns>
		<size>12</size>
		<font>Lucida Grande</font>
		<data></data>
		<color>#000000</color>
		<scrollbar>false</scrollbar>
		<bgColor>#ffffff</bgColor>
		<bgOpacity>0</bgOpacity>
		<onKeyPress>
			if (system.event.keyString == 'Return' || system.event.keyString == 'Enter')
			{
				searchText.rejectKeyPress();
				doSearch(sites[lastSite], searchText.data);
			}
		</onKeyPress>
	</textArea>

	<textArea>
		<name>resultTitle1</name>
		<hOffset>115</hOffset>
		<vOffset>74</vOffset>
		<lines>1</lines>
		<columns>10</columns>
		<size>16</size>
		<font>GothicI</font>
		<data>Results</data>
		<color>#000000</color>
		<scrollbar>false</scrollbar>
		<bgColor>#ffffff</bgColor>
		<bgOpacity>0</bgOpacity>
		<Opacity>255</Opacity>
	</textArea>

	<textArea>
		<name>resultStatus</name>
		<hOffset>205</hOffset>
		<vOffset>68</vOffset>
		<lines>2</lines>
		<columns>15</columns>
		<size>11</size>
		<font>Lucida Grande</font>
		<data>Status</data>
		<color>#000000</color>
		<scrollbar>false</scrollbar>
		<bgColor>#ffffff</bgColor>
		<bgOpacity>0</bgOpacity>
		<Opacity>255</Opacity>
	</textArea>

	<textArea>
		<name>resultText1</name>
		<hOffset>77</hOffset>
		<vOffset>96</vOffset>
		<lines>9</lines>
		<columns>33</columns>
		<size>12</size>
		<font>Lucida Grande</font>
		<data>Name | Endung | Rating(Sources) | Größe
GnuFU | .pdf | *****(15) | 230kB
Gomp | .pdf | ***(5) | 230kB
Narf | .txt | *****(100+) | 230kB
Narf | .txt | *****(100+) | 230kB
Narf | .txt | *****(100+) | 230kB
Narf | .txt | *****(100+) | 230kB
Narf | .txt | *****(100+) | 230kB
Narf | .txt | *****(100+) | 230kB</data>
		<color>#000000</color>
		<scrollbar>false</scrollbar>
		<bgColor>#ffffff</bgColor>
		<bgOpacity>0</bgOpacity>
		<Opacity>255</Opacity>
	</textArea>

	<textArea>
		<name>resultTitle2</name>
		<hOffset>92</hOffset>
		<vOffset>244</vOffset>
		<lines>1</lines>
		<columns>10</columns>
		<size>16</size>
		<font>GothicI</font>
		<data>Downloads</data>
		<color>#000000</color>
		<scrollbar>false</scrollbar>
		<bgColor>#ffffff</bgColor>
		<bgOpacity>0</bgOpacity>
		<Opacity>255</Opacity>
	</textArea>

	<textArea>
		<name>resultText2</name>
		<hOffset>77</hOffset>
		<vOffset>265</vOffset>
		<lines>4</lines>
		<columns>33</columns>
		<size>12</size>
		<font>Lucida Grande</font>
		<data>Hier sollten die Downloads 
in vier Zeilen aufgeteilt stehen. 
Name | Anzahl Quellen | Geschw. | %
GnuFU.pdf | 3/15 | 15kB/s | 75%</data>
		<color>#000000</color>
		<scrollbar>false</scrollbar>
		<bgColor>#ffffff</bgColor>
		<bgOpacity>0</bgOpacity>
		<Opacity>255</Opacity>
	</textArea>
	
	<image src="Images/Top.png">
		<name>top</name>
	</image>
	
	
	<image src="Images/Bottom.png">
		<name>bottom</name>
		<vOffset>43</vOffset>
		<hOffset>4</hOffset>
	</image>
	
	<image src="Images/Close.png">
		<name>slideButton</name>
		<vOffset>24</vOffset>
		<hOffset>98</hOffset>
		<onMouseUp>
			doSlide();
		</onMouseUp>
	</image>

	<image src="Images/Hide Results.png">
		<name>slideTextButton</name>
		<vOffset>68</vOffset>
		<hOffset>77</hOffset>
		<onMouseUp>
			doSlideText();
		</onMouseUp>
	</image>

	<image src="Images/Download.png">
		<name>downloadButton1</name>
		<vOffset>113</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?download=1");
		</onMouseUp>
	</image>

	<image src="Images/Download.png">
		<name>downloadButton2</name>
		<vOffset>128</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?download=2");
		</onMouseUp>
	</image>

	<image src="Images/Download.png">
		<name>downloadButton3</name>
		<vOffset>143</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?download=3");
		</onMouseUp>
	</image>

	<image src="Images/Download.png">
		<name>downloadButton4</name>
		<vOffset>158</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?download=4");
		</onMouseUp>
	</image>

	<image src="Images/Download.png">
		<name>downloadButton5</name>
		<vOffset>173</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?download=5");
		</onMouseUp>
	</image>

	<image src="Images/Download.png">
		<name>downloadButton6</name>
		<vOffset>188</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?download=6");
		</onMouseUp>
	</image>

	<image src="Images/Download.png">
		<name>downloadButton7</name>
		<vOffset>203</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?download=7");
		</onMouseUp>
	</image>

	<image src="Images/Download.png">
		<name>downloadButton8</name>
		<vOffset>218</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?download=8");
		</onMouseUp>
	</image>

	<image src="Images/Abort Download.png">
		<name>downloadAbort1</name>
		<vOffset>282</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?rem-dl=1");
		</onMouseUp>
	</image>

	<image src="Images/Abort Download.png">
		<name>downloadAbort2</name>
		<vOffset>297</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?rem-dl=2");
		</onMouseUp>
	</image>

	<image src="Images/Abort Download.png">
		<name>downloadAbort3</name>
		<vOffset>312</vOffset>
		<hOffset>317</hOffset>
		<onMouseUp>
			resultStatus.data = "Request sent to Phex"; 
			resultStatus.data = runCommand("curl -f -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?rem-dl=3");
		</onMouseUp>
	</image>
	
	<image src="Images/Phex.png">
		<name>searchSite</name>
		<vOffset>19</vOffset>
		<hOffset>29</hOffset>
	</image>

	<image src="Images/Reflection.png">
		<name>reflection</name>
		<vOffset>18</vOffset>
		<hOffset>28</hOffset>
		<opacity>128</opacity>
	</image>
	
	<action trigger="onGainFocus">
		if (slideSite == "open") focusRing.opacity = 255;
	</action>
	
	<action trigger="onLoseFocus">
		focusRing.opacity = 0;
	</action>
	
	<action trigger="onLoad">
	<!--
		storedSearchCount = 10;

		var lastSite;
		var slideSite = preferences.slideState.value;
		var slideSiteText = preferences.slideText.value;
		var phexPort = preferences.phexPort.value;
		var phexAddress = preferences.phexAddress.value;
		var downloadHeader = preferences.downloadHeader.value;
		var resultHeader = preferences.resultHeader.value;
		var forwardButtonDown = 0;
		var forwardButtonOver = 0;
		var backButtonDown = 0;
		var backButtonOver = 0;
		var searchButtonDown = 0;
		var searchButtonOver = 0;
		var sites = new Array();

		function buildList()
		{
			sites = new Array();

			if ( preferences.showPhex.value == "1" )
				sites[sites.length] = "phex";
						
			if ( sites.length == 0)
			{
				sites[0] = "phex";
				preferences.showPhex.value = "1";
			}

			lastSiteOkay = false;
			for (items in sites)
			{
				if ( sites[items] == preferences.lastSiteName.value )
				{
					lastSiteOkay = true;
					newSiteNumber = items;
				}
			}
			if ( lastSiteOkay )
				preferences.lastSiteState.value = newSiteNumber;
			else
			{
				preferences.lastSiteState.value = 0;
				preferences.lastSiteName.value = sites[0];
			}
			lastSite = preferences.lastSiteState.value;
			searchSite.src = "Images/" + sites[lastSite] + ".png";
		}
		
		function doSlide()
		{
			suppressUpdates();
			
			if (slideSite == "open")
			{
				searchText.opacity = 0;
				searchButton.opacity = 0;
				focusRing.opacity = 0;
				background.src = "Images/Search Background Comp.png";
				background.slide( "left", 100, 3);
				slideButton.src = "Images/Open.png";
				slideSite = preferences.slideState.value = "closed";
				mainWindow.width = 380;
			}
			else
			{
				mainWindow.width = 380;
				background.slide( "right", 100, 3);
				searchText.opacity = 255;
				searchButton.opacity = 255;
				focusRing.opacity = 255;
				slideButton.src = "Images/Close.png";
				background.src = "Images/Search Background.png";
				slideSite = preferences.slideState.value = "open";
			}
			
			resumeUpdates();
		}
		
		function doSlideText()
		{
			suppressUpdates();
			if (slideSiteText == "open")
			{
				downloadButton1.opacity = 0; 
				downloadButton2.opacity = 0; 
				downloadButton3.opacity = 0; 
				downloadButton4.opacity = 0; 
				downloadButton5.opacity = 0; 
				downloadButton6.opacity = 0; 
				downloadButton7.opacity = 0; 
				downloadButton8.opacity = 0; 
				downloadAbort1.opacity = 0; 
				downloadAbort2.opacity = 0; 
				downloadAbort3.opacity = 0; 
				resultText1.opacity = 0;
				resultText2.opacity = 0;
				resultTitle1.opacity = 0;
				resultTitle2.opacity = 0;
				resultStatus.opacity = 0; 
				viewerBackground.slide( "upperleft", 100, 3);
				slideTextButton.src = "Images/Show Results.png";
				viewerBackground.src = "Images/Viewer Background.png";
				slideSiteText = preferences.slideText.value = "closed";
				mainWindow.width = 345;
				mainWindow.height = 120;
			}
			else
			{
				viewerBackground.src = "Images/Viewer Background.png";
				mainWindow.width = 380;
				mainWindow.height = 380;
				viewerBackground.slide( "downright", 100, 3);
				resultText1.opacity = 255;
				resultText2.opacity = 255;
				resultTitle1.opacity = 255;
				resultTitle2.opacity = 255;
				resultStatus.opacity = 255; 
				downloadButton1.opacity = 255; 
				downloadButton2.opacity = 255; 
				downloadButton3.opacity = 255; 
				downloadButton4.opacity = 255; 
				downloadButton5.opacity = 255; 
				downloadButton6.opacity = 255; 
				downloadButton7.opacity = 255; 
				downloadButton8.opacity = 255; 
				downloadAbort1.opacity = 255; 
				downloadAbort2.opacity = 255; 
				downloadAbort3.opacity = 255; 
				slideTextButton.src = "Images/Hide Results.png";
				slideSiteText = preferences.slideText.value = "open";
			}
			
			resumeUpdates();
		}
		
		
		function doSwitch(direction)
		{
			if (direction == "forward")
			{
				if (lastSite == (sites.length - 1))
					lastSite = 0;
				else
					lastSite++;
				searchSite.slide( "right", 100, 1);
				searchSite.opacity = 0;
				searchSite.slide( "left", 100, 1);
				searchSite.slide( "left", 100, 1);
				searchSite.src = "Images/" + sites[lastSite] + ".png";
				searchSite.opacity = 255;
				searchSite.slide( "right", 100, 1);
			}
			else
			{
				if (lastSite == 0)
					lastSite = (sites.length - 1);
				else
					lastSite--;
				searchSite.slide( "left", 100, 1);
				searchSite.opacity = 0;
				searchSite.slide( "right", 100, 1);
				searchSite.slide( "right", 100, 1);
				searchSite.src = "Images/" + sites[lastSite] + ".png";
				searchSite.opacity = 255;
				searchSite.slide( "left", 100, 1);
			}
				preferences.lastSiteState.value = lastSite;
				preferences.lastSiteName.value = sites[lastSite];				
		}
	
		function doSearch(where, what)
		{
			if (what == "") return;
			
			reusedTerm = false;
			mySearchList = preferences.lastSearchItems.value.split("*a*");

			for (item in mySearchList)
			{
				if ( mySearchList[item] == what )
					reusedTerm = true;
			}
			
			if ( !reusedTerm )
			{			
				if (mySearchList.length == storedSearchCount)
				{
					mySearchList.splice(0,1);
				}
				
				preferences.lastSearchItems.value = mySearchList.join("*a*") + "*a*" + what;
			}
			else
				preferences.lastSearchItems.value = mySearchList.join("*a*");

			switch (where)
			{
				case "phex": 
					resultStatus.data = runCommand("curl -s -L --connect-timeout 10 --max-time 30 "+ phexAddress + ":" + phexPort + "/remote-control/command?query=" + escape(what)); 
					resultText1.data = resultHeader + "\n" + runCommand("curl -s -L --connect-timeout 10 --max-time 30 " + phexAddress + ":" + phexPort + "/remote-control/show-text?results&amp;sort=value"); 
					if (slideSiteText == "closed")
					{
						doSlideText(); 
					}
					break; 
				
			}
		}
		
		function updateHotKey()
		{
			hkStr = preferences.shortCutKey.value;
			searchShortcut.modifier = hkStr.substr(0, hkStr.lastIndexOf('+'));
			searchShortcut.key = hkStr.substr(hkStr.lastIndexOf('+') + 1);
		}
		
		updateHotKey()
		buildList();
		
		if (slideSite == "closed")
		{
			searchText.opacity = 0;
			searchButton.opacity = 0;
			focusRing.opacity = 0;
			background.slide( "left", 100, 1);
			slideButton.src = "Images/Open.png";
			mainWindow.width = 129;
		}
		if (slideSiteText == "closed")
		{
			downloadButton1.opacity = 0; 
			downloadButton2.opacity = 0; 
			downloadButton3.opacity = 0; 
			downloadButton4.opacity = 0; 
			downloadButton5.opacity = 0; 
			downloadButton6.opacity = 0; 
			downloadButton7.opacity = 0; 
			downloadButton8.opacity = 0; 
			downloadAbort1.opacity = 0; 
			downloadAbort2.opacity = 0; 
			downloadAbort3.opacity = 0; 
			resultText1.opacity = 0;
			resultText2.opacity = 0;
			resultTitle1.opacity = 0;
			resultTitle2.opacity = 0;
			viewerBackground.slide( "upperleft", 100, 3);
			mainWindow.width = 345;
			mainWindow.height = 120;
			slideTextButton.src = "Images/Show Results.png";
		}
		
		mainWindow.visible = 1;
	//-->
	</action>

	<action trigger="onPreferencesChanged">
		buildList();
		updateHotKey();
	</action>

	<action trigger="onTimer" interval="5">
		if (slideSiteText == "open")
		{
			resultText1.data = resultHeader + "\n" + runCommand("curl -s -L --connect-timeout 10 --max-time 30 " + phexAddress + ":" + phexPort + "/remote-control/show-text?results&amp;sort=value"); 
			resultText2.data = downloadHeader + "\n" + runCommand("curl -s -L --connect-timeout 10 --max-time 30 " + phexAddress + ":" + phexPort + "/remote-control/show-text?downloads&amp;sort=progress");
		}
	</action>

    <prefGroup>
		<name>phexSettings</name>
		<title>Phex Settings</title>
		<icon>Images/Phex Icon.png</icon>
		<order>1</order>
    </prefGroup>

	<preference name="shortCutKey">
		<type>hotkey</type>
		<title>Shortcut:</title>
		<defaultValue>Control+F1</defaultValue>
		<description>Using the key combination above you can call up this Widget for easy access.</description>
	</preference>

	<preference name="lastSiteName">
		<hidden>true</hidden>
		<type>text</type>
		<defaultValue>Phex</defaultValue>
	</preference>

	<preference name="lastSiteState">
		<hidden>true</hidden>
		<type>text</type>
		<defaultValue>0</defaultValue>
	</preference>
	
	<preference name="slideState">
		<hidden>true</hidden>
		<type>text</type>
		<defaultValue>open</defaultValue>
	</preference>

	<preference name="slideText">
		<hidden>true</hidden>
		<type>text</type>
		<defaultValue>closed</defaultValue>
	</preference>

	<preference name="lastSearchItems">
		<hidden>true</hidden>
		<type>text</type>
		<defaultValue></defaultValue>
	</preference>

	<preference name="phexAddress">
		<group>phexSettings</group>
		<title>Phex Address</title>
		<hidden>false</hidden>
		<type>text</type>
		<defaultValue>http://127.0.0.1</defaultValue>
	</preference>

	<preference name="phexPort">
		<group>phexSettings</group>
		<title>Phex Port</title>
		<hidden>false</hidden>
		<type>text</type>
		<defaultValue>6346</defaultValue>
	</preference>

	<preference name="showPhex">
		<group>phexSettings</group>
		<type>checkbox</type>
		<title>Show Phex</title>
		<defaultValue>1</defaultValue>
	</preference>

	<preference name="resultHeader">
		<group>phexSettings</group>
		<title>Header for the Result-Pane</title>
		<type>text</type>
		<hidden>false</hidden>
		<defaultValue>Name | Endung | Rating(Sources) | Größe</defaultValue>
	</preference>

	<preference name="downloadHeader">
		<group>phexSettings</group>
		<title>Header for the Download-Pane</title>
		<type>text</type>
		<hidden>false</hidden>
		<defaultValue>Name | Anzahl Quellen | Geschw. | %</defaultValue>
	</preference>

	<hotkey name="searchShortcut">
		<key>F1</key>
		<modifier>Control</modifier>
		<onKeyDown>
			focusWidget();
			if (slideSite == "closed") doSlide();
		</onKeyDown>
	</hotkey>

	<about-box>
		<image>Images/About.png</image>
	</about-box>

</widget>
