From: <ze...@us...> - 2007-06-24 15:31:34
|
Revision: 621 http://mp-plugins.svn.sourceforge.net/mp-plugins/?rev=621&view=rev Author: zebons Date: 2007-06-24 08:31:20 -0700 (Sun, 24 Jun 2007) Log Message: ----------- Modified Paths: -------------- trunk/plugins/My Refresh/MyRefresh.cs trunk/plugins/My Refresh/MyRefresh.csproj Added Paths: ----------- trunk/plugins/My Refresh/MyRefresh.sln Modified: trunk/plugins/My Refresh/MyRefresh.cs =================================================================== --- trunk/plugins/My Refresh/MyRefresh.cs 2007-06-24 12:54:41 UTC (rev 620) +++ trunk/plugins/My Refresh/MyRefresh.cs 2007-06-24 15:31:20 UTC (rev 621) @@ -62,7 +62,7 @@ { this.Refresh(false); } - if ((action.wID == Action.ActionType.ACTION_KEY_PRESSED) && (this._refreshHotkeys.IndexOf('a', 0) != -1)) + if ((action.wID == Action.ActionType.ACTION_KEY_PRESSED) && (this._refreshHotkeys.IndexOf('e', 0) != -1)) { this.Refresh(true); } @@ -91,12 +91,21 @@ } if (refreshEverything) { - GUIFontManager.LoadFonts(@"skin\" + GUIGraphicsContext.Skin + @"\fonts.xml"); + GUIFontManager.LoadFonts(GUIGraphicsContext.Skin + @"\fonts.xml"); GUIFontManager.InitializeDeviceObjects(); } GUIControlFactory.ClearReferences(); GUIControlFactory.LoadReferences(GUIGraphicsContext.Skin + @"\references.xml"); - GUIWindowManager.OnResize(); + if (refreshEverything) + { + using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings(Config.GetFile(Config.Dir.Config, "MediaPortal.xml"))) + { + bool autosize = xmlreader.GetValueAsBool("general", "autosize", true); + if (autosize && !GUIGraphicsContext.Fullscreen) + Form.ActiveForm.Size = new System.Drawing.Size(GUIGraphicsContext.SkinSize.Width, GUIGraphicsContext.SkinSize.Height); + } + } + GUIWindowManager.OnResize(); GUIWindow window = GUIWindowManager.GetWindow(GUIWindowManager.ActiveWindow); if (GUIWindowManager.IsRouted) { Modified: trunk/plugins/My Refresh/MyRefresh.csproj =================================================================== --- trunk/plugins/My Refresh/MyRefresh.csproj 2007-06-24 12:54:41 UTC (rev 620) +++ trunk/plugins/My Refresh/MyRefresh.csproj 2007-06-24 15:31:20 UTC (rev 621) @@ -94,23 +94,29 @@ <ErrorReport>prompt</ErrorReport> </PropertyGroup> <ItemGroup> + <Reference Include="Core, Version=0.2.2.0, Culture=neutral, processorArchitecture=x86" /> <Reference Include="System" /> + <Reference Include="System.Data" /> + <Reference Include="System.Drawing" /> <Reference Include="System.Windows.Forms" /> + <Reference Include="Utils, Version=2.1.2.0, Culture=neutral, processorArchitecture=x86" /> </ItemGroup> <ItemGroup> <Compile Include="MyRefresh.cs"> <SubType>Code</SubType> </Compile> + <Compile Include="MyRefreshSetup.cs"> + <SubType>Form</SubType> + </Compile> + <Compile Include="MyRefreshSetup.Designer.cs"> + <DependentUpon>MyRefreshSetup.cs</DependentUpon> + </Compile> </ItemGroup> <ItemGroup> - <ProjectReference Include="..\..\..\Documents\Coding\Mediaportal Check\Core\Core.csproj"> - <Project>{02FFFC1F-2555-4B99-8B01-3432D0673855}</Project> - <Name>Core</Name> - </ProjectReference> - <ProjectReference Include="..\..\..\Documents\Coding\Mediaportal Check\Utils\Utils.csproj"> - <Project>{6DA0E4DF-6230-4642-98B5-E690BB6942BB}</Project> - <Name>Utils</Name> - </ProjectReference> + <EmbeddedResource Include="MyRefreshSetup.resx"> + <DependentUpon>MyRefreshSetup.cs</DependentUpon> + <SubType>Designer</SubType> + </EmbeddedResource> </ItemGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <PropertyGroup> Added: trunk/plugins/My Refresh/MyRefresh.sln =================================================================== --- trunk/plugins/My Refresh/MyRefresh.sln (rev 0) +++ trunk/plugins/My Refresh/MyRefresh.sln 2007-06-24 15:31:20 UTC (rev 621) @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual C# Express 2005 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyRefresh", "MyRefresh.csproj", "{0F2811BE-6B64-42B6-B374-B4ED04648825}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {0F2811BE-6B64-42B6-B374-B4ED04648825}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {0F2811BE-6B64-42B6-B374-B4ED04648825}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0F2811BE-6B64-42B6-B374-B4ED04648825}.Debug|x86.ActiveCfg = Debug|x86 + {0F2811BE-6B64-42B6-B374-B4ED04648825}.Debug|x86.Build.0 = Debug|x86 + {0F2811BE-6B64-42B6-B374-B4ED04648825}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0F2811BE-6B64-42B6-B374-B4ED04648825}.Release|Any CPU.Build.0 = Release|Any CPU + {0F2811BE-6B64-42B6-B374-B4ED04648825}.Release|x86.ActiveCfg = Release|x86 + {0F2811BE-6B64-42B6-B374-B4ED04648825}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |