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