Skip to content

Commit

Permalink
Added support for .net 2.0 and 4.5 the in same file
Browse files Browse the repository at this point in the history
  • Loading branch information
dipu-bd committed Jan 27, 2015
1 parent ac73645 commit c41dfdc
Show file tree
Hide file tree
Showing 90 changed files with 3,064 additions and 244 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# UVA-Arena

![UVA Arena Icon](Images/Main.png)
[![UVA Arena Icon](https://raw.githubusercontent.com/dipu-bd/UVA-Arena/master/Images/Main.png)](https://raw.githubusercontent.com/dipu-bd/UVA-Arena/master/Images/Main.png)

**UVA Arena** (c) 2014, is a windows based, non-commercial, open source utility application to make problem solving easier for the programmers. It is based on popular [UVA Online Judge](http://uva.onlinejudge.org/) and uses APIs from [uHunt](http://uhunt.felix-halim.net/).

### Download
To view a list of new features [click here](https://github.com/dipu-bd/UVA-Arena/wiki/What's-New)
##### Version 1.1
1. [For Windows XP, Vista and 7](https://github.com/dipu-bd/UVA-Arena/blob/master/Setup/.Net_2.0/UVA%20Arena%201.1.exe?raw=true)
2. [For Windows 8 and and later versions](https://github.com/dipu-bd/UVA-Arena/blob/master/Setup/.Net_4.5/UVA%20Arena%201.1.exe?raw=true)
To view a list of new features [click here](https://github.com/dipu-bd/UVA-Arena/wiki/What's-New)

1. [For All Platforms](https://github.com/dipu-bd/UVA-Arena/blob/master/Setup/All/UVA%20Arena%201.1.exe?raw=true)
2. [For Windows XP, Vista and 7](https://github.com/dipu-bd/UVA-Arena/blob/master/Setup/Net_2.0/UVA%20Arena%201.1.exe?raw=true)
3. [For Windows 8 and and later versions](https://github.com/dipu-bd/UVA-Arena/blob/master/Setup/Net_4.5/UVA%20Arena%201.1.exe?raw=true)
##### Version 1.0
1. [For Windows XP, Vista and 7](https://github.com/dipu-bd/UVA-Arena/blob/master/Setup/.Net_2.0/UVA%20Arena%201.0.exe?raw=true)
2. [For Windows 8 and and later versions](https://github.com/dipu-bd/UVA-Arena/blob/master/Setup/.Net_4.5/UVA%20Arena%201.0.exe?raw=true)
1. [For Windows XP, Vista and 7](https://github.com/dipu-bd/UVA-Arena/blob/master/Setup/Net_2.0/UVA%20Arena%201.0.exe?raw=true)
2. [For Windows 8 and and later versions](https://github.com/dipu-bd/UVA-Arena/blob/master/Setup/Net_4.5/UVA%20Arena%201.0.exe?raw=true)

### Short Info
Main target of this software is to provide a useful and informative tool to the users to help them with their programming practice. Today programming has become a very competitive field. You need to keep track of your progress daily, learn new things, and of-course solve new problems as fast as you can. Problem picking and managing your codes is a time consuming process. You can minimize this wasting of time as much as possible using **UVA Arena**.
Expand All @@ -39,7 +40,7 @@ Here is a brief list of the features that this software provides:
* Discuss and uDebug browser

#### Screen Shots
![Whole](https://raw.githubusercontent.com/dipu-bd/UVA-Arena/master/Images/wiki/_all_.png)
[![Whole](https://raw.githubusercontent.com/dipu-bd/UVA-Arena/master/Images/wiki/_all_.png)](https://raw.githubusercontent.com/dipu-bd/UVA-Arena/master/Images/wiki/_all_.png)

###Licence Information
`This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3.0 as published by the Free Software Foundation.`
Expand Down
Binary file removed Setup/.Net_2.0/UVA Arena 1.1.exe
Binary file not shown.
Binary file removed Setup/.Net_4.5/UVA Arena 1.1.exe
Binary file not shown.
Binary file added Setup/All/UVA Arena 1.1.exe
Binary file not shown.
File renamed without changes.
Binary file added Setup/Net_2.0/UVA Arena 1.1.exe
Binary file not shown.
File renamed without changes.
File renamed without changes.
Binary file added Setup/Net_4.5/UVA Arena 1.1.exe
Binary file not shown.
File renamed without changes.
33 changes: 33 additions & 0 deletions UVA Arena/UVA Arena.userprefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<Properties>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.Workbench ActiveDocument="UVA Arena/Classes/Basic/LocalDatabase.cs">
<Files>
<File FileName="UVA Arena/Elements/CODES.cs" Line="284" Column="9" />
<File FileName="UVA Arena/Classes/Utilities/Internet.cs" Line="16" Column="16" />
<File FileName="UVA Arena/Classes/Basic/LocalDatabase.cs" Line="151" Column="17" />
<File FileName="UVA Arena/Classes/Utilities/NativeMethods.cs" Line="82" Column="17" />
</Files>
<Pads>
<Pad Id="ProjectPad">
<State expanded="True">
<Node name="UVA Arena" expanded="True" selected="True">
<Node name="Classes" expanded="True">
<Node name="Basic" expanded="True" />
<Node name="Data Structures" expanded="True" />
<Node name="Utilities" expanded="True" />
</Node>
<Node name="Elements" expanded="True" />
<Node name="Extended Controls" expanded="True" />
<Node name="Forms" expanded="True">
<Node name="CategoryChange.cs" expanded="True" />
</Node>
</Node>
</State>
</Pad>
</Pads>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties>
Binary file modified UVA Arena/UVA Arena.v12.suo
Binary file not shown.
3 changes: 1 addition & 2 deletions UVA Arena/UVA Arena/Classes/Basic/LocalDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ private static void LoadOthers()
}
it.Dispose();

//set problem level
int product = problem_list.Count / 10;
//set problem level
foreach (ProblemInfo plist in problem_list)
{
int pos = sum[plist.dacu];
Expand Down
18 changes: 12 additions & 6 deletions UVA Arena/UVA Arena/Classes/Basic/RegistryAccess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ public static string MinGWCompilerPath
{
string dat = (string)GetValue("MinGW Compiler Path");
if (string.IsNullOrEmpty(dat))
dat = @"C:\Program Files\CodeBlocks\MinGW";
{
dat = @"C:\Program Files (x86)\CodeBlocks\MinGW";
if(!System.IO.Directory.Exists(dat))
dat = @"C:\Program Files\CodeBlocks\MinGW";
}
return dat;
}
set
Expand All @@ -238,8 +242,10 @@ public static string JDKCompilerPath
string dat = (string)GetValue("JDK Compiler Path");
if (string.IsNullOrEmpty(dat))
{
dat = @"C:\Program Files\Java";
if (!System.IO.Directory.Exists(dat)) return dat;
dat = @"C:\Program Files\Java";
if(!System.IO.Directory.Exists(dat))
dat = @"C:\Program Files (x86)\Java";
if (System.IO.Directory.Exists(dat))
{
var all = System.IO.Directory.GetDirectories(dat, "jdk*");
if (all.Length == 0) return dat;
Expand All @@ -263,7 +269,7 @@ public static string CCompilerOption
get
{
string dat = (string)GetValue("C Compiler Options");
if (string.IsNullOrEmpty(dat)) dat = "-Wall -ansi";
if (string.IsNullOrEmpty(dat)) dat = "-Wall -O2 -static -ansi";
return dat;
}
set
Expand All @@ -280,7 +286,7 @@ public static string CPPCompilerOption
get
{
string dat = (string)GetValue("C++ Compiler Options");
if (string.IsNullOrEmpty(dat)) dat = "-Wall";
if (string.IsNullOrEmpty(dat)) dat = "-Wall -O2 -static -std=c++11";
return dat;
}
set
Expand All @@ -300,7 +306,7 @@ public static string JavaCompilerOption
get
{
string dat = (string)GetValue("Java Compiler Options");
if (string.IsNullOrEmpty(dat)) dat = "-g";
if (string.IsNullOrEmpty(dat)) dat = "";
return dat;
}
set
Expand Down
3 changes: 2 additions & 1 deletion UVA Arena/UVA Arena/Classes/Utilities/Internet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace UVA_Arena.Internet
internal static class Downloader
{
#region Check Connections

public static bool IsInternetConnected()
{
long dwConnectionFlags = 0;
Expand Down Expand Up @@ -233,7 +234,7 @@ public static void DownloadProblemDatabase()
//problem categories
url = "http://uhunt.felix-halim.net/api/cpbook/3";
file = LocalDirectory.GetCategoryPath();
DownloadTask task = DownloadFileAsync(url, file, true, Priority.High,
DownloadFileAsync(url, file, true, Priority.High,
__DownloadProblemDatabaseProgress, __DownloadProblemCategoryCompleted, 1);
}
private static void __DownloadProblemDatabaseProgress(DownloadTask task)
Expand Down
2 changes: 1 addition & 1 deletion UVA Arena/UVA Arena/Elements/CodeCompiler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private static bool C_Compile()
string exec = Path.Combine(Path.GetDirectoryName(filename), name + ".exe");

//options
string options = RegistryAccess.CPPCompilerOption;
string options = RegistryAccess.CCompilerOption;

//run process
string arguments = string.Format("\"{0}\" \"{1}\" {2} -o \"{3}", compiler, filename, options, exec);
Expand Down
1 change: 1 addition & 0 deletions UVA Arena/UVA Arena/Extended Controls/CueTextBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public string CueText

IntPtr lparam = new IntPtr(1);
IntPtr wparam = Marshal.StringToBSTR(value);
//<----Native methods---->
UVA_Arena.NativeMethods.SendMessage(this.Handle,
UVA_Arena.NativeMethods.EM_SETCUEBANNER, lparam, wparam);
Marshal.FreeCoTaskMem(lparam);
Expand Down
2 changes: 1 addition & 1 deletion UVA Arena/UVA Arena/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: NeutralResourcesLanguageAttribute("en")]
8 changes: 4 additions & 4 deletions UVA Arena/UVA Arena/Properties/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
<!-- A list of all Windows versions that this application is designed to work with.
Windows will automatically select the most compatible environment.-->
<!-- If your application is designed to work with Windows Vista, uncomment the following supportedOS node-->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"></supportedOS>-->
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"></supportedOS>
<!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node-->
<!--<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>-->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!-- If your application is designed to work with Windows 8, uncomment the following supportedOS node-->
<!--<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"></supportedOS>-->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"></supportedOS>
<!-- If your application is designed to work with Windows 8.1, uncomment the following supportedOS node-->
<!--<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>-->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
</application>
</compatibility>
<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
Expand Down
28 changes: 10 additions & 18 deletions UVA Arena/UVA Arena/UVA Arena.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,15 @@
<SupportUrl>https://github.com/dipu-bd/UVA-Arena</SupportUrl>
<ProductName>UVA Arena</ProductName>
<PublisherName>Sudipto Chandra</PublisherName>
<ApplicationRevision>12</ApplicationRevision>
<ApplicationRevision>14</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<ProductVersion>12.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>true</Optimize>
Expand All @@ -42,7 +43,6 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<DocumentationFile>
</DocumentationFile>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
Expand Down Expand Up @@ -84,18 +84,13 @@
</PropertyGroup>
<PropertyGroup />
<PropertyGroup />
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup />
<PropertyGroup>
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup />
<PropertyGroup>
<AssemblyOriginatorKeyFile>UVAArenaKey.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup>
<DelaySign>false</DelaySign>
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Compile Include="Classes\Data Structures\CategoryNode.cs" />
Expand Down Expand Up @@ -421,25 +416,22 @@
<Reference Include="HtmlAgilityPack">
<HintPath>..\..\External References\HtmlAgilityPack.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\External References\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="ObjectListView">
<HintPath>..\..\External References\ObjectListView.DLL</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.XML" />
<Reference Include="ZedGraph">
<HintPath>..\..\External References\ZedGraph.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json">
<HintPath>..\..\External References\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\DataSources\" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
Loading

0 comments on commit c41dfdc

Please sign in to comment.