Merge lp:~mandel/ubuntuone-windows-installer/systray_icon_core into lp:ubuntuone-windows-installer/beta
- systray_icon_core
- Merge into 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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Colville (community) | Approve | ||
Vincenzo Di Somma (community) | Approve | ||
Review via email:
|
Commit message
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
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Vincenzo Di Somma (vds) : | # |
review:
Approve
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
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:/
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.bzrignore' |
2 | --- .bzrignore 2010-07-26 16:01:28 +0000 |
3 | +++ .bzrignore 2010-07-27 16:18:46 +0000 |
4 | @@ -48,3 +48,7 @@ |
5 | bin |
6 | obj |
7 | ./bin |
8 | +./bin |
9 | +./obj |
10 | +./bin |
11 | +./obj |
12 | |
13 | === added directory 'lib/WPFContrib' |
14 | === added file 'lib/WPFContrib/AvalonLibrary.dll' |
15 | Binary 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 |
16 | === added file 'lib/WPFContrib/license.txt' |
17 | --- lib/WPFContrib/license.txt 1970-01-01 00:00:00 +0000 |
18 | +++ lib/WPFContrib/license.txt 2010-07-27 16:18:46 +0000 |
19 | @@ -0,0 +1,56 @@ |
20 | +Microsoft Permissive License (Ms-PL) |
21 | + |
22 | +This license governs use of the accompanying software. If you use the software, |
23 | +you accept this license. If you do not accept the license, do not use the software. |
24 | + |
25 | +1. Definitions |
26 | + |
27 | +The terms "reproduce," "reproduction," "derivative works," and "distribution" |
28 | +have the same meaning here as under U.S. copyright law. |
29 | + |
30 | +A "contribution" is the original software, or any additions or changes to |
31 | +the software. |
32 | + |
33 | +A "contributor" is any person that distributes its contribution under this |
34 | +license. |
35 | + |
36 | +"Licensed patents" are a contributor's patent claims that read directly on |
37 | +its contribution. |
38 | + |
39 | +2. Grant of Rights |
40 | + |
41 | +(A) Copyright Grant- Subject to the terms of this license, including the |
42 | +license conditions and limitations in section 3, each contributor grants |
43 | +you a non-exclusive, worldwide, royalty-free copyright license to reproduce |
44 | +its contribution, prepare derivative works of its contribution, and distribute |
45 | +its contribution or any derivative works that you create. |
46 | + |
47 | +(B) Patent Grant- Subject to the terms of this license, including the license |
48 | +conditions and limitations in section 3, each contributor grants you a non-exclusive, |
49 | +worldwide, royalty-free license under its licensed patents to make, have made, use, |
50 | +sell, offer for sale, import, and/or otherwise dispose of its contribution in the |
51 | +software or derivative works of the contribution in the software. |
52 | + |
53 | +3. Conditions and Limitations |
54 | + |
55 | +(A) No Trademark License- This license does not grant you rights to use any |
56 | +contributors' name, logo, or trademarks. |
57 | + |
58 | +(B) If you bring a patent claim against any contributor over patents that you |
59 | +claim are infringed by the software, your patent license from such contributor |
60 | +to the software ends automatically. |
61 | + |
62 | +(C) If you distribute any portion of the software, you must retain all copyright, |
63 | +patent, trademark, and attribution notices that are present in the software. |
64 | + |
65 | +(D) If you distribute any portion of the software in source code form, you may do |
66 | +so only under this license by including a complete copy of this license with your |
67 | +distribution. If you distribute any portion of the software in compiled or object |
68 | +code form, you may only do so under a license that complies with this license. |
69 | + |
70 | +(E) The software is licensed "as-is." You bear the risk of using it. The |
71 | +contributors give no express warranties, guarantees or conditions. You may |
72 | +have additional consumer rights under your local laws which this license cannot |
73 | +change. To the extent permitted under your local laws, the contributors exclude |
74 | +the implied warranties of merchantability, fitness for a particular purpose and |
75 | +non-infringement. |
76 | \ No newline at end of file |
77 | |
78 | === added directory 'src/Canonical.UbuntuOne.Client.Test' |
79 | === added file 'src/Canonical.UbuntuOne.Client.Test/Canonical.UbuntuOne.Client.Test.csproj' |
80 | --- src/Canonical.UbuntuOne.Client.Test/Canonical.UbuntuOne.Client.Test.csproj 1970-01-01 00:00:00 +0000 |
81 | +++ src/Canonical.UbuntuOne.Client.Test/Canonical.UbuntuOne.Client.Test.csproj 2010-07-27 16:18:46 +0000 |
82 | @@ -0,0 +1,72 @@ |
83 | +<?xml version="1.0" encoding="utf-8"?> |
84 | +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
85 | + <PropertyGroup> |
86 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
87 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
88 | + <ProductVersion>9.0.21022</ProductVersion> |
89 | + <SchemaVersion>2.0</SchemaVersion> |
90 | + <ProjectGuid>{2947FCA2-D6FC-4509-83F8-64A87447EBD3}</ProjectGuid> |
91 | + <OutputType>Library</OutputType> |
92 | + <AppDesignerFolder>Properties</AppDesignerFolder> |
93 | + <RootNamespace>Canonical.UbuntuOne.Client.Test</RootNamespace> |
94 | + <AssemblyName>Canonical.UbuntuOne.Client.Test</AssemblyName> |
95 | + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
96 | + <FileAlignment>512</FileAlignment> |
97 | + </PropertyGroup> |
98 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
99 | + <DebugSymbols>true</DebugSymbols> |
100 | + <DebugType>full</DebugType> |
101 | + <Optimize>false</Optimize> |
102 | + <OutputPath>bin\Debug\</OutputPath> |
103 | + <DefineConstants>DEBUG;TRACE</DefineConstants> |
104 | + <ErrorReport>prompt</ErrorReport> |
105 | + <WarningLevel>4</WarningLevel> |
106 | + </PropertyGroup> |
107 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
108 | + <DebugType>pdbonly</DebugType> |
109 | + <Optimize>true</Optimize> |
110 | + <OutputPath>bin\Release\</OutputPath> |
111 | + <DefineConstants>TRACE</DefineConstants> |
112 | + <ErrorReport>prompt</ErrorReport> |
113 | + <WarningLevel>4</WarningLevel> |
114 | + </PropertyGroup> |
115 | + <ItemGroup> |
116 | + <Reference Include="nunit.framework, Version=2.5.5.10112, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL"> |
117 | + <SpecificVersion>False</SpecificVersion> |
118 | + <HintPath>..\..\lib\Nunit\nunit.framework.dll</HintPath> |
119 | + </Reference> |
120 | + <Reference Include="System" /> |
121 | + <Reference Include="System.Core"> |
122 | + <RequiredTargetFramework>3.5</RequiredTargetFramework> |
123 | + </Reference> |
124 | + <Reference Include="System.Xml.Linq"> |
125 | + <RequiredTargetFramework>3.5</RequiredTargetFramework> |
126 | + </Reference> |
127 | + <Reference Include="System.Data.DataSetExtensions"> |
128 | + <RequiredTargetFramework>3.5</RequiredTargetFramework> |
129 | + </Reference> |
130 | + <Reference Include="System.Data" /> |
131 | + <Reference Include="System.Xml" /> |
132 | + </ItemGroup> |
133 | + <ItemGroup> |
134 | + <Compile Include="Notification\NotificationEventArgsFixture.cs" /> |
135 | + <Compile Include="Notification\OperationCompletenessEventArgsFixture.cs" /> |
136 | + <Compile Include="Notification\RecentlyModifiedEventArgsFixture.cs" /> |
137 | + <Compile Include="Notification\StateEventArgsFixture.cs" /> |
138 | + <Compile Include="Properties\AssemblyInfo.cs" /> |
139 | + </ItemGroup> |
140 | + <ItemGroup> |
141 | + <ProjectReference Include="..\Canonical.UbuntuOne.Client\Canonical.UbuntuOne.Client.csproj"> |
142 | + <Project>{7467483A-D6D5-4362-8DF4-57A7254EB569}</Project> |
143 | + <Name>Canonical.UbuntuOne.Client</Name> |
144 | + </ProjectReference> |
145 | + </ItemGroup> |
146 | + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
147 | + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
148 | + Other similar extension points exist, see Microsoft.Common.targets. |
149 | + <Target Name="BeforeBuild"> |
150 | + </Target> |
151 | + <Target Name="AfterBuild"> |
152 | + </Target> |
153 | + --> |
154 | +</Project> |
155 | \ No newline at end of file |
156 | |
157 | === added directory 'src/Canonical.UbuntuOne.Client.Test/Notification' |
158 | === added file 'src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs' |
159 | --- src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs 1970-01-01 00:00:00 +0000 |
160 | +++ src/Canonical.UbuntuOne.Client.Test/Notification/NotificationEventArgsFixture.cs 2010-07-27 16:18:46 +0000 |
161 | @@ -0,0 +1,49 @@ |
162 | +/** |
163 | + * Copyright 2010 Canonical Ltd. |
164 | + * |
165 | + * This file is part of UbuntuOne on Windows. |
166 | + * |
167 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
168 | + * it under the terms of the GNU Lesser General Public License version |
169 | + * as published by the Free Software Foundation. |
170 | + * |
171 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
172 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
173 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
174 | + * GNU Lesser General Public License for more details. |
175 | + * |
176 | + * You should have received a copy of the GNU Lesser General Public License |
177 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
178 | + * |
179 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
180 | + */ |
181 | +using Canonical.UbuntuOne.Client.Notification; |
182 | +using NUnit.Framework; |
183 | + |
184 | +namespace Canonical.UbuntuOne.Client.Test.Notification |
185 | +{ |
186 | + [TestFixture] |
187 | + public class NotificationEventArgsFixture |
188 | + { |
189 | + |
190 | + #region Tests |
191 | + |
192 | + [Test] |
193 | + public void EmptyContructorTest() |
194 | + { |
195 | + var args = new NotificationEventArgs(); |
196 | + Assert.AreEqual("", args.Message); |
197 | + } |
198 | + |
199 | + [TestCase("Message 1")] |
200 | + [TestCase("Message 2")] |
201 | + [TestCase("Message 3")] |
202 | + public void MessageConstrutorTest(string message) |
203 | + { |
204 | + var args = new NotificationEventArgs(message); |
205 | + Assert.AreEqual(message, args.Message); |
206 | + } |
207 | + |
208 | + #endregion |
209 | + } |
210 | +} |
211 | |
212 | === added file 'src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs' |
213 | --- src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs 1970-01-01 00:00:00 +0000 |
214 | +++ src/Canonical.UbuntuOne.Client.Test/Notification/OperationCompletenessEventArgsFixture.cs 2010-07-27 16:18:46 +0000 |
215 | @@ -0,0 +1,53 @@ |
216 | +/** |
217 | + * Copyright 2010 Canonical Ltd. |
218 | + * |
219 | + * This file is part of UbuntuOne on Windows. |
220 | + * |
221 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
222 | + * it under the terms of the GNU Lesser General Public License version |
223 | + * as published by the Free Software Foundation. |
224 | + * |
225 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
226 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
227 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
228 | + * GNU Lesser General Public License for more details. |
229 | + * |
230 | + * You should have received a copy of the GNU Lesser General Public License |
231 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
232 | + * |
233 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
234 | + */ |
235 | +using Canonical.UbuntuOne.Client.Notification; |
236 | +using NUnit.Framework; |
237 | + |
238 | +namespace Canonical.UbuntuOne.Client.Test.Notification |
239 | +{ |
240 | + [TestFixture] |
241 | + public class OperationCompletenessEventArgsFixture |
242 | + { |
243 | + |
244 | + #region Tests |
245 | + |
246 | + [Test] |
247 | + public void EmptyConstructorTest() |
248 | + { |
249 | + var args = new OperationCompletenessEventArgs(); |
250 | + Assert.AreEqual(0, args.Percentage); |
251 | + Assert.AreEqual(0, args.Speed); |
252 | + Assert.AreEqual(OperationCompletenessEventArgs.SpeedUnitsEnum.MB, args.SpeedUnits); |
253 | + } |
254 | + |
255 | + [TestCase(1, 3.4, OperationCompletenessEventArgs.SpeedUnitsEnum.MB)] |
256 | + [TestCase(2323, 0.0, OperationCompletenessEventArgs.SpeedUnitsEnum.MB)] |
257 | + [TestCase(45, 23.4, OperationCompletenessEventArgs.SpeedUnitsEnum.KB)] |
258 | + public void ParametersConstructorTest(int percentage, double speed, OperationCompletenessEventArgs.SpeedUnitsEnum unitsEnum) |
259 | + { |
260 | + var args = new OperationCompletenessEventArgs(percentage, speed, unitsEnum); |
261 | + Assert.AreEqual(percentage, args.Percentage); |
262 | + Assert.AreEqual(speed, args.Speed); |
263 | + Assert.AreEqual(unitsEnum, args.SpeedUnits); |
264 | + } |
265 | + |
266 | + #endregion |
267 | + } |
268 | +} |
269 | |
270 | === added file 'src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs' |
271 | --- src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs 1970-01-01 00:00:00 +0000 |
272 | +++ src/Canonical.UbuntuOne.Client.Test/Notification/RecentlyModifiedEventArgsFixture.cs 2010-07-27 16:18:46 +0000 |
273 | @@ -0,0 +1,54 @@ |
274 | +/** |
275 | + * Copyright 2010 Canonical Ltd. |
276 | + * |
277 | + * This file is part of UbuntuOne on Windows. |
278 | + * |
279 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
280 | + * it under the terms of the GNU Lesser General Public License version |
281 | + * as published by the Free Software Foundation. |
282 | + * |
283 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
284 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
285 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
286 | + * GNU Lesser General Public License for more details. |
287 | + * |
288 | + * You should have received a copy of the GNU Lesser General Public License |
289 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
290 | + * |
291 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
292 | + */ |
293 | +using System.Collections.Generic; |
294 | +using Canonical.UbuntuOne.Client.Notification; |
295 | +using NUnit.Framework; |
296 | + |
297 | +namespace Canonical.UbuntuOne.Client.Test.Notification |
298 | +{ |
299 | + [TestFixture] |
300 | + public class RecentlyModifiedEventArgsFixture |
301 | + { |
302 | + #region Tests |
303 | + |
304 | + [Test] |
305 | + public void EmptyConstructorTest() |
306 | + { |
307 | + var args = new RecentlyModifiedEventArgs(); |
308 | + Assert.IsNotNull(args.RecentlyModifiedFiles); |
309 | + Assert.AreEqual(0, args.RecentlyModifiedFiles.Count); |
310 | + } |
311 | + |
312 | + [Test] |
313 | + public void ParametersConstructorTest() |
314 | + { |
315 | + var list = new List<string> |
316 | + { |
317 | + "fistPath", |
318 | + "secondPath", |
319 | + "thridPath" |
320 | + }; |
321 | + var args = new RecentlyModifiedEventArgs(list); |
322 | + Assert.AreSame(list, args.RecentlyModifiedFiles); |
323 | + } |
324 | + |
325 | + #endregion |
326 | + } |
327 | +} |
328 | |
329 | === added file 'src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs' |
330 | --- src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs 1970-01-01 00:00:00 +0000 |
331 | +++ src/Canonical.UbuntuOne.Client.Test/Notification/StateEventArgsFixture.cs 2010-07-27 16:18:46 +0000 |
332 | @@ -0,0 +1,50 @@ |
333 | +/** |
334 | + * Copyright 2010 Canonical Ltd. |
335 | + * |
336 | + * This file is part of UbuntuOne on Windows. |
337 | + * |
338 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
339 | + * it under the terms of the GNU Lesser General Public License version |
340 | + * as published by the Free Software Foundation. |
341 | + * |
342 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
343 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
344 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
345 | + * GNU Lesser General Public License for more details. |
346 | + * |
347 | + * You should have received a copy of the GNU Lesser General Public License |
348 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
349 | + * |
350 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
351 | + */ |
352 | +using Canonical.UbuntuOne.Client.Notification; |
353 | +using NUnit.Framework; |
354 | + |
355 | +namespace Canonical.UbuntuOne.Client.Test.Notification |
356 | +{ |
357 | + [TestFixture] |
358 | + public class StateEventArgsFixture |
359 | + { |
360 | + #region Tests |
361 | + |
362 | + [Test] |
363 | + public void EmptyConstrcutorTest() |
364 | + { |
365 | + var args = new StateEventArgs(); |
366 | + Assert.AreEqual(StateEventArgs.StateEnum.UP_TO_DATE, args.State); |
367 | + } |
368 | + |
369 | + [TestCase(StateEventArgs.StateEnum.ERROR)] |
370 | + [TestCase(StateEventArgs.StateEnum.OUT_OF_SYNC)] |
371 | + [TestCase(StateEventArgs.StateEnum.SYNC_IN_PROGRESS)] |
372 | + [TestCase(StateEventArgs.StateEnum.UP_TO_DATE)] |
373 | + public void ParametersConstructor(StateEventArgs.StateEnum state) |
374 | + { |
375 | + var args = new StateEventArgs(state); |
376 | + Assert.AreEqual(state, args.State); |
377 | + } |
378 | + |
379 | + #endregion |
380 | + |
381 | + } |
382 | +} |
383 | |
384 | === added directory 'src/Canonical.UbuntuOne.Client.Test/Properties' |
385 | === added file 'src/Canonical.UbuntuOne.Client.Test/Properties/AssemblyInfo.cs' |
386 | --- src/Canonical.UbuntuOne.Client.Test/Properties/AssemblyInfo.cs 1970-01-01 00:00:00 +0000 |
387 | +++ src/Canonical.UbuntuOne.Client.Test/Properties/AssemblyInfo.cs 2010-07-27 16:18:46 +0000 |
388 | @@ -0,0 +1,36 @@ |
389 | +using System.Reflection; |
390 | +using System.Runtime.CompilerServices; |
391 | +using System.Runtime.InteropServices; |
392 | + |
393 | +// General Information about an assembly is controlled through the following |
394 | +// set of attributes. Change these attribute values to modify the information |
395 | +// associated with an assembly. |
396 | +[assembly: AssemblyTitle("Canonical.UbuntuOne.Client.Test")] |
397 | +[assembly: AssemblyDescription("")] |
398 | +[assembly: AssemblyConfiguration("")] |
399 | +[assembly: AssemblyCompany("")] |
400 | +[assembly: AssemblyProduct("Canonical.UbuntuOne.Client.Test")] |
401 | +[assembly: AssemblyCopyright("Copyright © 2010")] |
402 | +[assembly: AssemblyTrademark("")] |
403 | +[assembly: AssemblyCulture("")] |
404 | + |
405 | +// Setting ComVisible to false makes the types in this assembly not visible |
406 | +// to COM components. If you need to access a type in this assembly from |
407 | +// COM, set the ComVisible attribute to true on that type. |
408 | +[assembly: ComVisible(false)] |
409 | + |
410 | +// The following GUID is for the ID of the typelib if this project is exposed to COM |
411 | +[assembly: Guid("993407a9-fb9c-4678-bd7c-5c2fdf60eb51")] |
412 | + |
413 | +// Version information for an assembly consists of the following four values: |
414 | +// |
415 | +// Major Version |
416 | +// Minor Version |
417 | +// Build Number |
418 | +// Revision |
419 | +// |
420 | +// You can specify all the values or you can default the Build and Revision Numbers |
421 | +// by using the '*' as shown below: |
422 | +// [assembly: AssemblyVersion("1.0.*")] |
423 | +[assembly: AssemblyVersion("1.0.0.0")] |
424 | +[assembly: AssemblyFileVersion("1.0.0.0")] |
425 | |
426 | === modified file 'src/Canonical.UbuntuOne.Client.Views/App.xaml' |
427 | --- src/Canonical.UbuntuOne.Client.Views/App.xaml 2010-07-13 09:52:05 +0000 |
428 | +++ src/Canonical.UbuntuOne.Client.Views/App.xaml 2010-07-27 16:18:46 +0000 |
429 | @@ -1,7 +1,7 @@ |
430 | <Application x:Class="Canonical.UbuntuOne.Client.Views.App" |
431 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
432 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
433 | - StartupUri="Page1.xaml"> |
434 | + StartupUri="PreferencesDialog.xaml"> |
435 | <Application.Resources> |
436 | |
437 | </Application.Resources> |
438 | |
439 | === modified file 'src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj' |
440 | --- src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj 2010-07-13 15:37:56 +0000 |
441 | +++ src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj 2010-07-27 16:18:46 +0000 |
442 | @@ -14,15 +14,29 @@ |
443 | <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
444 | <WarningLevel>4</WarningLevel> |
445 | <EnableSecurityDebugging>true</EnableSecurityDebugging> |
446 | - <Install>False</Install> |
447 | <StartAction>URL</StartAction> |
448 | <HostInBrowser>true</HostInBrowser> |
449 | - <BootstrapperEnabled>false</BootstrapperEnabled> |
450 | <TargetZone>Internet</TargetZone> |
451 | <GenerateManifests>true</GenerateManifests> |
452 | <SignManifests>True</SignManifests> |
453 | <ManifestKeyFile>Canonical.UbuntuOne.Client.Views_TemporaryKey.pfx</ManifestKeyFile> |
454 | <ManifestCertificateThumbprint>C01A25E9B7EE9BDD2B4107D4536464D937953964</ManifestCertificateThumbprint> |
455 | + <StartupObject>Canonical.UbuntuOne.Client.Views.App</StartupObject> |
456 | + <PublishUrl>publish\</PublishUrl> |
457 | + <Install>false</Install> |
458 | + <InstallFrom>Disk</InstallFrom> |
459 | + <UpdateEnabled>false</UpdateEnabled> |
460 | + <UpdateMode>Foreground</UpdateMode> |
461 | + <UpdateInterval>7</UpdateInterval> |
462 | + <UpdateIntervalUnits>Days</UpdateIntervalUnits> |
463 | + <UpdatePeriodically>false</UpdatePeriodically> |
464 | + <UpdateRequired>false</UpdateRequired> |
465 | + <MapFileExtensions>true</MapFileExtensions> |
466 | + <ApplicationRevision>0</ApplicationRevision> |
467 | + <ApplicationVersion>1.0.0.%2a</ApplicationVersion> |
468 | + <IsWebBootstrapper>false</IsWebBootstrapper> |
469 | + <UseApplicationTrust>false</UseApplicationTrust> |
470 | + <BootstrapperEnabled>false</BootstrapperEnabled> |
471 | </PropertyGroup> |
472 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
473 | <DebugSymbols>true</DebugSymbols> |
474 | @@ -42,10 +56,15 @@ |
475 | <WarningLevel>4</WarningLevel> |
476 | </PropertyGroup> |
477 | <ItemGroup> |
478 | + <Reference Include="AvalonLibrary, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b5d01516e28df45f, processorArchitecture=MSIL"> |
479 | + <SpecificVersion>False</SpecificVersion> |
480 | + <HintPath>..\..\lib\WPFContrib\AvalonLibrary.dll</HintPath> |
481 | + </Reference> |
482 | <Reference Include="System" /> |
483 | <Reference Include="System.Core"> |
484 | <RequiredTargetFramework>3.5</RequiredTargetFramework> |
485 | </Reference> |
486 | + <Reference Include="System.Drawing" /> |
487 | <Reference Include="System.Xml.Linq"> |
488 | <RequiredTargetFramework>3.5</RequiredTargetFramework> |
489 | </Reference> |
490 | @@ -54,29 +73,45 @@ |
491 | </Reference> |
492 | <Reference Include="System.Data" /> |
493 | <Reference Include="System.Xml" /> |
494 | - <Reference Include="WindowsBase" /> |
495 | - <Reference Include="PresentationCore" /> |
496 | - <Reference Include="PresentationFramework" /> |
497 | + <Reference Include="UIAutomationProvider"> |
498 | + <RequiredTargetFramework>3.0</RequiredTargetFramework> |
499 | + </Reference> |
500 | + <Reference Include="WindowsBase"> |
501 | + <RequiredTargetFramework>3.0</RequiredTargetFramework> |
502 | + </Reference> |
503 | + <Reference Include="PresentationCore"> |
504 | + <RequiredTargetFramework>3.0</RequiredTargetFramework> |
505 | + </Reference> |
506 | + <Reference Include="PresentationFramework"> |
507 | + <RequiredTargetFramework>3.0</RequiredTargetFramework> |
508 | + </Reference> |
509 | </ItemGroup> |
510 | <ItemGroup> |
511 | <ApplicationDefinition Include="App.xaml"> |
512 | <Generator>MSBuild:Compile</Generator> |
513 | <SubType>Designer</SubType> |
514 | </ApplicationDefinition> |
515 | - <Page Include="Page1.xaml"> |
516 | - <Generator>MSBuild:Compile</Generator> |
517 | - <SubType>Designer</SubType> |
518 | + <Page Include="NotifyIcon.xaml"> |
519 | + <Generator>MSBuild:Compile</Generator> |
520 | + <SubType>Designer</SubType> |
521 | + </Page> |
522 | + <Page Include="PreferencesDialog.xaml"> |
523 | + <SubType>Designer</SubType> |
524 | + <Generator>MSBuild:Compile</Generator> |
525 | </Page> |
526 | <Compile Include="App.xaml.cs"> |
527 | <DependentUpon>App.xaml</DependentUpon> |
528 | <SubType>Code</SubType> |
529 | </Compile> |
530 | - <Compile Include="Page1.xaml.cs"> |
531 | - <DependentUpon>Page1.xaml</DependentUpon> |
532 | + <Compile Include="NotifyIcon.xaml.cs"> |
533 | + <DependentUpon>NotifyIcon.xaml</DependentUpon> |
534 | <SubType>Code</SubType> |
535 | </Compile> |
536 | </ItemGroup> |
537 | <ItemGroup> |
538 | + <Compile Include="PreferencesDialog.xaml.cs"> |
539 | + <DependentUpon>PreferencesDialog.xaml</DependentUpon> |
540 | + </Compile> |
541 | <Compile Include="Properties\AssemblyInfo.cs"> |
542 | <SubType>Code</SubType> |
543 | </Compile> |
544 | @@ -90,11 +125,21 @@ |
545 | <DependentUpon>Settings.settings</DependentUpon> |
546 | <DesignTimeSharedInput>True</DesignTimeSharedInput> |
547 | </Compile> |
548 | + <Compile Include="Resources\Resources.Designer.cs"> |
549 | + <AutoGen>True</AutoGen> |
550 | + <DesignTime>True</DesignTime> |
551 | + <DependentUpon>Resources.resx</DependentUpon> |
552 | + </Compile> |
553 | <EmbeddedResource Include="Properties\Resources.resx"> |
554 | <Generator>ResXFileCodeGenerator</Generator> |
555 | <LastGenOutput>Resources.Designer.cs</LastGenOutput> |
556 | <SubType>Designer</SubType> |
557 | </EmbeddedResource> |
558 | + <EmbeddedResource Include="Resources\Resources.resx"> |
559 | + <Generator>PublicResXFileCodeGenerator</Generator> |
560 | + <LastGenOutput>Resources.Designer.cs</LastGenOutput> |
561 | + <SubType>Designer</SubType> |
562 | + </EmbeddedResource> |
563 | <None Include="Canonical.UbuntuOne.Client.Views_TemporaryKey.pfx" /> |
564 | <None Include="Properties\Settings.settings"> |
565 | <Generator>SettingsSingleFileGenerator</Generator> |
566 | @@ -103,6 +148,39 @@ |
567 | <None Include="Properties\app.manifest" /> |
568 | <AppDesigner Include="Properties\" /> |
569 | </ItemGroup> |
570 | + <ItemGroup> |
571 | + <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> |
572 | + <Visible>False</Visible> |
573 | + <ProductName>.NET Framework 2.0 %28x86%29</ProductName> |
574 | + <Install>false</Install> |
575 | + </BootstrapperPackage> |
576 | + <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> |
577 | + <Visible>False</Visible> |
578 | + <ProductName>.NET Framework 3.0 %28x86%29</ProductName> |
579 | + <Install>false</Install> |
580 | + </BootstrapperPackage> |
581 | + <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> |
582 | + <Visible>False</Visible> |
583 | + <ProductName>.NET Framework 3.5</ProductName> |
584 | + <Install>true</Install> |
585 | + </BootstrapperPackage> |
586 | + <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> |
587 | + <Visible>False</Visible> |
588 | + <ProductName>Windows Installer 3.1</ProductName> |
589 | + <Install>true</Install> |
590 | + </BootstrapperPackage> |
591 | + </ItemGroup> |
592 | + <ItemGroup> |
593 | + <Resource Include="Resources\ubuntu-logo-22x22.png"> |
594 | + </Resource> |
595 | + </ItemGroup> |
596 | + <ItemGroup> |
597 | + <Resource Include="Resources\ubuntu-logo-24x24.png" /> |
598 | + </ItemGroup> |
599 | + <ItemGroup> |
600 | + <Resource Include="Resources\ubuntu-logo-32x32.png"> |
601 | + </Resource> |
602 | + </ItemGroup> |
603 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
604 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
605 | Other similar extension points exist, see Microsoft.Common.targets. |
606 | |
607 | === added file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml' |
608 | --- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml 1970-01-01 00:00:00 +0000 |
609 | +++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml 2010-07-27 16:18:46 +0000 |
610 | @@ -0,0 +1,72 @@ |
611 | +<!-- |
612 | + * Copyright 2010 Canonical Ltd. |
613 | + * |
614 | + * This file is part of UbuntuOne on Windows. |
615 | + * |
616 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
617 | + * it under the terms of the GNU Lesser General Public License version |
618 | + * as published by the Free Software Foundation. |
619 | + * |
620 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
621 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
622 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
623 | + * GNU Lesser General Public License for more details. |
624 | + * |
625 | + * You should have received a copy of the GNU Lesser General Public License |
626 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
627 | + * |
628 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
629 | +--> |
630 | +<Window x:Class="Canonical.UbuntuOne.Client.Views.UbuntuOneNotifyIcon" |
631 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
632 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
633 | + xmlns:av="http://schemas.codeplex.com/wpfcontrib/xaml/presentation" |
634 | + xmlns:resx="clr-namespace:Canonical.UbuntuOne.Client.Views.Resources" |
635 | + Title="Ubuntu One" |
636 | + Visibility="Hidden" |
637 | + Width="0" |
638 | + Height="0" |
639 | + WindowStyle="None" |
640 | + ShowInTaskbar="False" |
641 | + ShowActivated="False"> |
642 | + <DockPanel> |
643 | + <StackPanel Margin="20"> |
644 | + <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 --> |
645 | + <FrameworkElement.ContextMenu> |
646 | + <ContextMenu> |
647 | + <MenuItem x:Uid="UbuntuOnePreferencesMenuItem" |
648 | + Name="UbuntuOnePreferencesMenuItem" |
649 | + Header="{x:Static resx:Resources.UbuntuOnePreferences}" /> |
650 | + <MenuItem x:Uid="OpenShareManueItem" |
651 | + Name="OpenShareManueItem" |
652 | + Header="{x:Static resx:Resources.OpenShares}" /> |
653 | + <MenuItem x:Uid="OpenSyncMenuItem" |
654 | + Name="OpenSyncMenuItem" |
655 | + Header="{x:Static resx:Resources.OpenSync}" /> |
656 | + <Separator /> |
657 | + <MenuItem Name="StateMenuItem" |
658 | + Header="State"/> <!-- Out sync, sync in progress (animate), everything up to date, error --> |
659 | + <MenuItem Name="CompleteInfoMenuItem" |
660 | + Header=""/> |
661 | + <MenuItem Name="SpaceLeftMenuItem" |
662 | + Header=""/> |
663 | + <Separator /> |
664 | + <MenuItem x:Uid="RecentlyModifyFilesMenuItem" |
665 | + Name="RecentlyModifyFilesMenuItem" |
666 | + Header="{x:Static resx:Resources.RecentlyModifyFiles}" /> |
667 | + <Separator /> |
668 | + <MenuItem x:Uid="HelpMenuItem" |
669 | + Name="HelpMenuItem" |
670 | + Header="{x:Static resx:Resources.Help}" /> |
671 | + <MenuItem x:Uid="MoreSpaceMenuItem" |
672 | + Name="MoreSpaceMenuItem" |
673 | + Header="{x:Static resx:Resources.MoreSpace}"/> |
674 | + <MenuItem x:Uid="ExitMenuItem" |
675 | + Name="ExitMenuItem" |
676 | + Header="{x:Static resx:Resources.Exit}" /> |
677 | + </ContextMenu> |
678 | + </FrameworkElement.ContextMenu> |
679 | + </av:NotifyIcon> |
680 | + </StackPanel> |
681 | + </DockPanel> |
682 | +</Window> |
683 | |
684 | === added file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs' |
685 | --- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 1970-01-01 00:00:00 +0000 |
686 | +++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-07-27 16:18:46 +0000 |
687 | @@ -0,0 +1,34 @@ |
688 | +/** |
689 | + * Copyright 2010 Canonical Ltd. |
690 | + * |
691 | + * This file is part of UbuntuOne on Windows. |
692 | + * |
693 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
694 | + * it under the terms of the GNU Lesser General Public License version |
695 | + * as published by the Free Software Foundation. |
696 | + * |
697 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
698 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
699 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
700 | + * GNU Lesser General Public License for more details. |
701 | + * |
702 | + * You should have received a copy of the GNU Lesser General Public License |
703 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
704 | + * |
705 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
706 | + */ |
707 | +using System.Windows; |
708 | + |
709 | +namespace Canonical.UbuntuOne.Client.Views |
710 | +{ |
711 | + /// <summary> |
712 | + /// Interaction logic for UbuntuOneNotifyIcon.xaml |
713 | + /// </summary> |
714 | + public partial class UbuntuOneNotifyIcon : Window |
715 | + { |
716 | + public UbuntuOneNotifyIcon() |
717 | + { |
718 | + InitializeComponent(); |
719 | + } |
720 | + } |
721 | +} |
722 | |
723 | === removed file 'src/Canonical.UbuntuOne.Client.Views/Page1.xaml' |
724 | --- src/Canonical.UbuntuOne.Client.Views/Page1.xaml 2010-07-13 09:52:05 +0000 |
725 | +++ src/Canonical.UbuntuOne.Client.Views/Page1.xaml 1970-01-01 00:00:00 +0000 |
726 | @@ -1,8 +0,0 @@ |
727 | -<Page x:Class="Canonical.UbuntuOne.Client.Views.Page1" |
728 | - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
729 | - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
730 | - Title="Page1"> |
731 | - <Grid> |
732 | - |
733 | - </Grid> |
734 | -</Page> |
735 | |
736 | === removed file 'src/Canonical.UbuntuOne.Client.Views/Page1.xaml.cs' |
737 | --- src/Canonical.UbuntuOne.Client.Views/Page1.xaml.cs 2010-07-13 09:52:05 +0000 |
738 | +++ src/Canonical.UbuntuOne.Client.Views/Page1.xaml.cs 1970-01-01 00:00:00 +0000 |
739 | @@ -1,27 +0,0 @@ |
740 | -using System; |
741 | -using System.Collections.Generic; |
742 | -using System.Linq; |
743 | -using System.Text; |
744 | -using System.Windows; |
745 | -using System.Windows.Controls; |
746 | -using System.Windows.Data; |
747 | -using System.Windows.Documents; |
748 | -using System.Windows.Input; |
749 | -using System.Windows.Media; |
750 | -using System.Windows.Media.Imaging; |
751 | -using System.Windows.Navigation; |
752 | -using System.Windows.Shapes; |
753 | - |
754 | -namespace Canonical.UbuntuOne.Client.Views |
755 | -{ |
756 | - /// <summary> |
757 | - /// Interaction logic for Page1.xaml |
758 | - /// </summary> |
759 | - public partial class Page1 : Page |
760 | - { |
761 | - public Page1() |
762 | - { |
763 | - InitializeComponent(); |
764 | - } |
765 | - } |
766 | -} |
767 | |
768 | === added file 'src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml' |
769 | --- src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml 1970-01-01 00:00:00 +0000 |
770 | +++ src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml 2010-07-27 16:18:46 +0000 |
771 | @@ -0,0 +1,8 @@ |
772 | +<Window x:Class="Canonical.UbuntuOne.Client.Views.PreferencesDialog" |
773 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
774 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
775 | + Title="PreferencesDialog" Height="300" Width="300"> |
776 | + <Grid> |
777 | + |
778 | + </Grid> |
779 | +</Window> |
780 | |
781 | === added file 'src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs' |
782 | --- src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs 1970-01-01 00:00:00 +0000 |
783 | +++ src/Canonical.UbuntuOne.Client.Views/PreferencesDialog.xaml.cs 2010-07-27 16:18:46 +0000 |
784 | @@ -0,0 +1,26 @@ |
785 | +using System; |
786 | +using System.Collections.Generic; |
787 | +using System.Linq; |
788 | +using System.Text; |
789 | +using System.Windows; |
790 | +using System.Windows.Controls; |
791 | +using System.Windows.Data; |
792 | +using System.Windows.Documents; |
793 | +using System.Windows.Input; |
794 | +using System.Windows.Media; |
795 | +using System.Windows.Media.Imaging; |
796 | +using System.Windows.Shapes; |
797 | + |
798 | +namespace Canonical.UbuntuOne.Client.Views |
799 | +{ |
800 | + /// <summary> |
801 | + /// Interaction logic for PreferencesDialog.xaml |
802 | + /// </summary> |
803 | + public partial class PreferencesDialog : Window |
804 | + { |
805 | + public PreferencesDialog() |
806 | + { |
807 | + InitializeComponent(); |
808 | + } |
809 | + } |
810 | +} |
811 | |
812 | === modified file 'src/Canonical.UbuntuOne.Client.Views/Properties/AssemblyInfo.cs' |
813 | --- src/Canonical.UbuntuOne.Client.Views/Properties/AssemblyInfo.cs 2010-07-13 09:52:05 +0000 |
814 | +++ src/Canonical.UbuntuOne.Client.Views/Properties/AssemblyInfo.cs 2010-07-27 16:18:46 +0000 |
815 | @@ -53,3 +53,4 @@ |
816 | // [assembly: AssemblyVersion("1.0.*")] |
817 | [assembly: AssemblyVersion("1.0.0.0")] |
818 | [assembly: AssemblyFileVersion("1.0.0.0")] |
819 | +[assembly: NeutralResourcesLanguageAttribute("")] |
820 | |
821 | === added directory 'src/Canonical.UbuntuOne.Client.Views/Resources' |
822 | === added file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs' |
823 | --- src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs 1970-01-01 00:00:00 +0000 |
824 | +++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs 2010-07-27 16:18:46 +0000 |
825 | @@ -0,0 +1,126 @@ |
826 | +//------------------------------------------------------------------------------ |
827 | +// <auto-generated> |
828 | +// This code was generated by a tool. |
829 | +// Runtime Version:2.0.50727.4927 |
830 | +// |
831 | +// Changes to this file may cause incorrect behavior and will be lost if |
832 | +// the code is regenerated. |
833 | +// </auto-generated> |
834 | +//------------------------------------------------------------------------------ |
835 | + |
836 | +namespace Canonical.UbuntuOne.Client.Views.Resources { |
837 | + using System; |
838 | + |
839 | + |
840 | + /// <summary> |
841 | + /// A strongly-typed resource class, for looking up localized strings, etc. |
842 | + /// </summary> |
843 | + // This class was auto-generated by the StronglyTypedResourceBuilder |
844 | + // class via a tool like ResGen or Visual Studio. |
845 | + // To add or remove a member, edit your .ResX file then rerun ResGen |
846 | + // with the /str option, or rebuild your VS project. |
847 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] |
848 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
849 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
850 | + public class Resources { |
851 | + |
852 | + private static global::System.Resources.ResourceManager resourceMan; |
853 | + |
854 | + private static global::System.Globalization.CultureInfo resourceCulture; |
855 | + |
856 | + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
857 | + internal Resources() { |
858 | + } |
859 | + |
860 | + /// <summary> |
861 | + /// Returns the cached ResourceManager instance used by this class. |
862 | + /// </summary> |
863 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
864 | + public static global::System.Resources.ResourceManager ResourceManager { |
865 | + get { |
866 | + if (object.ReferenceEquals(resourceMan, null)) { |
867 | + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Canonical.UbuntuOne.Client.Views.Resources.Resources", typeof(Resources).Assembly); |
868 | + resourceMan = temp; |
869 | + } |
870 | + return resourceMan; |
871 | + } |
872 | + } |
873 | + |
874 | + /// <summary> |
875 | + /// Overrides the current thread's CurrentUICulture property for all |
876 | + /// resource lookups using this strongly typed resource class. |
877 | + /// </summary> |
878 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
879 | + public static global::System.Globalization.CultureInfo Culture { |
880 | + get { |
881 | + return resourceCulture; |
882 | + } |
883 | + set { |
884 | + resourceCulture = value; |
885 | + } |
886 | + } |
887 | + |
888 | + /// <summary> |
889 | + /// Looks up a localized string similar to Exit. |
890 | + /// </summary> |
891 | + public static string Exit { |
892 | + get { |
893 | + return ResourceManager.GetString("Exit", resourceCulture); |
894 | + } |
895 | + } |
896 | + |
897 | + /// <summary> |
898 | + /// Looks up a localized string similar to Get Help and Support.... |
899 | + /// </summary> |
900 | + public static string Help { |
901 | + get { |
902 | + return ResourceManager.GetString("Help", resourceCulture); |
903 | + } |
904 | + } |
905 | + |
906 | + /// <summary> |
907 | + /// Looks up a localized string similar to Get More Space. |
908 | + /// </summary> |
909 | + public static string MoreSpace { |
910 | + get { |
911 | + return ResourceManager.GetString("MoreSpace", resourceCulture); |
912 | + } |
913 | + } |
914 | + |
915 | + /// <summary> |
916 | + /// Looks up a localized string similar to Open Share Folders. |
917 | + /// </summary> |
918 | + public static string OpenShares { |
919 | + get { |
920 | + return ResourceManager.GetString("OpenShares", resourceCulture); |
921 | + } |
922 | + } |
923 | + |
924 | + /// <summary> |
925 | + /// Looks up a localized string similar to Open Sync Folders. |
926 | + /// </summary> |
927 | + public static string OpenSync { |
928 | + get { |
929 | + return ResourceManager.GetString("OpenSync", resourceCulture); |
930 | + } |
931 | + } |
932 | + |
933 | + /// <summary> |
934 | + /// Looks up a localized string similar to Recently Modify Files. |
935 | + /// </summary> |
936 | + public static string RecentlyModifyFiles { |
937 | + get { |
938 | + return ResourceManager.GetString("RecentlyModifyFiles", resourceCulture); |
939 | + } |
940 | + } |
941 | + |
942 | + /// <summary> |
943 | + /// Looks up a localized string similar to Ubuntu One Preferences. |
944 | + /// </summary> |
945 | + public static string UbuntuOnePreferences { |
946 | + get { |
947 | + return ResourceManager.GetString("UbuntuOnePreferences", resourceCulture); |
948 | + } |
949 | + } |
950 | + } |
951 | +} |
952 | |
953 | === added file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx' |
954 | --- src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx 1970-01-01 00:00:00 +0000 |
955 | +++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx 2010-07-27 16:18:46 +0000 |
956 | @@ -0,0 +1,141 @@ |
957 | +<?xml version="1.0" encoding="utf-8"?> |
958 | +<root> |
959 | + <!-- |
960 | + Microsoft ResX Schema |
961 | + |
962 | + Version 2.0 |
963 | + |
964 | + The primary goals of this format is to allow a simple XML format |
965 | + that is mostly human readable. The generation and parsing of the |
966 | + various data types are done through the TypeConverter classes |
967 | + associated with the data types. |
968 | + |
969 | + Example: |
970 | + |
971 | + ... ado.net/XML headers & schema ... |
972 | + <resheader name="resmimetype">text/microsoft-resx</resheader> |
973 | + <resheader name="version">2.0</resheader> |
974 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
975 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
976 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
977 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
978 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
979 | + <value>[base64 mime encoded serialized .NET Framework object]</value> |
980 | + </data> |
981 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
982 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
983 | + <comment>This is a comment</comment> |
984 | + </data> |
985 | + |
986 | + There are any number of "resheader" rows that contain simple |
987 | + name/value pairs. |
988 | + |
989 | + Each data row contains a name, and value. The row also contains a |
990 | + type or mimetype. Type corresponds to a .NET class that support |
991 | + text/value conversion through the TypeConverter architecture. |
992 | + Classes that don't support this are serialized and stored with the |
993 | + mimetype set. |
994 | + |
995 | + The mimetype is used for serialized objects, and tells the |
996 | + ResXResourceReader how to depersist the object. This is currently not |
997 | + extensible. For a given mimetype the value must be set accordingly: |
998 | + |
999 | + Note - application/x-microsoft.net.object.binary.base64 is the format |
1000 | + that the ResXResourceWriter will generate, however the reader can |
1001 | + read any of the formats listed below. |
1002 | + |
1003 | + mimetype: application/x-microsoft.net.object.binary.base64 |
1004 | + value : The object must be serialized with |
1005 | + : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
1006 | + : and then encoded with base64 encoding. |
1007 | + |
1008 | + mimetype: application/x-microsoft.net.object.soap.base64 |
1009 | + value : The object must be serialized with |
1010 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
1011 | + : and then encoded with base64 encoding. |
1012 | + |
1013 | + mimetype: application/x-microsoft.net.object.bytearray.base64 |
1014 | + value : The object must be serialized into a byte array |
1015 | + : using a System.ComponentModel.TypeConverter |
1016 | + : and then encoded with base64 encoding. |
1017 | + --> |
1018 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
1019 | + <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
1020 | + <xsd:element name="root" msdata:IsDataSet="true"> |
1021 | + <xsd:complexType> |
1022 | + <xsd:choice maxOccurs="unbounded"> |
1023 | + <xsd:element name="metadata"> |
1024 | + <xsd:complexType> |
1025 | + <xsd:sequence> |
1026 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
1027 | + </xsd:sequence> |
1028 | + <xsd:attribute name="name" use="required" type="xsd:string" /> |
1029 | + <xsd:attribute name="type" type="xsd:string" /> |
1030 | + <xsd:attribute name="mimetype" type="xsd:string" /> |
1031 | + <xsd:attribute ref="xml:space" /> |
1032 | + </xsd:complexType> |
1033 | + </xsd:element> |
1034 | + <xsd:element name="assembly"> |
1035 | + <xsd:complexType> |
1036 | + <xsd:attribute name="alias" type="xsd:string" /> |
1037 | + <xsd:attribute name="name" type="xsd:string" /> |
1038 | + </xsd:complexType> |
1039 | + </xsd:element> |
1040 | + <xsd:element name="data"> |
1041 | + <xsd:complexType> |
1042 | + <xsd:sequence> |
1043 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
1044 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
1045 | + </xsd:sequence> |
1046 | + <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
1047 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
1048 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
1049 | + <xsd:attribute ref="xml:space" /> |
1050 | + </xsd:complexType> |
1051 | + </xsd:element> |
1052 | + <xsd:element name="resheader"> |
1053 | + <xsd:complexType> |
1054 | + <xsd:sequence> |
1055 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
1056 | + </xsd:sequence> |
1057 | + <xsd:attribute name="name" type="xsd:string" use="required" /> |
1058 | + </xsd:complexType> |
1059 | + </xsd:element> |
1060 | + </xsd:choice> |
1061 | + </xsd:complexType> |
1062 | + </xsd:element> |
1063 | + </xsd:schema> |
1064 | + <resheader name="resmimetype"> |
1065 | + <value>text/microsoft-resx</value> |
1066 | + </resheader> |
1067 | + <resheader name="version"> |
1068 | + <value>2.0</value> |
1069 | + </resheader> |
1070 | + <resheader name="reader"> |
1071 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
1072 | + </resheader> |
1073 | + <resheader name="writer"> |
1074 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
1075 | + </resheader> |
1076 | + <data name="Exit" xml:space="preserve"> |
1077 | + <value>Exit</value> |
1078 | + </data> |
1079 | + <data name="Help" xml:space="preserve"> |
1080 | + <value>Get Help and Support...</value> |
1081 | + </data> |
1082 | + <data name="MoreSpace" xml:space="preserve"> |
1083 | + <value>Get More Space</value> |
1084 | + </data> |
1085 | + <data name="OpenShares" xml:space="preserve"> |
1086 | + <value>Open Share Folders</value> |
1087 | + </data> |
1088 | + <data name="OpenSync" xml:space="preserve"> |
1089 | + <value>Open Sync Folders</value> |
1090 | + </data> |
1091 | + <data name="RecentlyModifyFiles" xml:space="preserve"> |
1092 | + <value>Recently Modify Files</value> |
1093 | + </data> |
1094 | + <data name="UbuntuOnePreferences" xml:space="preserve"> |
1095 | + <value>Ubuntu One Preferences</value> |
1096 | + </data> |
1097 | +</root> |
1098 | \ No newline at end of file |
1099 | |
1100 | === added file 'src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-22x22.png' |
1101 | Binary 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 |
1102 | === added file 'src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-24x24.png' |
1103 | Binary 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 |
1104 | === added file 'src/Canonical.UbuntuOne.Client.Views/Resources/ubuntu-logo-32x32.png' |
1105 | Binary 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 |
1106 | === modified file 'src/Canonical.UbuntuOne.Client/Canonical.UbuntuOne.Client.csproj' |
1107 | --- src/Canonical.UbuntuOne.Client/Canonical.UbuntuOne.Client.csproj 2010-07-08 11:39:25 +0000 |
1108 | +++ src/Canonical.UbuntuOne.Client/Canonical.UbuntuOne.Client.csproj 2010-07-27 16:18:46 +0000 |
1109 | @@ -1,45 +1,63 @@ |
1110 | -<?xml version="1.0" encoding="utf-8"?> |
1111 | -<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
1112 | - <PropertyGroup> |
1113 | - <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
1114 | - <Platform Condition=" '$(Platform)' == '' ">x86</Platform> |
1115 | - <ProductVersion>9.0.21022</ProductVersion> |
1116 | - <SchemaVersion>2.0</SchemaVersion> |
1117 | - <ProjectGuid>{7467483A-D6D5-4362-8DF4-57A7254EB569}</ProjectGuid> |
1118 | - <OutputType>Library</OutputType> |
1119 | - <RootNamespace>Canonical.UbuntuOne.Client</RootNamespace> |
1120 | - <AssemblyName>Canonical.UbuntuOne.Client</AssemblyName> |
1121 | - <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
1122 | - </PropertyGroup> |
1123 | - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> |
1124 | - <DebugSymbols>true</DebugSymbols> |
1125 | - <DebugType>full</DebugType> |
1126 | - <Optimize>false</Optimize> |
1127 | - <OutputPath>bin\Debug</OutputPath> |
1128 | - <DefineConstants>DEBUG</DefineConstants> |
1129 | - <ErrorReport>prompt</ErrorReport> |
1130 | - <WarningLevel>4</WarningLevel> |
1131 | - <PlatformTarget>x86</PlatformTarget> |
1132 | - <ConsolePause>false</ConsolePause> |
1133 | - </PropertyGroup> |
1134 | - <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> |
1135 | - <DebugType>none</DebugType> |
1136 | - <Optimize>false</Optimize> |
1137 | - <OutputPath>bin\Release</OutputPath> |
1138 | - <ErrorReport>prompt</ErrorReport> |
1139 | - <WarningLevel>4</WarningLevel> |
1140 | - <PlatformTarget>x86</PlatformTarget> |
1141 | - <ConsolePause>false</ConsolePause> |
1142 | - </PropertyGroup> |
1143 | - <ItemGroup> |
1144 | - <Compile Include="Properties\AssemblyInfo.cs" /> |
1145 | - <Compile Include="SyncDaemonClient.cs" /> |
1146 | - </ItemGroup> |
1147 | - <ItemGroup> |
1148 | - <ProjectReference Include="..\Canonical.UbuntuOne.Common\Canonical.UbuntuOne.Common.csproj"> |
1149 | - <Project>{11353FF8-8E5A-488E-9CB1-873DADD232B9}</Project> |
1150 | - <Name>Canonical.UbuntuOne.Common</Name> |
1151 | - </ProjectReference> |
1152 | - </ItemGroup> |
1153 | - <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
1154 | +<?xml version="1.0" encoding="utf-8"?> |
1155 | +<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
1156 | + <PropertyGroup> |
1157 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
1158 | + <Platform Condition=" '$(Platform)' == '' ">x86</Platform> |
1159 | + <ProductVersion>9.0.21022</ProductVersion> |
1160 | + <SchemaVersion>2.0</SchemaVersion> |
1161 | + <ProjectGuid>{7467483A-D6D5-4362-8DF4-57A7254EB569}</ProjectGuid> |
1162 | + <OutputType>Library</OutputType> |
1163 | + <RootNamespace>Canonical.UbuntuOne.Client</RootNamespace> |
1164 | + <AssemblyName>Canonical.UbuntuOne.Client</AssemblyName> |
1165 | + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
1166 | + </PropertyGroup> |
1167 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' "> |
1168 | + <DebugSymbols>true</DebugSymbols> |
1169 | + <DebugType>full</DebugType> |
1170 | + <Optimize>false</Optimize> |
1171 | + <OutputPath>bin\Debug</OutputPath> |
1172 | + <DefineConstants>DEBUG</DefineConstants> |
1173 | + <ErrorReport>prompt</ErrorReport> |
1174 | + <WarningLevel>4</WarningLevel> |
1175 | + <PlatformTarget>x86</PlatformTarget> |
1176 | + <ConsolePause>false</ConsolePause> |
1177 | + </PropertyGroup> |
1178 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' "> |
1179 | + <DebugType>none</DebugType> |
1180 | + <Optimize>false</Optimize> |
1181 | + <OutputPath>bin\Release</OutputPath> |
1182 | + <ErrorReport>prompt</ErrorReport> |
1183 | + <WarningLevel>4</WarningLevel> |
1184 | + <PlatformTarget>x86</PlatformTarget> |
1185 | + <ConsolePause>false</ConsolePause> |
1186 | + </PropertyGroup> |
1187 | + <ItemGroup> |
1188 | + <Compile Include="Notification\NotificationIconPresenter.cs" /> |
1189 | + <Compile Include="Notification\OperationCompletenessEventArgs.cs" /> |
1190 | + <Compile Include="Notification\RecentlyModifiedEventArgs.cs" /> |
1191 | + <Compile Include="Notification\StateEventArgs.cs" /> |
1192 | + <Compile Include="Notification\INotificationIconPresenter.cs" /> |
1193 | + <Compile Include="Notification\NotificationEventArgs.cs" /> |
1194 | + <Compile Include="Preferences\IPreferencesDialog.cs" /> |
1195 | + <Compile Include="Properties\AssemblyInfo.cs" /> |
1196 | + <Compile Include="SyncDaemonClient.cs" /> |
1197 | + </ItemGroup> |
1198 | + <ItemGroup> |
1199 | + <ProjectReference Include="..\Canonical.UbuntuOne.Common\Canonical.UbuntuOne.Common.csproj"> |
1200 | + <Project>{11353FF8-8E5A-488E-9CB1-873DADD232B9}</Project> |
1201 | + <Name>Canonical.UbuntuOne.Common</Name> |
1202 | + </ProjectReference> |
1203 | + </ItemGroup> |
1204 | + <ItemGroup> |
1205 | + <Reference Include="PresentationFramework"> |
1206 | + <RequiredTargetFramework>3.0</RequiredTargetFramework> |
1207 | + </Reference> |
1208 | + <Reference Include="System" /> |
1209 | + <Reference Include="System.Data" /> |
1210 | + <Reference Include="System.Xml" /> |
1211 | + <Reference Include="WindowsBase"> |
1212 | + <RequiredTargetFramework>3.0</RequiredTargetFramework> |
1213 | + </Reference> |
1214 | + </ItemGroup> |
1215 | + <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> |
1216 | </Project> |
1217 | \ No newline at end of file |
1218 | |
1219 | === added directory 'src/Canonical.UbuntuOne.Client/Notification' |
1220 | === added file 'src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs' |
1221 | --- src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 1970-01-01 00:00:00 +0000 |
1222 | +++ src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-07-27 16:18:46 +0000 |
1223 | @@ -0,0 +1,80 @@ |
1224 | +/** |
1225 | + * Copyright 2010 Canonical Ltd. |
1226 | + * |
1227 | + * This file is part of UbuntuOne on Windows. |
1228 | + * |
1229 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
1230 | + * it under the terms of the GNU Lesser General Public License version |
1231 | + * as published by the Free Software Foundation. |
1232 | + * |
1233 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
1234 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1235 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1236 | + * GNU Lesser General Public License for more details. |
1237 | + * |
1238 | + * You should have received a copy of the GNU Lesser General Public License |
1239 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
1240 | + * |
1241 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
1242 | + */ |
1243 | +using System; |
1244 | + |
1245 | +namespace Canonical.UbuntuOne.Client.Notification |
1246 | +{ |
1247 | + /// <summary> |
1248 | + /// Interface to be implemented by a presenter that will be used by the context menu used in the |
1249 | + /// a NotificationIconView. |
1250 | + /// </summary> |
1251 | + public interface INotificationIconPresenter |
1252 | + { |
1253 | + /// <summary> |
1254 | + /// Event to be raised when there is a notification to display to the user. |
1255 | + /// </summary> |
1256 | + event EventHandler<NotificationEventArgs> OnNotificationChanged; |
1257 | + |
1258 | + /// <summary> |
1259 | + /// Event to be raised when there status of the daemon has changed. |
1260 | + /// </summary> |
1261 | + event EventHandler<StateEventArgs> OnStateChanged; |
1262 | + |
1263 | + /// <summary> |
1264 | + /// Event to be raised when the completness of the current operation has changed. |
1265 | + /// </summary> |
1266 | + event EventHandler<OperationCompletenessEventArgs> OnCompletenessChanged; |
1267 | + |
1268 | + /// <summary> |
1269 | + /// Event to be raised when the recently modified files have been changed. |
1270 | + /// </summary> |
1271 | + event EventHandler<RecentlyModifiedEventArgs> OnRecentlyModifiedChanged; |
1272 | + |
1273 | + /// <summary> |
1274 | + /// When implemented this method should open the Preferences window of Ubuntu One. |
1275 | + /// </summary> |
1276 | + void OpenUbuntuOnePreferences(); |
1277 | + |
1278 | + /// <summary> |
1279 | + /// When implemented the method should open the explorer with the location of the shares of Ubuntu One. |
1280 | + /// </summary> |
1281 | + void OpenSharesLocation(); |
1282 | + |
1283 | + /// <summary> |
1284 | + /// When implemented the method should open the explorer with the location of the sync folders. |
1285 | + /// </summary> |
1286 | + void OpenSyncsLocation(); |
1287 | + |
1288 | + /// <summary> |
1289 | + /// When implemented this method should open the location used to provide help to the user. |
1290 | + /// </summary> |
1291 | + void OpenHelp(); |
1292 | + |
1293 | + /// <summary> |
1294 | + /// When implemented this method should open the location used to upgrade the account of the user. |
1295 | + /// </summary> |
1296 | + void OpenUpgradeOption(); |
1297 | + |
1298 | + /// <summary> |
1299 | + /// When implemented it should close the client and the daemon. |
1300 | + /// </summary> |
1301 | + void Exit(); |
1302 | + } |
1303 | +} |
1304 | |
1305 | === added file 'src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs' |
1306 | --- src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs 1970-01-01 00:00:00 +0000 |
1307 | +++ src/Canonical.UbuntuOne.Client/Notification/NotificationEventArgs.cs 2010-07-27 16:18:46 +0000 |
1308 | @@ -0,0 +1,52 @@ |
1309 | +/** |
1310 | + * Copyright 2010 Canonical Ltd. |
1311 | + * |
1312 | + * This file is part of UbuntuOne on Windows. |
1313 | + * |
1314 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
1315 | + * it under the terms of the GNU Lesser General Public License version |
1316 | + * as published by the Free Software Foundation. |
1317 | + * |
1318 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
1319 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1320 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1321 | + * GNU Lesser General Public License for more details. |
1322 | + * |
1323 | + * You should have received a copy of the GNU Lesser General Public License |
1324 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
1325 | + * |
1326 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
1327 | + */ |
1328 | +using System; |
1329 | + |
1330 | +namespace Canonical.UbuntuOne.Client.Notification |
1331 | +{ |
1332 | + /// <summary> |
1333 | + /// Event arg used when there is a notification to be provided to the user. |
1334 | + /// </summary> |
1335 | + public class NotificationEventArgs : EventArgs |
1336 | + { |
1337 | + /// <summary> |
1338 | + /// Gets and sets the message of the notification. |
1339 | + /// </summary> |
1340 | + public string Message { get; set; } |
1341 | + |
1342 | + /// <summary> |
1343 | + /// Creates a new event arfs with no message. |
1344 | + /// </summary> |
1345 | + public NotificationEventArgs() |
1346 | + : this("") |
1347 | + { |
1348 | + |
1349 | + } |
1350 | + |
1351 | + /// <summary> |
1352 | + /// Creates a new event args with the given notification message. |
1353 | + /// </summary> |
1354 | + /// <param name="message">A message that will be used in the notification.</param> |
1355 | + public NotificationEventArgs(string message) |
1356 | + { |
1357 | + Message = message; |
1358 | + } |
1359 | + } |
1360 | +} |
1361 | |
1362 | === added file 'src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs' |
1363 | --- src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 1970-01-01 00:00:00 +0000 |
1364 | +++ src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-07-27 16:18:46 +0000 |
1365 | @@ -0,0 +1,89 @@ |
1366 | +/** |
1367 | + * Copyright 2010 Canonical Ltd. |
1368 | + * |
1369 | + * This file is part of UbuntuOne on Windows. |
1370 | + * |
1371 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
1372 | + * it under the terms of the GNU Lesser General Public License version |
1373 | + * as published by the Free Software Foundation. |
1374 | + * |
1375 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
1376 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1377 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1378 | + * GNU Lesser General Public License for more details. |
1379 | + * |
1380 | + * You should have received a copy of the GNU Lesser General Public License |
1381 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
1382 | + * |
1383 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
1384 | + */ |
1385 | +using System; |
1386 | +using System.Windows; |
1387 | +using System.Diagnostics; |
1388 | +using Canonical.UbuntuOne.Client.Preferences; |
1389 | + |
1390 | +namespace Canonical.UbuntuOne.Client.Notification |
1391 | +{ |
1392 | + public class NotificationIconPresenter : INotificationIconPresenter |
1393 | + { |
1394 | + #region Variables |
1395 | + |
1396 | + private const string UpgradeUrl = "https://one.ubuntu.com/upgrade"; |
1397 | + |
1398 | + private const string HelpUrl = "https://one.ubuntu.com/support/"; |
1399 | + |
1400 | + #endregion |
1401 | + |
1402 | + #region Di properties |
1403 | + |
1404 | + /// <summary> |
1405 | + /// Gets and sets the dialog used to show the preferences. |
1406 | + /// </summary> |
1407 | + public IPreferencesDialog PreferencesDialog { get; set; } |
1408 | + |
1409 | + #endregion |
1410 | + |
1411 | + #region Implementation of INotificationIconPresenter |
1412 | + |
1413 | + #region events |
1414 | + |
1415 | + public event EventHandler<NotificationEventArgs> OnNotificationChanged; |
1416 | + public event EventHandler<StateEventArgs> OnStateChanged; |
1417 | + public event EventHandler<OperationCompletenessEventArgs> OnCompletenessChanged; |
1418 | + public event EventHandler<RecentlyModifiedEventArgs> OnRecentlyModifiedChanged; |
1419 | + |
1420 | + #endregion |
1421 | + |
1422 | + public void OpenUbuntuOnePreferences() |
1423 | + { |
1424 | + PreferencesDialog.Show(); |
1425 | + } |
1426 | + |
1427 | + public void OpenSharesLocation() |
1428 | + { |
1429 | + throw new NotImplementedException(); |
1430 | + } |
1431 | + |
1432 | + public void OpenSyncsLocation() |
1433 | + { |
1434 | + throw new NotImplementedException(); |
1435 | + } |
1436 | + |
1437 | + public void OpenHelp() |
1438 | + { |
1439 | + Process.Start(HelpUrl); |
1440 | + } |
1441 | + |
1442 | + public void OpenUpgradeOption() |
1443 | + { |
1444 | + Process.Start(UpgradeUrl); |
1445 | + } |
1446 | + |
1447 | + public void Exit() |
1448 | + { |
1449 | + Application.Current.Shutdown(); |
1450 | + } |
1451 | + |
1452 | + #endregion |
1453 | + } |
1454 | +} |
1455 | |
1456 | === added file 'src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs' |
1457 | --- src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs 1970-01-01 00:00:00 +0000 |
1458 | +++ src/Canonical.UbuntuOne.Client/Notification/OperationCompletenessEventArgs.cs 2010-07-27 16:18:46 +0000 |
1459 | @@ -0,0 +1,73 @@ |
1460 | +/** |
1461 | + * Copyright 2010 Canonical Ltd. |
1462 | + * |
1463 | + * This file is part of UbuntuOne on Windows. |
1464 | + * |
1465 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
1466 | + * it under the terms of the GNU Lesser General Public License version |
1467 | + * as published by the Free Software Foundation. |
1468 | + * |
1469 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
1470 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1471 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1472 | + * GNU Lesser General Public License for more details. |
1473 | + * |
1474 | + * You should have received a copy of the GNU Lesser General Public License |
1475 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
1476 | + * |
1477 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
1478 | + */ |
1479 | +using System; |
1480 | + |
1481 | +namespace Canonical.UbuntuOne.Client.Notification |
1482 | +{ |
1483 | + /// <summary> |
1484 | + /// Event used to notify the current state of the current operation. |
1485 | + /// </summary> |
1486 | + public class OperationCompletenessEventArgs : EventArgs |
1487 | + { |
1488 | + |
1489 | + public enum SpeedUnitsEnum |
1490 | + { |
1491 | + MB, |
1492 | + KB, |
1493 | + } |
1494 | + |
1495 | + /// <summary> |
1496 | + /// |
1497 | + /// </summary> |
1498 | + public int Percentage { get; set; } |
1499 | + |
1500 | + /// <summary> |
1501 | + /// |
1502 | + /// </summary> |
1503 | + public double Speed { get; set; } |
1504 | + |
1505 | + /// <summary> |
1506 | + /// |
1507 | + /// </summary> |
1508 | + public SpeedUnitsEnum SpeedUnits { get; set; } |
1509 | + |
1510 | + /// <summary> |
1511 | + /// Creates a new event arge with all its data init to the default values. |
1512 | + /// </summary> |
1513 | + public OperationCompletenessEventArgs() |
1514 | + : this(0, 0, SpeedUnitsEnum.MB) |
1515 | + { |
1516 | + |
1517 | + } |
1518 | + |
1519 | + /// <summary> |
1520 | + /// Creates a new event arg that can be used to state the current completness of an operation. |
1521 | + /// </summary> |
1522 | + /// <param name="percentage">The percentage of the operation that has been done.</param> |
1523 | + /// <param name="speed">The speed in which the operation is done.</param> |
1524 | + /// <param name="units">The units used in the speed.</param> |
1525 | + public OperationCompletenessEventArgs(int percentage, double speed, SpeedUnitsEnum units) |
1526 | + { |
1527 | + Percentage = percentage; |
1528 | + Speed = speed; |
1529 | + SpeedUnits = units; |
1530 | + } |
1531 | + } |
1532 | +} |
1533 | |
1534 | === added file 'src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs' |
1535 | --- src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs 1970-01-01 00:00:00 +0000 |
1536 | +++ src/Canonical.UbuntuOne.Client/Notification/RecentlyModifiedEventArgs.cs 2010-07-27 16:18:46 +0000 |
1537 | @@ -0,0 +1,55 @@ |
1538 | +/** |
1539 | + * Copyright 2010 Canonical Ltd. |
1540 | + * |
1541 | + * This file is part of UbuntuOne on Windows. |
1542 | + * |
1543 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
1544 | + * it under the terms of the GNU Lesser General Public License version |
1545 | + * as published by the Free Software Foundation. |
1546 | + * |
1547 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
1548 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1549 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1550 | + * GNU Lesser General Public License for more details. |
1551 | + * |
1552 | + * You should have received a copy of the GNU Lesser General Public License |
1553 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
1554 | + * |
1555 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
1556 | + */ |
1557 | + |
1558 | +using System; |
1559 | +using System.Collections.Generic; |
1560 | + |
1561 | +namespace Canonical.UbuntuOne.Client.Notification |
1562 | +{ |
1563 | + /// <summary> |
1564 | + /// Evetn args used to notify which have been the recelty modified files. |
1565 | + /// </summary> |
1566 | + public class RecentlyModifiedEventArgs : EventArgs |
1567 | + { |
1568 | + /// <summary> |
1569 | + /// Gets and sets the recently modified files. |
1570 | + /// </summary> |
1571 | + public IList<string> RecentlyModifiedFiles { get; set; } |
1572 | + |
1573 | + /// <summary> |
1574 | + /// Creates a new event args with no files. |
1575 | + /// </summary> |
1576 | + public RecentlyModifiedEventArgs() |
1577 | + : this (new List<string>()) |
1578 | + { |
1579 | + |
1580 | + } |
1581 | + |
1582 | + /// <summary> |
1583 | + /// Creates a new event arg with the given enumerable that contains the paths of the recently |
1584 | + /// modified files. |
1585 | + /// </summary> |
1586 | + /// <param name="recenltyModifiedFiles">The files that have been recently modified.</param> |
1587 | + public RecentlyModifiedEventArgs(IList<string> recenltyModifiedFiles) |
1588 | + { |
1589 | + RecentlyModifiedFiles = recenltyModifiedFiles; |
1590 | + } |
1591 | + } |
1592 | +} |
1593 | |
1594 | === added file 'src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs' |
1595 | --- src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs 1970-01-01 00:00:00 +0000 |
1596 | +++ src/Canonical.UbuntuOne.Client/Notification/StateEventArgs.cs 2010-07-27 16:18:46 +0000 |
1597 | @@ -0,0 +1,62 @@ |
1598 | +/** |
1599 | + * Copyright 2010 Canonical Ltd. |
1600 | + * |
1601 | + * This file is part of UbuntuOne on Windows. |
1602 | + * |
1603 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
1604 | + * it under the terms of the GNU Lesser General Public License version |
1605 | + * as published by the Free Software Foundation. |
1606 | + * |
1607 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
1608 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1609 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1610 | + * GNU Lesser General Public License for more details. |
1611 | + * |
1612 | + * You should have received a copy of the GNU Lesser General Public License |
1613 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
1614 | + * |
1615 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
1616 | + */ |
1617 | +using System; |
1618 | + |
1619 | +namespace Canonical.UbuntuOne.Client.Notification |
1620 | +{ |
1621 | + /// <summary> |
1622 | + /// Event args used to notify about the current operation. |
1623 | + /// </summary> |
1624 | + public class StateEventArgs : EventArgs |
1625 | + { |
1626 | + /// <summary> |
1627 | + /// Enumerator that allows to determine the current state of the daemon. |
1628 | + /// </summary> |
1629 | + public enum StateEnum |
1630 | + { |
1631 | + OUT_OF_SYNC, |
1632 | + SYNC_IN_PROGRESS, |
1633 | + UP_TO_DATE, |
1634 | + ERROR |
1635 | + } |
1636 | + |
1637 | + /// <summary> |
1638 | + /// Gets and sets the state given by the event. |
1639 | + /// </summary> |
1640 | + public StateEnum State { get; set; } |
1641 | + |
1642 | + /// <summary> |
1643 | + /// Creates a new state that in init to indicate that the state is up to date |
1644 | + /// </summary> |
1645 | + public StateEventArgs() |
1646 | + : this(StateEnum.UP_TO_DATE) |
1647 | + { |
1648 | + } |
1649 | + |
1650 | + /// <summary> |
1651 | + /// Creates a new event arg with the given state. |
1652 | + /// </summary> |
1653 | + /// <param name="state">The state to be givn by the event.</param> |
1654 | + public StateEventArgs(StateEnum state) |
1655 | + { |
1656 | + State = state; |
1657 | + } |
1658 | + } |
1659 | +} |
1660 | |
1661 | === added directory 'src/Canonical.UbuntuOne.Client/Preferences' |
1662 | === added file 'src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialog.cs' |
1663 | --- src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialog.cs 1970-01-01 00:00:00 +0000 |
1664 | +++ src/Canonical.UbuntuOne.Client/Preferences/IPreferencesDialog.cs 2010-07-27 16:18:46 +0000 |
1665 | @@ -0,0 +1,30 @@ |
1666 | +/** |
1667 | + * Copyright 2010 Canonical Ltd. |
1668 | + * |
1669 | + * This file is part of UbuntuOne on Windows. |
1670 | + * |
1671 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
1672 | + * it under the terms of the GNU Lesser General Public License version |
1673 | + * as published by the Free Software Foundation. |
1674 | + * |
1675 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
1676 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1677 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1678 | + * GNU Lesser General Public License for more details. |
1679 | + * |
1680 | + * You should have received a copy of the GNU Lesser General Public License |
1681 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
1682 | + * |
1683 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
1684 | + */ |
1685 | + |
1686 | +namespace Canonical.UbuntuOne.Client.Preferences |
1687 | +{ |
1688 | + /// <summary> |
1689 | + /// Interface to be implemented by those dialogs used tod isaply preferences. |
1690 | + /// </summary> |
1691 | + public interface IPreferencesDialog |
1692 | + { |
1693 | + void Show(); |
1694 | + } |
1695 | +} |
1696 | |
1697 | === modified file 'src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs' |
1698 | --- src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs 2010-07-09 10:11:58 +0000 |
1699 | +++ src/Canonical.UbuntuOne.Client/SyncDaemonClient.cs 2010-07-27 16:18:46 +0000 |
1700 | @@ -28,7 +28,6 @@ |
1701 | /// <summary> |
1702 | /// Callback performed when a download starts. |
1703 | /// </summary> |
1704 | - /// <param name="path">The path being downloaded.</param> |
1705 | /// <param name="data">The information of the download that is in process.</param> |
1706 | public void OnDownloadStarted(DownloadData data) |
1707 | { |
1708 | @@ -42,7 +41,6 @@ |
1709 | /// <summary> |
1710 | /// Callback performed when a download finished. |
1711 | /// </summary> |
1712 | - /// <param name="path">The path of the download that was finished.</param> |
1713 | /// <param name="data">The information of the download that was finished.</param> |
1714 | public void OnDownloadFinished(DownloadData data) |
1715 | { |
1716 | @@ -56,7 +54,6 @@ |
1717 | /// <summary> |
1718 | /// Callback performed when an uploaded has been started. |
1719 | /// </summary> |
1720 | - /// <param name="path">The path of the uploading file.</param> |
1721 | /// <param name="data">The information of the upload.</param> |
1722 | public void OnUploadStarted(UploadData data) |
1723 | { |
1724 | @@ -70,7 +67,6 @@ |
1725 | /// <summary> |
1726 | /// Calback performed when and upload has finished. |
1727 | /// </summary> |
1728 | - /// <param name="path"></param> |
1729 | /// <param name="data"></param> |
1730 | public void OnUploadFinished(UploadData data) |
1731 | { |
1732 | |
1733 | === modified file 'src/UbuntuOne.sln' |
1734 | --- src/UbuntuOne.sln 2010-07-26 16:01:28 +0000 |
1735 | +++ src/UbuntuOne.sln 2010-07-27 16:18:46 +0000 |
1736 | @@ -15,6 +15,10 @@ |
1737 | EndProject |
1738 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceTestApp", "ServiceTestApp\ServiceTestApp.csproj", "{009E6FD4-DE20-410A-B1F3-5F0542CD8745}" |
1739 | EndProject |
1740 | +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Canonical.UbuntuOne.Client.Test", "Canonical.UbuntuOne.Client.Test\Canonical.UbuntuOne.Client.Test.csproj", "{2947FCA2-D6FC-4509-83F8-64A87447EBD3}" |
1741 | +EndProject |
1742 | +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UbuntuOneClient", "UbuntuOneClient\UbuntuOneClient.csproj", "{E41083CC-B99A-4AEC-93CC-F693F6AA6071}" |
1743 | +EndProject |
1744 | Global |
1745 | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
1746 | Debug|Any CPU = Debug|Any CPU |
1747 | @@ -95,6 +99,26 @@ |
1748 | {009E6FD4-DE20-410A-B1F3-5F0542CD8745}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU |
1749 | {009E6FD4-DE20-410A-B1F3-5F0542CD8745}.Release|Mixed Platforms.Build.0 = Release|Any CPU |
1750 | {009E6FD4-DE20-410A-B1F3-5F0542CD8745}.Release|x86.ActiveCfg = Release|Any CPU |
1751 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
1752 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|Any CPU.Build.0 = Debug|Any CPU |
1753 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU |
1754 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU |
1755 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Debug|x86.ActiveCfg = Debug|Any CPU |
1756 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|Any CPU.ActiveCfg = Release|Any CPU |
1757 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|Any CPU.Build.0 = Release|Any CPU |
1758 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU |
1759 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|Mixed Platforms.Build.0 = Release|Any CPU |
1760 | + {2947FCA2-D6FC-4509-83F8-64A87447EBD3}.Release|x86.ActiveCfg = Release|Any CPU |
1761 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
1762 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|Any CPU.Build.0 = Debug|Any CPU |
1763 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU |
1764 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU |
1765 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Debug|x86.ActiveCfg = Debug|Any CPU |
1766 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|Any CPU.ActiveCfg = Release|Any CPU |
1767 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|Any CPU.Build.0 = Release|Any CPU |
1768 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU |
1769 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|Mixed Platforms.Build.0 = Release|Any CPU |
1770 | + {E41083CC-B99A-4AEC-93CC-F693F6AA6071}.Release|x86.ActiveCfg = Release|Any CPU |
1771 | EndGlobalSection |
1772 | GlobalSection(SolutionProperties) = preSolution |
1773 | HideSolutionNode = FALSE |
1774 | |
1775 | === added directory 'src/UbuntuOneClient' |
1776 | === added file 'src/UbuntuOneClient/Program.cs' |
1777 | --- src/UbuntuOneClient/Program.cs 1970-01-01 00:00:00 +0000 |
1778 | +++ src/UbuntuOneClient/Program.cs 2010-07-27 16:18:46 +0000 |
1779 | @@ -0,0 +1,36 @@ |
1780 | +/** |
1781 | + * Copyright 2010 Canonical Ltd. |
1782 | + * |
1783 | + * This file is part of UbuntuOne on Windows. |
1784 | + * |
1785 | + * UbuntuOne on Windows is free software: you can redistribute it and/or modify |
1786 | + * it under the terms of the GNU Lesser General Public License version |
1787 | + * as published by the Free Software Foundation. |
1788 | + * |
1789 | + * Ubuntu One on Windows is distributed in the hope that it will be useful, |
1790 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
1791 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1792 | + * GNU Lesser General Public License for more details. |
1793 | + * |
1794 | + * You should have received a copy of the GNU Lesser General Public License |
1795 | + * along with UbuntuOne for Windows. If not, see <http://www.gnu.org/licenses/>. |
1796 | + * |
1797 | + * Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
1798 | + */ |
1799 | +using System; |
1800 | +using System.Windows; |
1801 | +using Canonical.UbuntuOne.Client.Views; |
1802 | + |
1803 | +namespace UbuntuOneClient |
1804 | +{ |
1805 | + class Program |
1806 | + { |
1807 | + [STAThread] |
1808 | + static void Main() |
1809 | + { |
1810 | + var app = new Application {ShutdownMode = ShutdownMode.OnExplicitShutdown}; |
1811 | + var notifyIcon = new UbuntuOneNotifyIcon(); |
1812 | + app.Run(notifyIcon); |
1813 | + } |
1814 | + } |
1815 | +} |
1816 | |
1817 | === added directory 'src/UbuntuOneClient/Properties' |
1818 | === added file 'src/UbuntuOneClient/Properties/AssemblyInfo.cs' |
1819 | --- src/UbuntuOneClient/Properties/AssemblyInfo.cs 1970-01-01 00:00:00 +0000 |
1820 | +++ src/UbuntuOneClient/Properties/AssemblyInfo.cs 2010-07-27 16:18:46 +0000 |
1821 | @@ -0,0 +1,55 @@ |
1822 | +using System.Reflection; |
1823 | +using System.Resources; |
1824 | +using System.Runtime.CompilerServices; |
1825 | +using System.Runtime.InteropServices; |
1826 | +using System.Windows; |
1827 | + |
1828 | +// General Information about an assembly is controlled through the following |
1829 | +// set of attributes. Change these attribute values to modify the information |
1830 | +// associated with an assembly. |
1831 | +[assembly: AssemblyTitle("UbuntuOneClient")] |
1832 | +[assembly: AssemblyDescription("")] |
1833 | +[assembly: AssemblyConfiguration("")] |
1834 | +[assembly: AssemblyCompany("")] |
1835 | +[assembly: AssemblyProduct("UbuntuOneClient")] |
1836 | +[assembly: AssemblyCopyright("Copyright © 2010")] |
1837 | +[assembly: AssemblyTrademark("")] |
1838 | +[assembly: AssemblyCulture("")] |
1839 | + |
1840 | +// Setting ComVisible to false makes the types in this assembly not visible |
1841 | +// to COM components. If you need to access a type in this assembly from |
1842 | +// COM, set the ComVisible attribute to true on that type. |
1843 | +[assembly: ComVisible(false)] |
1844 | + |
1845 | +//In order to begin building localizable applications, set |
1846 | +//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file |
1847 | +//inside a <PropertyGroup>. For example, if you are using US english |
1848 | +//in your source files, set the <UICulture> to en-US. Then uncomment |
1849 | +//the NeutralResourceLanguage attribute below. Update the "en-US" in |
1850 | +//the line below to match the UICulture setting in the project file. |
1851 | + |
1852 | +//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] |
1853 | + |
1854 | + |
1855 | +[assembly: ThemeInfo( |
1856 | + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located |
1857 | + //(used if a resource is not found in the page, |
1858 | + // or application resource dictionaries) |
1859 | + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located |
1860 | + //(used if a resource is not found in the page, |
1861 | + // app, or any theme specific resource dictionaries) |
1862 | +)] |
1863 | + |
1864 | + |
1865 | +// Version information for an assembly consists of the following four values: |
1866 | +// |
1867 | +// Major Version |
1868 | +// Minor Version |
1869 | +// Build Number |
1870 | +// Revision |
1871 | +// |
1872 | +// You can specify all the values or you can default the Build and Revision Numbers |
1873 | +// by using the '*' as shown below: |
1874 | +// [assembly: AssemblyVersion("1.0.*")] |
1875 | +[assembly: AssemblyVersion("1.0.0.0")] |
1876 | +[assembly: AssemblyFileVersion("1.0.0.0")] |
1877 | |
1878 | === added file 'src/UbuntuOneClient/Properties/Resources.Designer.cs' |
1879 | --- src/UbuntuOneClient/Properties/Resources.Designer.cs 1970-01-01 00:00:00 +0000 |
1880 | +++ src/UbuntuOneClient/Properties/Resources.Designer.cs 2010-07-27 16:18:46 +0000 |
1881 | @@ -0,0 +1,71 @@ |
1882 | +//------------------------------------------------------------------------------ |
1883 | +// <auto-generated> |
1884 | +// This code was generated by a tool. |
1885 | +// Runtime Version:2.0.50727.4927 |
1886 | +// |
1887 | +// Changes to this file may cause incorrect behavior and will be lost if |
1888 | +// the code is regenerated. |
1889 | +// </auto-generated> |
1890 | +//------------------------------------------------------------------------------ |
1891 | + |
1892 | +namespace UbuntuOneClient.Properties |
1893 | +{ |
1894 | + |
1895 | + |
1896 | + /// <summary> |
1897 | + /// A strongly-typed resource class, for looking up localized strings, etc. |
1898 | + /// </summary> |
1899 | + // This class was auto-generated by the StronglyTypedResourceBuilder |
1900 | + // class via a tool like ResGen or Visual Studio. |
1901 | + // To add or remove a member, edit your .ResX file then rerun ResGen |
1902 | + // with the /str option, or rebuild your VS project. |
1903 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] |
1904 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
1905 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
1906 | + internal class Resources |
1907 | + { |
1908 | + |
1909 | + private static global::System.Resources.ResourceManager resourceMan; |
1910 | + |
1911 | + private static global::System.Globalization.CultureInfo resourceCulture; |
1912 | + |
1913 | + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] |
1914 | + internal Resources() |
1915 | + { |
1916 | + } |
1917 | + |
1918 | + /// <summary> |
1919 | + /// Returns the cached ResourceManager instance used by this class. |
1920 | + /// </summary> |
1921 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
1922 | + internal static global::System.Resources.ResourceManager ResourceManager |
1923 | + { |
1924 | + get |
1925 | + { |
1926 | + if ((resourceMan == null)) |
1927 | + { |
1928 | + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("UbuntuOneClient.Properties.Resources", typeof(Resources).Assembly); |
1929 | + resourceMan = temp; |
1930 | + } |
1931 | + return resourceMan; |
1932 | + } |
1933 | + } |
1934 | + |
1935 | + /// <summary> |
1936 | + /// Overrides the current thread's CurrentUICulture property for all |
1937 | + /// resource lookups using this strongly typed resource class. |
1938 | + /// </summary> |
1939 | + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] |
1940 | + internal static global::System.Globalization.CultureInfo Culture |
1941 | + { |
1942 | + get |
1943 | + { |
1944 | + return resourceCulture; |
1945 | + } |
1946 | + set |
1947 | + { |
1948 | + resourceCulture = value; |
1949 | + } |
1950 | + } |
1951 | + } |
1952 | +} |
1953 | |
1954 | === added file 'src/UbuntuOneClient/Properties/Resources.resx' |
1955 | --- src/UbuntuOneClient/Properties/Resources.resx 1970-01-01 00:00:00 +0000 |
1956 | +++ src/UbuntuOneClient/Properties/Resources.resx 2010-07-27 16:18:46 +0000 |
1957 | @@ -0,0 +1,117 @@ |
1958 | +<?xml version="1.0" encoding="utf-8"?> |
1959 | +<root> |
1960 | + <!-- |
1961 | + Microsoft ResX Schema |
1962 | + |
1963 | + Version 2.0 |
1964 | + |
1965 | + The primary goals of this format is to allow a simple XML format |
1966 | + that is mostly human readable. The generation and parsing of the |
1967 | + various data types are done through the TypeConverter classes |
1968 | + associated with the data types. |
1969 | + |
1970 | + Example: |
1971 | + |
1972 | + ... ado.net/XML headers & schema ... |
1973 | + <resheader name="resmimetype">text/microsoft-resx</resheader> |
1974 | + <resheader name="version">2.0</resheader> |
1975 | + <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
1976 | + <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
1977 | + <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
1978 | + <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
1979 | + <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
1980 | + <value>[base64 mime encoded serialized .NET Framework object]</value> |
1981 | + </data> |
1982 | + <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
1983 | + <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
1984 | + <comment>This is a comment</comment> |
1985 | + </data> |
1986 | + |
1987 | + There are any number of "resheader" rows that contain simple |
1988 | + name/value pairs. |
1989 | + |
1990 | + Each data row contains a name, and value. The row also contains a |
1991 | + type or mimetype. Type corresponds to a .NET class that support |
1992 | + text/value conversion through the TypeConverter architecture. |
1993 | + Classes that don't support this are serialized and stored with the |
1994 | + mimetype set. |
1995 | + |
1996 | + The mimetype is used for serialized objects, and tells the |
1997 | + ResXResourceReader how to depersist the object. This is currently not |
1998 | + extensible. For a given mimetype the value must be set accordingly: |
1999 | + |
2000 | + Note - application/x-microsoft.net.object.binary.base64 is the format |
2001 | + that the ResXResourceWriter will generate, however the reader can |
2002 | + read any of the formats listed below. |
2003 | + |
2004 | + mimetype: application/x-microsoft.net.object.binary.base64 |
2005 | + value : The object must be serialized with |
2006 | + : System.Serialization.Formatters.Binary.BinaryFormatter |
2007 | + : and then encoded with base64 encoding. |
2008 | + |
2009 | + mimetype: application/x-microsoft.net.object.soap.base64 |
2010 | + value : The object must be serialized with |
2011 | + : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
2012 | + : and then encoded with base64 encoding. |
2013 | + |
2014 | + mimetype: application/x-microsoft.net.object.bytearray.base64 |
2015 | + value : The object must be serialized into a byte array |
2016 | + : using a System.ComponentModel.TypeConverter |
2017 | + : and then encoded with base64 encoding. |
2018 | + --> |
2019 | + <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
2020 | + <xsd:element name="root" msdata:IsDataSet="true"> |
2021 | + <xsd:complexType> |
2022 | + <xsd:choice maxOccurs="unbounded"> |
2023 | + <xsd:element name="metadata"> |
2024 | + <xsd:complexType> |
2025 | + <xsd:sequence> |
2026 | + <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
2027 | + </xsd:sequence> |
2028 | + <xsd:attribute name="name" type="xsd:string" /> |
2029 | + <xsd:attribute name="type" type="xsd:string" /> |
2030 | + <xsd:attribute name="mimetype" type="xsd:string" /> |
2031 | + </xsd:complexType> |
2032 | + </xsd:element> |
2033 | + <xsd:element name="assembly"> |
2034 | + <xsd:complexType> |
2035 | + <xsd:attribute name="alias" type="xsd:string" /> |
2036 | + <xsd:attribute name="name" type="xsd:string" /> |
2037 | + </xsd:complexType> |
2038 | + </xsd:element> |
2039 | + <xsd:element name="data"> |
2040 | + <xsd:complexType> |
2041 | + <xsd:sequence> |
2042 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
2043 | + <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
2044 | + </xsd:sequence> |
2045 | + <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> |
2046 | + <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
2047 | + <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
2048 | + </xsd:complexType> |
2049 | + </xsd:element> |
2050 | + <xsd:element name="resheader"> |
2051 | + <xsd:complexType> |
2052 | + <xsd:sequence> |
2053 | + <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
2054 | + </xsd:sequence> |
2055 | + <xsd:attribute name="name" type="xsd:string" use="required" /> |
2056 | + </xsd:complexType> |
2057 | + </xsd:element> |
2058 | + </xsd:choice> |
2059 | + </xsd:complexType> |
2060 | + </xsd:element> |
2061 | + </xsd:schema> |
2062 | + <resheader name="resmimetype"> |
2063 | + <value>text/microsoft-resx</value> |
2064 | + </resheader> |
2065 | + <resheader name="version"> |
2066 | + <value>2.0</value> |
2067 | + </resheader> |
2068 | + <resheader name="reader"> |
2069 | + <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
2070 | + </resheader> |
2071 | + <resheader name="writer"> |
2072 | + <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
2073 | + </resheader> |
2074 | +</root> |
2075 | \ No newline at end of file |
2076 | |
2077 | === added file 'src/UbuntuOneClient/Properties/Settings.Designer.cs' |
2078 | --- src/UbuntuOneClient/Properties/Settings.Designer.cs 1970-01-01 00:00:00 +0000 |
2079 | +++ src/UbuntuOneClient/Properties/Settings.Designer.cs 2010-07-27 16:18:46 +0000 |
2080 | @@ -0,0 +1,30 @@ |
2081 | +//------------------------------------------------------------------------------ |
2082 | +// <auto-generated> |
2083 | +// This code was generated by a tool. |
2084 | +// Runtime Version:2.0.50727.4927 |
2085 | +// |
2086 | +// Changes to this file may cause incorrect behavior and will be lost if |
2087 | +// the code is regenerated. |
2088 | +// </auto-generated> |
2089 | +//------------------------------------------------------------------------------ |
2090 | + |
2091 | +namespace UbuntuOneClient.Properties |
2092 | +{ |
2093 | + |
2094 | + |
2095 | + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] |
2096 | + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] |
2097 | + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase |
2098 | + { |
2099 | + |
2100 | + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); |
2101 | + |
2102 | + public static Settings Default |
2103 | + { |
2104 | + get |
2105 | + { |
2106 | + return defaultInstance; |
2107 | + } |
2108 | + } |
2109 | + } |
2110 | +} |
2111 | |
2112 | === added file 'src/UbuntuOneClient/Properties/Settings.settings' |
2113 | --- src/UbuntuOneClient/Properties/Settings.settings 1970-01-01 00:00:00 +0000 |
2114 | +++ src/UbuntuOneClient/Properties/Settings.settings 2010-07-27 16:18:46 +0000 |
2115 | @@ -0,0 +1,7 @@ |
2116 | +<?xml version='1.0' encoding='utf-8'?> |
2117 | +<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)"> |
2118 | + <Profiles> |
2119 | + <Profile Name="(Default)" /> |
2120 | + </Profiles> |
2121 | + <Settings /> |
2122 | +</SettingsFile> |
2123 | \ No newline at end of file |
2124 | |
2125 | === added file 'src/UbuntuOneClient/UbuntuOneClient.csproj' |
2126 | --- src/UbuntuOneClient/UbuntuOneClient.csproj 1970-01-01 00:00:00 +0000 |
2127 | +++ src/UbuntuOneClient/UbuntuOneClient.csproj 2010-07-27 16:18:46 +0000 |
2128 | @@ -0,0 +1,96 @@ |
2129 | +<?xml version="1.0" encoding="utf-8"?> |
2130 | +<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
2131 | + <PropertyGroup> |
2132 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> |
2133 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> |
2134 | + <ProductVersion>9.0.21022</ProductVersion> |
2135 | + <SchemaVersion>2.0</SchemaVersion> |
2136 | + <ProjectGuid>{E41083CC-B99A-4AEC-93CC-F693F6AA6071}</ProjectGuid> |
2137 | + <OutputType>WinExe</OutputType> |
2138 | + <AppDesignerFolder>Properties</AppDesignerFolder> |
2139 | + <RootNamespace>UbuntuOneClient</RootNamespace> |
2140 | + <AssemblyName>UbuntuOneClient</AssemblyName> |
2141 | + <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> |
2142 | + <FileAlignment>512</FileAlignment> |
2143 | + <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> |
2144 | + <WarningLevel>4</WarningLevel> |
2145 | + </PropertyGroup> |
2146 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> |
2147 | + <DebugSymbols>true</DebugSymbols> |
2148 | + <DebugType>full</DebugType> |
2149 | + <Optimize>false</Optimize> |
2150 | + <OutputPath>bin\Debug\</OutputPath> |
2151 | + <DefineConstants>DEBUG;TRACE</DefineConstants> |
2152 | + <ErrorReport>prompt</ErrorReport> |
2153 | + <WarningLevel>4</WarningLevel> |
2154 | + </PropertyGroup> |
2155 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> |
2156 | + <DebugType>pdbonly</DebugType> |
2157 | + <Optimize>true</Optimize> |
2158 | + <OutputPath>bin\Release\</OutputPath> |
2159 | + <DefineConstants>TRACE</DefineConstants> |
2160 | + <ErrorReport>prompt</ErrorReport> |
2161 | + <WarningLevel>4</WarningLevel> |
2162 | + </PropertyGroup> |
2163 | + <ItemGroup> |
2164 | + <Reference Include="AvalonLibrary, Version=1.1.0.0, Culture=neutral, PublicKeyToken=b5d01516e28df45f, processorArchitecture=MSIL"> |
2165 | + <SpecificVersion>False</SpecificVersion> |
2166 | + <HintPath>..\..\lib\WPFContrib\AvalonLibrary.dll</HintPath> |
2167 | + </Reference> |
2168 | + <Reference Include="System" /> |
2169 | + <Reference Include="System.Core"> |
2170 | + <RequiredTargetFramework>3.5</RequiredTargetFramework> |
2171 | + </Reference> |
2172 | + <Reference Include="System.Xml.Linq"> |
2173 | + <RequiredTargetFramework>3.5</RequiredTargetFramework> |
2174 | + </Reference> |
2175 | + <Reference Include="System.Data.DataSetExtensions"> |
2176 | + <RequiredTargetFramework>3.5</RequiredTargetFramework> |
2177 | + </Reference> |
2178 | + <Reference Include="System.Data" /> |
2179 | + <Reference Include="System.Xml" /> |
2180 | + <Reference Include="WindowsBase" /> |
2181 | + <Reference Include="PresentationCore" /> |
2182 | + <Reference Include="PresentationFramework" /> |
2183 | + </ItemGroup> |
2184 | + <ItemGroup> |
2185 | + <Compile Include="Program.cs" /> |
2186 | + <Compile Include="Properties\AssemblyInfo.cs"> |
2187 | + <SubType>Code</SubType> |
2188 | + </Compile> |
2189 | + <Compile Include="Properties\Resources.Designer.cs"> |
2190 | + <AutoGen>True</AutoGen> |
2191 | + <DesignTime>True</DesignTime> |
2192 | + <DependentUpon>Resources.resx</DependentUpon> |
2193 | + </Compile> |
2194 | + <Compile Include="Properties\Settings.Designer.cs"> |
2195 | + <AutoGen>True</AutoGen> |
2196 | + <DependentUpon>Settings.settings</DependentUpon> |
2197 | + <DesignTimeSharedInput>True</DesignTimeSharedInput> |
2198 | + </Compile> |
2199 | + <EmbeddedResource Include="Properties\Resources.resx"> |
2200 | + <Generator>ResXFileCodeGenerator</Generator> |
2201 | + <LastGenOutput>Resources.Designer.cs</LastGenOutput> |
2202 | + <SubType>Designer</SubType> |
2203 | + </EmbeddedResource> |
2204 | + <None Include="Properties\Settings.settings"> |
2205 | + <Generator>SettingsSingleFileGenerator</Generator> |
2206 | + <LastGenOutput>Settings.Designer.cs</LastGenOutput> |
2207 | + </None> |
2208 | + <AppDesigner Include="Properties\" /> |
2209 | + </ItemGroup> |
2210 | + <ItemGroup> |
2211 | + <ProjectReference Include="..\Canonical.UbuntuOne.Client.Views\Canonical.UbuntuOne.Client.Views.csproj"> |
2212 | + <Project>{1F0E3DAF-F22F-4B0C-8039-118B082DA237}</Project> |
2213 | + <Name>Canonical.UbuntuOne.Client.Views</Name> |
2214 | + </ProjectReference> |
2215 | + </ItemGroup> |
2216 | + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
2217 | + <!-- To modify your build process, add your task inside one of the targets below and uncomment it. |
2218 | + Other similar extension points exist, see Microsoft.Common.targets. |
2219 | + <Target Name="BeforeBuild"> |
2220 | + </Target> |
2221 | + <Target Name="AfterBuild"> |
2222 | + </Target> |
2223 | + --> |
2224 | +</Project> |
2225 | \ No newline at end of file |
Works with updated installer.