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