1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
<interface>
|
|
3 |
<!-- interface-requires gtk+ 3.0 -->
|
|
4
by Umang Varma
GtkTextView->GtkSourceView (for undo/redo) |
4 |
<!-- interface-requires gtksourceview 3.0 -->
|
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
5 |
<object class="GtkWindow" id="MainWindow"> |
6 |
<property name="can_focus">False</property> |
|
9
by Umang Varma
Window title |
7 |
<property name="title" translatable="yes">Sticky Notes</property> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
8 |
<property name="default_width">200</property> |
9 |
<property name="default_height">200</property> |
|
10 |
<property name="hide_titlebar_when_maximized">True</property> |
|
11 |
<property name="type_hint">utility</property> |
|
12 |
<property name="skip_taskbar_hint">True</property> |
|
13 |
<property name="decorated">False</property> |
|
14 |
<signal name="destroy" handler="quit" swapped="no"/> |
|
15 |
<signal name="button-press-event" handler="move" swapped="no"/> |
|
32
by Umang Varma
Save more often so changes aren't lost |
16 |
<signal name="focus-out-event" handler="focus_out" swapped="no"/> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
17 |
<child>
|
18 |
<object class="GtkBox" id="mainBox"> |
|
19 |
<property name="visible">True</property> |
|
20 |
<property name="can_focus">False</property> |
|
21 |
<property name="orientation">vertical</property> |
|
22 |
<child>
|
|
23 |
<object class="GtkBox" id="topBox"> |
|
24 |
<property name="visible">True</property> |
|
25 |
<property name="can_focus">False</property> |
|
26 |
<signal name="button-press-event" handler="move" swapped="no"/> |
|
27 |
<child>
|
|
19
by Umang Varma
Moved buttons around |
28 |
<object class="GtkButton" id="bClose"> |
29 |
<property name="use_action_appearance">False</property> |
|
30 |
<property name="visible">True</property> |
|
31 |
<property name="can_focus">True</property> |
|
32 |
<property name="receives_default">True</property> |
|
40
by Umang Varma
Added keyboard shortcuts, tooltips for buttons |
33 |
<property name="tooltip_text" translatable="yes">Delete</property> |
19
by Umang Varma
Moved buttons around |
34 |
<property name="use_action_appearance">False</property> |
35 |
<property name="image">imgClose</property> |
|
36 |
<property name="relief">none</property> |
|
37 |
<property name="image_position">top</property> |
|
40
by Umang Varma
Added keyboard shortcuts, tooltips for buttons |
38 |
<accelerator key="w" signal="clicked" modifiers="GDK_CONTROL_MASK"/> |
19
by Umang Varma
Moved buttons around |
39 |
<signal name="clicked" handler="delete" swapped="no"/> |
40 |
</object>
|
|
41 |
<packing>
|
|
42 |
<property name="expand">False</property> |
|
43 |
<property name="fill">True</property> |
|
44 |
<property name="position">0</property> |
|
45 |
</packing>
|
|
46 |
</child>
|
|
47 |
<child>
|
|
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
48 |
<object class="GtkButton" id="bAdd"> |
49 |
<property name="use_action_appearance">False</property> |
|
50 |
<property name="visible">True</property> |
|
51 |
<property name="can_focus">True</property> |
|
52 |
<property name="receives_default">True</property> |
|
40
by Umang Varma
Added keyboard shortcuts, tooltips for buttons |
53 |
<property name="tooltip_text" translatable="yes">New Note</property> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
54 |
<property name="use_action_appearance">False</property> |
55 |
<property name="image">imgAdd</property> |
|
17
by Umang Varma
Improve UI |
56 |
<property name="relief">none</property> |
40
by Umang Varma
Added keyboard shortcuts, tooltips for buttons |
57 |
<accelerator key="n" signal="clicked" modifiers="GDK_CONTROL_MASK"/> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
58 |
<signal name="clicked" handler="add" swapped="no"/> |
59 |
</object>
|
|
60 |
<packing>
|
|
61 |
<property name="expand">False</property> |
|
62 |
<property name="fill">True</property> |
|
19
by Umang Varma
Moved buttons around |
63 |
<property name="pack_type">end</property> |
64 |
<property name="position">1</property> |
|
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
65 |
</packing>
|
66 |
</child>
|
|
67 |
<child>
|
|
12
by Umang Varma
Lock/unlock functionality |
68 |
<object class="GtkToggleButton" id="bLock"> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
69 |
<property name="use_action_appearance">False</property> |
70 |
<property name="visible">True</property> |
|
71 |
<property name="can_focus">True</property> |
|
72 |
<property name="receives_default">True</property> |
|
19
by Umang Varma
Moved buttons around |
73 |
<property name="margin_left">100</property> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
74 |
<property name="use_action_appearance">False</property> |
12
by Umang Varma
Lock/unlock functionality |
75 |
<property name="image">imgUnlock</property> |
17
by Umang Varma
Improve UI |
76 |
<property name="relief">none</property> |
77 |
<property name="draw_indicator">True</property> |
|
40
by Umang Varma
Added keyboard shortcuts, tooltips for buttons |
78 |
<accelerator key="l" signal="clicked" modifiers="GDK_CONTROL_MASK"/> |
12
by Umang Varma
Lock/unlock functionality |
79 |
<signal name="toggled" handler="lock_toggled" swapped="no"/> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
80 |
</object>
|
81 |
<packing>
|
|
82 |
<property name="expand">False</property> |
|
83 |
<property name="fill">True</property> |
|
84 |
<property name="pack_type">end</property> |
|
19
by Umang Varma
Moved buttons around |
85 |
<property name="position">2</property> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
86 |
</packing>
|
87 |
</child>
|
|
88 |
</object>
|
|
89 |
<packing>
|
|
90 |
<property name="expand">False</property> |
|
91 |
<property name="fill">True</property> |
|
92 |
<property name="position">0</property> |
|
93 |
</packing>
|
|
94 |
</child>
|
|
95 |
<child>
|
|
4
by Umang Varma
GtkTextView->GtkSourceView (for undo/redo) |
96 |
<object class="GtkSourceView" id="txtNote"> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
97 |
<property name="visible">True</property> |
98 |
<property name="can_focus">True</property> |
|
17
by Umang Varma
Improve UI |
99 |
<property name="has_focus">True</property> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
100 |
<property name="hexpand">True</property> |
101 |
<property name="vexpand">True</property> |
|
102 |
<property name="hscroll_policy">natural</property> |
|
103 |
<property name="vscroll_policy">natural</property> |
|
11
by Umang Varma
Use word wrap and delete eventbox |
104 |
<property name="wrap_mode">word</property> |
4
by Umang Varma
GtkTextView->GtkSourceView (for undo/redo) |
105 |
<property name="tab_width">4</property> |
106 |
<property name="indent_on_tab">False</property> |
|
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
107 |
</object>
|
108 |
<packing>
|
|
109 |
<property name="expand">False</property> |
|
110 |
<property name="fill">True</property> |
|
111 |
<property name="position">1</property> |
|
112 |
</packing>
|
|
113 |
</child>
|
|
114 |
<child>
|
|
115 |
<object class="GtkBox" id="box3"> |
|
116 |
<property name="visible">True</property> |
|
117 |
<property name="can_focus">False</property> |
|
118 |
<child>
|
|
119 |
<object class="GtkEventBox" id="eResizeR"> |
|
120 |
<property name="visible">True</property> |
|
121 |
<property name="can_focus">False</property> |
|
122 |
<signal name="button-press-event" handler="resize" swapped="no"/> |
|
123 |
<child>
|
|
124 |
<object class="GtkImage" id="imgResizeR"> |
|
125 |
<property name="visible">True</property> |
|
126 |
<property name="can_focus">False</property> |
|
7
by Umang Varma
New resize logo and added hover cursor |
127 |
<property name="pixbuf">Icons/fold.png</property> |
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
128 |
<signal name="button-press-event" handler="resize" swapped="no"/> |
129 |
</object>
|
|
130 |
</child>
|
|
131 |
</object>
|
|
132 |
<packing>
|
|
133 |
<property name="expand">False</property> |
|
134 |
<property name="fill">True</property> |
|
135 |
<property name="pack_type">end</property> |
|
136 |
<property name="position">1</property> |
|
137 |
</packing>
|
|
138 |
</child>
|
|
139 |
</object>
|
|
140 |
<packing>
|
|
141 |
<property name="expand">False</property> |
|
142 |
<property name="fill">True</property> |
|
143 |
<property name="position">2</property> |
|
144 |
</packing>
|
|
145 |
</child>
|
|
146 |
</object>
|
|
147 |
</child>
|
|
148 |
</object>
|
|
41
by Umang Varma
Added about dialog |
149 |
<object class="GtkMessageDialog" id="confirmDelete"> |
150 |
<property name="can_focus">False</property> |
|
151 |
<property name="border_width">5</property> |
|
152 |
<property name="title" translatable="yes">Confirm delete</property> |
|
153 |
<property name="type_hint">dialog</property> |
|
154 |
<property name="skip_taskbar_hint">True</property> |
|
155 |
<property name="message_type">warning</property> |
|
156 |
<property name="text" translatable="yes">Are you sure you want to delete this note?</property> |
|
157 |
<child internal-child="vbox"> |
|
158 |
<object class="GtkBox" id="messagedialog-vbox1"> |
|
159 |
<property name="can_focus">False</property> |
|
160 |
<property name="orientation">vertical</property> |
|
161 |
<property name="spacing">2</property> |
|
162 |
<child internal-child="action_area"> |
|
163 |
<object class="GtkButtonBox" id="messagedialog-action_area1"> |
|
164 |
<property name="can_focus">False</property> |
|
165 |
<property name="layout_style">end</property> |
|
166 |
<child>
|
|
167 |
<object class="GtkButton" id="bCancel"> |
|
168 |
<property name="label">gtk-cancel</property> |
|
169 |
<property name="use_action_appearance">False</property> |
|
170 |
<property name="visible">True</property> |
|
171 |
<property name="can_focus">True</property> |
|
172 |
<property name="receives_default">True</property> |
|
173 |
<property name="use_action_appearance">False</property> |
|
174 |
<property name="use_stock">True</property> |
|
175 |
</object>
|
|
176 |
<packing>
|
|
177 |
<property name="expand">False</property> |
|
178 |
<property name="fill">True</property> |
|
179 |
<property name="position">0</property> |
|
180 |
</packing>
|
|
181 |
</child>
|
|
182 |
<child>
|
|
183 |
<object class="GtkButton" id="bDelete"> |
|
184 |
<property name="label">gtk-delete</property> |
|
185 |
<property name="use_action_appearance">False</property> |
|
186 |
<property name="visible">True</property> |
|
187 |
<property name="can_focus">True</property> |
|
188 |
<property name="receives_default">True</property> |
|
189 |
<property name="use_action_appearance">False</property> |
|
190 |
<property name="use_stock">True</property> |
|
191 |
</object>
|
|
192 |
<packing>
|
|
193 |
<property name="expand">False</property> |
|
194 |
<property name="fill">True</property> |
|
195 |
<property name="position">1</property> |
|
196 |
</packing>
|
|
197 |
</child>
|
|
198 |
</object>
|
|
199 |
<packing>
|
|
200 |
<property name="expand">False</property> |
|
201 |
<property name="fill">True</property> |
|
202 |
<property name="pack_type">end</property> |
|
203 |
<property name="position">0</property> |
|
204 |
</packing>
|
|
205 |
</child>
|
|
206 |
</object>
|
|
207 |
</child>
|
|
208 |
<action-widgets>
|
|
209 |
<action-widget response="0">bCancel</action-widget> |
|
210 |
<action-widget response="1">bDelete</action-widget> |
|
211 |
</action-widgets>
|
|
212 |
</object>
|
|
213 |
<object class="GtkImage" id="imgAdd"> |
|
214 |
<property name="visible">True</property> |
|
215 |
<property name="can_focus">False</property> |
|
216 |
<property name="pixbuf">Icons/Add.png</property> |
|
217 |
</object>
|
|
218 |
<object class="GtkImage" id="imgClose"> |
|
219 |
<property name="visible">True</property> |
|
220 |
<property name="can_focus">False</property> |
|
221 |
<property name="pixbuf">Icons/Close.png</property> |
|
222 |
</object>
|
|
12
by Umang Varma
Lock/unlock functionality |
223 |
<object class="GtkImage" id="imgLock"> |
224 |
<property name="visible">True</property> |
|
225 |
<property name="can_focus">False</property> |
|
226 |
<property name="pixbuf">Icons/Lock.png</property> |
|
227 |
</object>
|
|
14
by Umang Varma
Added confirm delete functionality |
228 |
<object class="GtkImage" id="imgUnlock"> |
229 |
<property name="visible">True</property> |
|
230 |
<property name="can_focus">False</property> |
|
231 |
<property name="pixbuf">Icons/Unlock.png</property> |
|
232 |
</object>
|
|
1
by Umang Varma
Initial commit. Somewhat working sticky notes. |
233 |
</interface>
|