Merge lp:~mandel/ubuntuone-windows-installer/connect_u1sync_gui into lp:ubuntuone-windows-installer/beta
- connect_u1sync_gui
- Merge into beta
Proposed by
Manuel de la Peña
Status: | Merged |
---|---|
Approved by: | Stuart Colville |
Approved revision: | 62 |
Merged at revision: | 74 |
Proposed branch: | lp:~mandel/ubuntuone-windows-installer/connect_u1sync_gui |
Merge into: | lp:ubuntuone-windows-installer/beta |
Prerequisite: | lp:~mandel/ubuntuone-windows-installer/include_u1sync_msi |
Diff against target: |
649 lines (+304/-162) 13 files modified
.bzrignore (+2/-0) install/UbuntuOne.wxs (+39/-0) main.build (+6/-0) src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj (+7/-5) src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml (+6/-1) src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs (+59/-0) src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs (+0/-153) src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx (+3/-0) src/Canonical.UbuntuOne.Client.Views/Resources/Resources1.Designer.cs (+162/-0) src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs (+5/-0) src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs (+10/-0) src/setup.py (+4/-2) src/u1sync/main.py (+1/-1) |
To merge this branch: | bzr merge lp:~mandel/ubuntuone-windows-installer/connect_u1sync_gui |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Colville (community) | Approve | ||
Rodrigo Moya (community) | Approve | ||
Review via email:
|
Commit message
Description of the change
Connects the UI with the currently developed sync.
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Rodrigo Moya (rodrigo-moya) : | # |
review:
Approve
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Stuart Colville (muffinresearch) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.bzrignore' | |||
2 | --- .bzrignore 2010-08-30 09:37:56 +0000 | |||
3 | +++ .bzrignore 2010-08-30 09:37:56 +0000 | |||
4 | @@ -33,3 +33,5 @@ | |||
5 | 33 | src/Canonical.UbuntuOne.SyncDaemon/bin | 33 | src/Canonical.UbuntuOne.SyncDaemon/bin |
6 | 34 | src/build | 34 | src/build |
7 | 35 | src/dist | 35 | src/dist |
8 | 36 | utils/UbuntuOne.msi | ||
9 | 37 | build.number | ||
10 | 36 | 38 | ||
11 | === modified file 'install/UbuntuOne.wxs' | |||
12 | --- install/UbuntuOne.wxs 2010-08-30 09:37:56 +0000 | |||
13 | +++ install/UbuntuOne.wxs 2010-08-30 09:37:56 +0000 | |||
14 | @@ -902,6 +902,41 @@ | |||
15 | 902 | Source="build_results\u1sync\zope.interface._zope_interface_coptimizations.pyd" | 902 | Source="build_results\u1sync\zope.interface._zope_interface_coptimizations.pyd" |
16 | 903 | KeyPath="yes"/> | 903 | KeyPath="yes"/> |
17 | 904 | </Component> | 904 | </Component> |
18 | 905 | <Directory Id="Vc90Dir" | ||
19 | 906 | Name="Microsoft.VC90.CRT"> | ||
20 | 907 | <Component Id="MicrosoftVC90CRTManifestComponent" | ||
21 | 908 | Guid="46354fd0-b3ac-11df-8d81-0800200c9a66"> | ||
22 | 909 | <File Id="Microsoft.VC90.CRT.manifest" | ||
23 | 910 | Name="Microsoft.VC90.CRT.manifest" | ||
24 | 911 | DiskId="1" | ||
25 | 912 | Source="build_results\u1sync\Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest" | ||
26 | 913 | KeyPath="yes"/> | ||
27 | 914 | </Component> | ||
28 | 915 | <Component Id="Msvcm90Component" | ||
29 | 916 | Guid="ae81e760-b3ac-11df-8d81-0800200c9a66"> | ||
30 | 917 | <File Id="msvcm90.dll" | ||
31 | 918 | Name="msvcm90.dll" | ||
32 | 919 | DiskId="1" | ||
33 | 920 | Source="build_results\u1sync\Microsoft.VC90.CRT\msvcm90.dll" | ||
34 | 921 | KeyPath="yes"/> | ||
35 | 922 | </Component> | ||
36 | 923 | <Component Id="Msvcp90Component" | ||
37 | 924 | Guid="f7dbacc0-b3ac-11df-8d81-0800200c9a66"> | ||
38 | 925 | <File Id="msvcp90.dll" | ||
39 | 926 | Name="msvcp90.dll" | ||
40 | 927 | DiskId="1" | ||
41 | 928 | Source="build_results\u1sync\Microsoft.VC90.CRT\msvcp90.dll" | ||
42 | 929 | KeyPath="yes"/> | ||
43 | 930 | </Component> | ||
44 | 931 | <Component Id="Msvcr90Component" | ||
45 | 932 | Guid="e5e63e30-b3ad-11df-8d81-0800200c9a66"> | ||
46 | 933 | <File Id="msvcr90.dll" | ||
47 | 934 | Name="msvcr90.dll" | ||
48 | 935 | DiskId="1" | ||
49 | 936 | Source="build_results\u1sync\Microsoft.VC90.CRT\msvcr90.dll" | ||
50 | 937 | KeyPath="yes"/> | ||
51 | 938 | </Component> | ||
52 | 939 | </Directory> | ||
53 | 905 | </Directory> | 940 | </Directory> |
54 | 906 | </Directory> | 941 | </Directory> |
55 | 907 | </Directory> | 942 | </Directory> |
56 | @@ -1021,6 +1056,10 @@ | |||
57 | 1021 | <ComponentRef Id="Win32WnetComponent" /> | 1056 | <ComponentRef Id="Win32WnetComponent" /> |
58 | 1022 | <ComponentRef Id="ZLibComponent" /> | 1057 | <ComponentRef Id="ZLibComponent" /> |
59 | 1023 | <ComponentRef Id="ZopeInterfaceComponent" /> | 1058 | <ComponentRef Id="ZopeInterfaceComponent" /> |
60 | 1059 | <ComponentRef Id="MicrosoftVC90CRTManifestComponent" /> | ||
61 | 1060 | <ComponentRef Id="Msvcm90Component" /> | ||
62 | 1061 | <ComponentRef Id="Msvcp90Component" /> | ||
63 | 1062 | <ComponentRef Id="Msvcr90Component" /> | ||
64 | 1024 | </Feature> | 1063 | </Feature> |
65 | 1025 | 1064 | ||
66 | 1026 | <!-- Provide the UI extensions to be used --> | 1065 | <!-- Provide the UI extensions to be used --> |
67 | 1027 | 1066 | ||
68 | === modified file 'main.build' | |||
69 | --- main.build 2010-08-30 09:37:56 +0000 | |||
70 | +++ main.build 2010-08-30 09:37:56 +0000 | |||
71 | @@ -233,6 +233,12 @@ | |||
72 | 233 | </fileset> | 233 | </fileset> |
73 | 234 | </copy> | 234 | </copy> |
74 | 235 | 235 | ||
75 | 236 | <copy todir="${build_results}/u1sync/Microsoft.VC90.CRT" flatten="true"> | ||
76 | 237 | <fileset basedir="src/dist/Microsoft.VC90.CRT"> | ||
77 | 238 | <include name="*.*" /> | ||
78 | 239 | </fileset> | ||
79 | 240 | </copy> | ||
80 | 241 | |||
81 | 236 | <!-- copy the correct views lib --> | 242 | <!-- copy the correct views lib --> |
82 | 237 | 243 | ||
83 | 238 | <copy todir="${build_results}/Client" flatten="true"> | 244 | <copy todir="${build_results}/Client" flatten="true"> |
84 | 239 | 245 | ||
85 | === modified file 'src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj' | |||
86 | --- src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj 2010-08-04 14:36:09 +0000 | |||
87 | +++ src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj 2010-08-30 09:37:56 +0000 | |||
88 | @@ -80,6 +80,11 @@ | |||
89 | 80 | </Compile> | 80 | </Compile> |
90 | 81 | </ItemGroup> | 81 | </ItemGroup> |
91 | 82 | <ItemGroup> | 82 | <ItemGroup> |
92 | 83 | <Compile Include="Resources\Resources1.Designer.cs"> | ||
93 | 84 | <AutoGen>True</AutoGen> | ||
94 | 85 | <DesignTime>True</DesignTime> | ||
95 | 86 | <DependentUpon>Resources.resx</DependentUpon> | ||
96 | 87 | </Compile> | ||
97 | 83 | <Compile Include="UbuntuOneMessageBox.cs" /> | 88 | <Compile Include="UbuntuOneMessageBox.cs" /> |
98 | 84 | <Compile Include="..\Version.cs"> | 89 | <Compile Include="..\Version.cs"> |
99 | 85 | <Link>Properties\Version.cs</Link> | 90 | <Link>Properties\Version.cs</Link> |
100 | @@ -95,11 +100,6 @@ | |||
101 | 95 | <DesignTime>True</DesignTime> | 100 | <DesignTime>True</DesignTime> |
102 | 96 | <DependentUpon>Resources.resx</DependentUpon> | 101 | <DependentUpon>Resources.resx</DependentUpon> |
103 | 97 | </Compile> | 102 | </Compile> |
104 | 98 | <Compile Include="Resources\Resources.Designer.cs"> | ||
105 | 99 | <AutoGen>True</AutoGen> | ||
106 | 100 | <DesignTime>True</DesignTime> | ||
107 | 101 | <DependentUpon>Resources.resx</DependentUpon> | ||
108 | 102 | </Compile> | ||
109 | 103 | <Compile Include="Update\DownloadingView.xaml.cs"> | 103 | <Compile Include="Update\DownloadingView.xaml.cs"> |
110 | 104 | <DependentUpon>DownloadingView.xaml</DependentUpon> | 104 | <DependentUpon>DownloadingView.xaml</DependentUpon> |
111 | 105 | </Compile> | 105 | </Compile> |
112 | @@ -113,6 +113,8 @@ | |||
113 | 113 | </EmbeddedResource> | 113 | </EmbeddedResource> |
114 | 114 | <EmbeddedResource Include="Resources\Resources.resx"> | 114 | <EmbeddedResource Include="Resources\Resources.resx"> |
115 | 115 | <SubType>Designer</SubType> | 115 | <SubType>Designer</SubType> |
116 | 116 | <Generator>PublicResXFileCodeGenerator</Generator> | ||
117 | 117 | <LastGenOutput>Resources1.Designer.cs</LastGenOutput> | ||
118 | 116 | </EmbeddedResource> | 118 | </EmbeddedResource> |
119 | 117 | </ItemGroup> | 119 | </ItemGroup> |
120 | 118 | <ItemGroup> | 120 | <ItemGroup> |
121 | 119 | 121 | ||
122 | === modified file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml' | |||
123 | --- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml 2010-07-27 16:07:04 +0000 | |||
124 | +++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml 2010-08-30 09:37:56 +0000 | |||
125 | @@ -31,9 +31,14 @@ | |||
126 | 31 | ShowActivated="False"> | 31 | ShowActivated="False"> |
127 | 32 | <DockPanel> | 32 | <DockPanel> |
128 | 33 | <StackPanel Margin="20"> | 33 | <StackPanel Margin="20"> |
130 | 34 | <av:NotifyIcon Name="notifyIcon" Icon="/Canonical.UbuntuOne.Client.Views;component/Resources/ubuntu-logo-22x22.png" Text="Ubuntu One"> <!-- TODO: Add icon Icon="/AvalonLibraryTestPages;component/Properties/App.ico" Open preferences when click --> | 34 | <av:NotifyIcon Name="notifyIcon" Icon="/Canonical.UbuntuOne.Client.Views;component/Resources/ubuntu-logo-22x22.png" |
131 | 35 | Text="Ubuntu One"> <!-- TODO: Add icon Icon="/AvalonLibraryTestPages;component/Properties/App.ico" Open preferences when click --> | ||
132 | 35 | <FrameworkElement.ContextMenu> | 36 | <FrameworkElement.ContextMenu> |
133 | 36 | <ContextMenu> | 37 | <ContextMenu> |
134 | 38 | <MenuItem x:Uid="UbuntuOneManualSync" | ||
135 | 39 | Name="UbuntuOneManualSync" | ||
136 | 40 | Header="{x:Static resx:Resources.UbuntuOneManualSync}" | ||
137 | 41 | Click="OnUbuntuOneManualSyncClick"/> | ||
138 | 37 | <MenuItem x:Uid="UbuntuOnePreferencesMenuItem" | 42 | <MenuItem x:Uid="UbuntuOnePreferencesMenuItem" |
139 | 38 | Name="UbuntuOnePreferencesMenuItem" | 43 | Name="UbuntuOnePreferencesMenuItem" |
140 | 39 | Header="{x:Static resx:Resources.UbuntuOnePreferences}" /> | 44 | Header="{x:Static resx:Resources.UbuntuOnePreferences}" /> |
141 | 40 | 45 | ||
142 | === modified file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs' | |||
143 | --- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-08-05 08:15:00 +0000 | |||
144 | +++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-08-30 09:37:56 +0000 | |||
145 | @@ -17,6 +17,8 @@ | |||
146 | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
147 | 18 | using System; | 18 | using System; |
148 | 19 | using System.Collections.Generic; | 19 | using System.Collections.Generic; |
149 | 20 | using System.Diagnostics; | ||
150 | 21 | using System.IO; | ||
151 | 20 | using Canonical.UbuntuOne.Client.Notification; | 22 | using Canonical.UbuntuOne.Client.Notification; |
152 | 21 | 23 | ||
153 | 22 | namespace Canonical.UbuntuOne.Client.Views | 24 | namespace Canonical.UbuntuOne.Client.Views |
154 | @@ -74,5 +76,62 @@ | |||
155 | 74 | } | 76 | } |
156 | 75 | 77 | ||
157 | 76 | #endregion | 78 | #endregion |
158 | 79 | |||
159 | 80 | private void OnUbuntuOneManualSyncClick(object sender, System.Windows.RoutedEventArgs e) | ||
160 | 81 | { | ||
161 | 82 | // TODO: Used the bloddy presenter!!!!! | ||
162 | 83 | // TODO: This has to be fixed, we should not call the command directly, user the | ||
163 | 84 | // process dispatcher to prepare for the syncdaemon!!!! | ||
164 | 85 | // TODO: Do not hardcode the folder, use an object to store that | ||
165 | 86 | // TODO: Do not store oauth in the env vars!!!! | ||
166 | 87 | var oneDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), | ||
167 | 88 | "UbuntuOne"); | ||
168 | 89 | if(!Directory.Exists(oneDir)) | ||
169 | 90 | { | ||
170 | 91 | Directory.CreateDirectory(oneDir); | ||
171 | 92 | } | ||
172 | 93 | |||
173 | 94 | if(!Directory.Exists(Path.Combine(oneDir, ".ubuntuone-sync"))) | ||
174 | 95 | { | ||
175 | 96 | // init the directory | ||
176 | 97 | var init = new Process | ||
177 | 98 | { | ||
178 | 99 | StartInfo = | ||
179 | 100 | { | ||
180 | 101 | WorkingDirectory = @"C:\Program Files\Canonical\UbuntuOne\Client\U1Sync", | ||
181 | 102 | FileName = @"C:\Program Files\Canonical\UbuntuOne\Client\U1Sync\main.exe", | ||
182 | 103 | Arguments = String.Format(" --init {0} --oauth {1}", | ||
183 | 104 | oneDir, | ||
184 | 105 | Environment.GetEnvironmentVariable("UbuntuOne", EnvironmentVariableTarget.User)), | ||
185 | 106 | UseShellExecute = false, | ||
186 | 107 | RedirectStandardOutput = false, | ||
187 | 108 | RedirectStandardError = false, | ||
188 | 109 | CreateNoWindow = true, | ||
189 | 110 | WindowStyle = ProcessWindowStyle.Hidden | ||
190 | 111 | } | ||
191 | 112 | }; | ||
192 | 113 | init.Start(); | ||
193 | 114 | init.WaitForExit(); | ||
194 | 115 | init.Close(); | ||
195 | 116 | } | ||
196 | 117 | |||
197 | 118 | var proc = new Process | ||
198 | 119 | { | ||
199 | 120 | StartInfo = | ||
200 | 121 | { | ||
201 | 122 | WorkingDirectory = @"C:\Program Files\Canonical\UbuntuOne\Client\U1Sync", | ||
202 | 123 | FileName = @"C:\Program Files\Canonical\UbuntuOne\Client\U1Sync\main.exe", | ||
203 | 124 | Arguments = String.Format("{0} --oauth {1}", | ||
204 | 125 | oneDir, | ||
205 | 126 | Environment.GetEnvironmentVariable("UbuntuOne", EnvironmentVariableTarget.User)), | ||
206 | 127 | UseShellExecute = false, | ||
207 | 128 | RedirectStandardOutput = false, | ||
208 | 129 | RedirectStandardError = false, | ||
209 | 130 | CreateNoWindow = true, | ||
210 | 131 | WindowStyle = ProcessWindowStyle.Hidden | ||
211 | 132 | } | ||
212 | 133 | }; | ||
213 | 134 | proc.Start(); | ||
214 | 135 | } | ||
215 | 77 | } | 136 | } |
216 | 78 | } | 137 | } |
217 | 79 | 138 | ||
218 | === removed file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs' | |||
219 | --- src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs 2010-07-29 17:19:47 +0000 | |||
220 | +++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs 1970-01-01 00:00:00 +0000 | |||
221 | @@ -1,153 +0,0 @@ | |||
222 | 1 | //------------------------------------------------------------------------------ | ||
223 | 2 | // <auto-generated> | ||
224 | 3 | // This code was generated by a tool. | ||
225 | 4 | // Runtime Version:2.0.50727.4927 | ||
226 | 5 | // | ||
227 | 6 | // Changes to this file may cause incorrect behavior and will be lost if | ||
228 | 7 | // the code is regenerated. | ||
229 | 8 | // </auto-generated> | ||
230 | 9 | //------------------------------------------------------------------------------ | ||
231 | 10 | |||
232 | 11 | namespace Canonical.UbuntuOne.Client.Views.Resources { | ||
233 | 12 | using System; | ||
234 | 13 | |||
235 | 14 | |||
236 | 15 | /// <summary> | ||
237 | 16 | /// A strongly-typed resource class, for looking up localized strings, etc. | ||
238 | 17 | /// </summary> | ||
239 | 18 | // This class was auto-generated by the StronglyTypedResourceBuilder | ||
240 | 19 | // class via a tool like ResGen or Visual Studio. | ||
241 | 20 | // To add or remove a member, edit your .ResX file then rerun ResGen | ||
242 | 21 | // with the /str option, or rebuild your VS project. | ||
243 | 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] | ||
244 | 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
245 | 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||
246 | 25 | public class Resources { | ||
247 | 26 | |||
248 | 27 | private static global::System.Resources.ResourceManager resourceMan; | ||
249 | 28 | |||
250 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; | ||
251 | 30 | |||
252 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | ||
253 | 32 | internal Resources() { | ||
254 | 33 | } | ||
255 | 34 | |||
256 | 35 | /// <summary> | ||
257 | 36 | /// Returns the cached ResourceManager instance used by this class. | ||
258 | 37 | /// </summary> | ||
259 | 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
260 | 39 | public static global::System.Resources.ResourceManager ResourceManager { | ||
261 | 40 | get { | ||
262 | 41 | if (object.ReferenceEquals(resourceMan, null)) { | ||
263 | 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Canonical.UbuntuOne.Client.Views.Resources.Resources", typeof(Resources).Assembly); | ||
264 | 43 | resourceMan = temp; | ||
265 | 44 | } | ||
266 | 45 | return resourceMan; | ||
267 | 46 | } | ||
268 | 47 | } | ||
269 | 48 | |||
270 | 49 | /// <summary> | ||
271 | 50 | /// Overrides the current thread's CurrentUICulture property for all | ||
272 | 51 | /// resource lookups using this strongly typed resource class. | ||
273 | 52 | /// </summary> | ||
274 | 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
275 | 54 | public static global::System.Globalization.CultureInfo Culture { | ||
276 | 55 | get { | ||
277 | 56 | return resourceCulture; | ||
278 | 57 | } | ||
279 | 58 | set { | ||
280 | 59 | resourceCulture = value; | ||
281 | 60 | } | ||
282 | 61 | } | ||
283 | 62 | |||
284 | 63 | /// <summary> | ||
285 | 64 | /// Looks up a localized string similar to Ubuntu One. | ||
286 | 65 | /// </summary> | ||
287 | 66 | public static string ApplicationName { | ||
288 | 67 | get { | ||
289 | 68 | return ResourceManager.GetString("ApplicationName", resourceCulture); | ||
290 | 69 | } | ||
291 | 70 | } | ||
292 | 71 | |||
293 | 72 | /// <summary> | ||
294 | 73 | /// Looks up a localized string similar to Downloading updates.... | ||
295 | 74 | /// </summary> | ||
296 | 75 | public static string DownloadingDialogTitle { | ||
297 | 76 | get { | ||
298 | 77 | return ResourceManager.GetString("DownloadingDialogTitle", resourceCulture); | ||
299 | 78 | } | ||
300 | 79 | } | ||
301 | 80 | |||
302 | 81 | /// <summary> | ||
303 | 82 | /// Looks up a localized string similar to Exit. | ||
304 | 83 | /// </summary> | ||
305 | 84 | public static string Exit { | ||
306 | 85 | get { | ||
307 | 86 | return ResourceManager.GetString("Exit", resourceCulture); | ||
308 | 87 | } | ||
309 | 88 | } | ||
310 | 89 | |||
311 | 90 | /// <summary> | ||
312 | 91 | /// Looks up a localized string similar to Get Help and Support.... | ||
313 | 92 | /// </summary> | ||
314 | 93 | public static string Help { | ||
315 | 94 | get { | ||
316 | 95 | return ResourceManager.GetString("Help", resourceCulture); | ||
317 | 96 | } | ||
318 | 97 | } | ||
319 | 98 | |||
320 | 99 | /// <summary> | ||
321 | 100 | /// Looks up a localized string similar to Get More Space. | ||
322 | 101 | /// </summary> | ||
323 | 102 | public static string MoreSpace { | ||
324 | 103 | get { | ||
325 | 104 | return ResourceManager.GetString("MoreSpace", resourceCulture); | ||
326 | 105 | } | ||
327 | 106 | } | ||
328 | 107 | |||
329 | 108 | /// <summary> | ||
330 | 109 | /// Looks up a localized string similar to Open Share Folders. | ||
331 | 110 | /// </summary> | ||
332 | 111 | public static string OpenShares { | ||
333 | 112 | get { | ||
334 | 113 | return ResourceManager.GetString("OpenShares", resourceCulture); | ||
335 | 114 | } | ||
336 | 115 | } | ||
337 | 116 | |||
338 | 117 | /// <summary> | ||
339 | 118 | /// Looks up a localized string similar to Open Sync Folders. | ||
340 | 119 | /// </summary> | ||
341 | 120 | public static string OpenSync { | ||
342 | 121 | get { | ||
343 | 122 | return ResourceManager.GetString("OpenSync", resourceCulture); | ||
344 | 123 | } | ||
345 | 124 | } | ||
346 | 125 | |||
347 | 126 | /// <summary> | ||
348 | 127 | /// Looks up a localized string similar to Recently Modify Files. | ||
349 | 128 | /// </summary> | ||
350 | 129 | public static string RecentlyModifyFiles { | ||
351 | 130 | get { | ||
352 | 131 | return ResourceManager.GetString("RecentlyModifyFiles", resourceCulture); | ||
353 | 132 | } | ||
354 | 133 | } | ||
355 | 134 | |||
356 | 135 | /// <summary> | ||
357 | 136 | /// Looks up a localized string similar to Ubuntu One Preferences. | ||
358 | 137 | /// </summary> | ||
359 | 138 | public static string UbuntuOnePreferences { | ||
360 | 139 | get { | ||
361 | 140 | return ResourceManager.GetString("UbuntuOnePreferences", resourceCulture); | ||
362 | 141 | } | ||
363 | 142 | } | ||
364 | 143 | |||
365 | 144 | /// <summary> | ||
366 | 145 | /// Looks up a localized string similar to Updating Ubuntu One.... | ||
367 | 146 | /// </summary> | ||
368 | 147 | public static string UpdatingDialogTitle { | ||
369 | 148 | get { | ||
370 | 149 | return ResourceManager.GetString("UpdatingDialogTitle", resourceCulture); | ||
371 | 150 | } | ||
372 | 151 | } | ||
373 | 152 | } | ||
374 | 153 | } | ||
375 | 154 | 0 | ||
376 | === modified file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx' | |||
377 | --- src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx 2010-07-29 17:19:47 +0000 | |||
378 | +++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx 2010-08-30 09:37:56 +0000 | |||
379 | @@ -141,6 +141,9 @@ | |||
380 | 141 | <data name="RecentlyModifyFiles" xml:space="preserve"> | 141 | <data name="RecentlyModifyFiles" xml:space="preserve"> |
381 | 142 | <value>Recently Modify Files</value> | 142 | <value>Recently Modify Files</value> |
382 | 143 | </data> | 143 | </data> |
383 | 144 | <data name="UbuntuOneManualSync" xml:space="preserve"> | ||
384 | 145 | <value>Synchronize Now</value> | ||
385 | 146 | </data> | ||
386 | 144 | <data name="UbuntuOnePreferences" xml:space="preserve"> | 147 | <data name="UbuntuOnePreferences" xml:space="preserve"> |
387 | 145 | <value>Ubuntu One Preferences</value> | 148 | <value>Ubuntu One Preferences</value> |
388 | 146 | </data> | 149 | </data> |
389 | 147 | 150 | ||
390 | === added file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources1.Designer.cs' | |||
391 | --- src/Canonical.UbuntuOne.Client.Views/Resources/Resources1.Designer.cs 1970-01-01 00:00:00 +0000 | |||
392 | +++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources1.Designer.cs 2010-08-30 09:37:56 +0000 | |||
393 | @@ -0,0 +1,162 @@ | |||
394 | 1 | //------------------------------------------------------------------------------ | ||
395 | 2 | // <auto-generated> | ||
396 | 3 | // This code was generated by a tool. | ||
397 | 4 | // Runtime Version:2.0.50727.4952 | ||
398 | 5 | // | ||
399 | 6 | // Changes to this file may cause incorrect behavior and will be lost if | ||
400 | 7 | // the code is regenerated. | ||
401 | 8 | // </auto-generated> | ||
402 | 9 | //------------------------------------------------------------------------------ | ||
403 | 10 | |||
404 | 11 | namespace Canonical.UbuntuOne.Client.Views.Resources { | ||
405 | 12 | using System; | ||
406 | 13 | |||
407 | 14 | |||
408 | 15 | /// <summary> | ||
409 | 16 | /// A strongly-typed resource class, for looking up localized strings, etc. | ||
410 | 17 | /// </summary> | ||
411 | 18 | // This class was auto-generated by the StronglyTypedResourceBuilder | ||
412 | 19 | // class via a tool like ResGen or Visual Studio. | ||
413 | 20 | // To add or remove a member, edit your .ResX file then rerun ResGen | ||
414 | 21 | // with the /str option, or rebuild your VS project. | ||
415 | 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] | ||
416 | 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
417 | 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||
418 | 25 | public class Resources { | ||
419 | 26 | |||
420 | 27 | private static global::System.Resources.ResourceManager resourceMan; | ||
421 | 28 | |||
422 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; | ||
423 | 30 | |||
424 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | ||
425 | 32 | internal Resources() { | ||
426 | 33 | } | ||
427 | 34 | |||
428 | 35 | /// <summary> | ||
429 | 36 | /// Returns the cached ResourceManager instance used by this class. | ||
430 | 37 | /// </summary> | ||
431 | 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
432 | 39 | public static global::System.Resources.ResourceManager ResourceManager { | ||
433 | 40 | get { | ||
434 | 41 | if (object.ReferenceEquals(resourceMan, null)) { | ||
435 | 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Canonical.UbuntuOne.Client.Views.Resources.Resources", typeof(Resources).Assembly); | ||
436 | 43 | resourceMan = temp; | ||
437 | 44 | } | ||
438 | 45 | return resourceMan; | ||
439 | 46 | } | ||
440 | 47 | } | ||
441 | 48 | |||
442 | 49 | /// <summary> | ||
443 | 50 | /// Overrides the current thread's CurrentUICulture property for all | ||
444 | 51 | /// resource lookups using this strongly typed resource class. | ||
445 | 52 | /// </summary> | ||
446 | 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
447 | 54 | public static global::System.Globalization.CultureInfo Culture { | ||
448 | 55 | get { | ||
449 | 56 | return resourceCulture; | ||
450 | 57 | } | ||
451 | 58 | set { | ||
452 | 59 | resourceCulture = value; | ||
453 | 60 | } | ||
454 | 61 | } | ||
455 | 62 | |||
456 | 63 | /// <summary> | ||
457 | 64 | /// Looks up a localized string similar to Ubuntu One. | ||
458 | 65 | /// </summary> | ||
459 | 66 | public static string ApplicationName { | ||
460 | 67 | get { | ||
461 | 68 | return ResourceManager.GetString("ApplicationName", resourceCulture); | ||
462 | 69 | } | ||
463 | 70 | } | ||
464 | 71 | |||
465 | 72 | /// <summary> | ||
466 | 73 | /// Looks up a localized string similar to Downloading updates.... | ||
467 | 74 | /// </summary> | ||
468 | 75 | public static string DownloadingDialogTitle { | ||
469 | 76 | get { | ||
470 | 77 | return ResourceManager.GetString("DownloadingDialogTitle", resourceCulture); | ||
471 | 78 | } | ||
472 | 79 | } | ||
473 | 80 | |||
474 | 81 | /// <summary> | ||
475 | 82 | /// Looks up a localized string similar to Exit. | ||
476 | 83 | /// </summary> | ||
477 | 84 | public static string Exit { | ||
478 | 85 | get { | ||
479 | 86 | return ResourceManager.GetString("Exit", resourceCulture); | ||
480 | 87 | } | ||
481 | 88 | } | ||
482 | 89 | |||
483 | 90 | /// <summary> | ||
484 | 91 | /// Looks up a localized string similar to Get Help and Support.... | ||
485 | 92 | /// </summary> | ||
486 | 93 | public static string Help { | ||
487 | 94 | get { | ||
488 | 95 | return ResourceManager.GetString("Help", resourceCulture); | ||
489 | 96 | } | ||
490 | 97 | } | ||
491 | 98 | |||
492 | 99 | /// <summary> | ||
493 | 100 | /// Looks up a localized string similar to Get More Space. | ||
494 | 101 | /// </summary> | ||
495 | 102 | public static string MoreSpace { | ||
496 | 103 | get { | ||
497 | 104 | return ResourceManager.GetString("MoreSpace", resourceCulture); | ||
498 | 105 | } | ||
499 | 106 | } | ||
500 | 107 | |||
501 | 108 | /// <summary> | ||
502 | 109 | /// Looks up a localized string similar to Open Share Folders. | ||
503 | 110 | /// </summary> | ||
504 | 111 | public static string OpenShares { | ||
505 | 112 | get { | ||
506 | 113 | return ResourceManager.GetString("OpenShares", resourceCulture); | ||
507 | 114 | } | ||
508 | 115 | } | ||
509 | 116 | |||
510 | 117 | /// <summary> | ||
511 | 118 | /// Looks up a localized string similar to Open Sync Folders. | ||
512 | 119 | /// </summary> | ||
513 | 120 | public static string OpenSync { | ||
514 | 121 | get { | ||
515 | 122 | return ResourceManager.GetString("OpenSync", resourceCulture); | ||
516 | 123 | } | ||
517 | 124 | } | ||
518 | 125 | |||
519 | 126 | /// <summary> | ||
520 | 127 | /// Looks up a localized string similar to Recently Modify Files. | ||
521 | 128 | /// </summary> | ||
522 | 129 | public static string RecentlyModifyFiles { | ||
523 | 130 | get { | ||
524 | 131 | return ResourceManager.GetString("RecentlyModifyFiles", resourceCulture); | ||
525 | 132 | } | ||
526 | 133 | } | ||
527 | 134 | |||
528 | 135 | /// <summary> | ||
529 | 136 | /// Looks up a localized string similar to Synchronize Now. | ||
530 | 137 | /// </summary> | ||
531 | 138 | public static string UbuntuOneManualSync { | ||
532 | 139 | get { | ||
533 | 140 | return ResourceManager.GetString("UbuntuOneManualSync", resourceCulture); | ||
534 | 141 | } | ||
535 | 142 | } | ||
536 | 143 | |||
537 | 144 | /// <summary> | ||
538 | 145 | /// Looks up a localized string similar to Ubuntu One Preferences. | ||
539 | 146 | /// </summary> | ||
540 | 147 | public static string UbuntuOnePreferences { | ||
541 | 148 | get { | ||
542 | 149 | return ResourceManager.GetString("UbuntuOnePreferences", resourceCulture); | ||
543 | 150 | } | ||
544 | 151 | } | ||
545 | 152 | |||
546 | 153 | /// <summary> | ||
547 | 154 | /// Looks up a localized string similar to Updating Ubuntu One.... | ||
548 | 155 | /// </summary> | ||
549 | 156 | public static string UpdatingDialogTitle { | ||
550 | 157 | get { | ||
551 | 158 | return ResourceManager.GetString("UpdatingDialogTitle", resourceCulture); | ||
552 | 159 | } | ||
553 | 160 | } | ||
554 | 161 | } | ||
555 | 162 | } | ||
556 | 0 | 163 | ||
557 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs' | |||
558 | --- src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-08-05 08:01:59 +0000 | |||
559 | +++ src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-08-30 09:37:56 +0000 | |||
560 | @@ -24,6 +24,11 @@ | |||
561 | 24 | public interface INotificationIconPresenter | 24 | public interface INotificationIconPresenter |
562 | 25 | { | 25 | { |
563 | 26 | /// <summary> | 26 | /// <summary> |
564 | 27 | /// When implemented this method should for the sync of the ubuntu one folder. | ||
565 | 28 | /// </summary> | ||
566 | 29 | void ManuelSync(); | ||
567 | 30 | |||
568 | 31 | /// <summary> | ||
569 | 27 | /// When implemented this method should open the Preferences window of Ubuntu One. | 32 | /// When implemented this method should open the Preferences window of Ubuntu One. |
570 | 28 | /// </summary> | 33 | /// </summary> |
571 | 29 | void OpenUbuntuOnePreferences(); | 34 | void OpenUbuntuOnePreferences(); |
572 | 30 | 35 | ||
573 | === modified file 'src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs' | |||
574 | --- src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-08-05 08:01:59 +0000 | |||
575 | +++ src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-08-30 09:37:56 +0000 | |||
576 | @@ -16,6 +16,7 @@ | |||
577 | 16 | // | 16 | // |
578 | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> | 17 | // Authors: Manuel de la Peña <manuel.delapena@canonical.com> |
579 | 18 | using System; | 18 | using System; |
580 | 19 | using System.Diagnostics; | ||
581 | 19 | using Canonical.UbuntuOne.Client.Preferences; | 20 | using Canonical.UbuntuOne.Client.Preferences; |
582 | 20 | using Canonical.UbuntuOne.Common.Aop; | 21 | using Canonical.UbuntuOne.Common.Aop; |
583 | 21 | using Canonical.UbuntuOne.Common.Utils; | 22 | using Canonical.UbuntuOne.Common.Utils; |
584 | @@ -191,6 +192,15 @@ | |||
585 | 191 | #region Implementation of INotificationIconPresenter | 192 | #region Implementation of INotificationIconPresenter |
586 | 192 | 193 | ||
587 | 193 | /// <summary> | 194 | /// <summary> |
588 | 195 | /// When implemented this method should for the sync of the ubuntu one folder. | ||
589 | 196 | /// </summary> | ||
590 | 197 | public void ManuelSync() | ||
591 | 198 | { | ||
592 | 199 | throw new NotImplementedException(); | ||
593 | 200 | |||
594 | 201 | } | ||
595 | 202 | |||
596 | 203 | /// <summary> | ||
597 | 194 | /// Opens the Preferences window of Ubuntu One. | 204 | /// Opens the Preferences window of Ubuntu One. |
598 | 195 | /// </summary> | 205 | /// </summary> |
599 | 196 | public void OpenUbuntuOnePreferences() | 206 | public void OpenUbuntuOnePreferences() |
600 | 197 | 207 | ||
601 | === modified file 'src/setup.py' | |||
602 | --- src/setup.py 2010-08-30 09:37:56 +0000 | |||
603 | +++ src/setup.py 2010-08-30 09:37:56 +0000 | |||
604 | @@ -3,6 +3,7 @@ | |||
605 | 3 | 3 | ||
606 | 4 | """ """ | 4 | """ """ |
607 | 5 | import sys | 5 | import sys |
608 | 6 | from glob import glob | ||
609 | 6 | 7 | ||
610 | 7 | # ModuleFinder can't handle runtime changes to __path__, but win32com uses them | 8 | # ModuleFinder can't handle runtime changes to __path__, but win32com uses them |
611 | 8 | try: | 9 | try: |
612 | @@ -18,7 +19,7 @@ | |||
613 | 18 | import win32com | 19 | import win32com |
614 | 19 | for p in win32com.__path__[1:]: | 20 | for p in win32com.__path__[1:]: |
615 | 20 | modulefinder.AddPackagePath("win32com", p) | 21 | modulefinder.AddPackagePath("win32com", p) |
617 | 21 | for extra in ["win32com.shell"]: #,"win32com.mapi" | 22 | for extra in ["win32com.shell" ,"win32com.api"]: |
618 | 22 | __import__(extra) | 23 | __import__(extra) |
619 | 23 | m = sys.modules[extra] | 24 | m = sys.modules[extra] |
620 | 24 | for p in m.__path__[1:]: | 25 | for p in m.__path__[1:]: |
621 | @@ -26,7 +27,7 @@ | |||
622 | 26 | except ImportError: | 27 | except ImportError: |
623 | 27 | # no build path setup, no worries. | 28 | # no build path setup, no worries. |
624 | 28 | pass | 29 | pass |
626 | 29 | 30 | ||
627 | 30 | from distutils.core import setup | 31 | from distutils.core import setup |
628 | 31 | import py2exe | 32 | import py2exe |
629 | 32 | 33 | ||
630 | @@ -44,6 +45,7 @@ | |||
631 | 44 | Ubuntu One is a suite of on-line | 45 | Ubuntu One is a suite of on-line |
632 | 45 | services. This package contains the a synchronization client for the | 46 | services. This package contains the a synchronization client for the |
633 | 46 | Ubuntu One file sharing service.""", | 47 | Ubuntu One file sharing service.""", |
634 | 48 | data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))], | ||
635 | 47 | license='GPLv3', | 49 | license='GPLv3', |
636 | 48 | console=['u1sync\\main.py'], | 50 | console=['u1sync\\main.py'], |
637 | 49 | requires=[ | 51 | requires=[ |
638 | 50 | 52 | ||
639 | === modified file 'src/u1sync/main.py' | |||
640 | --- src/u1sync/main.py 2010-08-30 09:37:56 +0000 | |||
641 | +++ src/u1sync/main.py 2010-08-30 09:37:56 +0000 | |||
642 | @@ -357,4 +357,4 @@ | |||
643 | 357 | if __name__ == "__main__": | 357 | if __name__ == "__main__": |
644 | 358 | # set the name of the process, this just works on windows | 358 | # set the name of the process, this just works on windows |
645 | 359 | sys.argv[0] = "Ubuntuone" | 359 | sys.argv[0] = "Ubuntuone" |
646 | 360 | main(sys.argv[1:]) | ||
647 | 361 | \ No newline at end of file | 360 | \ No newline at end of file |
648 | 361 | sys.exit(main(sys.argv[1:])) | ||
649 | 362 | \ No newline at end of file | 362 | \ No newline at end of file |