Merge lp:~psgenfan/do-plugins/TomboyInsertText into lp:do-plugins
- TomboyInsertText
- Merge into trunk
Proposed by
Marcus
Status: | Needs review |
---|---|
Proposed branch: | lp:~psgenfan/do-plugins/TomboyInsertText |
Merge into: | lp:do-plugins |
Diff against target: |
875 lines (+539/-83) 12 files modified
AptURL/AptURL.mdp (+7/-7) DiskMounter/DiskMounter.mdp (+12/-11) Flickr/gtk-gui/gui.stetic (+3/-3) Tomboy/Resources/Tomboy.addin.xml (+32/-0) Tomboy/Resources/Tomboy.addin.xml.in (+0/-30) Tomboy/Tomboy.mdp (+20/-18) Tomboy/gtk-gui/Tomboy.TomboyConfiguration.cs (+103/-8) Tomboy/gtk-gui/gui.stetic (+117/-3) Tomboy/src/AppendNoteAction.cs (+86/-0) Tomboy/src/GetContentsAction.cs (+65/-0) Tomboy/src/TomboyConfiguration.cs (+35/-2) Tomboy/src/TomboyDBus.cs (+59/-1) |
To merge this branch: | bzr merge lp:~psgenfan/do-plugins/TomboyInsertText |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Do Plugins Team | Pending | ||
Review via email: mp+22788@code.launchpad.net |
Commit message
Description of the change
I have yet to trace a crash to the changes made. I feel the date settings should be changed, possibly to just a text box, and a link which documents the formatting.
To post a comment you must log in.
Unmerged revisions
- 681. By Marcus <marcus@marcus-desktop>
-
first
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'AptURL/AptURL.mdp' | |||
2 | --- AptURL/AptURL.mdp 2009-06-23 00:52:54 +0000 | |||
3 | +++ AptURL/AptURL.mdp 2010-04-04 13:44:19 +0000 | |||
4 | @@ -1,23 +1,23 @@ | |||
6 | 1 | <Project name="AptURL" fileversion="2.0" language="C#" clr-version="Net_2_0" targetFramework="3.5" ctype="DotNetProject"> | 1 | <Project name="AptURL" fileversion="2.0" DefaultNamespace="AptURL" language="C#" clr-version="Net_2_0" targetFramework="3.5" ctype="DotNetProject"> |
7 | 2 | <Configurations active="Debug"> | 2 | <Configurations active="Debug"> |
8 | 3 | <Configuration name="Debug" ctype="DotNetProjectConfiguration"> | 3 | <Configuration name="Debug" ctype="DotNetProjectConfiguration"> |
9 | 4 | <Output directory="bin/Debug" assembly="AptURL" /> | 4 | <Output directory="bin/Debug" assembly="AptURL" /> |
10 | 5 | <Build debugmode="True" target="Library" /> | 5 | <Build debugmode="True" target="Library" /> |
12 | 6 | <Execution runwithwarnings="True" consolepause="False" runtime="MsNet" clr-version="Net_2_0" /> | 6 | <Execution consolepause="False" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" /> |
13 | 7 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> | 7 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> |
14 | 8 | </Configuration> | 8 | </Configuration> |
15 | 9 | <Configuration name="Release" ctype="DotNetProjectConfiguration"> | 9 | <Configuration name="Release" ctype="DotNetProjectConfiguration"> |
16 | 10 | <Output directory="bin/Release" assembly="AptURL" /> | 10 | <Output directory="bin/Release" assembly="AptURL" /> |
17 | 11 | <Build debugmode="False" target="Library" /> | 11 | <Build debugmode="False" target="Library" /> |
19 | 12 | <Execution runwithwarnings="True" consolepause="False" runtime="MsNet" clr-version="Net_2_0" /> | 12 | <Execution consolepause="False" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" /> |
20 | 13 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> | 13 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> |
21 | 14 | </Configuration> | 14 | </Configuration> |
22 | 15 | </Configurations> | 15 | </Configurations> |
23 | 16 | <Contents> | 16 | <Contents> |
28 | 17 | <File name="." subtype="Directory" buildaction="Compile" /> | 17 | <File subtype="Directory" buildaction="Compile" name="." /> |
29 | 18 | <File name="src" subtype="Directory" buildaction="Compile" /> | 18 | <File subtype="Directory" buildaction="Compile" name="src" /> |
30 | 19 | <File name="src/AptUrl.cs" subtype="Code" buildaction="Compile" /> | 19 | <File subtype="Code" buildaction="Compile" name="src/AptUrl.cs" /> |
31 | 20 | <File name="Resources/AptURL.addin.xml" subtype="Code" buildaction="EmbedAsResource" /> | 20 | <File subtype="Code" buildaction="EmbedAsResource" name="Resources/AptURL.addin.xml.in" /> |
32 | 21 | </Contents> | 21 | </Contents> |
33 | 22 | <References> | 22 | <References> |
34 | 23 | <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | 23 | <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
35 | 24 | 24 | ||
36 | === modified file 'DiskMounter/DiskMounter.mdp' | |||
37 | --- DiskMounter/DiskMounter.mdp 2009-06-29 08:47:41 +0000 | |||
38 | +++ DiskMounter/DiskMounter.mdp 2010-04-04 13:44:19 +0000 | |||
39 | @@ -1,30 +1,31 @@ | |||
41 | 1 | <Project name="DiskMounter" fileversion="2.0" language="C#" DefaultNamespace="DiskMounter" clr-version="Net_2_0" targetFramework="3.5" ctype="DotNetProject"> | 1 | <Project name="DiskMounter" fileversion="2.0" DefaultNamespace="DiskMounter" language="C#" clr-version="Net_2_0" targetFramework="3.5" ctype="DotNetProject"> |
42 | 2 | <Configurations active="Debug"> | 2 | <Configurations active="Debug"> |
43 | 3 | <Configuration name="Debug" ctype="DotNetProjectConfiguration"> | 3 | <Configuration name="Debug" ctype="DotNetProjectConfiguration"> |
44 | 4 | <Output directory="bin/Debug" assembly="DiskMounter" /> | 4 | <Output directory="bin/Debug" assembly="DiskMounter" /> |
45 | 5 | <Build debugmode="True" target="Library" /> | 5 | <Build debugmode="True" target="Library" /> |
47 | 6 | <Execution runwithwarnings="True" consolepause="False" runtime="MsNet" clr-version="Net_2_0" /> | 6 | <Execution consolepause="False" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" /> |
48 | 7 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> | 7 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> |
49 | 8 | </Configuration> | 8 | </Configuration> |
50 | 9 | <Configuration name="Release" ctype="DotNetProjectConfiguration"> | 9 | <Configuration name="Release" ctype="DotNetProjectConfiguration"> |
51 | 10 | <Output directory="bin/Release" assembly="DiskMounter" /> | 10 | <Output directory="bin/Release" assembly="DiskMounter" /> |
52 | 11 | <Build debugmode="False" target="Library" /> | 11 | <Build debugmode="False" target="Library" /> |
54 | 12 | <Execution runwithwarnings="True" consolepause="False" runtime="MsNet" clr-version="Net_2_0" /> | 12 | <Execution consolepause="False" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" /> |
55 | 13 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> | 13 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> |
56 | 14 | </Configuration> | 14 | </Configuration> |
57 | 15 | </Configurations> | 15 | </Configurations> |
58 | 16 | <Contents> | 16 | <Contents> |
66 | 17 | <File name="src" subtype="Directory" buildaction="Compile" /> | 17 | <File subtype="Directory" buildaction="Compile" name="src" /> |
67 | 18 | <File name="src/DriveItem.cs" subtype="Code" buildaction="Compile" /> | 18 | <File subtype="Code" buildaction="Compile" name="src/DriveItem.cs" /> |
68 | 19 | <File name="src/DriveItemSource.cs" subtype="Code" buildaction="Compile" /> | 19 | <File subtype="Code" buildaction="Compile" name="src/DriveItemSource.cs" /> |
69 | 20 | <File name="src/MountAction.cs" subtype="Code" buildaction="Compile" /> | 20 | <File subtype="Code" buildaction="Compile" name="src/MountAction.cs" /> |
70 | 21 | <File name="src/OpenVolumeAction.cs" subtype="Code" buildaction="Compile" /> | 21 | <File subtype="Code" buildaction="Compile" name="src/OpenVolumeAction.cs" /> |
71 | 22 | <File name="src/UnmountAction.cs" subtype="Code" buildaction="Compile" /> | 22 | <File subtype="Code" buildaction="Compile" name="src/UnmountAction.cs" /> |
72 | 23 | <File name="Resources/DiskMounter.addin.xml" subtype="Code" buildaction="EmbedAsResource" /> | 23 | <File subtype="Directory" buildaction="Compile" name="Resources" /> |
73 | 24 | <File subtype="Code" buildaction="EmbedAsResource" name="Resources/DiskMounter.addin.xml.in" /> | ||
74 | 24 | </Contents> | 25 | </Contents> |
75 | 25 | <References> | 26 | <References> |
76 | 26 | <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | 27 | <ProjectReference type="Gac" localcopy="True" refto="System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
78 | 27 | <ProjectReference type="Gac" localcopy="True" refto="gnome-vfs-sharp, Version=2.24.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> | 28 | <ProjectReference type="Gac" localcopy="True" specificVersion="False" refto="gnome-vfs-sharp, Version=2.24.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f" /> |
79 | 28 | <ProjectReference type="Gac" localcopy="True" refto="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | 29 | <ProjectReference type="Gac" localcopy="True" refto="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> |
80 | 29 | <ProjectReference type="Gac" localcopy="True" refto="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" /> | 30 | <ProjectReference type="Gac" localcopy="True" refto="Mono.Addins, Version=0.4.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756" /> |
81 | 30 | <ProjectReference type="Gac" localcopy="True" refto="Do.Platform, Version=0.9.0.0, Culture=neutral" /> | 31 | <ProjectReference type="Gac" localcopy="True" refto="Do.Platform, Version=0.9.0.0, Culture=neutral" /> |
82 | 31 | 32 | ||
83 | === modified file 'Flickr/gtk-gui/gui.stetic' | |||
84 | --- Flickr/gtk-gui/gui.stetic 2009-06-23 00:52:54 +0000 | |||
85 | +++ Flickr/gtk-gui/gui.stetic 2010-04-04 13:44:19 +0000 | |||
86 | @@ -2,9 +2,10 @@ | |||
87 | 2 | <stetic-interface> | 2 | <stetic-interface> |
88 | 3 | <configuration> | 3 | <configuration> |
89 | 4 | <images-root-path>..</images-root-path> | 4 | <images-root-path>..</images-root-path> |
91 | 5 | <target-gtk-version>2.12.8</target-gtk-version> | 5 | <target-gtk-version>2.12</target-gtk-version> |
92 | 6 | </configuration> | 6 | </configuration> |
93 | 7 | <import> | 7 | <import> |
94 | 8 | <widget-library name="Do.Platform.Linux, Version=0.9.0.0, Culture=neutral" /> | ||
95 | 8 | <widget-library name="../bin/Debug/Flickr.dll" internal="true" /> | 9 | <widget-library name="../bin/Debug/Flickr.dll" internal="true" /> |
96 | 9 | </import> | 10 | </import> |
97 | 10 | <widget class="Gtk.Bin" id="Flickr.AccountConfig" design-size="401 347"> | 11 | <widget class="Gtk.Bin" id="Flickr.AccountConfig" design-size="401 347"> |
98 | @@ -127,7 +128,7 @@ | |||
99 | 127 | </widget> | 128 | </widget> |
100 | 128 | </child> | 129 | </child> |
101 | 129 | </widget> | 130 | </widget> |
103 | 130 | <widget class="Gtk.Bin" id="Flickr.UploadConfig" design-size="346 354"> | 131 | <widget class="Gtk.Bin" id="Flickr.UploadConfig" design-size="351 354"> |
104 | 131 | <property name="MemberName" /> | 132 | <property name="MemberName" /> |
105 | 132 | <child> | 133 | <child> |
106 | 133 | <widget class="Gtk.VBox" id="vbox3"> | 134 | <widget class="Gtk.VBox" id="vbox3"> |
107 | @@ -157,7 +158,6 @@ | |||
108 | 157 | <property name="MemberName" /> | 158 | <property name="MemberName" /> |
109 | 158 | <property name="CanFocus">True</property> | 159 | <property name="CanFocus">True</property> |
110 | 159 | <property name="Label" translatable="yes">Private</property> | 160 | <property name="Label" translatable="yes">Private</property> |
111 | 160 | <property name="Active">True</property> | ||
112 | 161 | <property name="DrawIndicator">True</property> | 161 | <property name="DrawIndicator">True</property> |
113 | 162 | <property name="HasLabel">True</property> | 162 | <property name="HasLabel">True</property> |
114 | 163 | <property name="UseUnderline">True</property> | 163 | <property name="UseUnderline">True</property> |
115 | 164 | 164 | ||
116 | === added file 'Tomboy/Resources/Tomboy.addin.xml' | |||
117 | --- Tomboy/Resources/Tomboy.addin.xml 1970-01-01 00:00:00 +0000 | |||
118 | +++ Tomboy/Resources/Tomboy.addin.xml 2010-04-04 13:44:19 +0000 | |||
119 | @@ -0,0 +1,32 @@ | |||
120 | 1 | <Addin | ||
121 | 2 | id="Tomboy" | ||
122 | 3 | namespace="Do" | ||
123 | 4 | version="1.4" | ||
124 | 5 | name="Tomboy" | ||
125 | 6 | description="Search and create new Tomboy notes." | ||
126 | 7 | author="Rick Harding, Chris Szikszoy" | ||
127 | 8 | category="Official" | ||
128 | 9 | defaultEnabled="false" | ||
129 | 10 | url="http://do.davebsd.com/wiki/Tomboy_Plugin" | ||
130 | 11 | > | ||
131 | 12 | |||
132 | 13 | <Runtime> | ||
133 | 14 | <Import assembly="Tomboy.dll"/> | ||
134 | 15 | </Runtime> | ||
135 | 16 | |||
136 | 17 | <Localizer type="Gettext" catalog="gnome-do-plugins" location="@expanded_datadir@/locale" /> | ||
137 | 18 | |||
138 | 19 | <Dependencies> | ||
139 | 20 | <Addin id="Universe" version="1.0" /> | ||
140 | 21 | </Dependencies> | ||
141 | 22 | |||
142 | 23 | <Extension path="/Do/ItemSource"> | ||
143 | 24 | <ItemSource type="Tomboy.NotesItemSource" /> | ||
144 | 25 | </Extension> | ||
145 | 26 | <Extension path="/Do/Action"> | ||
146 | 27 | <Action type="Tomboy.NewNoteAction" /> | ||
147 | 28 | <Action type="Tomboy.SearchNotesAction" /> | ||
148 | 29 | <Action type="Tomboy.AppendNoteAction" /> | ||
149 | 30 | <Action type="Tomboy.GetNoteTextAction" /> | ||
150 | 31 | </Extension> | ||
151 | 32 | </Addin> | ||
152 | 0 | 33 | ||
153 | === removed file 'Tomboy/Resources/Tomboy.addin.xml.in' | |||
154 | --- Tomboy/Resources/Tomboy.addin.xml.in 2009-06-26 15:25:17 +0000 | |||
155 | +++ Tomboy/Resources/Tomboy.addin.xml.in 1970-01-01 00:00:00 +0000 | |||
156 | @@ -1,30 +0,0 @@ | |||
157 | 1 | <Addin | ||
158 | 2 | id="Tomboy" | ||
159 | 3 | namespace="Do" | ||
160 | 4 | version="1.4" | ||
161 | 5 | name="Tomboy" | ||
162 | 6 | description="Search and create new Tomboy notes." | ||
163 | 7 | author="Rick Harding, Chris Szikszoy" | ||
164 | 8 | category="Official" | ||
165 | 9 | defaultEnabled="false" | ||
166 | 10 | url="http://do.davebsd.com/wiki/Tomboy_Plugin" | ||
167 | 11 | > | ||
168 | 12 | |||
169 | 13 | <Runtime> | ||
170 | 14 | <Import assembly="Tomboy.dll"/> | ||
171 | 15 | </Runtime> | ||
172 | 16 | |||
173 | 17 | <Localizer type="Gettext" catalog="gnome-do-plugins" location="@expanded_datadir@/locale" /> | ||
174 | 18 | |||
175 | 19 | <Dependencies> | ||
176 | 20 | <Addin id="Universe" version="1.0" /> | ||
177 | 21 | </Dependencies> | ||
178 | 22 | |||
179 | 23 | <Extension path="/Do/ItemSource"> | ||
180 | 24 | <ItemSource type="Tomboy.NotesItemSource" /> | ||
181 | 25 | </Extension> | ||
182 | 26 | <Extension path="/Do/Action"> | ||
183 | 27 | <Action type="Tomboy.NewNoteAction" /> | ||
184 | 28 | <Action type="Tomboy.SearchNotesAction" /> | ||
185 | 29 | </Extension> | ||
186 | 30 | </Addin> | ||
187 | 31 | 0 | ||
188 | === modified file 'Tomboy/Tomboy.mdp' | |||
189 | --- Tomboy/Tomboy.mdp 2009-06-23 00:52:54 +0000 | |||
190 | +++ Tomboy/Tomboy.mdp 2010-04-04 13:44:19 +0000 | |||
191 | @@ -1,32 +1,34 @@ | |||
193 | 1 | <Project name="Tomboy" fileversion="2.0" language="C#" clr-version="Net_2_0" targetFramework="3.5" ctype="DotNetProject"> | 1 | <Project name="Tomboy" fileversion="2.0" DefaultNamespace="Tomboy" language="C#" clr-version="Net_2_0" targetFramework="3.5" ctype="DotNetProject"> |
194 | 2 | <Configurations active="Debug"> | 2 | <Configurations active="Debug"> |
195 | 3 | <Configuration name="Debug" ctype="DotNetProjectConfiguration"> | 3 | <Configuration name="Debug" ctype="DotNetProjectConfiguration"> |
196 | 4 | <Output directory="bin/Debug" assembly="Tomboy" /> | 4 | <Output directory="bin/Debug" assembly="Tomboy" /> |
197 | 5 | <Build debugmode="True" target="Library" /> | 5 | <Build debugmode="True" target="Library" /> |
200 | 6 | <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" /> | 6 | <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" /> |
201 | 7 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> | 7 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="True" generateoverflowchecks="True" definesymbols="DEBUG" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> |
202 | 8 | </Configuration> | 8 | </Configuration> |
203 | 9 | <Configuration name="Release" ctype="DotNetProjectConfiguration"> | 9 | <Configuration name="Release" ctype="DotNetProjectConfiguration"> |
204 | 10 | <Output directory="bin/Release" assembly="Tomboy" /> | 10 | <Output directory="bin/Release" assembly="Tomboy" /> |
205 | 11 | <Build debugmode="False" target="Library" /> | 11 | <Build debugmode="False" target="Library" /> |
208 | 12 | <Execution runwithwarnings="True" consolepause="True" runtime="MsNet" clr-version="Net_2_0" /> | 12 | <Execution consolepause="True" runwithwarnings="True" runtime="MsNet" clr-version="Net_2_0" /> |
209 | 13 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> | 13 | <CodeGeneration compiler="Mcs" warninglevel="4" optimize="True" unsafecodeallowed="True" generateoverflowchecks="True" generatexmldocumentation="False" ctype="CSharpCompilerParameters" /> |
210 | 14 | </Configuration> | 14 | </Configuration> |
211 | 15 | </Configurations> | 15 | </Configurations> |
212 | 16 | <Contents> | 16 | <Contents> |
226 | 17 | <File name="src" subtype="Directory" buildaction="Compile" /> | 17 | <File subtype="Directory" buildaction="Compile" name="src" /> |
227 | 18 | <File name="src/TomboyDBus.cs" subtype="Code" buildaction="Compile" /> | 18 | <File subtype="Code" buildaction="Compile" name="src/TomboyDBus.cs" /> |
228 | 19 | <File name="src/TomboyItem.cs" subtype="Code" buildaction="Compile" /> | 19 | <File subtype="Code" buildaction="Compile" name="src/TomboyItem.cs" /> |
229 | 20 | <File name="src/NewNoteAction.cs" subtype="Code" buildaction="Compile" /> | 20 | <File subtype="Code" buildaction="Compile" name="src/NewNoteAction.cs" /> |
230 | 21 | <File name="src/NotesItemSource.cs" subtype="Code" buildaction="Compile" /> | 21 | <File subtype="Code" buildaction="Compile" name="src/NotesItemSource.cs" /> |
231 | 22 | <File name="src/SearchNotesAction.cs" subtype="Code" buildaction="Compile" /> | 22 | <File subtype="Code" buildaction="Compile" name="src/SearchNotesAction.cs" /> |
232 | 23 | <File name="gtk-gui/gui.stetic" subtype="Code" buildaction="EmbedAsResource" /> | 23 | <File subtype="Code" buildaction="EmbedAsResource" name="gtk-gui/gui.stetic" /> |
233 | 24 | <File name="gtk-gui/generated.cs" subtype="Code" buildaction="Compile" /> | 24 | <File subtype="Code" buildaction="Compile" name="gtk-gui/generated.cs" /> |
234 | 25 | <File name="src/TomboyConfiguration.cs" subtype="Code" buildaction="Compile" /> | 25 | <File subtype="Code" buildaction="Compile" name="src/TomboyConfiguration.cs" /> |
235 | 26 | <File name="gtk-gui/Tomboy.TomboyConfiguration.cs" subtype="Code" buildaction="Compile" /> | 26 | <File subtype="Code" buildaction="Compile" name="gtk-gui/Tomboy.TomboyConfiguration.cs" /> |
236 | 27 | <File name="gtk-gui/objects.xml" subtype="Code" buildaction="EmbedAsResource" /> | 27 | <File subtype="Code" buildaction="EmbedAsResource" name="gtk-gui/objects.xml" /> |
237 | 28 | <File name="Resources/Tomboy.addin.xml" subtype="Code" buildaction="EmbedAsResource" /> | 28 | <File subtype="Code" buildaction="Compile" name="src/TomboyBrowseNotesItem.cs" /> |
238 | 29 | <File name="src/TomboyBrowseNotesItem.cs" subtype="Code" buildaction="Compile" /> | 29 | <File subtype="Code" buildaction="Compile" name="src/AppendNoteAction.cs" /> |
239 | 30 | <File subtype="Code" buildaction="EmbedAsResource" name="Resources/Tomboy.addin.xml" /> | ||
240 | 31 | <File subtype="Code" buildaction="Compile" name="src/GetContentsAction.cs" /> | ||
241 | 30 | </Contents> | 32 | </Contents> |
242 | 31 | <References> | 33 | <References> |
243 | 32 | <ProjectReference type="Gac" localcopy="True" refto="NDesk.DBus, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f6716e4f9b2ed099" /> | 34 | <ProjectReference type="Gac" localcopy="True" refto="NDesk.DBus, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f6716e4f9b2ed099" /> |
244 | 33 | 35 | ||
245 | === modified file 'Tomboy/gtk-gui/Tomboy.TomboyConfiguration.cs' | |||
246 | --- Tomboy/gtk-gui/Tomboy.TomboyConfiguration.cs 2009-06-23 00:52:54 +0000 | |||
247 | +++ Tomboy/gtk-gui/Tomboy.TomboyConfiguration.cs 2010-04-04 13:44:19 +0000 | |||
248 | @@ -35,7 +35,23 @@ | |||
249 | 35 | 35 | ||
250 | 36 | private Gtk.RadioButton titleFirstRadioButton; | 36 | private Gtk.RadioButton titleFirstRadioButton; |
251 | 37 | 37 | ||
253 | 38 | private Gtk.Label GtkLabel2; | 38 | private Gtk.Label GtkLabel4; |
254 | 39 | |||
255 | 40 | private Gtk.Frame frame3; | ||
256 | 41 | |||
257 | 42 | private Gtk.Alignment GtkAlignment2; | ||
258 | 43 | |||
259 | 44 | private Gtk.VBox vbox4; | ||
260 | 45 | |||
261 | 46 | private Gtk.CheckButton insertionIncludeTime; | ||
262 | 47 | |||
263 | 48 | private Gtk.ComboBox InsertionDateFormat; | ||
264 | 49 | |||
265 | 50 | private Gtk.RadioButton insertionPrepend; | ||
266 | 51 | |||
267 | 52 | private Gtk.RadioButton insertionAppend; | ||
268 | 53 | |||
269 | 54 | private Gtk.Label GtkLabel9; | ||
270 | 39 | 55 | ||
271 | 40 | protected virtual void Build() { | 56 | protected virtual void Build() { |
272 | 41 | Stetic.Gui.Initialize(this); | 57 | Stetic.Gui.Initialize(this); |
273 | @@ -44,7 +60,6 @@ | |||
274 | 44 | this.Name = "Tomboy.TomboyConfiguration"; | 60 | this.Name = "Tomboy.TomboyConfiguration"; |
275 | 45 | // Container child Tomboy.TomboyConfiguration.Gtk.Container+ContainerChild | 61 | // Container child Tomboy.TomboyConfiguration.Gtk.Container+ContainerChild |
276 | 46 | this.vbox1 = new Gtk.VBox(); | 62 | this.vbox1 = new Gtk.VBox(); |
277 | 47 | this.vbox1.Name = "vbox1"; | ||
278 | 48 | this.vbox1.Spacing = 6; | 63 | this.vbox1.Spacing = 6; |
279 | 49 | // Container child vbox1.Gtk.Box+BoxChild | 64 | // Container child vbox1.Gtk.Box+BoxChild |
280 | 50 | this.frame1 = new Gtk.Frame(); | 65 | this.frame1 = new Gtk.Frame(); |
281 | @@ -101,7 +116,6 @@ | |||
282 | 101 | this.contentFirstRadioButton = new Gtk.RadioButton(Mono.Addins.AddinManager.CurrentLocalizer.GetString("First pane is content, second pane is title.")); | 116 | this.contentFirstRadioButton = new Gtk.RadioButton(Mono.Addins.AddinManager.CurrentLocalizer.GetString("First pane is content, second pane is title.")); |
283 | 102 | this.contentFirstRadioButton.CanFocus = true; | 117 | this.contentFirstRadioButton.CanFocus = true; |
284 | 103 | this.contentFirstRadioButton.Name = "contentFirstRadioButton"; | 118 | this.contentFirstRadioButton.Name = "contentFirstRadioButton"; |
285 | 104 | this.contentFirstRadioButton.Active = true; | ||
286 | 105 | this.contentFirstRadioButton.DrawIndicator = true; | 119 | this.contentFirstRadioButton.DrawIndicator = true; |
287 | 106 | this.contentFirstRadioButton.UseUnderline = true; | 120 | this.contentFirstRadioButton.UseUnderline = true; |
288 | 107 | this.contentFirstRadioButton.Group = new GLib.SList(System.IntPtr.Zero); | 121 | this.contentFirstRadioButton.Group = new GLib.SList(System.IntPtr.Zero); |
289 | @@ -124,16 +138,97 @@ | |||
290 | 124 | w6.Fill = false; | 138 | w6.Fill = false; |
291 | 125 | this.GtkAlignment1.Add(this.vbox3); | 139 | this.GtkAlignment1.Add(this.vbox3); |
292 | 126 | this.frame2.Add(this.GtkAlignment1); | 140 | this.frame2.Add(this.GtkAlignment1); |
298 | 127 | this.GtkLabel2 = new Gtk.Label(); | 141 | this.GtkLabel4 = new Gtk.Label(); |
299 | 128 | this.GtkLabel2.Name = "GtkLabel2"; | 142 | this.GtkLabel4.Name = "GtkLabel4"; |
300 | 129 | this.GtkLabel2.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("<b>New Note Title and Content Entry</b>"); | 143 | this.GtkLabel4.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("<b>New Note Title and Content Entry</b>"); |
301 | 130 | this.GtkLabel2.UseMarkup = true; | 144 | this.GtkLabel4.UseMarkup = true; |
302 | 131 | this.frame2.LabelWidget = this.GtkLabel2; | 145 | this.frame2.LabelWidget = this.GtkLabel4; |
303 | 132 | this.vbox1.Add(this.frame2); | 146 | this.vbox1.Add(this.frame2); |
304 | 133 | Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2])); | 147 | Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame2])); |
305 | 134 | w9.Position = 1; | 148 | w9.Position = 1; |
306 | 135 | w9.Expand = false; | 149 | w9.Expand = false; |
307 | 136 | w9.Fill = false; | 150 | w9.Fill = false; |
308 | 151 | // Container child vbox1.Gtk.Box+BoxChild | ||
309 | 152 | this.frame3 = new Gtk.Frame(); | ||
310 | 153 | this.frame3.Name = "frame3"; | ||
311 | 154 | this.frame3.ShadowType = ((Gtk.ShadowType)(0)); | ||
312 | 155 | this.frame3.BorderWidth = ((uint)(1)); | ||
313 | 156 | // Container child frame3.Gtk.Container+ContainerChild | ||
314 | 157 | this.GtkAlignment2 = new Gtk.Alignment(0F, 0F, 1F, 1F); | ||
315 | 158 | this.GtkAlignment2.Name = "GtkAlignment2"; | ||
316 | 159 | this.GtkAlignment2.LeftPadding = ((uint)(12)); | ||
317 | 160 | // Container child GtkAlignment2.Gtk.Container+ContainerChild | ||
318 | 161 | this.vbox4 = new Gtk.VBox(); | ||
319 | 162 | this.vbox4.Name = "vbox4"; | ||
320 | 163 | this.vbox4.Spacing = 6; | ||
321 | 164 | // Container child vbox4.Gtk.Box+BoxChild | ||
322 | 165 | this.insertionIncludeTime = new Gtk.CheckButton(); | ||
323 | 166 | this.insertionIncludeTime.CanFocus = true; | ||
324 | 167 | this.insertionIncludeTime.Name = "insertionIncludeTime"; | ||
325 | 168 | this.insertionIncludeTime.Label = Mono.Addins.AddinManager.CurrentLocalizer.GetString("Include Date and Time"); | ||
326 | 169 | this.insertionIncludeTime.DrawIndicator = true; | ||
327 | 170 | this.insertionIncludeTime.UseUnderline = true; | ||
328 | 171 | this.vbox4.Add(this.insertionIncludeTime); | ||
329 | 172 | Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(this.vbox4[this.insertionIncludeTime])); | ||
330 | 173 | w10.Position = 0; | ||
331 | 174 | w10.Expand = false; | ||
332 | 175 | w10.Fill = false; | ||
333 | 176 | // Container child vbox4.Gtk.Box+BoxChild | ||
334 | 177 | this.InsertionDateFormat = Gtk.ComboBox.NewText(); | ||
335 | 178 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Year/Month/Day 24Hours:Minutes")); | ||
336 | 179 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Year/Month/Day Hours:Minutes am/pm")); | ||
337 | 180 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Year/Month/Day")); | ||
338 | 181 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Month/Day/Year 24Hours:Minutes")); | ||
339 | 182 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Month/Day/Year Hours:Minutes am/pm")); | ||
340 | 183 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Month/Day/Year")); | ||
341 | 184 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Month/Day 24Hours:Minutes")); | ||
342 | 185 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Month/Day Hours:Minutes am/pm\"")); | ||
343 | 186 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Month/Day")); | ||
344 | 187 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("24Hours:Minutes")); | ||
345 | 188 | this.InsertionDateFormat.AppendText(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Hours:Minutes am/pm")); | ||
346 | 189 | this.InsertionDateFormat.Name = "InsertionDateFormat"; | ||
347 | 190 | this.InsertionDateFormat.Active = 0; | ||
348 | 191 | this.vbox4.Add(this.InsertionDateFormat); | ||
349 | 192 | Gtk.Box.BoxChild w11 = ((Gtk.Box.BoxChild)(this.vbox4[this.InsertionDateFormat])); | ||
350 | 193 | w11.Position = 1; | ||
351 | 194 | w11.Expand = false; | ||
352 | 195 | w11.Fill = false; | ||
353 | 196 | // Container child vbox4.Gtk.Box+BoxChild | ||
354 | 197 | this.insertionPrepend = new Gtk.RadioButton(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Prepend to Top of Note")); | ||
355 | 198 | this.insertionPrepend.CanFocus = true; | ||
356 | 199 | this.insertionPrepend.Name = "insertionPrepend"; | ||
357 | 200 | this.insertionPrepend.DrawIndicator = true; | ||
358 | 201 | this.insertionPrepend.UseUnderline = true; | ||
359 | 202 | this.insertionPrepend.Group = new GLib.SList(System.IntPtr.Zero); | ||
360 | 203 | this.vbox4.Add(this.insertionPrepend); | ||
361 | 204 | Gtk.Box.BoxChild w12 = ((Gtk.Box.BoxChild)(this.vbox4[this.insertionPrepend])); | ||
362 | 205 | w12.Position = 2; | ||
363 | 206 | w12.Expand = false; | ||
364 | 207 | w12.Fill = false; | ||
365 | 208 | // Container child vbox4.Gtk.Box+BoxChild | ||
366 | 209 | this.insertionAppend = new Gtk.RadioButton(Mono.Addins.AddinManager.CurrentLocalizer.GetString("Append to Bottom of Note")); | ||
367 | 210 | this.insertionAppend.CanFocus = true; | ||
368 | 211 | this.insertionAppend.Name = "insertionAppend"; | ||
369 | 212 | this.insertionAppend.DrawIndicator = true; | ||
370 | 213 | this.insertionAppend.UseUnderline = true; | ||
371 | 214 | this.insertionAppend.Group = this.insertionPrepend.Group; | ||
372 | 215 | this.vbox4.Add(this.insertionAppend); | ||
373 | 216 | Gtk.Box.BoxChild w13 = ((Gtk.Box.BoxChild)(this.vbox4[this.insertionAppend])); | ||
374 | 217 | w13.Position = 3; | ||
375 | 218 | w13.Expand = false; | ||
376 | 219 | w13.Fill = false; | ||
377 | 220 | this.GtkAlignment2.Add(this.vbox4); | ||
378 | 221 | this.frame3.Add(this.GtkAlignment2); | ||
379 | 222 | this.GtkLabel9 = new Gtk.Label(); | ||
380 | 223 | this.GtkLabel9.Name = "GtkLabel9"; | ||
381 | 224 | this.GtkLabel9.LabelProp = Mono.Addins.AddinManager.CurrentLocalizer.GetString("<b>Note Insertion</b>"); | ||
382 | 225 | this.GtkLabel9.UseMarkup = true; | ||
383 | 226 | this.frame3.LabelWidget = this.GtkLabel9; | ||
384 | 227 | this.vbox1.Add(this.frame3); | ||
385 | 228 | Gtk.Box.BoxChild w16 = ((Gtk.Box.BoxChild)(this.vbox1[this.frame3])); | ||
386 | 229 | w16.Position = 2; | ||
387 | 230 | w16.Expand = false; | ||
388 | 231 | w16.Fill = false; | ||
389 | 137 | this.Add(this.vbox1); | 232 | this.Add(this.vbox1); |
390 | 138 | if ((this.Child != null)) { | 233 | if ((this.Child != null)) { |
391 | 139 | this.Child.ShowAll(); | 234 | this.Child.ShowAll(); |
392 | 140 | 235 | ||
393 | === modified file 'Tomboy/gtk-gui/gui.stetic' | |||
394 | --- Tomboy/gtk-gui/gui.stetic 2009-06-23 00:52:54 +0000 | |||
395 | +++ Tomboy/gtk-gui/gui.stetic 2010-04-04 13:44:19 +0000 | |||
396 | @@ -2,12 +2,13 @@ | |||
397 | 2 | <stetic-interface> | 2 | <stetic-interface> |
398 | 3 | <configuration> | 3 | <configuration> |
399 | 4 | <images-root-path>..</images-root-path> | 4 | <images-root-path>..</images-root-path> |
401 | 5 | <target-gtk-version>2.12.8</target-gtk-version> | 5 | <target-gtk-version>2.12</target-gtk-version> |
402 | 6 | </configuration> | 6 | </configuration> |
403 | 7 | <import> | 7 | <import> |
404 | 8 | <widget-library name="Do.Platform.Linux, Version=0.9.0.0, Culture=neutral" /> | ||
405 | 8 | <widget-library name="../bin/Debug/Tomboy.dll" internal="true" /> | 9 | <widget-library name="../bin/Debug/Tomboy.dll" internal="true" /> |
406 | 9 | </import> | 10 | </import> |
408 | 10 | <widget class="Gtk.Bin" id="Tomboy.TomboyConfiguration" design-size="413 300"> | 11 | <widget class="Gtk.Bin" id="Tomboy.TomboyConfiguration" design-size="413 304"> |
409 | 11 | <property name="MemberName" /> | 12 | <property name="MemberName" /> |
410 | 12 | <property name="Visible">False</property> | 13 | <property name="Visible">False</property> |
411 | 13 | <child> | 14 | <child> |
412 | @@ -88,6 +89,7 @@ | |||
413 | 88 | <property name="MemberName" /> | 89 | <property name="MemberName" /> |
414 | 89 | <property name="CanFocus">True</property> | 90 | <property name="CanFocus">True</property> |
415 | 90 | <property name="Label" translatable="yes">First pane is content, second pane is title.</property> | 91 | <property name="Label" translatable="yes">First pane is content, second pane is title.</property> |
416 | 92 | <property name="Active">True</property> | ||
417 | 91 | <property name="DrawIndicator">True</property> | 93 | <property name="DrawIndicator">True</property> |
418 | 92 | <property name="HasLabel">True</property> | 94 | <property name="HasLabel">True</property> |
419 | 93 | <property name="UseUnderline">True</property> | 95 | <property name="UseUnderline">True</property> |
420 | @@ -122,7 +124,7 @@ | |||
421 | 122 | </widget> | 124 | </widget> |
422 | 123 | </child> | 125 | </child> |
423 | 124 | <child> | 126 | <child> |
425 | 125 | <widget class="Gtk.Label" id="GtkLabel2"> | 127 | <widget class="Gtk.Label" id="GtkLabel4"> |
426 | 126 | <property name="MemberName" /> | 128 | <property name="MemberName" /> |
427 | 127 | <property name="LabelProp" translatable="yes"><b>New Note Title and Content Entry</b></property> | 129 | <property name="LabelProp" translatable="yes"><b>New Note Title and Content Entry</b></property> |
428 | 128 | <property name="UseMarkup">True</property> | 130 | <property name="UseMarkup">True</property> |
429 | @@ -139,6 +141,118 @@ | |||
430 | 139 | <property name="Fill">False</property> | 141 | <property name="Fill">False</property> |
431 | 140 | </packing> | 142 | </packing> |
432 | 141 | </child> | 143 | </child> |
433 | 144 | <child> | ||
434 | 145 | <widget class="Gtk.Frame" id="frame3"> | ||
435 | 146 | <property name="MemberName" /> | ||
436 | 147 | <property name="ShadowType">None</property> | ||
437 | 148 | <property name="BorderWidth">1</property> | ||
438 | 149 | <child> | ||
439 | 150 | <widget class="Gtk.Alignment" id="GtkAlignment2"> | ||
440 | 151 | <property name="MemberName" /> | ||
441 | 152 | <property name="Xalign">0</property> | ||
442 | 153 | <property name="Yalign">0</property> | ||
443 | 154 | <property name="LeftPadding">12</property> | ||
444 | 155 | <child> | ||
445 | 156 | <widget class="Gtk.VBox" id="vbox4"> | ||
446 | 157 | <property name="MemberName">append</property> | ||
447 | 158 | <property name="Spacing">6</property> | ||
448 | 159 | <child> | ||
449 | 160 | <widget class="Gtk.CheckButton" id="insertionIncludeTime"> | ||
450 | 161 | <property name="MemberName" /> | ||
451 | 162 | <property name="CanFocus">True</property> | ||
452 | 163 | <property name="Label" translatable="yes">Include Date and Time</property> | ||
453 | 164 | <property name="DrawIndicator">True</property> | ||
454 | 165 | <property name="HasLabel">True</property> | ||
455 | 166 | <property name="UseUnderline">True</property> | ||
456 | 167 | </widget> | ||
457 | 168 | <packing> | ||
458 | 169 | <property name="Position">0</property> | ||
459 | 170 | <property name="AutoSize">True</property> | ||
460 | 171 | <property name="Expand">False</property> | ||
461 | 172 | <property name="Fill">False</property> | ||
462 | 173 | </packing> | ||
463 | 174 | </child> | ||
464 | 175 | <child> | ||
465 | 176 | <widget class="Gtk.ComboBox" id="InsertionDateFormat"> | ||
466 | 177 | <property name="MemberName" /> | ||
467 | 178 | <property name="IsTextCombo">True</property> | ||
468 | 179 | <property name="Items" translatable="yes">Year/Month/Day 24Hours:Minutes | ||
469 | 180 | Year/Month/Day Hours:Minutes am/pm | ||
470 | 181 | Year/Month/Day | ||
471 | 182 | Month/Day/Year 24Hours:Minutes | ||
472 | 183 | Month/Day/Year Hours:Minutes am/pm | ||
473 | 184 | Month/Day/Year | ||
474 | 185 | Month/Day 24Hours:Minutes | ||
475 | 186 | Month/Day Hours:Minutes am/pm" | ||
476 | 187 | Month/Day | ||
477 | 188 | 24Hours:Minutes | ||
478 | 189 | Hours:Minutes am/pm</property> | ||
479 | 190 | <property name="Active">0</property> | ||
480 | 191 | </widget> | ||
481 | 192 | <packing> | ||
482 | 193 | <property name="Position">1</property> | ||
483 | 194 | <property name="AutoSize">True</property> | ||
484 | 195 | <property name="Expand">False</property> | ||
485 | 196 | <property name="Fill">False</property> | ||
486 | 197 | </packing> | ||
487 | 198 | </child> | ||
488 | 199 | <child> | ||
489 | 200 | <widget class="Gtk.RadioButton" id="insertionPrepend"> | ||
490 | 201 | <property name="MemberName" /> | ||
491 | 202 | <property name="CanFocus">True</property> | ||
492 | 203 | <property name="Label" translatable="yes">Prepend to Top of Note</property> | ||
493 | 204 | <property name="Active">True</property> | ||
494 | 205 | <property name="DrawIndicator">True</property> | ||
495 | 206 | <property name="HasLabel">True</property> | ||
496 | 207 | <property name="UseUnderline">True</property> | ||
497 | 208 | <property name="Group">append</property> | ||
498 | 209 | </widget> | ||
499 | 210 | <packing> | ||
500 | 211 | <property name="Position">2</property> | ||
501 | 212 | <property name="AutoSize">True</property> | ||
502 | 213 | <property name="Expand">False</property> | ||
503 | 214 | <property name="Fill">False</property> | ||
504 | 215 | </packing> | ||
505 | 216 | </child> | ||
506 | 217 | <child> | ||
507 | 218 | <widget class="Gtk.RadioButton" id="insertionAppend"> | ||
508 | 219 | <property name="MemberName" /> | ||
509 | 220 | <property name="CanFocus">True</property> | ||
510 | 221 | <property name="Label" translatable="yes">Append to Bottom of Note</property> | ||
511 | 222 | <property name="DrawIndicator">True</property> | ||
512 | 223 | <property name="HasLabel">True</property> | ||
513 | 224 | <property name="UseUnderline">True</property> | ||
514 | 225 | <property name="Group">append</property> | ||
515 | 226 | </widget> | ||
516 | 227 | <packing> | ||
517 | 228 | <property name="Position">3</property> | ||
518 | 229 | <property name="AutoSize">True</property> | ||
519 | 230 | <property name="Expand">False</property> | ||
520 | 231 | <property name="Fill">False</property> | ||
521 | 232 | </packing> | ||
522 | 233 | </child> | ||
523 | 234 | </widget> | ||
524 | 235 | </child> | ||
525 | 236 | </widget> | ||
526 | 237 | </child> | ||
527 | 238 | <child> | ||
528 | 239 | <widget class="Gtk.Label" id="GtkLabel9"> | ||
529 | 240 | <property name="MemberName" /> | ||
530 | 241 | <property name="LabelProp" translatable="yes"><b>Note Insertion</b></property> | ||
531 | 242 | <property name="UseMarkup">True</property> | ||
532 | 243 | </widget> | ||
533 | 244 | <packing> | ||
534 | 245 | <property name="type">label_item</property> | ||
535 | 246 | </packing> | ||
536 | 247 | </child> | ||
537 | 248 | </widget> | ||
538 | 249 | <packing> | ||
539 | 250 | <property name="Position">2</property> | ||
540 | 251 | <property name="AutoSize">True</property> | ||
541 | 252 | <property name="Expand">False</property> | ||
542 | 253 | <property name="Fill">False</property> | ||
543 | 254 | </packing> | ||
544 | 255 | </child> | ||
545 | 142 | </widget> | 256 | </widget> |
546 | 143 | </child> | 257 | </child> |
547 | 144 | </widget> | 258 | </widget> |
548 | 145 | 259 | ||
549 | === added file 'Tomboy/src/AppendNoteAction.cs' | |||
550 | --- Tomboy/src/AppendNoteAction.cs 1970-01-01 00:00:00 +0000 | |||
551 | +++ Tomboy/src/AppendNoteAction.cs 2010-04-04 13:44:19 +0000 | |||
552 | @@ -0,0 +1,86 @@ | |||
553 | 1 | // AppendNoteAction.cs | ||
554 | 2 | // | ||
555 | 3 | // GNOME Do is the legal property of its developers, whose names are too | ||
556 | 4 | // numerous to list here. Please refer to the COPYRIGHT file distributed with | ||
557 | 5 | // this source distribution. | ||
558 | 6 | // | ||
559 | 7 | // This program is free software: you can redistribute it and/or modify | ||
560 | 8 | // it under the terms of the GNU General Public License as published by | ||
561 | 9 | // the Free Software Foundation, either version 3 of the License, or | ||
562 | 10 | // (at your option) any later version. | ||
563 | 11 | // | ||
564 | 12 | // This program is distributed in the hope that it will be useful, | ||
565 | 13 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
566 | 14 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
567 | 15 | // GNU General Public License for more details. | ||
568 | 16 | // | ||
569 | 17 | // You should have received a copy of the GNU General Public License | ||
570 | 18 | // along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
571 | 19 | // Authors | ||
572 | 20 | // Marcus Walz psgenfan@gmail.com | ||
573 | 21 | // | ||
574 | 22 | |||
575 | 23 | using System; | ||
576 | 24 | using System.Linq; | ||
577 | 25 | using System.Diagnostics; | ||
578 | 26 | using System.Collections.Generic; | ||
579 | 27 | |||
580 | 28 | using Mono.Addins; | ||
581 | 29 | |||
582 | 30 | using Do.Universe; | ||
583 | 31 | using Do.Platform.Linux; | ||
584 | 32 | |||
585 | 33 | namespace Tomboy | ||
586 | 34 | { | ||
587 | 35 | |||
588 | 36 | public class AppendNoteAction : Act | ||
589 | 37 | { | ||
590 | 38 | public override string Name { | ||
591 | 39 | get { return AddinManager.CurrentLocalizer.GetString ("Add to Note"); } | ||
592 | 40 | } | ||
593 | 41 | |||
594 | 42 | public override string Description { | ||
595 | 43 | get { return AddinManager.CurrentLocalizer.GetString ("Insert text to the beginning or end of a tomboy note."); } | ||
596 | 44 | } | ||
597 | 45 | |||
598 | 46 | public override string Icon { | ||
599 | 47 | get { return "list-add"; } | ||
600 | 48 | } | ||
601 | 49 | |||
602 | 50 | public override IEnumerable<Type> SupportedItemTypes { | ||
603 | 51 | get { yield return typeof (NoteItem); } | ||
604 | 52 | } | ||
605 | 53 | |||
606 | 54 | public override IEnumerable<Type> SupportedModifierItemTypes { | ||
607 | 55 | get { yield return typeof (ITextItem); } | ||
608 | 56 | } | ||
609 | 57 | |||
610 | 58 | public override bool ModifierItemsOptional { | ||
611 | 59 | get { return false; } | ||
612 | 60 | } | ||
613 | 61 | |||
614 | 62 | public override IEnumerable<Item> Perform (IEnumerable<Item> items, IEnumerable<Item> modItems) | ||
615 | 63 | { | ||
616 | 64 | //ITextItem mainItem = items.First () as ITextItem; | ||
617 | 65 | foreach (NoteItem note in items) | ||
618 | 66 | { | ||
619 | 67 | //NoteItem note = items.First() as NoteItem; | ||
620 | 68 | ITextItem modItem = null; | ||
621 | 69 | if (modItems.Any ()) { | ||
622 | 70 | modItem = modItems.First () as ITextItem; | ||
623 | 71 | if(!string.IsNullOrEmpty(modItem.Text)) | ||
624 | 72 | { | ||
625 | 73 | TomboyDBus tb = new TomboyDBus (); | ||
626 | 74 | tb.AppendNote(note.Name, modItem.Text); | ||
627 | 75 | } | ||
628 | 76 | } | ||
629 | 77 | } | ||
630 | 78 | yield break; | ||
631 | 79 | } | ||
632 | 80 | |||
633 | 81 | // public Gtk.Bin GetConfiguration () | ||
634 | 82 | // { | ||
635 | 83 | // return new TomboyConfiguration (); | ||
636 | 84 | // } | ||
637 | 85 | } | ||
638 | 86 | } | ||
639 | 0 | \ No newline at end of file | 87 | \ No newline at end of file |
640 | 1 | 88 | ||
641 | === added file 'Tomboy/src/GetContentsAction.cs' | |||
642 | --- Tomboy/src/GetContentsAction.cs 1970-01-01 00:00:00 +0000 | |||
643 | +++ Tomboy/src/GetContentsAction.cs 2010-04-04 13:44:19 +0000 | |||
644 | @@ -0,0 +1,65 @@ | |||
645 | 1 | |||
646 | 2 | // AppendNoteAction.cs | ||
647 | 3 | // | ||
648 | 4 | // GNOME Do is the legal property of its developers, whose names are too | ||
649 | 5 | // numerous to list here. Please refer to the COPYRIGHT file distributed with | ||
650 | 6 | // this source distribution. | ||
651 | 7 | // | ||
652 | 8 | // This program is free software: you can redistribute it and/or modify | ||
653 | 9 | // it under the terms of the GNU General Public License as published by | ||
654 | 10 | // the Free Software Foundation, either version 3 of the License, or | ||
655 | 11 | // (at your option) any later version. | ||
656 | 12 | // | ||
657 | 13 | // This program is distributed in the hope that it will be useful, | ||
658 | 14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
659 | 15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
660 | 16 | // GNU General Public License for more details. | ||
661 | 17 | // | ||
662 | 18 | // You should have received a copy of the GNU General Public License | ||
663 | 19 | // along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
664 | 20 | // Authors | ||
665 | 21 | // Marcus Walz psgenfan@gmail.com | ||
666 | 22 | // | ||
667 | 23 | |||
668 | 24 | using System; | ||
669 | 25 | using System.Linq; | ||
670 | 26 | using System.Diagnostics; | ||
671 | 27 | using System.Collections.Generic; | ||
672 | 28 | |||
673 | 29 | using Mono.Addins; | ||
674 | 30 | |||
675 | 31 | using Do.Universe; | ||
676 | 32 | using Do.Platform.Linux; | ||
677 | 33 | using Do.Universe.Common; | ||
678 | 34 | |||
679 | 35 | namespace Tomboy | ||
680 | 36 | { | ||
681 | 37 | |||
682 | 38 | public class GetNoteTextAction : Act | ||
683 | 39 | { | ||
684 | 40 | public override string Name { | ||
685 | 41 | get { return AddinManager.CurrentLocalizer.GetString ("Get Note's Text"); } | ||
686 | 42 | } | ||
687 | 43 | |||
688 | 44 | public override string Description { | ||
689 | 45 | get { return AddinManager.CurrentLocalizer.GetString ("Returns the selected Tomboy Note's Text."); } | ||
690 | 46 | } | ||
691 | 47 | |||
692 | 48 | public override string Icon { | ||
693 | 49 | get { return "text-editor"; } | ||
694 | 50 | } | ||
695 | 51 | |||
696 | 52 | public override IEnumerable<Type> SupportedItemTypes { | ||
697 | 53 | get { yield return typeof (NoteItem); } | ||
698 | 54 | } | ||
699 | 55 | |||
700 | 56 | public override IEnumerable<Item> Perform (IEnumerable<Item> items, IEnumerable<Item> modItems) | ||
701 | 57 | { | ||
702 | 58 | //ITextItem mainItem = items.First () as ITextItem; | ||
703 | 59 | NoteItem note = items.First() as NoteItem; | ||
704 | 60 | TomboyDBus tb = new TomboyDBus (); | ||
705 | 61 | yield return new TextItem(tb.GetNoteText(note.Name)); | ||
706 | 62 | } | ||
707 | 63 | |||
708 | 64 | } | ||
709 | 65 | } | ||
710 | 0 | 66 | ||
711 | === modified file 'Tomboy/src/TomboyConfiguration.cs' | |||
712 | --- Tomboy/src/TomboyConfiguration.cs 2009-01-21 19:21:55 +0000 | |||
713 | +++ Tomboy/src/TomboyConfiguration.cs 2010-04-04 13:44:19 +0000 | |||
714 | @@ -38,7 +38,9 @@ | |||
715 | 38 | { | 38 | { |
716 | 39 | private const string DeriveTitlePrefKey = "deriveTitle"; | 39 | private const string DeriveTitlePrefKey = "deriveTitle"; |
717 | 40 | private const string TitleFirstPrefKey = "titleFirst"; | 40 | private const string TitleFirstPrefKey = "titleFirst"; |
719 | 41 | 41 | private const string InsertionDatePrefKey = "includeDate"; | |
720 | 42 | private const string PrependPrefKey = "insertPrepand"; | ||
721 | 43 | private const string DateFormatKey = "dateFormat"; | ||
722 | 42 | private static IPreferences prefs; | 44 | private static IPreferences prefs; |
723 | 43 | 45 | ||
724 | 44 | static TomboyConfiguration () | 46 | static TomboyConfiguration () |
725 | @@ -56,6 +58,18 @@ | |||
726 | 56 | get { return prefs.Get (TitleFirstPrefKey, false); } | 58 | get { return prefs.Get (TitleFirstPrefKey, false); } |
727 | 57 | } | 59 | } |
728 | 58 | 60 | ||
729 | 61 | public static bool DateInsertion | ||
730 | 62 | { | ||
731 | 63 | get { return prefs.Get (InsertionDatePrefKey, false); } | ||
732 | 64 | } | ||
733 | 65 | public static bool PrependInsertion | ||
734 | 66 | { | ||
735 | 67 | get {return prefs.Get (PrependPrefKey, false); } | ||
736 | 68 | } | ||
737 | 69 | public static int DateFormat | ||
738 | 70 | { | ||
739 | 71 | get {return prefs.Get (DateFormatKey, 0);} | ||
740 | 72 | } | ||
741 | 59 | public TomboyConfiguration() | 73 | public TomboyConfiguration() |
742 | 60 | { | 74 | { |
743 | 61 | this.Build(); | 75 | this.Build(); |
744 | @@ -64,13 +78,28 @@ | |||
745 | 64 | deriveTitleCheckButton.Active = DeriveTitle; | 78 | deriveTitleCheckButton.Active = DeriveTitle; |
746 | 65 | contentFirstRadioButton.Active = !TitleFirst; | 79 | contentFirstRadioButton.Active = !TitleFirst; |
747 | 66 | titleFirstRadioButton.Active = TitleFirst; | 80 | titleFirstRadioButton.Active = TitleFirst; |
749 | 67 | 81 | insertionIncludeTime.Active = DateInsertion; | |
750 | 82 | insertionPrepend.Active = PrependInsertion; | ||
751 | 83 | insertionAppend.Active = !PrependInsertion; | ||
752 | 84 | InsertionDateFormat.Active = DateFormat; | ||
753 | 68 | // Set up events. I had trouble doing this from stetic. | 85 | // Set up events. I had trouble doing this from stetic. |
754 | 69 | deriveTitleCheckButton.Toggled += OnDeriveTitleCheckButtonToggled; | 86 | deriveTitleCheckButton.Toggled += OnDeriveTitleCheckButtonToggled; |
755 | 70 | contentFirstRadioButton.Toggled += OnContentFirstRadioButtonToggled; | 87 | contentFirstRadioButton.Toggled += OnContentFirstRadioButtonToggled; |
756 | 71 | titleFirstRadioButton.Toggled += OnContentFirstRadioButtonToggled; | 88 | titleFirstRadioButton.Toggled += OnContentFirstRadioButtonToggled; |
757 | 89 | insertionIncludeTime.Toggled += OnInsertionIncludeTimeToggled; | ||
758 | 90 | insertionPrepend.Toggled += OnInsertionPrependToggled; | ||
759 | 91 | insertionAppend.Toggled += OnInsertionPrependToggled; | ||
760 | 92 | InsertionDateFormat.Changed += OnDateFormatSelection; | ||
761 | 72 | } | 93 | } |
762 | 73 | 94 | ||
763 | 95 | protected virtual void OnInsertionIncludeTimeToggled (object Sender, System.EventArgs e) | ||
764 | 96 | { | ||
765 | 97 | prefs.Set(InsertionDatePrefKey, insertionIncludeTime.Active); | ||
766 | 98 | } | ||
767 | 99 | protected virtual void OnInsertionPrependToggled (object Sender, System.EventArgs e) | ||
768 | 100 | { | ||
769 | 101 | prefs.Set(PrependPrefKey, insertionPrepend.Active); | ||
770 | 102 | } | ||
771 | 74 | protected virtual void OnDeriveTitleCheckButtonToggled (object sender, System.EventArgs e) | 103 | protected virtual void OnDeriveTitleCheckButtonToggled (object sender, System.EventArgs e) |
772 | 75 | { | 104 | { |
773 | 76 | prefs.Set (DeriveTitlePrefKey, deriveTitleCheckButton.Active); | 105 | prefs.Set (DeriveTitlePrefKey, deriveTitleCheckButton.Active); |
774 | @@ -80,5 +109,9 @@ | |||
775 | 80 | { | 109 | { |
776 | 81 | prefs.Set (TitleFirstPrefKey, titleFirstRadioButton.Active); | 110 | prefs.Set (TitleFirstPrefKey, titleFirstRadioButton.Active); |
777 | 82 | } | 111 | } |
778 | 112 | protected virtual void OnDateFormatSelection(object sender, System.EventArgs e) | ||
779 | 113 | { | ||
780 | 114 | prefs.Set (DateFormatKey, InsertionDateFormat.Active); | ||
781 | 115 | } | ||
782 | 83 | } | 116 | } |
783 | 84 | } | 117 | } |
784 | 85 | 118 | ||
785 | === modified file 'Tomboy/src/TomboyDBus.cs' | |||
786 | --- Tomboy/src/TomboyDBus.cs 2009-01-21 19:21:55 +0000 | |||
787 | +++ Tomboy/src/TomboyDBus.cs 2010-04-04 13:44:19 +0000 | |||
788 | @@ -42,6 +42,9 @@ | |||
789 | 42 | string[] ListAllNotes (); | 42 | string[] ListAllNotes (); |
790 | 43 | void DisplaySearchWithText (string search_text); | 43 | void DisplaySearchWithText (string search_text); |
791 | 44 | string Version (); | 44 | string Version (); |
792 | 45 | string GetNoteContents (string uri); | ||
793 | 46 | string GetNoteContentsXml (string uri); | ||
794 | 47 | bool SetNoteContentsXml (string uri, string xml); | ||
795 | 45 | bool SetNoteContents (string uri, string text_contents); | 48 | bool SetNoteContents (string uri, string text_contents); |
796 | 46 | event DBusNoteAddedHandler NoteAdded; | 49 | event DBusNoteAddedHandler NoteAdded; |
797 | 47 | event DBusNoteRemovedHandler NoteRemoved; | 50 | event DBusNoteRemovedHandler NoteRemoved; |
798 | @@ -52,6 +55,19 @@ | |||
799 | 52 | 55 | ||
800 | 53 | class TomboyDBus | 56 | class TomboyDBus |
801 | 54 | { | 57 | { |
802 | 58 | string[] dateformats = { | ||
803 | 59 | "yyyy/MM/dd HH:mm", | ||
804 | 60 | "yyyy/MM/dd hh:mm tt", | ||
805 | 61 | "yyyy/MM/dd", | ||
806 | 62 | "MM/dd/yyyy HH:mm", | ||
807 | 63 | "MM/dd/yyyy hh:mm tt", | ||
808 | 64 | "MM/dd/yyyy", | ||
809 | 65 | "MM/dd HH:mm", | ||
810 | 66 | "MM/dd hh:mm tt", | ||
811 | 67 | "MM/dd", | ||
812 | 68 | "HH:mm", | ||
813 | 69 | "hh:mm tt"}; | ||
814 | 70 | |||
815 | 55 | #region Constants | 71 | #region Constants |
816 | 56 | 72 | ||
817 | 57 | private const string OBJECT_PATH = "/org/gnome/Tomboy/RemoteControl"; | 73 | private const string OBJECT_PATH = "/org/gnome/Tomboy/RemoteControl"; |
818 | @@ -203,6 +219,7 @@ | |||
819 | 203 | i++; | 219 | i++; |
820 | 204 | } | 220 | } |
821 | 205 | } | 221 | } |
822 | 222 | |||
823 | 206 | 223 | ||
824 | 207 | note_title = TomboyInstance.GetNoteTitle (uri); | 224 | note_title = TomboyInstance.GetNoteTitle (uri); |
825 | 208 | TomboyInstance.DisplayNote (uri); | 225 | TomboyInstance.DisplayNote (uri); |
826 | @@ -211,7 +228,48 @@ | |||
827 | 211 | TomboyInstance.SetNoteContents (uri, note_title + "\n\n" + note_content); | 228 | TomboyInstance.SetNoteContents (uri, note_title + "\n\n" + note_content); |
828 | 212 | return uri; | 229 | return uri; |
829 | 213 | } | 230 | } |
831 | 214 | 231 | ||
832 | 232 | public string GetNoteText(string note_title){ | ||
833 | 233 | EnsureTomboyInstance(); | ||
834 | 234 | string uri = TomboyInstance.FindNote(note_title); | ||
835 | 235 | try{ | ||
836 | 236 | return TomboyInstance.GetNoteContents(uri); | ||
837 | 237 | } catch (Exception) { | ||
838 | 238 | Console.Error.WriteLine ("Could not open the note: {0}", note_title); | ||
839 | 239 | return ""; | ||
840 | 240 | } | ||
841 | 241 | } | ||
842 | 242 | public void AppendNote(string note_title, string text){ | ||
843 | 243 | EnsureTomboyInstance(); | ||
844 | 244 | string uri = TomboyInstance.FindNote(note_title); | ||
845 | 245 | string note; | ||
846 | 246 | try{ | ||
847 | 247 | note = TomboyInstance.GetNoteContentsXml(uri); | ||
848 | 248 | } catch (Exception) { | ||
849 | 249 | Console.Error.WriteLine ("Could not open the note: {0}", note_title); | ||
850 | 250 | return; | ||
851 | 251 | } | ||
852 | 252 | if(TomboyConfiguration.DateInsertion) | ||
853 | 253 | { | ||
854 | 254 | text = "<bold>"+System.DateTime.Now.ToString(dateformats[TomboyConfiguration.DateFormat])+"</bold> " + text; | ||
855 | 255 | } | ||
856 | 256 | if(TomboyConfiguration.PrependInsertion) | ||
857 | 257 | { | ||
858 | 258 | while(note.Substring(note.IndexOfAny("\n".ToCharArray())+2).StartsWith("\n")) //This Works Somehow | ||
859 | 259 | note = note.Remove(note.IndexOfAny("\n".ToCharArray())+2, 2); //Removies Trailing Line Breaks | ||
860 | 260 | note = note.Insert(note.IndexOfAny("\n".ToCharArray())+2, text+"\n\n"); //First Line is note's title so after first break | ||
861 | 261 | } | ||
862 | 262 | else | ||
863 | 263 | { | ||
864 | 264 | while(note.Substring(note.LastIndexOf("<")-2).StartsWith("\n")) | ||
865 | 265 | note = note.Remove(note.LastIndexOf("<")-2, 2); //This is Magic, Make it Better | ||
866 | 266 | note = note.Insert(note.LastIndexOf("<"), "\n\n"+text); //insert before last end tag | ||
867 | 267 | } | ||
868 | 268 | Console.Error.WriteLine ("Sending Note: {0}", note); | ||
869 | 269 | if(!TomboyInstance.SetNoteContentsXml(uri,note)) | ||
870 | 270 | Console.Error.WriteLine("Could not append note: {0}", note_title); | ||
871 | 271 | |||
872 | 272 | } | ||
873 | 215 | /// <summary> | 273 | /// <summary> |
874 | 216 | /// Open the Tomboy search window with the search string entered | 274 | /// Open the Tomboy search window with the search string entered |
875 | 217 | /// </summary> | 275 | /// </summary> |