Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/05/11 21:55:55 (13 years ago)
Author:
abeham
Message:

#1614

  • updated branch from trunk
Location:
branches/GeneralizedQAP
Files:
2 deleted
4 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP

  • branches/GeneralizedQAP/HeuristicLab.MainForm.WindowsForms/3.3

    • Property svn:ignore
      •  

        old new  
        44obj
        55*.vs10x
         6Plugin.cs
  • branches/GeneralizedQAP/HeuristicLab.MainForm.WindowsForms/3.3/HeuristicLab.MainForm.WindowsForms-3.3.csproj

    r5463 r6878  
    4141    <DebugType>full</DebugType>
    4242    <Optimize>false</Optimize>
    43     <OutputPath>bin\Debug\</OutputPath>
     43    <OutputPath>$(SolutionDir)\bin\</OutputPath>
    4444    <DefineConstants>DEBUG;TRACE</DefineConstants>
    4545    <ErrorReport>prompt</ErrorReport>
     
    5050    <DebugType>pdbonly</DebugType>
    5151    <Optimize>true</Optimize>
    52     <OutputPath>bin\Release\</OutputPath>
     52    <OutputPath>$(SolutionDir)\bin\</OutputPath>
    5353    <DefineConstants>TRACE</DefineConstants>
    5454    <ErrorReport>prompt</ErrorReport>
    5555    <WarningLevel>4</WarningLevel>
    56     <DocumentationFile>bin\Release\HeuristicLab.MainForm.WindowsForms-3.3.xml</DocumentationFile>
     56    <DocumentationFile>
     57    </DocumentationFile>
    5758    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    5859  </PropertyGroup>
    5960  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
    6061    <DebugSymbols>true</DebugSymbols>
    61     <OutputPath>bin\x64\Debug\</OutputPath>
     62    <OutputPath>$(SolutionDir)\bin\</OutputPath>
    6263    <DefineConstants>DEBUG;TRACE</DefineConstants>
    6364    <DebugType>full</DebugType>
     
    6768  </PropertyGroup>
    6869  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
    69     <OutputPath>bin\x64\Release\</OutputPath>
     70    <OutputPath>$(SolutionDir)\bin\</OutputPath>
    7071    <DefineConstants>TRACE</DefineConstants>
    7172    <Optimize>true</Optimize>
     
    7374    <PlatformTarget>x64</PlatformTarget>
    7475    <ErrorReport>prompt</ErrorReport>
    75     <DocumentationFile>bin\x64\Release\HeuristicLab.MainForm.WindowsForms-3.3.xml</DocumentationFile>
     76    <DocumentationFile>
     77    </DocumentationFile>
    7678    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    7779  </PropertyGroup>
    7880  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
    7981    <DebugSymbols>true</DebugSymbols>
    80     <OutputPath>bin\x86\Debug\</OutputPath>
     82    <OutputPath>$(SolutionDir)\bin\</OutputPath>
    8183    <DefineConstants>DEBUG;TRACE</DefineConstants>
    8284    <DebugType>full</DebugType>
     
    8688  </PropertyGroup>
    8789  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
    88     <OutputPath>bin\x86\Release\</OutputPath>
     90    <OutputPath>$(SolutionDir)\bin\</OutputPath>
    8991    <DefineConstants>TRACE</DefineConstants>
    9092    <Optimize>true</Optimize>
     
    9294    <PlatformTarget>x86</PlatformTarget>
    9395    <ErrorReport>prompt</ErrorReport>
    94     <DocumentationFile>bin\x86\Release\HeuristicLab.MainForm.WindowsForms-3.3.xml</DocumentationFile>
     96    <DocumentationFile>
     97    </DocumentationFile>
    9598    <CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
    9699  </PropertyGroup>
     
    110113    <Reference Include="System.Data" />
    111114    <Reference Include="System.Xml" />
     115    <Reference Include="WeifenLuo.WinFormsUI.Docking-2.3.1, Version=2.3.1.0, Culture=neutral, PublicKeyToken=ba48961d6f65dcec, processorArchitecture=MSIL">
     116      <HintPath>..\..\bin\WeifenLuo.WinFormsUI.Docking-2.3.1.dll</HintPath>
     117    </Reference>
    112118  </ItemGroup>
    113119  <ItemGroup>
     
    119125      <DependentUpon>DragOverTabControl.cs</DependentUpon>
    120126    </Compile>
     127    <Compile Include="Plugin.cs" />
    121128    <Compile Include="Views\AsynchronousContentView.cs">
    122129      <SubType>UserControl</SubType>
     
    131138      <DependentUpon>ContentView.cs</DependentUpon>
    132139    </Compile>
    133     <None Include="HeuristicLabMainFormWindowsFormsPlugin.cs.frame" />
     140    <None Include="Plugin.cs.frame" />
    134141    <Compile Include="Controls\ControlExtensions.cs" />
    135142    <Compile Include="MainForms\DockForm.cs">
     
    157164      <DependentUpon>DocumentForm.cs</DependentUpon>
    158165    </Compile>
    159     <Compile Include="HeuristicLabMainFormWindowsFormsPlugin.cs" />
    160166    <Compile Include="MainForms\MainForm.cs">
    161167      <SubType>Form</SubType>
     
    200206  <ItemGroup>
    201207    <None Include="HeuristicLab.snk" />
    202     <None Include="Properties\AssemblyInfo.frame" />
     208    <None Include="Properties\AssemblyInfo.cs.frame" />
    203209  </ItemGroup>
    204210  <ItemGroup>
     
    206212      <Project>{0E27A536-1C4A-4624-A65E-DC4F4F23E3E1}</Project>
    207213      <Name>HeuristicLab.Common.Resources-3.3</Name>
     214      <Private>False</Private>
    208215    </ProjectReference>
    209216    <ProjectReference Include="..\..\HeuristicLab.Common\3.3\HeuristicLab.Common-3.3.csproj">
    210217      <Project>{A9AD58B9-3EF9-4CC1-97E5-8D909039FF5C}</Project>
    211218      <Name>HeuristicLab.Common-3.3</Name>
    212     </ProjectReference>
    213     <ProjectReference Include="..\..\HeuristicLab.ExtLibs\HeuristicLab.WinFormsUI\2.3.1\HeuristicLab.WinFormsUI-2.3.1\HeuristicLab.WinFormsUI-2.3.1.csproj">
    214       <Project>{678E2145-8152-4E19-9646-07D439D00301}</Project>
    215       <Name>HeuristicLab.WinFormsUI-2.3.1 %28HeuristicLab.ExtLibs\HeuristicLab.WinFormsUI\HeuristicLab.WinFormsUI-2.3.1\HeuristicLab.WinFormsUI-2.3.1%29</Name>
    216     </ProjectReference>
    217     <ProjectReference Include="..\..\HeuristicLab.ExtLibs\HeuristicLab.WinFormsUI\2.3.1\WinFormsUI-2.3.1\WinFormsUI-2.3.1.csproj">
    218       <Project>{1849A92E-DCFC-4E05-BB0A-D7B7A3DAFCFB}</Project>
    219       <Name>WinFormsUI-2.3.1</Name>
     219      <Private>False</Private>
    220220    </ProjectReference>
    221221    <ProjectReference Include="..\..\HeuristicLab.MainForm\3.3\HeuristicLab.MainForm-3.3.csproj">
    222222      <Project>{3BD61258-31DA-4B09-89C0-4F71FEF5F05A}</Project>
    223223      <Name>HeuristicLab.MainForm-3.3</Name>
     224      <Private>False</Private>
    224225    </ProjectReference>
    225226    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\3.3\HeuristicLab.PluginInfrastructure-3.3.csproj">
    226227      <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
    227228      <Name>HeuristicLab.PluginInfrastructure-3.3</Name>
     229      <Private>False</Private>
    228230    </ProjectReference>
    229231  </ItemGroup>
     
    260262
    261263call PreBuildEvent.cmd
    262 SubWCRev "%25ProjectDir%25\" "%25ProjectDir%25\HeuristicLabMainFormWindowsFormsPlugin.cs.frame" "%25ProjectDir%25\HeuristicLabMainFormWindowsFormsPlugin.cs"</PreBuildEvent>
     264</PreBuildEvent>
    263265  </PropertyGroup>
    264266</Project>
  • branches/GeneralizedQAP/HeuristicLab.MainForm.WindowsForms/3.3/MainForms/MainForm.cs

    r5463 r6878  
    3131  public partial class MainForm : Form, IMainForm {
    3232    private bool initialized;
     33    private int appStartingCursors;
     34    private int waitingCursors;
    3335
    3436    protected MainForm()
     
    3941      this.initialized = false;
    4042      this.showContentInViewHost = false;
     43      appStartingCursors = 0;
     44      waitingCursors = 0;
    4145    }
    4246
     
    447451    }
    448452    #endregion
     453
     454    #region Cursor Handling
     455    public void SetAppStartingCursor() {
     456      if (InvokeRequired)
     457        Invoke(new Action(SetAppStartingCursor));
     458      else {
     459        appStartingCursors++;
     460        SetCursor();
     461      }
     462    }
     463    public void ResetAppStartingCursor() {
     464      if (InvokeRequired)
     465        Invoke(new Action(ResetAppStartingCursor));
     466      else {
     467        appStartingCursors--;
     468        SetCursor();
     469      }
     470    }
     471    public void SetWaitCursor() {
     472      if (InvokeRequired)
     473        Invoke(new Action(SetWaitCursor));
     474      else {
     475        waitingCursors++;
     476        SetCursor();
     477      }
     478    }
     479    public void ResetWaitCursor() {
     480      if (InvokeRequired)
     481        Invoke(new Action(ResetWaitCursor));
     482      else {
     483        waitingCursors--;
     484        SetCursor();
     485      }
     486    }
     487    private void SetCursor() {
     488      if (waitingCursors > 0) Cursor = Cursors.WaitCursor;
     489      else if (appStartingCursors > 0) Cursor = Cursors.AppStarting;
     490      else Cursor = Cursors.Default;
     491    }
     492    #endregion
    449493  }
    450494}
Note: See TracChangeset for help on using the changeset viewer.