~umang/indicator-stickynotes/trunk

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