Merge lp:~mandel/ubuntuone-windows-installer/connect_u1sync_gui into lp:ubuntuone-windows-installer/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
Reviewer Review Type Date Requested Status
Stuart Colville (community) Approve
Rodrigo Moya (community) Approve
Review via email: mp+34056@code.launchpad.net

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
Rodrigo Moya (rodrigo-moya) :
review: Approve
Revision history for this message
Stuart Colville (muffinresearch) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file '.bzrignore'
--- .bzrignore 2010-08-30 09:37:56 +0000
+++ .bzrignore 2010-08-30 09:37:56 +0000
@@ -33,3 +33,5 @@
33src/Canonical.UbuntuOne.SyncDaemon/bin33src/Canonical.UbuntuOne.SyncDaemon/bin
34src/build34src/build
35src/dist35src/dist
36utils/UbuntuOne.msi
37build.number
3638
=== modified file 'install/UbuntuOne.wxs'
--- install/UbuntuOne.wxs 2010-08-30 09:37:56 +0000
+++ install/UbuntuOne.wxs 2010-08-30 09:37:56 +0000
@@ -902,6 +902,41 @@
902 Source="build_results\u1sync\zope.interface._zope_interface_coptimizations.pyd" 902 Source="build_results\u1sync\zope.interface._zope_interface_coptimizations.pyd"
903 KeyPath="yes"/>903 KeyPath="yes"/>
904 </Component>904 </Component>
905 <Directory Id="Vc90Dir"
906 Name="Microsoft.VC90.CRT">
907 <Component Id="MicrosoftVC90CRTManifestComponent"
908 Guid="46354fd0-b3ac-11df-8d81-0800200c9a66">
909 <File Id="Microsoft.VC90.CRT.manifest"
910 Name="Microsoft.VC90.CRT.manifest"
911 DiskId="1"
912 Source="build_results\u1sync\Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest"
913 KeyPath="yes"/>
914 </Component>
915 <Component Id="Msvcm90Component"
916 Guid="ae81e760-b3ac-11df-8d81-0800200c9a66">
917 <File Id="msvcm90.dll"
918 Name="msvcm90.dll"
919 DiskId="1"
920 Source="build_results\u1sync\Microsoft.VC90.CRT\msvcm90.dll"
921 KeyPath="yes"/>
922 </Component>
923 <Component Id="Msvcp90Component"
924 Guid="f7dbacc0-b3ac-11df-8d81-0800200c9a66">
925 <File Id="msvcp90.dll"
926 Name="msvcp90.dll"
927 DiskId="1"
928 Source="build_results\u1sync\Microsoft.VC90.CRT\msvcp90.dll"
929 KeyPath="yes"/>
930 </Component>
931 <Component Id="Msvcr90Component"
932 Guid="e5e63e30-b3ad-11df-8d81-0800200c9a66">
933 <File Id="msvcr90.dll"
934 Name="msvcr90.dll"
935 DiskId="1"
936 Source="build_results\u1sync\Microsoft.VC90.CRT\msvcr90.dll"
937 KeyPath="yes"/>
938 </Component>
939 </Directory>
905 </Directory>940 </Directory>
906 </Directory>941 </Directory>
907 </Directory>942 </Directory>
@@ -1021,6 +1056,10 @@
1021 <ComponentRef Id="Win32WnetComponent" />1056 <ComponentRef Id="Win32WnetComponent" />
1022 <ComponentRef Id="ZLibComponent" />1057 <ComponentRef Id="ZLibComponent" />
1023 <ComponentRef Id="ZopeInterfaceComponent" />1058 <ComponentRef Id="ZopeInterfaceComponent" />
1059 <ComponentRef Id="MicrosoftVC90CRTManifestComponent" />
1060 <ComponentRef Id="Msvcm90Component" />
1061 <ComponentRef Id="Msvcp90Component" />
1062 <ComponentRef Id="Msvcr90Component" />
1024 </Feature>1063 </Feature>
1025 1064
1026 <!-- Provide the UI extensions to be used -->1065 <!-- Provide the UI extensions to be used -->
10271066
=== modified file 'main.build'
--- main.build 2010-08-30 09:37:56 +0000
+++ main.build 2010-08-30 09:37:56 +0000
@@ -233,6 +233,12 @@
233 </fileset>233 </fileset>
234 </copy>234 </copy>
235 235
236 <copy todir="${build_results}/u1sync/Microsoft.VC90.CRT" flatten="true">
237 <fileset basedir="src/dist/Microsoft.VC90.CRT">
238 <include name="*.*" />
239 </fileset>
240 </copy>
241
236 <!-- copy the correct views lib -->242 <!-- copy the correct views lib -->
237 243
238 <copy todir="${build_results}/Client" flatten="true">244 <copy todir="${build_results}/Client" flatten="true">
239245
=== modified file 'src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj'
--- src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj 2010-08-04 14:36:09 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Canonical.UbuntuOne.Client.Views.csproj 2010-08-30 09:37:56 +0000
@@ -80,6 +80,11 @@
80 </Compile>80 </Compile>
81 </ItemGroup>81 </ItemGroup>
82 <ItemGroup>82 <ItemGroup>
83 <Compile Include="Resources\Resources1.Designer.cs">
84 <AutoGen>True</AutoGen>
85 <DesignTime>True</DesignTime>
86 <DependentUpon>Resources.resx</DependentUpon>
87 </Compile>
83 <Compile Include="UbuntuOneMessageBox.cs" />88 <Compile Include="UbuntuOneMessageBox.cs" />
84 <Compile Include="..\Version.cs">89 <Compile Include="..\Version.cs">
85 <Link>Properties\Version.cs</Link>90 <Link>Properties\Version.cs</Link>
@@ -95,11 +100,6 @@
95 <DesignTime>True</DesignTime>100 <DesignTime>True</DesignTime>
96 <DependentUpon>Resources.resx</DependentUpon>101 <DependentUpon>Resources.resx</DependentUpon>
97 </Compile>102 </Compile>
98 <Compile Include="Resources\Resources.Designer.cs">
99 <AutoGen>True</AutoGen>
100 <DesignTime>True</DesignTime>
101 <DependentUpon>Resources.resx</DependentUpon>
102 </Compile>
103 <Compile Include="Update\DownloadingView.xaml.cs">103 <Compile Include="Update\DownloadingView.xaml.cs">
104 <DependentUpon>DownloadingView.xaml</DependentUpon>104 <DependentUpon>DownloadingView.xaml</DependentUpon>
105 </Compile>105 </Compile>
@@ -113,6 +113,8 @@
113 </EmbeddedResource>113 </EmbeddedResource>
114 <EmbeddedResource Include="Resources\Resources.resx">114 <EmbeddedResource Include="Resources\Resources.resx">
115 <SubType>Designer</SubType>115 <SubType>Designer</SubType>
116 <Generator>PublicResXFileCodeGenerator</Generator>
117 <LastGenOutput>Resources1.Designer.cs</LastGenOutput>
116 </EmbeddedResource>118 </EmbeddedResource>
117 </ItemGroup>119 </ItemGroup>
118 <ItemGroup>120 <ItemGroup>
119121
=== modified file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml'
--- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml 2010-07-27 16:07:04 +0000
+++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml 2010-08-30 09:37:56 +0000
@@ -31,9 +31,14 @@
31 ShowActivated="False">31 ShowActivated="False">
32 <DockPanel>32 <DockPanel>
33 <StackPanel Margin="20">33 <StackPanel Margin="20">
34 <av:NotifyIcon Name="notifyIcon" Icon="/Canonical.UbuntuOne.Client.Views;component/Resources/ubuntu-logo-22x22.png" Text="Ubuntu One"> <!-- TODO: Add icon Icon="/AvalonLibraryTestPages;component/Properties/App.ico" Open preferences when click -->34 <av:NotifyIcon Name="notifyIcon" Icon="/Canonical.UbuntuOne.Client.Views;component/Resources/ubuntu-logo-22x22.png"
35 Text="Ubuntu One"> <!-- TODO: Add icon Icon="/AvalonLibraryTestPages;component/Properties/App.ico" Open preferences when click -->
35 <FrameworkElement.ContextMenu>36 <FrameworkElement.ContextMenu>
36 <ContextMenu>37 <ContextMenu>
38 <MenuItem x:Uid="UbuntuOneManualSync"
39 Name="UbuntuOneManualSync"
40 Header="{x:Static resx:Resources.UbuntuOneManualSync}"
41 Click="OnUbuntuOneManualSyncClick"/>
37 <MenuItem x:Uid="UbuntuOnePreferencesMenuItem" 42 <MenuItem x:Uid="UbuntuOnePreferencesMenuItem"
38 Name="UbuntuOnePreferencesMenuItem" 43 Name="UbuntuOnePreferencesMenuItem"
39 Header="{x:Static resx:Resources.UbuntuOnePreferences}" />44 Header="{x:Static resx:Resources.UbuntuOnePreferences}" />
4045
=== modified file 'src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs'
--- src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-08-05 08:15:00 +0000
+++ src/Canonical.UbuntuOne.Client.Views/NotifyIcon.xaml.cs 2010-08-30 09:37:56 +0000
@@ -17,6 +17,8 @@
17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18using System;18using System;
19using System.Collections.Generic;19using System.Collections.Generic;
20using System.Diagnostics;
21using System.IO;
20using Canonical.UbuntuOne.Client.Notification;22using Canonical.UbuntuOne.Client.Notification;
2123
22namespace Canonical.UbuntuOne.Client.Views24namespace Canonical.UbuntuOne.Client.Views
@@ -74,5 +76,62 @@
74 }76 }
7577
76 #endregion78 #endregion
79
80 private void OnUbuntuOneManualSyncClick(object sender, System.Windows.RoutedEventArgs e)
81 {
82 // TODO: Used the bloddy presenter!!!!!
83 // TODO: This has to be fixed, we should not call the command directly, user the
84 // process dispatcher to prepare for the syncdaemon!!!!
85 // TODO: Do not hardcode the folder, use an object to store that
86 // TODO: Do not store oauth in the env vars!!!!
87 var oneDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
88 "UbuntuOne");
89 if(!Directory.Exists(oneDir))
90 {
91 Directory.CreateDirectory(oneDir);
92 }
93
94 if(!Directory.Exists(Path.Combine(oneDir, ".ubuntuone-sync")))
95 {
96 // init the directory
97 var init = new Process
98 {
99 StartInfo =
100 {
101 WorkingDirectory = @"C:\Program Files\Canonical\UbuntuOne\Client\U1Sync",
102 FileName = @"C:\Program Files\Canonical\UbuntuOne\Client\U1Sync\main.exe",
103 Arguments = String.Format(" --init {0} --oauth {1}",
104 oneDir,
105 Environment.GetEnvironmentVariable("UbuntuOne", EnvironmentVariableTarget.User)),
106 UseShellExecute = false,
107 RedirectStandardOutput = false,
108 RedirectStandardError = false,
109 CreateNoWindow = true,
110 WindowStyle = ProcessWindowStyle.Hidden
111 }
112 };
113 init.Start();
114 init.WaitForExit();
115 init.Close();
116 }
117
118 var proc = new Process
119 {
120 StartInfo =
121 {
122 WorkingDirectory = @"C:\Program Files\Canonical\UbuntuOne\Client\U1Sync",
123 FileName = @"C:\Program Files\Canonical\UbuntuOne\Client\U1Sync\main.exe",
124 Arguments = String.Format("{0} --oauth {1}",
125 oneDir,
126 Environment.GetEnvironmentVariable("UbuntuOne", EnvironmentVariableTarget.User)),
127 UseShellExecute = false,
128 RedirectStandardOutput = false,
129 RedirectStandardError = false,
130 CreateNoWindow = true,
131 WindowStyle = ProcessWindowStyle.Hidden
132 }
133 };
134 proc.Start();
135 }
77 }136 }
78}137}
79138
=== removed file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs'
--- src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs 2010-07-29 17:19:47 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources.Designer.cs 1970-01-01 00:00:00 +0000
@@ -1,153 +0,0 @@
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated by a tool.
4// Runtime Version:2.0.50727.4927
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </auto-generated>
9//------------------------------------------------------------------------------
10
11namespace Canonical.UbuntuOne.Client.Views.Resources {
12 using System;
13
14
15 /// <summary>
16 /// A strongly-typed resource class, for looking up localized strings, etc.
17 /// </summary>
18 // This class was auto-generated by the StronglyTypedResourceBuilder
19 // class via a tool like ResGen or Visual Studio.
20 // To add or remove a member, edit your .ResX file then rerun ResGen
21 // with the /str option, or rebuild your VS project.
22 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
23 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 public class Resources {
26
27 private static global::System.Resources.ResourceManager resourceMan;
28
29 private static global::System.Globalization.CultureInfo resourceCulture;
30
31 [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 internal Resources() {
33 }
34
35 /// <summary>
36 /// Returns the cached ResourceManager instance used by this class.
37 /// </summary>
38 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 public static global::System.Resources.ResourceManager ResourceManager {
40 get {
41 if (object.ReferenceEquals(resourceMan, null)) {
42 global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Canonical.UbuntuOne.Client.Views.Resources.Resources", typeof(Resources).Assembly);
43 resourceMan = temp;
44 }
45 return resourceMan;
46 }
47 }
48
49 /// <summary>
50 /// Overrides the current thread's CurrentUICulture property for all
51 /// resource lookups using this strongly typed resource class.
52 /// </summary>
53 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 public static global::System.Globalization.CultureInfo Culture {
55 get {
56 return resourceCulture;
57 }
58 set {
59 resourceCulture = value;
60 }
61 }
62
63 /// <summary>
64 /// Looks up a localized string similar to Ubuntu One.
65 /// </summary>
66 public static string ApplicationName {
67 get {
68 return ResourceManager.GetString("ApplicationName", resourceCulture);
69 }
70 }
71
72 /// <summary>
73 /// Looks up a localized string similar to Downloading updates....
74 /// </summary>
75 public static string DownloadingDialogTitle {
76 get {
77 return ResourceManager.GetString("DownloadingDialogTitle", resourceCulture);
78 }
79 }
80
81 /// <summary>
82 /// Looks up a localized string similar to Exit.
83 /// </summary>
84 public static string Exit {
85 get {
86 return ResourceManager.GetString("Exit", resourceCulture);
87 }
88 }
89
90 /// <summary>
91 /// Looks up a localized string similar to Get Help and Support....
92 /// </summary>
93 public static string Help {
94 get {
95 return ResourceManager.GetString("Help", resourceCulture);
96 }
97 }
98
99 /// <summary>
100 /// Looks up a localized string similar to Get More Space.
101 /// </summary>
102 public static string MoreSpace {
103 get {
104 return ResourceManager.GetString("MoreSpace", resourceCulture);
105 }
106 }
107
108 /// <summary>
109 /// Looks up a localized string similar to Open Share Folders.
110 /// </summary>
111 public static string OpenShares {
112 get {
113 return ResourceManager.GetString("OpenShares", resourceCulture);
114 }
115 }
116
117 /// <summary>
118 /// Looks up a localized string similar to Open Sync Folders.
119 /// </summary>
120 public static string OpenSync {
121 get {
122 return ResourceManager.GetString("OpenSync", resourceCulture);
123 }
124 }
125
126 /// <summary>
127 /// Looks up a localized string similar to Recently Modify Files.
128 /// </summary>
129 public static string RecentlyModifyFiles {
130 get {
131 return ResourceManager.GetString("RecentlyModifyFiles", resourceCulture);
132 }
133 }
134
135 /// <summary>
136 /// Looks up a localized string similar to Ubuntu One Preferences.
137 /// </summary>
138 public static string UbuntuOnePreferences {
139 get {
140 return ResourceManager.GetString("UbuntuOnePreferences", resourceCulture);
141 }
142 }
143
144 /// <summary>
145 /// Looks up a localized string similar to Updating Ubuntu One....
146 /// </summary>
147 public static string UpdatingDialogTitle {
148 get {
149 return ResourceManager.GetString("UpdatingDialogTitle", resourceCulture);
150 }
151 }
152 }
153}
1540
=== modified file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx'
--- src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx 2010-07-29 17:19:47 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources.resx 2010-08-30 09:37:56 +0000
@@ -141,6 +141,9 @@
141 <data name="RecentlyModifyFiles" xml:space="preserve">141 <data name="RecentlyModifyFiles" xml:space="preserve">
142 <value>Recently Modify Files</value>142 <value>Recently Modify Files</value>
143 </data>143 </data>
144 <data name="UbuntuOneManualSync" xml:space="preserve">
145 <value>Synchronize Now</value>
146 </data>
144 <data name="UbuntuOnePreferences" xml:space="preserve">147 <data name="UbuntuOnePreferences" xml:space="preserve">
145 <value>Ubuntu One Preferences</value>148 <value>Ubuntu One Preferences</value>
146 </data>149 </data>
147150
=== added file 'src/Canonical.UbuntuOne.Client.Views/Resources/Resources1.Designer.cs'
--- src/Canonical.UbuntuOne.Client.Views/Resources/Resources1.Designer.cs 1970-01-01 00:00:00 +0000
+++ src/Canonical.UbuntuOne.Client.Views/Resources/Resources1.Designer.cs 2010-08-30 09:37:56 +0000
@@ -0,0 +1,162 @@
1//------------------------------------------------------------------------------
2// <auto-generated>
3// This code was generated by a tool.
4// Runtime Version:2.0.50727.4952
5//
6// Changes to this file may cause incorrect behavior and will be lost if
7// the code is regenerated.
8// </auto-generated>
9//------------------------------------------------------------------------------
10
11namespace Canonical.UbuntuOne.Client.Views.Resources {
12 using System;
13
14
15 /// <summary>
16 /// A strongly-typed resource class, for looking up localized strings, etc.
17 /// </summary>
18 // This class was auto-generated by the StronglyTypedResourceBuilder
19 // class via a tool like ResGen or Visual Studio.
20 // To add or remove a member, edit your .ResX file then rerun ResGen
21 // with the /str option, or rebuild your VS project.
22 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
23 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 public class Resources {
26
27 private static global::System.Resources.ResourceManager resourceMan;
28
29 private static global::System.Globalization.CultureInfo resourceCulture;
30
31 [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 internal Resources() {
33 }
34
35 /// <summary>
36 /// Returns the cached ResourceManager instance used by this class.
37 /// </summary>
38 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 public static global::System.Resources.ResourceManager ResourceManager {
40 get {
41 if (object.ReferenceEquals(resourceMan, null)) {
42 global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Canonical.UbuntuOne.Client.Views.Resources.Resources", typeof(Resources).Assembly);
43 resourceMan = temp;
44 }
45 return resourceMan;
46 }
47 }
48
49 /// <summary>
50 /// Overrides the current thread's CurrentUICulture property for all
51 /// resource lookups using this strongly typed resource class.
52 /// </summary>
53 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 public static global::System.Globalization.CultureInfo Culture {
55 get {
56 return resourceCulture;
57 }
58 set {
59 resourceCulture = value;
60 }
61 }
62
63 /// <summary>
64 /// Looks up a localized string similar to Ubuntu One.
65 /// </summary>
66 public static string ApplicationName {
67 get {
68 return ResourceManager.GetString("ApplicationName", resourceCulture);
69 }
70 }
71
72 /// <summary>
73 /// Looks up a localized string similar to Downloading updates....
74 /// </summary>
75 public static string DownloadingDialogTitle {
76 get {
77 return ResourceManager.GetString("DownloadingDialogTitle", resourceCulture);
78 }
79 }
80
81 /// <summary>
82 /// Looks up a localized string similar to Exit.
83 /// </summary>
84 public static string Exit {
85 get {
86 return ResourceManager.GetString("Exit", resourceCulture);
87 }
88 }
89
90 /// <summary>
91 /// Looks up a localized string similar to Get Help and Support....
92 /// </summary>
93 public static string Help {
94 get {
95 return ResourceManager.GetString("Help", resourceCulture);
96 }
97 }
98
99 /// <summary>
100 /// Looks up a localized string similar to Get More Space.
101 /// </summary>
102 public static string MoreSpace {
103 get {
104 return ResourceManager.GetString("MoreSpace", resourceCulture);
105 }
106 }
107
108 /// <summary>
109 /// Looks up a localized string similar to Open Share Folders.
110 /// </summary>
111 public static string OpenShares {
112 get {
113 return ResourceManager.GetString("OpenShares", resourceCulture);
114 }
115 }
116
117 /// <summary>
118 /// Looks up a localized string similar to Open Sync Folders.
119 /// </summary>
120 public static string OpenSync {
121 get {
122 return ResourceManager.GetString("OpenSync", resourceCulture);
123 }
124 }
125
126 /// <summary>
127 /// Looks up a localized string similar to Recently Modify Files.
128 /// </summary>
129 public static string RecentlyModifyFiles {
130 get {
131 return ResourceManager.GetString("RecentlyModifyFiles", resourceCulture);
132 }
133 }
134
135 /// <summary>
136 /// Looks up a localized string similar to Synchronize Now.
137 /// </summary>
138 public static string UbuntuOneManualSync {
139 get {
140 return ResourceManager.GetString("UbuntuOneManualSync", resourceCulture);
141 }
142 }
143
144 /// <summary>
145 /// Looks up a localized string similar to Ubuntu One Preferences.
146 /// </summary>
147 public static string UbuntuOnePreferences {
148 get {
149 return ResourceManager.GetString("UbuntuOnePreferences", resourceCulture);
150 }
151 }
152
153 /// <summary>
154 /// Looks up a localized string similar to Updating Ubuntu One....
155 /// </summary>
156 public static string UpdatingDialogTitle {
157 get {
158 return ResourceManager.GetString("UpdatingDialogTitle", resourceCulture);
159 }
160 }
161 }
162}
0163
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs'
--- src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-08-05 08:01:59 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/INotificationIconPresenter.cs 2010-08-30 09:37:56 +0000
@@ -24,6 +24,11 @@
24 public interface INotificationIconPresenter24 public interface INotificationIconPresenter
25 {25 {
26 /// <summary>26 /// <summary>
27 /// When implemented this method should for the sync of the ubuntu one folder.
28 /// </summary>
29 void ManuelSync();
30
31 /// <summary>
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.
28 /// </summary>33 /// </summary>
29 void OpenUbuntuOnePreferences();34 void OpenUbuntuOnePreferences();
3035
=== modified file 'src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs'
--- src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-08-05 08:01:59 +0000
+++ src/Canonical.UbuntuOne.Client/Notification/NotificationIconPresenter.cs 2010-08-30 09:37:56 +0000
@@ -16,6 +16,7 @@
16// 16//
17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>17// Authors: Manuel de la Peña <manuel.delapena@canonical.com>
18using System;18using System;
19using System.Diagnostics;
19using Canonical.UbuntuOne.Client.Preferences;20using Canonical.UbuntuOne.Client.Preferences;
20using Canonical.UbuntuOne.Common.Aop;21using Canonical.UbuntuOne.Common.Aop;
21using Canonical.UbuntuOne.Common.Utils;22using Canonical.UbuntuOne.Common.Utils;
@@ -191,6 +192,15 @@
191 #region Implementation of INotificationIconPresenter192 #region Implementation of INotificationIconPresenter
192193
193 /// <summary>194 /// <summary>
195 /// When implemented this method should for the sync of the ubuntu one folder.
196 /// </summary>
197 public void ManuelSync()
198 {
199 throw new NotImplementedException();
200
201 }
202
203 /// <summary>
194 /// Opens the Preferences window of Ubuntu One.204 /// Opens the Preferences window of Ubuntu One.
195 /// </summary>205 /// </summary>
196 public void OpenUbuntuOnePreferences()206 public void OpenUbuntuOnePreferences()
197207
=== modified file 'src/setup.py'
--- src/setup.py 2010-08-30 09:37:56 +0000
+++ src/setup.py 2010-08-30 09:37:56 +0000
@@ -3,6 +3,7 @@
33
4""" """4""" """
5import sys5import sys
6from glob import glob
67
7# ModuleFinder can't handle runtime changes to __path__, but win32com uses them8# ModuleFinder can't handle runtime changes to __path__, but win32com uses them
8try:9try:
@@ -18,7 +19,7 @@
18 import win32com19 import win32com
19 for p in win32com.__path__[1:]:20 for p in win32com.__path__[1:]:
20 modulefinder.AddPackagePath("win32com", p)21 modulefinder.AddPackagePath("win32com", p)
21 for extra in ["win32com.shell"]: #,"win32com.mapi"22 for extra in ["win32com.shell" ,"win32com.api"]:
22 __import__(extra)23 __import__(extra)
23 m = sys.modules[extra]24 m = sys.modules[extra]
24 for p in m.__path__[1:]:25 for p in m.__path__[1:]:
@@ -26,7 +27,7 @@
26except ImportError:27except ImportError:
27 # no build path setup, no worries.28 # no build path setup, no worries.
28 pass29 pass
2930
30from distutils.core import setup31from distutils.core import setup
31import py2exe32import py2exe
3233
@@ -44,6 +45,7 @@
44 Ubuntu One is a suite of on-line45 Ubuntu One is a suite of on-line
45 services. This package contains the a synchronization client for the46 services. This package contains the a synchronization client for the
46 Ubuntu One file sharing service.""",47 Ubuntu One file sharing service.""",
48 data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))],
47 license='GPLv3',49 license='GPLv3',
48 console=['u1sync\\main.py'],50 console=['u1sync\\main.py'],
49 requires=[51 requires=[
5052
=== modified file 'src/u1sync/main.py'
--- src/u1sync/main.py 2010-08-30 09:37:56 +0000
+++ src/u1sync/main.py 2010-08-30 09:37:56 +0000
@@ -357,4 +357,4 @@
357if __name__ == "__main__":357if __name__ == "__main__":
358 # set the name of the process, this just works on windows358 # set the name of the process, this just works on windows
359 sys.argv[0] = "Ubuntuone"359 sys.argv[0] = "Ubuntuone"
360 main(sys.argv[1:])
361\ No newline at end of file360\ No newline at end of file
361 sys.exit(main(sys.argv[1:]))
362\ No newline at end of file362\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: