Merge lp:~mandel/ubuntuone-windows-installer/systray_icon_core into lp:ubuntuone-windows-installer/beta

Proposed by Manuel de la Peña
Status: Merged
Approved by: Stuart Colville
Approved revision: 46
Merged at revision: 42
Proposed branch: lp:~mandel/ubuntuone-windows-installer/systray_icon_core
Merge into: lp:ubuntuone-windows-installer/beta
Diff against target: 2225 lines (+1810/-94)
36 files modified
.bzrignore (+4/-0)
lib/WPFContrib/license.txt (+56/-0)
src/Canonical.UbuntuOne.Client.Test/Canonical.UbuntuOne.Client.Test.csproj (+72/-0)
src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs (+49/-0)
src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs (+53/-0)
src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs (+54/-0)
src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs (+50/-0)
src/Canonical.UbuntuOne.Client.Test/Properties/AssemblyInfo.cs (+36/-0)
src/Canonical.UbuntuOne.Client.Views/App.xaml (+1/-1)
src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj (+88/-10)
src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml (+72/-0)
src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs (+34/-0)
src/Canonical.UbuntuOne.Client.Views/Page1.xaml (+0/-8)
src/Canonical.UbuntuOne.Client.Views/Page1.xaml.cs (+0/-27)
src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml (+8/-0)
src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs (+26/-0)
src/Canonical.UbuntuOne.Client.Views/Properties/AssemblyInfo.cs (+1/-0)
src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs (+126/-0)
src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx (+141/-0)
src/Canonical.UbuntuOne.Client/Canonical.UbuntuOne.Client.csproj (+62/-44)
src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs (+80/-0)
src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs (+52/-0)
src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs (+89/-0)
src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs (+73/-0)
src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs (+55/-0)
src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs (+62/-0)
src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialog.cs (+30/-0)
src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs (+0/-4)
src/UbuntuOne.sln (+24/-0)
src/UbuntuOneClient/Program.cs (+36/-0)
src/UbuntuOneClient/Properties/AssemblyInfo.cs (+55/-0)
src/UbuntuOneClient/Properties/Resources.Designer.cs (+71/-0)
src/UbuntuOneClient/Properties/Resources.resx (+117/-0)
src/UbuntuOneClient/Properties/Settings.Designer.cs (+30/-0)
src/UbuntuOneClient/Properties/Settings.settings (+7/-0)
src/UbuntuOneClient/UbuntuOneClient.csproj (+96/-0)
To merge this branch: bzr merge lp:~mandel/ubuntuone-windows-installer/systray_icon_core
Reviewer Review Type Date Requested Status
Stuart Colville (community) Approve
Vincenzo Di Somma (community) Approve
Review via email: mp+31059@code.launchpad.net

Description of the change

Provides the initial code for the icon systray. All unit test most pass. If you want to see the systray icon working open the project with vs 2008 and hit F5.

To post a comment you must log in.
Revision history for this message
Vincenzo Di Somma (vds) :
review: Approve
Revision history for this message
Stuart Colville (muffinresearch) wrote :

Works with updated installer.

review: Approve
Revision history for this message
Manuel de la Peña (mandel) wrote :

> Works with updated installer.

I've added info in the wiki[1] regarding the issue that Stuard found.

[1] https://wiki.ubuntu.com/UbuntuOne/Contribute/WindowsTesting

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.bzrignore'
--- .bzrignore 2010-07-26 16:01:28 +0000
+++ .bzrignore 2010-07-27 16:18:46 +0000
@@ -48,3 +48,7 @@
48bin48bin
49obj49obj
50./bin50./bin
51./bin
52./obj
53./bin
54./obj
5155
=== added directory 'lib/WPFContrib'
=== added file 'lib/WPFContrib/AvalonLibrary.dll'
52Binary files lib/WPFContrib/AvalonLibrary.dll 1970-01-01 00:00:00 +0000 and lib/WPFContrib/AvalonLibrary.dll 2010-07-27 16:18:46 +0000 differ56Binary files lib/WPFContrib/AvalonLibrary.dll 1970-01-01 00:00:00 +0000 and lib/WPFContrib/AvalonLibrary.dll 2010-07-27 16:18:46 +0000 differ
=== added file 'lib/WPFContrib/license.txt'
--- lib/WPFContrib/license.txt 1970-01-01 00:00:00 +0000
+++ lib/WPFContrib/license.txt 2010-07-27 16:18:46 +0000
@@ -0,0 +1,56 @@
1Microsoft Permissive License (Ms-PL)
2
3This license governs use of the accompanying software. If you use the software,
4you accept this license. If you do not accept the license, do not use the software.
5
61. Definitions
7
8The terms "reproduce," "reproduction," "derivative works," and "distribution"
9have the same meaning here as under U.S. copyright law.
10
11A "contribution" is the original software, or any additions or changes to
12the software.
13
14A "contributor" is any person that distributes its contribution under this
15license.
16
17"Licensed patents" are a contributor's patent claims that read directly on
18its contribution.
19
202. Grant of Rights
21
22(A) Copyright Grant- Subject to the terms of this license, including the
23license conditions and limitations in section 3, each contributor grants
24you a non-exclusive, worldwide, royalty-free copyright license to reproduce
25its contribution, prepare derivative works of its contribution, and distribute
26its contribution or any derivative works that you create.
27
28(B) Patent Grant- Subject to the terms of this license, including the license
29conditions and limitations in section 3, each contributor grants you a non-exclusive,
30worldwide, royalty-free license under its licensed patents to make, have made, use,
31sell, offer for sale, import, and/or otherwise dispose of its contribution in the
32software or derivative works of the contribution in the software.
33
343. Conditions and Limitations
35
36(A) No Trademark License- This license does not grant you rights to use any
37contributors' name, logo, or trademarks.
38
39(B) If you bring a patent claim against any contributor over patents that you
40claim are infringed by the software, your patent license from such contributor
41to the software ends automatically.
42
43(C) If you distribute any portion of the software, you must retain all copyright,
44patent, trademark, and attribution notices that are present in the software.
45
46(D) If you distribute any portion of the software in source code form, you may do
47so only under this license by including a complete copy of this license with your
48distribution. If you distribute any portion of the software in compiled or object
49code form, you may only do so under a license that complies with this license.
50
51(E) The software is licensed "as-is." You bear the risk of using it. The
52contributors give no express warranties, guarantees or conditions. You may
53have additional consumer rights under your local laws which this license cannot
54change. To the extent permitted under your local laws, the contributors exclude
55the implied warranties of merchantability, fitness for a particular purpose and
56non-infringement.
0\ No newline at end of file57\ No newline at end of file
158
=== added directory 'src/Canonical.UbuntuOne.Client.Test'
=== added file 'src/Canonical.UbuntuOne.Client.Test/Canonical.UbuntuOne.Client.Test.csproj'
--- src/Canonical.UbuntuOne.Client.Test/Canonical.UbuntuOne.Client.Test.csproj 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Canonical.UbuntuOne.Client.Test.csproj 2010-07-27 16:18:46 +0000
@@ -0,0 +1,72 @@
1<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup>
4 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6 <ProductVersion>9.0.21022</ProductVersion>
7 <SchemaVersion>2.0</SchemaVersion>
8 <ProjectGuid>{2947FCA2-D6FC-4509-83F8-64A87447EBD3}</ProjectGuid>
9 <OutputType>Library</OutputType>
10 <AppDesignerFolder>Properties</AppDesignerFolder>
11 <RootNamespace>Canonical.UbuntuOne.Client.Test</RootNamespace>
12 <AssemblyName>Canonical.UbuntuOne.Client.Test</AssemblyName>
13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
14 <FileAlignment>512</FileAlignment>
15 </PropertyGroup>
16 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17 <DebugSymbols>true</DebugSymbols>
18 <DebugType>full</DebugType>
19 <Optimize>false</Optimize>
20 <OutputPath>bin\Debug\</OutputPath>
21 <DefineConstants>DEBUG;TRACE</DefineConstants>
22 <ErrorReport>prompt</ErrorReport>
23 <WarningLevel>4</WarningLevel>
24 </PropertyGroup>
25 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26 <DebugType>pdbonly</DebugType>
27 <Optimize>true</Optimize>
28 <OutputPath>bin\Release\</OutputPath>
29 <DefineConstants>TRACE</DefineConstants>
30 <ErrorReport>prompt</ErrorReport>
31 <WarningLevel>4</WarningLevel>
32 </PropertyGroup>
33 <ItemGroup>
34 <Reference Include="nunit.framework, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
35 <SpecificVersion>False</SpecificVersion>
36 <HintPath>..\..\lib\Nunit\nunit.framework.dll</HintPath>
37 </Reference>
38 <Reference Include="System" />
39 <Reference Include="System.Core">
40 <RequiredTargetFramework>3.5</RequiredTargetFramework>
41 </Reference>
42 <Reference Include="System.Xml.Linq">
43 <RequiredTargetFramework>3.5</RequiredTargetFramework>
44 </Reference>
45 <Reference Include="System.Data.DataSetExtensions">
46 <RequiredTargetFramework>3.5</RequiredTargetFramework>
47 </Reference>
48 <Reference Include="System.Data" />
49 <Reference Include="System.Xml" />
50 </ItemGroup>
51 <ItemGroup>
52 <Compile Include="Notification\NotificationEventArgsFixture.cs" />
53 <Compile Include="Notification\OperationCompletenessEventArgsFixture.cs" />
54 <Compile Include="Notification\RecentlyModifiedEventArgsFixture.cs" />
55 <Compile Include="Notification\StateEventArgsFixture.cs" />
56 <Compile Include="Properties\AssemblyInfo.cs" />
57 </ItemGroup>
58 <ItemGroup>
59 <ProjectReference Include="..\Canonical.UbuntuOne.Client\Canonical.UbuntuOne.Client.csproj">
60 <Project>{7467483A-D6D5-4362-8DF4-57A7254EB569}</Project>
61 <Name>Canonical.UbuntuOne.Client</Name>
62 </ProjectReference>
63 </ItemGroup>
64 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
65 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
66 Other similar extension points exist, see Microsoft.Common.targets.
67 <Target Name="BeforeBuild">
68 </Target>
69 <Target Name="AfterBuild">
70 </Target>
71 -->
72</Project>
0\ No newline at end of file73\ No newline at end of file
174
=== added directory 'src/Canonical.UbuntuOne.Client.Test/Notification'
=== added file 'src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs'
--- src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,49 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using Canonical.UbuntuOne.Client.Notification;
21using NUnit.Framework;
22
23namespace Canonical.UbuntuOne.Client.Test.Notification
24{
25 [TestFixture]
26 public class NotificationEventArgsFixture
27 {
28
29 #region Tests
30
31 [Test]
32 public void EmptyContructorTest()
33 {
34 var args = new NotificationEventArgs();
35 Assert.AreEqual("", args.Message);
36 }
37
38 [TestCase("Message 1")]
39 [TestCase("Message 2")]
40 [TestCase("Message 3")]
41 public void MessageConstrutorTest(string message)
42 {
43 var args = new NotificationEventArgs(message);
44 Assert.AreEqual(message, args.Message);
45 }
46
47 #endregion
48 }
49}
050
=== added file 'src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs'
--- src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,53 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using Canonical.UbuntuOne.Client.Notification;
21using NUnit.Framework;
22
23namespace Canonical.UbuntuOne.Client.Test.Notification
24{
25 [TestFixture]
26 public class OperationCompletenessEventArgsFixture
27 {
28
29 #region Tests
30
31 [Test]
32 public void EmptyConstructorTest()
33 {
34 var args = new OperationCompletenessEventArgs();
35 Assert.AreEqual(0, args.Percentage);
36 Assert.AreEqual(0, args.Speed);
37 Assert.AreEqual(OperationCompletenessEventArgs.SpeedUnitsEnum.MB, args.SpeedUnits);
38 }
39
40 [TestCase(1, 3.4, OperationCompletenessEventArgs.SpeedUnitsEnum.MB)]
41 [TestCase(2323, 0.0, OperationCompletenessEventArgs.SpeedUnitsEnum.MB)]
42 [TestCase(45, 23.4, OperationCompletenessEventArgs.SpeedUnitsEnum.KB)]
43 public void ParametersConstructorTest(int percentage, double speed, OperationCompletenessEventArgs.SpeedUnitsEnum unitsEnum)
44 {
45 var args = new OperationCompletenessEventArgs(percentage, speed, unitsEnum);
46 Assert.AreEqual(percentage, args.Percentage);
47 Assert.AreEqual(speed, args.Speed);
48 Assert.AreEqual(unitsEnum, args.SpeedUnits);
49 }
50
51 #endregion
52 }
53}
054
=== added file 'src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs'
--- src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,54 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System.Collections.Generic;
21using Canonical.UbuntuOne.Client.Notification;
22using NUnit.Framework;
23
24namespace Canonical.UbuntuOne.Client.Test.Notification
25{
26 [TestFixture]
27 public class RecentlyModifiedEventArgsFixture
28 {
29 #region Tests
30
31 [Test]
32 public void EmptyConstructorTest()
33 {
34 var args = new RecentlyModifiedEventArgs();
35 Assert.IsNotNull(args.RecentlyModifiedFiles);
36 Assert.AreEqual(0, args.RecentlyModifiedFiles.Count);
37 }
38
39 [Test]
40 public void ParametersConstructorTest()
41 {
42 var list = new List<string>
43 {
44 "fistPath",
45 "secondPath",
46 "thridPath"
47 };
48 var args = new RecentlyModifiedEventArgs(list);
49 Assert.AreSame(list, args.RecentlyModifiedFiles);
50 }
51
52 #endregion
53 }
54}
055
=== added file 'src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs'
--- src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,50 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using Canonical.UbuntuOne.Client.Notification;
21using NUnit.Framework;
22
23namespace Canonical.UbuntuOne.Client.Test.Notification
24{
25 [TestFixture]
26 public class StateEventArgsFixture
27 {
28 #region Tests
29
30 [Test]
31 public void EmptyConstrcutorTest()
32 {
33 var args = new StateEventArgs();
34 Assert.AreEqual(StateEventArgs.StateEnum.UP_TO_DATE, args.State);
35 }
36
37 [TestCase(StateEventArgs.StateEnum.ERROR)]
38 [TestCase(StateEventArgs.StateEnum.OUT_OF_SYNC)]
39 [TestCase(StateEventArgs.StateEnum.SYNC_IN_PROGRESS)]
40 [TestCase(StateEventArgs.StateEnum.UP_TO_DATE)]
41 public void ParametersConstructor(StateEventArgs.StateEnum state)
42 {
43 var args = new StateEventArgs(state);
44 Assert.AreEqual(state, args.State);
45 }
46
47 #endregion
48
49 }
50}
051
=== added directory 'src/Canonical.UbuntuOne.Client.Test/Properties'
=== added file 'src/Canonical.UbuntuOne.Client.Test/Properties/AssemblyInfo.cs'
--- src/Canonical.UbuntuOne.Client.Test/Properties/AssemblyInfo.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Test/Properties/AssemblyInfo.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,36 @@
1using System.Reflection;
2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
4
5// General Information about an assembly is controlled through the following
6// set of attributes. Change these attribute values to modify the information
7// associated with an assembly.
8[assembly: AssemblyTitle("Canonical.UbuntuOne.Client.Test")]
9[assembly: AssemblyDescription("")]
10[assembly: AssemblyConfiguration("")]
11[assembly: AssemblyCompany("")]
12[assembly: AssemblyProduct("Canonical.UbuntuOne.Client.Test")]
13[assembly: AssemblyCopyright("Copyright © 2010")]
14[assembly: AssemblyTrademark("")]
15[assembly: AssemblyCulture("")]
16
17// Setting ComVisible to false makes the types in this assembly not visible
18// to COM components. If you need to access a type in this assembly from
19// COM, set the ComVisible attribute to true on that type.
20[assembly: ComVisible(false)]
21
22// The following GUID is for the ID of the typelib if this project is exposed to COM
23[assembly: Guid("993407a9-fb9c-4678-bd7c-5c2fdf60eb51")]
24
25// Version information for an assembly consists of the following four values:
26//
27// Major Version
28// Minor Version
29// Build Number
30// Revision
31//
32// You can specify all the values or you can default the Build and Revision Numbers
33// by using the '*' as shown below:
34// [assembly: AssemblyVersion("1.0.*")]
35[assembly: AssemblyVersion("1.0.0.0")]
36[assembly: AssemblyFileVersion("1.0.0.0")]
037
=== modified file 'src/Canonical.UbuntuOne.Client.Views/App.xaml'
--- src/Canonical.UbuntuOne.Client.Views/App.xaml 2010-07-13 09:52:05 +0000
+++ src/Canonical.UbuntuOne.Client.Views/App.xaml 2010-07-27 16:18:46 +0000
@@ -1,7 +1,7 @@
1<Application x:Class="Canonical.UbuntuOne.Client.Views.App"1<Application x:Class="Canonical.UbuntuOne.Client.Views.App"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 StartupUri="Page1.xaml">4 StartupUri="PreferencesDialog.xaml">
5 <Application.Resources>5 <Application.Resources>
6 6
7 </Application.Resources>7 </Application.Resources>
88
=== modified file 'src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj'
--- src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj 2010-07-13 15:37:56 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj 2010-07-27 16:18:46 +0000
@@ -14,15 +14,29 @@
14 <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>14 <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
15 <WarningLevel>4</WarningLevel>15 <WarningLevel>4</WarningLevel>
16 <EnableSecurityDebugging>true</EnableSecurityDebugging>16 <EnableSecurityDebugging>true</EnableSecurityDebugging>
17 <Install>False</Install>
18 <StartAction>URL</StartAction>17 <StartAction>URL</StartAction>
19 <HostInBrowser>true</HostInBrowser>18 <HostInBrowser>true</HostInBrowser>
20 <BootstrapperEnabled>false</BootstrapperEnabled>
21 <TargetZone>Internet</TargetZone>19 <TargetZone>Internet</TargetZone>
22 <GenerateManifests>true</GenerateManifests>20 <GenerateManifests>true</GenerateManifests>
23 <SignManifests>True</SignManifests>21 <SignManifests>True</SignManifests>
24 <ManifestKeyFile>Canonical.UbuntuOne.Client.Views_TemporaryKey.pfx</ManifestKeyFile>22 <ManifestKeyFile>Canonical.UbuntuOne.Client.Views_TemporaryKey.pfx</ManifestKeyFile>
25 <ManifestCertificateThumbprint>C01A25E9B7EE9BDD2B4107D4536464D937953964</ManifestCertificateThumbprint>23 <ManifestCertificateThumbprint>C01A25E9B7EE9BDD2B4107D4536464D937953964</ManifestCertificateThumbprint>
24 <StartupObject>Canonical.UbuntuOne.Client.Views.App</StartupObject>
25 <PublishUrl>publish\</PublishUrl>
26 <Install>false</Install>
27 <InstallFrom>Disk</InstallFrom>
28 <UpdateEnabled>false</UpdateEnabled>
29 <UpdateMode>Foreground</UpdateMode>
30 <UpdateInterval>7</UpdateInterval>
31 <UpdateIntervalUnits>Days</UpdateIntervalUnits>
32 <UpdatePeriodically>false</UpdatePeriodically>
33 <UpdateRequired>false</UpdateRequired>
34 <MapFileExtensions>true</MapFileExtensions>
35 <ApplicationRevision>0</ApplicationRevision>
36 <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
37 <IsWebBootstrapper>false</IsWebBootstrapper>
38 <UseApplicationTrust>false</UseApplicationTrust>
39 <BootstrapperEnabled>false</BootstrapperEnabled>
26 </PropertyGroup>40 </PropertyGroup>
27 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">41 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
28 <DebugSymbols>true</DebugSymbols>42 <DebugSymbols>true</DebugSymbols>
@@ -42,10 +56,15 @@
42 <WarningLevel>4</WarningLevel>56 <WarningLevel>4</WarningLevel>
43 </PropertyGroup>57 </PropertyGroup>
44 <ItemGroup>58 <ItemGroup>
59 <Reference Include="AvalonLibrary, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b5d01516e28df45f, processorArchitecture=MSIL">
60 <SpecificVersion>False</SpecificVersion>
61 <HintPath>..\..\lib\WPFContrib\AvalonLibrary.dll</HintPath>
62 </Reference>
45 <Reference Include="System" />63 <Reference Include="System" />
46 <Reference Include="System.Core">64 <Reference Include="System.Core">
47 <RequiredTargetFramework>3.5</RequiredTargetFramework>65 <RequiredTargetFramework>3.5</RequiredTargetFramework>
48 </Reference>66 </Reference>
67 <Reference Include="System.Drawing" />
49 <Reference Include="System.Xml.Linq">68 <Reference Include="System.Xml.Linq">
50 <RequiredTargetFramework>3.5</RequiredTargetFramework>69 <RequiredTargetFramework>3.5</RequiredTargetFramework>
51 </Reference>70 </Reference>
@@ -54,29 +73,45 @@
54 </Reference>73 </Reference>
55 <Reference Include="System.Data" />74 <Reference Include="System.Data" />
56 <Reference Include="System.Xml" />75 <Reference Include="System.Xml" />
57 <Reference Include="WindowsBase" />76 <Reference Include="UIAutomationProvider">
58 <Reference Include="PresentationCore" />77 <RequiredTargetFramework>3.0</RequiredTargetFramework>
59 <Reference Include="PresentationFramework" />78 </Reference>
79 <Reference Include="WindowsBase">
80 <RequiredTargetFramework>3.0</RequiredTargetFramework>
81 </Reference>
82 <Reference Include="PresentationCore">
83 <RequiredTargetFramework>3.0</RequiredTargetFramework>
84 </Reference>
85 <Reference Include="PresentationFramework">
86 <RequiredTargetFramework>3.0</RequiredTargetFramework>
87 </Reference>
60 </ItemGroup>88 </ItemGroup>
61 <ItemGroup>89 <ItemGroup>
62 <ApplicationDefinition Include="App.xaml">90 <ApplicationDefinition Include="App.xaml">
63 <Generator>MSBuild:Compile</Generator>91 <Generator>MSBuild:Compile</Generator>
64 <SubType>Designer</SubType>92 <SubType>Designer</SubType>
65 </ApplicationDefinition>93 </ApplicationDefinition>
66 <Page Include="Page1.xaml">94 <Page Include="NotifyIcon.xaml">
67 <Generator>MSBuild:Compile</Generator>95 <Generator>MSBuild:Compile</Generator>
68 <SubType>Designer</SubType>96 <SubType>Designer</SubType>
97 </Page>
98 <Page Include="PreferencesDialog.xaml">
99 <SubType>Designer</SubType>
100 <Generator>MSBuild:Compile</Generator>
69 </Page>101 </Page>
70 <Compile Include="App.xaml.cs">102 <Compile Include="App.xaml.cs">
71 <DependentUpon>App.xaml</DependentUpon>103 <DependentUpon>App.xaml</DependentUpon>
72 <SubType>Code</SubType>104 <SubType>Code</SubType>
73 </Compile>105 </Compile>
74 <Compile Include="Page1.xaml.cs">106 <Compile Include="NotifyIcon.xaml.cs">
75 <DependentUpon>Page1.xaml</DependentUpon>107 <DependentUpon>NotifyIcon.xaml</DependentUpon>
76 <SubType>Code</SubType>108 <SubType>Code</SubType>
77 </Compile>109 </Compile>
78 </ItemGroup>110 </ItemGroup>
79 <ItemGroup>111 <ItemGroup>
112 <Compile Include="PreferencesDialog.xaml.cs">
113 <DependentUpon>PreferencesDialog.xaml</DependentUpon>
114 </Compile>
80 <Compile Include="Properties\AssemblyInfo.cs">115 <Compile Include="Properties\AssemblyInfo.cs">
81 <SubType>Code</SubType>116 <SubType>Code</SubType>
82 </Compile>117 </Compile>
@@ -90,11 +125,21 @@
90 <DependentUpon>Settings.settings</DependentUpon>125 <DependentUpon>Settings.settings</DependentUpon>
91 <DesignTimeSharedInput>True</DesignTimeSharedInput>126 <DesignTimeSharedInput>True</DesignTimeSharedInput>
92 </Compile>127 </Compile>
128 <Compile Include="Resources\Resources.Designer.cs">
129 <AutoGen>True</AutoGen>
130 <DesignTime>True</DesignTime>
131 <DependentUpon>Resources.resx</DependentUpon>
132 </Compile>
93 <EmbeddedResource Include="Properties\Resources.resx">133 <EmbeddedResource Include="Properties\Resources.resx">
94 <Generator>ResXFileCodeGenerator</Generator>134 <Generator>ResXFileCodeGenerator</Generator>
95 <LastGenOutput>Resources.Designer.cs</LastGenOutput>135 <LastGenOutput>Resources.Designer.cs</LastGenOutput>
96 <SubType>Designer</SubType>136 <SubType>Designer</SubType>
97 </EmbeddedResource>137 </EmbeddedResource>
138 <EmbeddedResource Include="Resources\Resources.resx">
139 <Generator>PublicResXFileCodeGenerator</Generator>
140 <LastGenOutput>Resources.Designer.cs</LastGenOutput>
141 <SubType>Designer</SubType>
142 </EmbeddedResource>
98 <None Include="Canonical.UbuntuOne.Client.Views_TemporaryKey.pfx" />143 <None Include="Canonical.UbuntuOne.Client.Views_TemporaryKey.pfx" />
99 <None Include="Properties\Settings.settings">144 <None Include="Properties\Settings.settings">
100 <Generator>SettingsSingleFileGenerator</Generator>145 <Generator>SettingsSingleFileGenerator</Generator>
@@ -103,6 +148,39 @@
103 <None Include="Properties\app.manifest" />148 <None Include="Properties\app.manifest" />
104 <AppDesigner Include="Properties\" />149 <AppDesigner Include="Properties\" />
105 </ItemGroup>150 </ItemGroup>
151 <ItemGroup>
152 <BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
153 <Visible>False</Visible>
154 <ProductName>.NET Framework 2.0 %28x86%29</ProductName>
155 <Install>false</Install>
156 </BootstrapperPackage>
157 <BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
158 <Visible>False</Visible>
159 <ProductName>.NET Framework 3.0 %28x86%29</ProductName>
160 <Install>false</Install>
161 </BootstrapperPackage>
162 <BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
163 <Visible>False</Visible>
164 <ProductName>.NET Framework 3.5</ProductName>
165 <Install>true</Install>
166 </BootstrapperPackage>
167 <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
168 <Visible>False</Visible>
169 <ProductName>Windows Installer 3.1</ProductName>
170 <Install>true</Install>
171 </BootstrapperPackage>
172 </ItemGroup>
173 <ItemGroup>
174 <Resource Include="Resources\ubuntu-logo-22x22.png">
175 </Resource>
176 </ItemGroup>
177 <ItemGroup>
178 <Resource Include="Resources\ubuntu-logo-24x24.png" />
179 </ItemGroup>
180 <ItemGroup>
181 <Resource Include="Resources\ubuntu-logo-32x32.png">
182 </Resource>
183 </ItemGroup>
106 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />184 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
107 <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 185 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
108 Other similar extension points exist, see Microsoft.Common.targets.186 Other similar extension points exist, see Microsoft.Common.targets.
109187
=== added file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml'
--- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml 2010-07-27 16:18:46 +0000
@@ -0,0 +1,72 @@
1<!--
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19-->
20<Window x:Class="Canonical.UbuntuOne.Client.Views.UbuntuOneNotifyIcon"
21 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
22 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
23 xmlns:av="http://schemas.codeplex.com/wpfcontrib/xaml/presentation"
24 xmlns:resx="clr-namespace:Canonical.UbuntuOne.Client.Views.Resources"
25 Title="Ubuntu One"
26 Visibility="Hidden"
27 Width="0"
28 Height="0"
29 WindowStyle="None"
30 ShowInTaskbar="False"
31 ShowActivated="False">
32 <DockPanel>
33 <StackPanel Margin="20">
34 <av:NotifyIcon Name="notifyIcon" Icon="/Canonical.UbuntuOne.Client.Views;component/Resources/ubuntu-logo-22x22.png" Text="Ubuntu One"> <!-- TODO: Add icon Icon="/AvalonLibraryTestPages;component/Properties/App.ico" Open preferences when click -->
35 <FrameworkElement.ContextMenu>
36 <ContextMenu>
37 <MenuItem x:Uid="UbuntuOnePreferencesMenuItem"
38 Name="UbuntuOnePreferencesMenuItem"
39 Header="{x:Static resx:Resources.UbuntuOnePreferences}" />
40 <MenuItem x:Uid="OpenShareManueItem"
41 Name="OpenShareManueItem"
42 Header="{x:Static resx:Resources.OpenShares}" />
43 <MenuItem x:Uid="OpenSyncMenuItem"
44 Name="OpenSyncMenuItem"
45 Header="{x:Static resx:Resources.OpenSync}" />
46 <Separator />
47 <MenuItem Name="StateMenuItem"
48 Header="State"/> <!-- Out sync, sync in progress (animate), everything up to date, error -->
49 <MenuItem Name="CompleteInfoMenuItem"
50 Header=""/>
51 <MenuItem Name="SpaceLeftMenuItem"
52 Header=""/>
53 <Separator />
54 <MenuItem x:Uid="RecentlyModifyFilesMenuItem"
55 Name="RecentlyModifyFilesMenuItem"
56 Header="{x:Static resx:Resources.RecentlyModifyFiles}" />
57 <Separator />
58 <MenuItem x:Uid="HelpMenuItem"
59 Name="HelpMenuItem"
60 Header="{x:Static resx:Resources.Help}" />
61 <MenuItem x:Uid="MoreSpaceMenuItem"
62 Name="MoreSpaceMenuItem"
63 Header="{x:Static resx:Resources.MoreSpace}"/>
64 <MenuItem x:Uid="ExitMenuItem"
65 Name="ExitMenuItem"
66 Header="{x:Static resx:Resources.Exit}" />
67 </ContextMenu>
68 </FrameworkElement.ContextMenu>
69 </av:NotifyIcon>
70 </StackPanel>
71 </DockPanel>
72</Window>
073
=== added file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs'
--- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,34 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System.Windows;
21
22namespace Canonical.UbuntuOne.Client.Views
23{
24 /// <summary>
25 /// Interaction logic for UbuntuOneNotifyIcon.xaml
26 /// </summary>
27 public partial class UbuntuOneNotifyIcon : Window
28 {
29 public UbuntuOneNotifyIcon()
30 {
31 InitializeComponent();
32 }
33 }
34}
035
=== removed file 'src/Canonical.UbuntuOne.Client.Views/Page1.xaml'
--- src/Canonical.UbuntuOne.Client.Views/Page1.xaml 2010-07-13 09:52:05 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Page1.xaml 1970-01-01 00:00:00 +0000
@@ -1,8 +0,0 @@
1<Page x:Class="Canonical.UbuntuOne.Client.Views.Page1"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 Title="Page1">
5 <Grid>
6
7 </Grid>
8</Page>
90
=== removed file 'src/Canonical.UbuntuOne.Client.Views/Page1.xaml.cs'
--- src/Canonical.UbuntuOne.Client.Views/Page1.xaml.cs 2010-07-13 09:52:05 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Page1.xaml.cs 1970-01-01 00:00:00 +0000
@@ -1,27 +0,0 @@
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Data;
8using System.Windows.Documents;
9using System.Windows.Input;
10using System.Windows.Media;
11using System.Windows.Media.Imaging;
12using System.Windows.Navigation;
13using System.Windows.Shapes;
14
15namespace Canonical.UbuntuOne.Client.Views
16{
17 /// <summary>
18 /// Interaction logic for Page1.xaml
19 /// </summary>
20 public partial class Page1 : Page
21 {
22 public Page1()
23 {
24 InitializeComponent();
25 }
26 }
27}
280
=== added file 'src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml'
--- src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml 2010-07-27 16:18:46 +0000
@@ -0,0 +1,8 @@
1<Window x:Class="Canonical.UbuntuOne.Client.Views.PreferencesDialog"
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4 Title="PreferencesDialog" Height="300" Width="300">
5 <Grid>
6
7 </Grid>
8</Window>
09
=== added file 'src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs'
--- src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,26 @@
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Data;
8using System.Windows.Documents;
9using System.Windows.Input;
10using System.Windows.Media;
11using System.Windows.Media.Imaging;
12using System.Windows.Shapes;
13
14namespace Canonical.UbuntuOne.Client.Views
15{
16 /// <summary>
17 /// Interaction logic for PreferencesDialog.xaml
18 /// </summary>
19 public partial class PreferencesDialog : Window
20 {
21 public PreferencesDialog()
22 {
23 InitializeComponent();
24 }
25 }
26}
027
=== modified file 'src/Canonical.UbuntuOne.Client.Views/Properties/AssemblyInfo.cs'
--- src/Canonical.UbuntuOne.Client.Views/Properties/AssemblyInfo.cs 2010-07-13 09:52:05 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Properties/AssemblyInfo.cs 2010-07-27 16:18:46 +0000
@@ -53,3 +53,4 @@
53// [assembly: AssemblyVersion("1.0.*")]53// [assembly: AssemblyVersion("1.0.*")]
54[assembly: AssemblyVersion("1.0.0.0")]54[assembly: AssemblyVersion("1.0.0.0")]
55[assembly: AssemblyFileVersion("1.0.0.0")]55[assembly: AssemblyFileVersion("1.0.0.0")]
56[assembly: NeutralResourcesLanguageAttribute("")]
5657
=== added directory 'src/Canonical.UbuntuOne.Client.Views/Resources'
=== added file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs'
--- src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,126 @@
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated by a tool.
4// Runtime Version:2.0.50727.4927
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </auto-generated>
9//------------------------------------------------------------------------------
10
11namespace Canonical.UbuntuOne.Client.Views.Resources {
12 using System;
13
14
15 /// <summary>
16 /// A strongly-typed resource class, for looking up localized strings, etc.
17 /// </summary>
18 // This class was auto-generated by the StronglyTypedResourceBuilder
19 // class via a tool like ResGen or Visual Studio.
20 // To add or remove a member, edit your .ResX file then rerun ResGen
21 // with the /str option, or rebuild your VS project.
22 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
23 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 public class Resources {
26
27 private static global::System.Resources.ResourceManager resourceMan;
28
29 private static global::System.Globalization.CultureInfo resourceCulture;
30
31 [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 internal Resources() {
33 }
34
35 /// <summary>
36 /// Returns the cached ResourceManager instance used by this class.
37 /// </summary>
38 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 public static global::System.Resources.ResourceManager ResourceManager {
40 get {
41 if (object.ReferenceEquals(resourceMan, null)) {
42 global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Canonical.UbuntuOne.Client.Views.Resources.Resources", typeof(Resources).Assembly);
43 resourceMan = temp;
44 }
45 return resourceMan;
46 }
47 }
48
49 /// <summary>
50 /// Overrides the current thread's CurrentUICulture property for all
51 /// resource lookups using this strongly typed resource class.
52 /// </summary>
53 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 public static global::System.Globalization.CultureInfo Culture {
55 get {
56 return resourceCulture;
57 }
58 set {
59 resourceCulture = value;
60 }
61 }
62
63 /// <summary>
64 /// Looks up a localized string similar to Exit.
65 /// </summary>
66 public static string Exit {
67 get {
68 return ResourceManager.GetString("Exit", resourceCulture);
69 }
70 }
71
72 /// <summary>
73 /// Looks up a localized string similar to Get Help and Support....
74 /// </summary>
75 public static string Help {
76 get {
77 return ResourceManager.GetString("Help", resourceCulture);
78 }
79 }
80
81 /// <summary>
82 /// Looks up a localized string similar to Get More Space.
83 /// </summary>
84 public static string MoreSpace {
85 get {
86 return ResourceManager.GetString("MoreSpace", resourceCulture);
87 }
88 }
89
90 /// <summary>
91 /// Looks up a localized string similar to Open Share Folders.
92 /// </summary>
93 public static string OpenShares {
94 get {
95 return ResourceManager.GetString("OpenShares", resourceCulture);
96 }
97 }
98
99 /// <summary>
100 /// Looks up a localized string similar to Open Sync Folders.
101 /// </summary>
102 public static string OpenSync {
103 get {
104 return ResourceManager.GetString("OpenSync", resourceCulture);
105 }
106 }
107
108 /// <summary>
109 /// Looks up a localized string similar to Recently Modify Files.
110 /// </summary>
111 public static string RecentlyModifyFiles {
112 get {
113 return ResourceManager.GetString("RecentlyModifyFiles", resourceCulture);
114 }
115 }
116
117 /// <summary>
118 /// Looks up a localized string similar to Ubuntu One Preferences.
119 /// </summary>
120 public static string UbuntuOnePreferences {
121 get {
122 return ResourceManager.GetString("UbuntuOnePreferences", resourceCulture);
123 }
124 }
125 }
126}
0127
=== added file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx'
--- src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx 2010-07-27 16:18:46 +0000
@@ -0,0 +1,141 @@
1<?xml version="1.0" encoding="utf-8"?>
2<root>
3 <!--
4 Microsoft ResX Schema
5
6 Version 2.0
7
8 The primary goals of this format is to allow a simple XML format
9 that is mostly human readable. The generation and parsing of the
10 various data types are done through the TypeConverter classes
11 associated with the data types.
12
13 Example:
14
15 ... ado.net/XML headers & schema ...
16 <resheader name="resmimetype">text/microsoft-resx</resheader>
17 <resheader name="version">2.0</resheader>
18 <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19 <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20 <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21 <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22 <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23 <value>[base64 mime encoded serialized .NET Framework object]</value>
24 </data>
25 <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26 <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27 <comment>This is a comment</comment>
28 </data>
29
30 There are any number of "resheader" rows that contain simple
31 name/value pairs.
32
33 Each data row contains a name, and value. The row also contains a
34 type or mimetype. Type corresponds to a .NET class that support
35 text/value conversion through the TypeConverter architecture.
36 Classes that don't support this are serialized and stored with the
37 mimetype set.
38
39 The mimetype is used for serialized objects, and tells the
40 ResXResourceReader how to depersist the object. This is currently not
41 extensible. For a given mimetype the value must be set accordingly:
42
43 Note - application/x-microsoft.net.object.binary.base64 is the format
44 that the ResXResourceWriter will generate, however the reader can
45 read any of the formats listed below.
46
47 mimetype: application/x-microsoft.net.object.binary.base64
48 value : The object must be serialized with
49 : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50 : and then encoded with base64 encoding.
51
52 mimetype: application/x-microsoft.net.object.soap.base64
53 value : The object must be serialized with
54 : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55 : and then encoded with base64 encoding.
56
57 mimetype: application/x-microsoft.net.object.bytearray.base64
58 value : The object must be serialized into a byte array
59 : using a System.ComponentModel.TypeConverter
60 : and then encoded with base64 encoding.
61 -->
62 <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63 <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64 <xsd:element name="root" msdata:IsDataSet="true">
65 <xsd:complexType>
66 <xsd:choice maxOccurs="unbounded">
67 <xsd:element name="metadata">
68 <xsd:complexType>
69 <xsd:sequence>
70 <xsd:element name="value" type="xsd:string" minOccurs="0" />
71 </xsd:sequence>
72 <xsd:attribute name="name" use="required" type="xsd:string" />
73 <xsd:attribute name="type" type="xsd:string" />
74 <xsd:attribute name="mimetype" type="xsd:string" />
75 <xsd:attribute ref="xml:space" />
76 </xsd:complexType>
77 </xsd:element>
78 <xsd:element name="assembly">
79 <xsd:complexType>
80 <xsd:attribute name="alias" type="xsd:string" />
81 <xsd:attribute name="name" type="xsd:string" />
82 </xsd:complexType>
83 </xsd:element>
84 <xsd:element name="data">
85 <xsd:complexType>
86 <xsd:sequence>
87 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89 </xsd:sequence>
90 <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91 <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92 <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93 <xsd:attribute ref="xml:space" />
94 </xsd:complexType>
95 </xsd:element>
96 <xsd:element name="resheader">
97 <xsd:complexType>
98 <xsd:sequence>
99 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100 </xsd:sequence>
101 <xsd:attribute name="name" type="xsd:string" use="required" />
102 </xsd:complexType>
103 </xsd:element>
104 </xsd:choice>
105 </xsd:complexType>
106 </xsd:element>
107 </xsd:schema>
108 <resheader name="resmimetype">
109 <value>text/microsoft-resx</value>
110 </resheader>
111 <resheader name="version">
112 <value>2.0</value>
113 </resheader>
114 <resheader name="reader">
115 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116 </resheader>
117 <resheader name="writer">
118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119 </resheader>
120 <data name="Exit" xml:space="preserve">
121 <value>Exit</value>
122 </data>
123 <data name="Help" xml:space="preserve">
124 <value>Get Help and Support...</value>
125 </data>
126 <data name="MoreSpace" xml:space="preserve">
127 <value>Get More Space</value>
128 </data>
129 <data name="OpenShares" xml:space="preserve">
130 <value>Open Share Folders</value>
131 </data>
132 <data name="OpenSync" xml:space="preserve">
133 <value>Open Sync Folders</value>
134 </data>
135 <data name="RecentlyModifyFiles" xml:space="preserve">
136 <value>Recently Modify Files</value>
137 </data>
138 <data name="UbuntuOnePreferences" xml:space="preserve">
139 <value>Ubuntu One Preferences</value>
140 </data>
141</root>
0\ No newline at end of file142\ No newline at end of file
1143
=== added file 'src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-22x22.png'
2Binary files src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-22x22.png 1970-01-01 00:00:00 +0000 and src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-22x22.png 2010-07-27 16:18:46 +0000 differ144Binary files src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-22x22.png 1970-01-01 00:00:00 +0000 and src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-22x22.png 2010-07-27 16:18:46 +0000 differ
=== added file 'src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-24x24.png'
3Binary files src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-24x24.png 1970-01-01 00:00:00 +0000 and src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-24x24.png 2010-07-27 16:18:46 +0000 differ145Binary files src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-24x24.png 1970-01-01 00:00:00 +0000 and src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-24x24.png 2010-07-27 16:18:46 +0000 differ
=== added file 'src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-32x32.png'
4Binary files src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-32x32.png 1970-01-01 00:00:00 +0000 and src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-32x32.png 2010-07-27 16:18:46 +0000 differ146Binary files src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-32x32.png 1970-01-01 00:00:00 +0000 and src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-32x32.png 2010-07-27 16:18:46 +0000 differ
=== modified file 'src/Canonical.UbuntuOne.Client/Canonical.UbuntuOne.Client.csproj'
--- src/Canonical.UbuntuOne.Client/Canonical.UbuntuOne.Client.csproj 2010-07-08 11:39:25 +0000
+++ src/Canonical.UbuntuOne.Client/Canonical.UbuntuOne.Client.csproj 2010-07-27 16:18:46 +0000
@@ -1,45 +1,63 @@
1<?xml version="1.0" encoding="utf-8"?>1<?xml version="1.0" encoding="utf-8"?>
2<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">2<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup>3 <PropertyGroup>
4 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>4 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5 <Platform Condition=" '$(Platform)' == '' ">x86</Platform>5 <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6 <ProductVersion>9.0.21022</ProductVersion>6 <ProductVersion>9.0.21022</ProductVersion>
7 <SchemaVersion>2.0</SchemaVersion>7 <SchemaVersion>2.0</SchemaVersion>
8 <ProjectGuid>{7467483A-D6D5-4362-8DF4-57A7254EB569}</ProjectGuid>8 <ProjectGuid>{7467483A-D6D5-4362-8DF4-57A7254EB569}</ProjectGuid>
9 <OutputType>Library</OutputType>9 <OutputType>Library</OutputType>
10 <RootNamespace>Canonical.UbuntuOne.Client</RootNamespace>10 <RootNamespace>Canonical.UbuntuOne.Client</RootNamespace>
11 <AssemblyName>Canonical.UbuntuOne.Client</AssemblyName>11 <AssemblyName>Canonical.UbuntuOne.Client</AssemblyName>
12 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>12 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
13 </PropertyGroup>13 </PropertyGroup>
14 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">14 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
15 <DebugSymbols>true</DebugSymbols>15 <DebugSymbols>true</DebugSymbols>
16 <DebugType>full</DebugType>16 <DebugType>full</DebugType>
17 <Optimize>false</Optimize>17 <Optimize>false</Optimize>
18 <OutputPath>bin\Debug</OutputPath>18 <OutputPath>bin\Debug</OutputPath>
19 <DefineConstants>DEBUG</DefineConstants>19 <DefineConstants>DEBUG</DefineConstants>
20 <ErrorReport>prompt</ErrorReport>20 <ErrorReport>prompt</ErrorReport>
21 <WarningLevel>4</WarningLevel>21 <WarningLevel>4</WarningLevel>
22 <PlatformTarget>x86</PlatformTarget>22 <PlatformTarget>x86</PlatformTarget>
23 <ConsolePause>false</ConsolePause>23 <ConsolePause>false</ConsolePause>
24 </PropertyGroup>24 </PropertyGroup>
25 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">25 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
26 <DebugType>none</DebugType>26 <DebugType>none</DebugType>
27 <Optimize>false</Optimize>27 <Optimize>false</Optimize>
28 <OutputPath>bin\Release</OutputPath>28 <OutputPath>bin\Release</OutputPath>
29 <ErrorReport>prompt</ErrorReport>29 <ErrorReport>prompt</ErrorReport>
30 <WarningLevel>4</WarningLevel>30 <WarningLevel>4</WarningLevel>
31 <PlatformTarget>x86</PlatformTarget>31 <PlatformTarget>x86</PlatformTarget>
32 <ConsolePause>false</ConsolePause>32 <ConsolePause>false</ConsolePause>
33 </PropertyGroup>33 </PropertyGroup>
34 <ItemGroup>34 <ItemGroup>
35 <Compile Include="Properties\AssemblyInfo.cs" />35 <Compile Include="Notification\NotificationIconPresenter.cs" />
36 <Compile Include="SyncDaemonClient.cs" />36 <Compile Include="Notification\OperationCompletenessEventArgs.cs" />
37 </ItemGroup>37 <Compile Include="Notification\RecentlyModifiedEventArgs.cs" />
38 <ItemGroup>38 <Compile Include="Notification\StateEventArgs.cs" />
39 <ProjectReference Include="..\Canonical.UbuntuOne.Common\Canonical.UbuntuOne.Common.csproj">39 <Compile Include="Notification\INotificationIconPresenter.cs" />
40 <Project>{11353FF8-8E5A-488E-9CB1-873DADD232B9}</Project>40 <Compile Include="Notification\NotificationEventArgs.cs" />
41 <Name>Canonical.UbuntuOne.Common</Name>41 <Compile Include="Preferences\IPreferencesDialog.cs" />
42 </ProjectReference>42 <Compile Include="Properties\AssemblyInfo.cs" />
43 </ItemGroup>43 <Compile Include="SyncDaemonClient.cs" />
44 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />44 </ItemGroup>
45 <ItemGroup>
46 <ProjectReference Include="..\Canonical.UbuntuOne.Common\Canonical.UbuntuOne.Common.csproj">
47 <Project>{11353FF8-8E5A-488E-9CB1-873DADD232B9}</Project>
48 <Name>Canonical.UbuntuOne.Common</Name>
49 </ProjectReference>
50 </ItemGroup>
51 <ItemGroup>
52 <Reference Include="PresentationFramework">
53 <RequiredTargetFramework>3.0</RequiredTargetFramework>
54 </Reference>
55 <Reference Include="System" />
56 <Reference Include="System.Data" />
57 <Reference Include="System.Xml" />
58 <Reference Include="WindowsBase">
59 <RequiredTargetFramework>3.0</RequiredTargetFramework>
60 </Reference>
61 </ItemGroup>
62 <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
45</Project>63</Project>
46\ No newline at end of file64\ No newline at end of file
4765
=== added directory 'src/Canonical.UbuntuOne.Client/Notification'
=== added file 'src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs'
--- src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,80 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;
21
22namespace Canonical.UbuntuOne.Client.Notification
23{
24 /// <summary>
25 /// Interface to be implemented by a presenter that will be used by the context menu used in the
26 /// a NotificationIconView.
27 /// </summary>
28 public interface INotificationIconPresenter
29 {
30 /// <summary>
31 /// Event to be raised when there is a notification to display to the user.
32 /// </summary>
33 event EventHandler<NotificationEventArgs> OnNotificationChanged;
34
35 /// <summary>
36 /// Event to be raised when there status of the daemon has changed.
37 /// </summary>
38 event EventHandler<StateEventArgs> OnStateChanged;
39
40 /// <summary>
41 /// Event to be raised when the completness of the current operation has changed.
42 /// </summary>
43 event EventHandler<OperationCompletenessEventArgs> OnCompletenessChanged;
44
45 /// <summary>
46 /// Event to be raised when the recently modified files have been changed.
47 /// </summary>
48 event EventHandler<RecentlyModifiedEventArgs> OnRecentlyModifiedChanged;
49
50 /// <summary>
51 /// When implemented this method should open the Preferences window of Ubuntu One.
52 /// </summary>
53 void OpenUbuntuOnePreferences();
54
55 /// <summary>
56 /// When implemented the method should open the explorer with the location of the shares of Ubuntu One.
57 /// </summary>
58 void OpenSharesLocation();
59
60 /// <summary>
61 /// When implemented the method should open the explorer with the location of the sync folders.
62 /// </summary>
63 void OpenSyncsLocation();
64
65 /// <summary>
66 /// When implemented this method should open the location used to provide help to the user.
67 /// </summary>
68 void OpenHelp();
69
70 /// <summary>
71 /// When implemented this method should open the location used to upgrade the account of the user.
72 /// </summary>
73 void OpenUpgradeOption();
74
75 /// <summary>
76 /// When implemented it should close the client and the daemon.
77 /// </summary>
78 void Exit();
79 }
80}
081
=== added file 'src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs'
--- src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,52 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;
21
22namespace Canonical.UbuntuOne.Client.Notification
23{
24 /// <summary>
25 /// Event arg used when there is a notification to be provided to the user.
26 /// </summary>
27 public class NotificationEventArgs : EventArgs
28 {
29 /// <summary>
30 /// Gets and sets the message of the notification.
31 /// </summary>
32 public string Message { get; set; }
33
34 /// <summary>
35 /// Creates a new event arfs with no message.
36 /// </summary>
37 public NotificationEventArgs()
38 : this("")
39 {
40
41 }
42
43 /// <summary>
44 /// Creates a new event args with the given notification message.
45 /// </summary>
46 /// <param name="message">A message that will be used in the notification.</param>
47 public NotificationEventArgs(string message)
48 {
49 Message = message;
50 }
51 }
52}
053
=== added file 'src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs'
--- src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,89 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;
21using System.Windows;
22using System.Diagnostics;
23using Canonical.UbuntuOne.Client.Preferences;
24
25namespace Canonical.UbuntuOne.Client.Notification
26{
27 public class NotificationIconPresenter : INotificationIconPresenter
28 {
29 #region Variables
30
31 private const string UpgradeUrl = "https://one.ubuntu.com/upgrade";
32
33 private const string HelpUrl = "https://one.ubuntu.com/support/";
34
35 #endregion
36
37 #region Di properties
38
39 /// <summary>
40 /// Gets and sets the dialog used to show the preferences.
41 /// </summary>
42 public IPreferencesDialog PreferencesDialog { get; set; }
43
44 #endregion
45
46 #region Implementation of INotificationIconPresenter
47
48 #region events
49
50 public event EventHandler<NotificationEventArgs> OnNotificationChanged;
51 public event EventHandler<StateEventArgs> OnStateChanged;
52 public event EventHandler<OperationCompletenessEventArgs> OnCompletenessChanged;
53 public event EventHandler<RecentlyModifiedEventArgs> OnRecentlyModifiedChanged;
54
55 #endregion
56
57 public void OpenUbuntuOnePreferences()
58 {
59 PreferencesDialog.Show();
60 }
61
62 public void OpenSharesLocation()
63 {
64 throw new NotImplementedException();
65 }
66
67 public void OpenSyncsLocation()
68 {
69 throw new NotImplementedException();
70 }
71
72 public void OpenHelp()
73 {
74 Process.Start(HelpUrl);
75 }
76
77 public void OpenUpgradeOption()
78 {
79 Process.Start(UpgradeUrl);
80 }
81
82 public void Exit()
83 {
84 Application.Current.Shutdown();
85 }
86
87 #endregion
88 }
89}
090
=== added file 'src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs'
--- src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,73 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;
21
22namespace Canonical.UbuntuOne.Client.Notification
23{
24 /// <summary>
25 /// Event used to notify the current state of the current operation.
26 /// </summary>
27 public class OperationCompletenessEventArgs : EventArgs
28 {
29
30 public enum SpeedUnitsEnum
31 {
32 MB,
33 KB,
34 }
35
36 /// <summary>
37 ///
38 /// </summary>
39 public int Percentage { get; set; }
40
41 /// <summary>
42 ///
43 /// </summary>
44 public double Speed { get; set; }
45
46 /// <summary>
47 ///
48 /// </summary>
49 public SpeedUnitsEnum SpeedUnits { get; set; }
50
51 /// <summary>
52 /// Creates a new event arge with all its data init to the default values.
53 /// </summary>
54 public OperationCompletenessEventArgs()
55 : this(0, 0, SpeedUnitsEnum.MB)
56 {
57
58 }
59
60 /// <summary>
61 /// Creates a new event arg that can be used to state the current completness of an operation.
62 /// </summary>
63 /// <param name="percentage">The percentage of the operation that has been done.</param>
64 /// <param name="speed">The speed in which the operation is done.</param>
65 /// <param name="units">The units used in the speed.</param>
66 public OperationCompletenessEventArgs(int percentage, double speed, SpeedUnitsEnum units)
67 {
68 Percentage = percentage;
69 Speed = speed;
70 SpeedUnits = units;
71 }
72 }
73}
074
=== added file 'src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs'
--- src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,55 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20
21using System;
22using System.Collections.Generic;
23
24namespace Canonical.UbuntuOne.Client.Notification
25{
26 /// <summary>
27 /// Evetn args used to notify which have been the recelty modified files.
28 /// </summary>
29 public class RecentlyModifiedEventArgs : EventArgs
30 {
31 /// <summary>
32 /// Gets and sets the recently modified files.
33 /// </summary>
34 public IList<string> RecentlyModifiedFiles { get; set; }
35
36 /// <summary>
37 /// Creates a new event args with no files.
38 /// </summary>
39 public RecentlyModifiedEventArgs()
40 : this (new List<string>())
41 {
42
43 }
44
45 /// <summary>
46 /// Creates a new event arg with the given enumerable that contains the paths of the recently
47 /// modified files.
48 /// </summary>
49 /// <param name="recenltyModifiedFiles">The files that have been recently modified.</param>
50 public RecentlyModifiedEventArgs(IList<string> recenltyModifiedFiles)
51 {
52 RecentlyModifiedFiles = recenltyModifiedFiles;
53 }
54 }
55}
056
=== added file 'src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs'
--- src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,62 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;
21
22namespace Canonical.UbuntuOne.Client.Notification
23{
24 /// <summary>
25 /// Event args used to notify about the current operation.
26 /// </summary>
27 public class StateEventArgs : EventArgs
28 {
29 /// <summary>
30 /// Enumerator that allows to determine the current state of the daemon.
31 /// </summary>
32 public enum StateEnum
33 {
34 OUT_OF_SYNC,
35 SYNC_IN_PROGRESS,
36 UP_TO_DATE,
37 ERROR
38 }
39
40 /// <summary>
41 /// Gets and sets the state given by the event.
42 /// </summary>
43 public StateEnum State { get; set; }
44
45 /// <summary>
46 /// Creates a new state that in init to indicate that the state is up to date
47 /// </summary>
48 public StateEventArgs()
49 : this(StateEnum.UP_TO_DATE)
50 {
51 }
52
53 /// <summary>
54 /// Creates a new event arg with the given state.
55 /// </summary>
56 /// <param name="state">The state to be givn by the event.</param>
57 public StateEventArgs(StateEnum state)
58 {
59 State = state;
60 }
61 }
62}
063
=== added directory 'src/Canonical.UbuntuOne.Client/Preferences'
=== added file 'src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialog.cs'
--- src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialog.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialog.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,30 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20
21namespace Canonical.UbuntuOne.Client.Preferences
22{
23 /// <summary>
24 /// Interface to be implemented by those dialogs used tod isaply preferences.
25 /// </summary>
26 public interface IPreferencesDialog
27 {
28 void Show();
29 }
30}
031
=== modified file 'src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs'
--- src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs 2010-07-09 10:11:58 +0000
+++ src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs 2010-07-27 16:18:46 +0000
@@ -28,7 +28,6 @@
28 /// <summary>28 /// <summary>
29 /// Callback performed when a download starts.29 /// Callback performed when a download starts.
30 /// </summary>30 /// </summary>
31 /// <param name="path">The path being downloaded.</param>
32 /// <param name="data">The information of the download that is in process.</param>31 /// <param name="data">The information of the download that is in process.</param>
33 public void OnDownloadStarted(DownloadData data)32 public void OnDownloadStarted(DownloadData data)
34 {33 {
@@ -42,7 +41,6 @@
42 /// <summary>41 /// <summary>
43 /// Callback performed when a download finished. 42 /// Callback performed when a download finished.
44 /// </summary>43 /// </summary>
45 /// <param name="path">The path of the download that was finished.</param>
46 /// <param name="data">The information of the download that was finished.</param>44 /// <param name="data">The information of the download that was finished.</param>
47 public void OnDownloadFinished(DownloadData data)45 public void OnDownloadFinished(DownloadData data)
48 {46 {
@@ -56,7 +54,6 @@
56 /// <summary>54 /// <summary>
57 /// Callback performed when an uploaded has been started.55 /// Callback performed when an uploaded has been started.
58 /// </summary>56 /// </summary>
59 /// <param name="path">The path of the uploading file.</param>
60 /// <param name="data">The information of the upload.</param>57 /// <param name="data">The information of the upload.</param>
61 public void OnUploadStarted(UploadData data)58 public void OnUploadStarted(UploadData data)
62 {59 {
@@ -70,7 +67,6 @@
70 /// <summary>67 /// <summary>
71 /// Calback performed when and upload has finished.68 /// Calback performed when and upload has finished.
72 /// </summary>69 /// </summary>
73 /// <param name="path"></param>
74 /// <param name="data"></param>70 /// <param name="data"></param>
75 public void OnUploadFinished(UploadData data)71 public void OnUploadFinished(UploadData data)
76 {72 {
7773
=== modified file 'src/UbuntuOne.sln'
--- src/UbuntuOne.sln 2010-07-26 16:01:28 +0000
+++ src/UbuntuOne.sln 2010-07-27 16:18:46 +0000
@@ -15,6 +15,10 @@
15EndProject15EndProject
16Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceTestApp", "ServiceTestApp\ServiceTestApp.csproj", "{009E6FD4-DE20-410A-B1F3-5F0542CD8745}"16Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceTestApp", "ServiceTestApp\ServiceTestApp.csproj", "{009E6FD4-DE20-410A-B1F3-5F0542CD8745}"
17EndProject17EndProject
18Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Canonical.UbuntuOne.Client.Test", "Canonical.UbuntuOne.Client.Test\Canonical.UbuntuOne.Client.Test.csproj", "{2947FCA2-D6FC-4509-83F8-64A87447EBD3}"
19EndProject
20Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UbuntuOneClient", "UbuntuOneClient\UbuntuOneClient.csproj", "{E41083CC-B99A-4AEC-93CC-F693F6AA6071}"
21EndProject
18Global22Global
19 GlobalSection(SolutionConfigurationPlatforms) = preSolution23 GlobalSection(SolutionConfigurationPlatforms) = preSolution
20 Debug|Any CPU = Debug|Any CPU24 Debug|Any CPU = Debug|Any CPU
@@ -95,6 +99,26 @@
95 {009E6FD4-DE20-410A-B1F3-5F0542CD8745}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU99 {009E6FD4-DE20-410A-B1F3-5F0542CD8745}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
96 {009E6FD4-DE20-410A-B1F3-5F0542CD8745}.Release|Mixed Platforms.Build.0 = Release|Any CPU100 {009E6FD4-DE20-410A-B1F3-5F0542CD8745}.Release|Mixed Platforms.Build.0 = Release|Any CPU
97 {009E6FD4-DE20-410A-B1F3-5F0542CD8745}.Release|x86.ActiveCfg = Release|Any CPU101 {009E6FD4-DE20-410A-B1F3-5F0542CD8745}.Release|x86.ActiveCfg = Release|Any CPU
102 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
103 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
104 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
105 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
106 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|x86.ActiveCfg = Debug|Any CPU
107 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
108 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|Any CPU.Build.0 = Release|Any CPU
109 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
110 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
111 {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|x86.ActiveCfg = Release|Any CPU
112 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
113 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|Any CPU.Build.0 = Debug|Any CPU
114 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
115 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
116 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|x86.ActiveCfg = Debug|Any CPU
117 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|Any CPU.ActiveCfg = Release|Any CPU
118 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|Any CPU.Build.0 = Release|Any CPU
119 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
120 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|Mixed Platforms.Build.0 = Release|Any CPU
121 {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|x86.ActiveCfg = Release|Any CPU
98 EndGlobalSection122 EndGlobalSection
99 GlobalSection(SolutionProperties) = preSolution123 GlobalSection(SolutionProperties) = preSolution
100 HideSolutionNode = FALSE124 HideSolutionNode = FALSE
101125
=== added directory 'src/UbuntuOneClient'
=== added file 'src/UbuntuOneClient/Program.cs'
--- src/UbuntuOneClient/Program.cs 1970-01-01 00:00:00 +0000
+++ src/UbuntuOneClient/Program.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,36 @@
1/**
2 * Copyright 2010 Canonical Ltd.
3 *
4 * This file is part of UbuntuOne on Windows.
5 *
6 * UbuntuOne on Windows is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License version
8 * as published by the Free Software Foundation.
9 *
10 * Ubuntu One on Windows is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Manuel de la Peña <manuel.delapena@canonical.com>
19 */
20using System;
21using System.Windows;
22using Canonical.UbuntuOne.Client.Views;
23
24namespace UbuntuOneClient
25{
26 class Program
27 {
28 [STAThread]
29 static void Main()
30 {
31 var app = new Application {ShutdownMode = ShutdownMode.OnExplicitShutdown};
32 var notifyIcon = new UbuntuOneNotifyIcon();
33 app.Run(notifyIcon);
34 }
35 }
36}
037
=== added directory 'src/UbuntuOneClient/Properties'
=== added file 'src/UbuntuOneClient/Properties/AssemblyInfo.cs'
--- src/UbuntuOneClient/Properties/AssemblyInfo.cs 1970-01-01 00:00:00 +0000
+++ src/UbuntuOneClient/Properties/AssemblyInfo.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,55 @@
1using System.Reflection;
2using System.Resources;
3using System.Runtime.CompilerServices;
4using System.Runtime.InteropServices;
5using System.Windows;
6
7// General Information about an assembly is controlled through the following
8// set of attributes. Change these attribute values to modify the information
9// associated with an assembly.
10[assembly: AssemblyTitle("UbuntuOneClient")]
11[assembly: AssemblyDescription("")]
12[assembly: AssemblyConfiguration("")]
13[assembly: AssemblyCompany("")]
14[assembly: AssemblyProduct("UbuntuOneClient")]
15[assembly: AssemblyCopyright("Copyright © 2010")]
16[assembly: AssemblyTrademark("")]
17[assembly: AssemblyCulture("")]
18
19// Setting ComVisible to false makes the types in this assembly not visible
20// to COM components. If you need to access a type in this assembly from
21// COM, set the ComVisible attribute to true on that type.
22[assembly: ComVisible(false)]
23
24//In order to begin building localizable applications, set
25//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
26//inside a <PropertyGroup>. For example, if you are using US english
27//in your source files, set the <UICulture> to en-US. Then uncomment
28//the NeutralResourceLanguage attribute below. Update the "en-US" in
29//the line below to match the UICulture setting in the project file.
30
31//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32
33
34[assembly: ThemeInfo(
35 ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36 //(used if a resource is not found in the page,
37 // or application resource dictionaries)
38 ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39 //(used if a resource is not found in the page,
40 // app, or any theme specific resource dictionaries)
41)]
42
43
44// Version information for an assembly consists of the following four values:
45//
46// Major Version
47// Minor Version
48// Build Number
49// Revision
50//
51// You can specify all the values or you can default the Build and Revision Numbers
52// by using the '*' as shown below:
53// [assembly: AssemblyVersion("1.0.*")]
54[assembly: AssemblyVersion("1.0.0.0")]
55[assembly: AssemblyFileVersion("1.0.0.0")]
056
=== added file 'src/UbuntuOneClient/Properties/Resources.Designer.cs'
--- src/UbuntuOneClient/Properties/Resources.Designer.cs 1970-01-01 00:00:00 +0000
+++ src/UbuntuOneClient/Properties/Resources.Designer.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,71 @@
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated by a tool.
4// Runtime Version:2.0.50727.4927
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </auto-generated>
9//------------------------------------------------------------------------------
10
11namespace UbuntuOneClient.Properties
12{
13
14
15 /// <summary>
16 /// A strongly-typed resource class, for looking up localized strings, etc.
17 /// </summary>
18 // This class was auto-generated by the StronglyTypedResourceBuilder
19 // class via a tool like ResGen or Visual Studio.
20 // To add or remove a member, edit your .ResX file then rerun ResGen
21 // with the /str option, or rebuild your VS project.
22 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
23 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 internal class Resources
26 {
27
28 private static global::System.Resources.ResourceManager resourceMan;
29
30 private static global::System.Globalization.CultureInfo resourceCulture;
31
32 [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 internal Resources()
34 {
35 }
36
37 /// <summary>
38 /// Returns the cached ResourceManager instance used by this class.
39 /// </summary>
40 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 internal static global::System.Resources.ResourceManager ResourceManager
42 {
43 get
44 {
45 if ((resourceMan == null))
46 {
47 global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("UbuntuOneClient.Properties.Resources", typeof(Resources).Assembly);
48 resourceMan = temp;
49 }
50 return resourceMan;
51 }
52 }
53
54 /// <summary>
55 /// Overrides the current thread's CurrentUICulture property for all
56 /// resource lookups using this strongly typed resource class.
57 /// </summary>
58 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 internal static global::System.Globalization.CultureInfo Culture
60 {
61 get
62 {
63 return resourceCulture;
64 }
65 set
66 {
67 resourceCulture = value;
68 }
69 }
70 }
71}
072
=== added file 'src/UbuntuOneClient/Properties/Resources.resx'
--- src/UbuntuOneClient/Properties/Resources.resx 1970-01-01 00:00:00 +0000
+++ src/UbuntuOneClient/Properties/Resources.resx 2010-07-27 16:18:46 +0000
@@ -0,0 +1,117 @@
1<?xml version="1.0" encoding="utf-8"?>
2<root>
3 <!--
4 Microsoft ResX Schema
5
6 Version 2.0
7
8 The primary goals of this format is to allow a simple XML format
9 that is mostly human readable. The generation and parsing of the
10 various data types are done through the TypeConverter classes
11 associated with the data types.
12
13 Example:
14
15 ... ado.net/XML headers & schema ...
16 <resheader name="resmimetype">text/microsoft-resx</resheader>
17 <resheader name="version">2.0</resheader>
18 <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19 <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20 <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21 <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22 <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23 <value>[base64 mime encoded serialized .NET Framework object]</value>
24 </data>
25 <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26 <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27 <comment>This is a comment</comment>
28 </data>
29
30 There are any number of "resheader" rows that contain simple
31 name/value pairs.
32
33 Each data row contains a name, and value. The row also contains a
34 type or mimetype. Type corresponds to a .NET class that support
35 text/value conversion through the TypeConverter architecture.
36 Classes that don't support this are serialized and stored with the
37 mimetype set.
38
39 The mimetype is used for serialized objects, and tells the
40 ResXResourceReader how to depersist the object. This is currently not
41 extensible. For a given mimetype the value must be set accordingly:
42
43 Note - application/x-microsoft.net.object.binary.base64 is the format
44 that the ResXResourceWriter will generate, however the reader can
45 read any of the formats listed below.
46
47 mimetype: application/x-microsoft.net.object.binary.base64
48 value : The object must be serialized with
49 : System.Serialization.Formatters.Binary.BinaryFormatter
50 : and then encoded with base64 encoding.
51
52 mimetype: application/x-microsoft.net.object.soap.base64
53 value : The object must be serialized with
54 : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55 : and then encoded with base64 encoding.
56
57 mimetype: application/x-microsoft.net.object.bytearray.base64
58 value : The object must be serialized into a byte array
59 : using a System.ComponentModel.TypeConverter
60 : and then encoded with base64 encoding.
61 -->
62 <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63 <xsd:element name="root" msdata:IsDataSet="true">
64 <xsd:complexType>
65 <xsd:choice maxOccurs="unbounded">
66 <xsd:element name="metadata">
67 <xsd:complexType>
68 <xsd:sequence>
69 <xsd:element name="value" type="xsd:string" minOccurs="0" />
70 </xsd:sequence>
71 <xsd:attribute name="name" type="xsd:string" />
72 <xsd:attribute name="type" type="xsd:string" />
73 <xsd:attribute name="mimetype" type="xsd:string" />
74 </xsd:complexType>
75 </xsd:element>
76 <xsd:element name="assembly">
77 <xsd:complexType>
78 <xsd:attribute name="alias" type="xsd:string" />
79 <xsd:attribute name="name" type="xsd:string" />
80 </xsd:complexType>
81 </xsd:element>
82 <xsd:element name="data">
83 <xsd:complexType>
84 <xsd:sequence>
85 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
86 <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
87 </xsd:sequence>
88 <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
89 <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
90 <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
91 </xsd:complexType>
92 </xsd:element>
93 <xsd:element name="resheader">
94 <xsd:complexType>
95 <xsd:sequence>
96 <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
97 </xsd:sequence>
98 <xsd:attribute name="name" type="xsd:string" use="required" />
99 </xsd:complexType>
100 </xsd:element>
101 </xsd:choice>
102 </xsd:complexType>
103 </xsd:element>
104 </xsd:schema>
105 <resheader name="resmimetype">
106 <value>text/microsoft-resx</value>
107 </resheader>
108 <resheader name="version">
109 <value>2.0</value>
110 </resheader>
111 <resheader name="reader">
112 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
113 </resheader>
114 <resheader name="writer">
115 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116 </resheader>
117</root>
0\ No newline at end of file118\ No newline at end of file
1119
=== added file 'src/UbuntuOneClient/Properties/Settings.Designer.cs'
--- src/UbuntuOneClient/Properties/Settings.Designer.cs 1970-01-01 00:00:00 +0000
+++ src/UbuntuOneClient/Properties/Settings.Designer.cs 2010-07-27 16:18:46 +0000
@@ -0,0 +1,30 @@
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated by a tool.
4// Runtime Version:2.0.50727.4927
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </auto-generated>
9//------------------------------------------------------------------------------
10
11namespace UbuntuOneClient.Properties
12{
13
14
15 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
17 internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 {
19
20 private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21
22 public static Settings Default
23 {
24 get
25 {
26 return defaultInstance;
27 }
28 }
29 }
30}
031
=== added file 'src/UbuntuOneClient/Properties/Settings.settings'
--- src/UbuntuOneClient/Properties/Settings.settings 1970-01-01 00:00:00 +0000
+++ src/UbuntuOneClient/Properties/Settings.settings 2010-07-27 16:18:46 +0000
@@ -0,0 +1,7 @@
1<?xml version='1.0' encoding='utf-8'?>
2<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
3 <Profiles>
4 <Profile Name="(Default)" />
5 </Profiles>
6 <Settings />
7</SettingsFile>
0\ No newline at end of file8\ No newline at end of file
19
=== added file 'src/UbuntuOneClient/UbuntuOneClient.csproj'
--- src/UbuntuOneClient/UbuntuOneClient.csproj 1970-01-01 00:00:00 +0000
+++ src/UbuntuOneClient/UbuntuOneClient.csproj 2010-07-27 16:18:46 +0000
@@ -0,0 +1,96 @@
1<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <PropertyGroup>
4 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6 <ProductVersion>9.0.21022</ProductVersion>
7 <SchemaVersion>2.0</SchemaVersion>
8 <ProjectGuid>{E41083CC-B99A-4AEC-93CC-F693F6AA6071}</ProjectGuid>
9 <OutputType>WinExe</OutputType>
10 <AppDesignerFolder>Properties</AppDesignerFolder>
11 <RootNamespace>UbuntuOneClient</RootNamespace>
12 <AssemblyName>UbuntuOneClient</AssemblyName>
13 <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
14 <FileAlignment>512</FileAlignment>
15 <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
16 <WarningLevel>4</WarningLevel>
17 </PropertyGroup>
18 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
19 <DebugSymbols>true</DebugSymbols>
20 <DebugType>full</DebugType>
21 <Optimize>false</Optimize>
22 <OutputPath>bin\Debug\</OutputPath>
23 <DefineConstants>DEBUG;TRACE</DefineConstants>
24 <ErrorReport>prompt</ErrorReport>
25 <WarningLevel>4</WarningLevel>
26 </PropertyGroup>
27 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28 <DebugType>pdbonly</DebugType>
29 <Optimize>true</Optimize>
30 <OutputPath>bin\Release\</OutputPath>
31 <DefineConstants>TRACE</DefineConstants>
32 <ErrorReport>prompt</ErrorReport>
33 <WarningLevel>4</WarningLevel>
34 </PropertyGroup>
35 <ItemGroup>
36 <Reference Include="AvalonLibrary, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b5d01516e28df45f, processorArchitecture=MSIL">
37 <SpecificVersion>False</SpecificVersion>
38 <HintPath>..\..\lib\WPFContrib\AvalonLibrary.dll</HintPath>
39 </Reference>
40 <Reference Include="System" />
41 <Reference Include="System.Core">
42 <RequiredTargetFramework>3.5</RequiredTargetFramework>
43 </Reference>
44 <Reference Include="System.Xml.Linq">
45 <RequiredTargetFramework>3.5</RequiredTargetFramework>
46 </Reference>
47 <Reference Include="System.Data.DataSetExtensions">
48 <RequiredTargetFramework>3.5</RequiredTargetFramework>
49 </Reference>
50 <Reference Include="System.Data" />
51 <Reference Include="System.Xml" />
52 <Reference Include="WindowsBase" />
53 <Reference Include="PresentationCore" />
54 <Reference Include="PresentationFramework" />
55 </ItemGroup>
56 <ItemGroup>
57 <Compile Include="Program.cs" />
58 <Compile Include="Properties\AssemblyInfo.cs">
59 <SubType>Code</SubType>
60 </Compile>
61 <Compile Include="Properties\Resources.Designer.cs">
62 <AutoGen>True</AutoGen>
63 <DesignTime>True</DesignTime>
64 <DependentUpon>Resources.resx</DependentUpon>
65 </Compile>
66 <Compile Include="Properties\Settings.Designer.cs">
67 <AutoGen>True</AutoGen>
68 <DependentUpon>Settings.settings</DependentUpon>
69 <DesignTimeSharedInput>True</DesignTimeSharedInput>
70 </Compile>
71 <EmbeddedResource Include="Properties\Resources.resx">
72 <Generator>ResXFileCodeGenerator</Generator>
73 <LastGenOutput>Resources.Designer.cs</LastGenOutput>
74 <SubType>Designer</SubType>
75 </EmbeddedResource>
76 <None Include="Properties\Settings.settings">
77 <Generator>SettingsSingleFileGenerator</Generator>
78 <LastGenOutput>Settings.Designer.cs</LastGenOutput>
79 </None>
80 <AppDesigner Include="Properties\" />
81 </ItemGroup>
82 <ItemGroup>
83 <ProjectReference Include="..\Canonical.UbuntuOne.Client.Views\Canonical.UbuntuOne.Client.Views.csproj">
84 <Project>{1F0E3DAF-F22F-4B0C-8039-118B082DA237}</Project>
85 <Name>Canonical.UbuntuOne.Client.Views</Name>
86 </ProjectReference>
87 </ItemGroup>
88 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
89 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
90 Other similar extension points exist, see Microsoft.Common.targets.
91 <Target Name="BeforeBuild">
92 </Target>
93 <Target Name="AfterBuild">
94 </Target>
95 -->
96</Project>
0\ No newline at end of file97\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: