Fix NULL realloc bug.
[doldaconnect.git] / clients / gtk2 / mainwnd.desc
CommitLineData
d3372da9 1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#endif
4;prefix: main_
5;hasaccels: y
6;hascolumns: y
7;hasrenderers: y
2e8363c8 8:menu name: srpopup var: y
a2e3d687 9 $menuitem name: srhash label: "Search for this hash" sig: activate var: y
2e8363c8 10end
11:menu name: trpopup var: y
a2e3d687 12 $menuitem name: trhash label: "Search for this hash" sig: activate var: y
13 $menuitem name: trcancel label: "Cancel transfer" sig: activate
2e8363c8 14end
d3372da9 15:wnd name: wnd title: "Dolda Connect" var: y sig(delete_event):initdeath
16 :vbox
17 :menubar
18 :menuitem label: _Main
19 :menu
20 $menuitem name: connmenu label: _Connect sig: activate accel: "CONTROL+C" var: y
21 $menuitem name: dconnmenu label: _Disconnect sig: activate accel: "CONTROL+D" var: y sensitive: FALSE
22 $menusep
23 $menuitem name: sdmenu label: "_Shut down daemon" sig: activate
24 $smenuitem stock: QUIT sig(activate):initdeath
25 end
26 end
27 :menuitem label: Op_tions
28 :menu
29 $smenuitem name: prefmenu stock: PREFERENCES sig: activate
30 end
31 end
32 end
33 :vpaned name: pane1 var: y expand: TRUE fill: TRUE resize: 1
34 :notebook
35 :vpaned name: pane2 var: y nblabel: "_Hub connections" resize: 2
36 :vbox
37 $mlbl label: "Connected hu_bs" mwidget: fnetnodes
38 :sw expand: TRUE fill: TRUE
39 :treeview name: fnetnodes var: y rules: TRUE
40 :tvcol title: "Hub name" sortcol: 1 resizable: TRUE
41 $pixbufrend stock_id: 4
42 $textrend text: 1
43 end
44 $tvcol title: "# users" text: 3 sortcol: 3 resizable: TRUE
45 end
46 end
47 $btn name: dcnctbtn label: "D_isconnect" sig: clicked
48 end
49 :vbox
50 $mlbl label: "_Public hub list" mwidget: phublist
51 :sw expand: TRUE fill: TRUE
52 :treeview name: phublist var: y rules: TRUE searchcol: 0 sig(cursor-changed): cb_main_phublist_cchange sig(row-activated): cb_main_phublist_activate
53 $tvcol title: "# users" text: 3 sortcol: 3 resizable: TRUE
54 $tvcol title: "Name" text: 0 sortcol: 0 resizable: TRUE
55 $tvcol title: "Description" text: 2 sortcol: 2 resizable: TRUE
56 end
57 end
58 :table rows: 2 cols: 3 fill: TRUE
59 $mlbl label: "_Filter:" tx: 0 ty: 0 mwidget: pubhubfilter
60 $text name: pubhubfilter var: y expand: y fill: y sig: activate tx: 1 ty: 0
61 $btn label: "_Get public hub list" sig(clicked): cb_main_pubhubfilter_activate tx: 2 ty: 0
62 $mlbl label: "_Address:" tx: 0 ty: 1 mwidget: fnaddr
63 $text name: fnaddr var: y expand: y fill: y sig: activate tx: 1 ty: 1
64 $btn label: "C_onnect" sig(clicked): cb_main_fnaddr_activate tx: 2 ty: 1
65 end
66 end
67 end
68 :vpaned name: pane3 var: y nblabel: "_Chat" resize: 2
69 :vbox
70 $mlbl label: "Hu_bs" mwidget: chatnodes
71 :sw fill: TRUE expand: TRUE
72 :treeview name: chatnodes var: y rules: TRUE sig(row-activated): cb_main_chatnodes_activate
73 :tvcol title: "Hub name" sortcol: 1
74 $pixbufrend stock_id: 5
75 $textrend text: 1
76 end
77 end
78 end
79 end
80 :vbox
81 :sw fill: TRUE expand: TRUE
82 $textview name: chatview var: y editable: FALSE
83 end
84 :hbox
85 $mlbl label: "Chat st_ring:" mwidget: chatstr
86 $text name: chatstr var: y expand: TRUE fill: TRUE sig: activate
87 $btn label: "S_end" sig(clicked): cb_main_chatstr_activate
88 end
89 end
90 end
91 :vbox nblabel: "_Search"
92 :hbox
93 $mlbl label: "S_imple search:" mwidget: simplesrch
94 $text name: simplesrch var: y expand: TRUE fill: TRUE sig: changed sig(activate): cb_main_srchbtn_clicked
95 $btn name: srchbtn var: y label: "S_earch" sig: clicked
96 $btn name: srchcanbtn var: y label: "C_ancel" sig: clicked sensitive: FALSE
97 end
98 $chk name: filternoslots var: y label: "Displa_y results with free slots only" sig: toggled
99 :exp label: "Ad_vanced" name: advexp var: y
100 :table rows: 2 cols: 2
101 $mlbl tx: 0 ty: 0 label: "C_omplete search expression:" mwidget: realsrch
102 $text tx: 1 ty: 0 name: realsrch var: y expand: y fill: y sig: changed sig(activate): cb_main_srchbtn_clicked
103 $mlbl tx: 0 ty: 1 label: "Filter ar_gument:" mwidget: dlarg
104 $text tx: 1 ty: 1 name: dlarg var: y expand: y fill: y
105 end
106 end
107 $lbl name: srchstatus var: y label: "Ready to search" fill: TRUE
108 $hr pad: 5
109 $mlbl label: "Search _results:" mwidget: srchres
110 :sw expand: TRUE fill: TRUE
2e8363c8 111 :treeview name: srchres var: y rules: TRUE searchcol: 3 sig(row-activated): cb_main_srchres_activate sig(popup-menu): cb_main_srpopup sig(button-release-event): cb_main_srpopup
d3372da9 112 :tvcol title: "#" sortcol: 7 resizable: FALSE
113 $textrend func: hidezerofunc funcdata: "(gpointer)7"
114 end
115 $tvcol title: "Peer name" text: 2 sortcol: 2 resizable: TRUE
116 $tvcol title: "File name" text: 3 sortcol: 3 resizable: TRUE expander: y
117 :tvcol title: "Size" sortcol: 4 resizable: TRUE
118 $textrend func: transnicebytefunc funcdata: "(gpointer)4"
119 end
120 $tvcol title: "Slots" text: 5 sortcol: 5 resizable: TRUE
121 :tvcol title: "Known speed" sortcol: 8 resizable: TRUE
122 $textrend func: speedtimefunc
123 end
124 $tvcol title: "Rsp. time" text: 6 sortcol: 6 resizable: TRUE
2e8363c8 125 $tvcol title: "Hash" text: 9 sortcol: 9 resizable: TRUE
d3372da9 126 end
127 end
128 end
129 end
130 :notebook
131 :vbox nblabel: "_Downloads"
132 $mlbl label: "_List of downloads:" mwidget: downloads
133 :sw fill: TRUE expand: TRUE
2e8363c8 134 :treeview name: downloads var: y sig(key-press-event): cb_main_trlist_keypress sig(popup-menu): cb_main_trpopup sig(button-release-event): cb_main_trpopup
d3372da9 135 :tvcol title: "User Name"
136 $pixbufrend stock_id: 8
137 $textrend text: 4
138 end
139 $tvcol title: "File Name" text: 5
140 :tvcol title: "Size"
141 $textrend func: transnicebytefunc funcdata: "(gpointer)6"
142 end
143 :tvcol title: "Position"
144#ifdef ENABLE_GTK2PBAR
145 $custrend newfunc: custom_cell_renderer_progress_new attr(percentage): 9
146#else
147 $textrend func: percentagefunc funcdata: "(gpointer)9" expand: FALSE
148#endif
149 $textrend func: transnicebytefunc funcdata: "(gpointer)7"
150 end
151 :tvcol title: "Error"
152 $textrend func: transerrorinfo
153 end
2e8363c8 154 $tvcol title: "Hash" text: 12
d3372da9 155 end
156 end
157 end
158 :vbox nblabel: "_Uploads"
159 $mlbl label: "_List of uploads:" mwidget: uploads
160 :sw fill: TRUE expand: TRUE
161 :treeview name: uploads var: y sig(key-press-event): cb_main_trlist_keypress
162 :tvcol title: "User Name"
163 $pixbufrend stock_id: 8
164 $textrend text: 4
165 end
166 $tvcol title: "File Name" text: 5
167 :tvcol title: "Size"
168 $textrend func: transnicebytefunc funcdata: "(gpointer)6"
169 end
170 :tvcol title: "Position"
171#ifdef ENABLE_GTK2PBAR
172 $custrend newfunc: custom_cell_renderer_progress_new attr(percentage): 9
173#else
174 $textrend func: percentagefunc funcdata: "(gpointer)9" expand: FALSE
175#endif
176 $textrend func: transnicebytefunc funcdata: "(gpointer)7"
177 end
178 end
179 end
180 end
181 end
182 end
183 $sbar var: y name: statusbar
184 end
185end