| 1 |
// ---------------------------------------------------------------------------- |
| 2 |
// Copyright (C) 2014 |
| 3 |
// David Freese, W1HKJ |
| 4 |
// |
| 5 |
// This file is part of flmsg |
| 6 |
// |
| 7 |
// flrig is free software; you can redistribute it and/or modify |
| 8 |
// it under the terms of the GNU General Public License as published by |
| 9 |
// the Free Software Foundation; either version 3 of the License, or |
| 10 |
// (at your option) any later version. |
| 11 |
// |
| 12 |
// flrig is distributed in the hope that it will be useful, |
| 13 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
// GNU General Public License for more details. |
| 16 |
// |
| 17 |
// You should have received a copy of the GNU General Public License |
| 18 |
// along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 |
// ---------------------------------------------------------------------------- |
| 20 |
|
| 21 |
#include "gettext.h" |
| 22 |
#include "status.h" |
| 23 |
#include "util.h" |
| 24 |
|
| 25 |
#include "flmsg_dialog.h" |
| 26 |
#include "flmsg.h" |
| 27 |
|
| 28 |
Fl_Group *h213_tab = (Fl_Group *)0; |
| 29 |
Fl_Tabs *h213_tab_type = (Fl_Tabs *)0; |
| 30 |
|
| 31 |
Fl_Group *tab_213_grp_orig = (Fl_Group *)0; |
| 32 |
Fl_Group *tab_213_grp_msg = (Fl_Group *)0; |
| 33 |
Fl_Group *tab_213_grp_action = (Fl_Group *)0; |
| 34 |
Fl_Group *tab_213_grp_receipt1 = (Fl_Group *)0; |
| 35 |
Fl_Group *tab_213_grp_receipt2 = (Fl_Group *)0; |
| 36 |
|
| 37 |
Fl_Input2 *h213_txt_to = (Fl_Input2 *)0; |
| 38 |
Fl_Input2 *h213_txt_fm = (Fl_Input2 *)0; |
| 39 |
Fl_DateInput *h213_txt_date = (Fl_DateInput *)0; |
| 40 |
Fl_Button *h213_btn_date = (Fl_Button *)0; |
| 41 |
Fl_Input2 *h213_txt_time = (Fl_Input2 *)0; |
| 42 |
Fl_Button *h213_btn_time0 = (Fl_Button *)0; |
| 43 |
Fl_Check_Button *h213_btn_phone = (Fl_Check_Button *)0; |
| 44 |
Fl_Check_Button *h213_btn_radio = (Fl_Check_Button *)0; |
| 45 |
Fl_Check_Button *h213_btn_other = (Fl_Check_Button *)0; |
| 46 |
Fl_Check_Button *h213_btn_yes = (Fl_Check_Button *)0; |
| 47 |
Fl_Check_Button *h213_btn_no = (Fl_Check_Button *)0; |
| 48 |
Fl_Check_Button *h213_btn_high = (Fl_Check_Button *)0; |
| 49 |
Fl_Check_Button *h213_btn_medium = (Fl_Check_Button *)0; |
| 50 |
Fl_Check_Button *h213_btn_low = (Fl_Check_Button *)0; |
| 51 |
Fl_Input2 *h213_txt_reply_to = (Fl_Input2 *)0; |
| 52 |
FTextEdit *h213_txt_msg = (FTextEdit *)0; |
| 53 |
FTextEdit *h213_txt_action = (FTextEdit *)0; |
| 54 |
Fl_Input2 *h213_txt_rcvd_by = (Fl_Input2 *)0; |
| 55 |
Fl_Input2 *h213_txt_time_rcvd = (Fl_Input2 *)0; |
| 56 |
Fl_Button *h213_btn_time1 = (Fl_Button *)0; |
| 57 |
Fl_Input2 *h213_txt_fwd_to = (Fl_Input2 *)0; |
| 58 |
FTextEdit *h213_txt_comments = (FTextEdit *)0; |
| 59 |
Fl_Input2 *h213_txt_rcvd_by2 = (Fl_Input2 *)0; |
| 60 |
Fl_Input2 *h213_txt_time_rcvd2 = (Fl_Input2 *)0; |
| 61 |
Fl_Button *h213_btn_time2 = (Fl_Button *)0; |
| 62 |
Fl_Input2 *h213_txt_fwd_to2 = (Fl_Input2 *)0; |
| 63 |
FTextEdit *h213_txt_comments2 = (FTextEdit *)0; |
| 64 |
Fl_Input2 *h213_txt_facility = (Fl_Input2 *)0; |
| 65 |
|
| 66 |
static void h213_cb_btn_date(Fl_Button*, void*) { |
| 67 |
h213_cb_set_date(); |
| 68 |
} |
| 69 |
|
| 70 |
static void h213_cb_btn_time0(Fl_Button*, void*) { |
| 71 |
h213_cb_set_time0(); |
| 72 |
} |
| 73 |
|
| 74 |
static void h213_cb_btn_time1(Fl_Button*, void*) { |
| 75 |
h213_cb_set_time1(); |
| 76 |
} |
| 77 |
|
| 78 |
static void h213_cb_btn_time2(Fl_Button*, void*) { |
| 79 |
h213_cb_set_time2(); |
| 80 |
} |
| 81 |
|
| 82 |
static void h213_cb_btn_via(Fl_Button *b, void*) { |
| 83 |
Fl_Check_Button *btn = (Fl_Check_Button *)b; |
| 84 |
if (btn == h213_btn_other && btn->value()) { |
| 85 |
h213_btn_radio->value(0); |
| 86 |
h213_btn_phone->value(0); |
| 87 |
} else if (btn == h213_btn_radio && btn->value()) { |
| 88 |
h213_btn_phone->value(0); |
| 89 |
h213_btn_other->value(0); |
| 90 |
} else if (btn == h213_btn_phone && btn->value()){ |
| 91 |
h213_btn_radio->value(0); |
| 92 |
h213_btn_other->value(0); |
| 93 |
} |
| 94 |
} |
| 95 |
|
| 96 |
static void h213_cb_btn_yes_no(Fl_Button *b, void*) { |
| 97 |
Fl_Check_Button *btn = (Fl_Check_Button *)b; |
| 98 |
if (btn == h213_btn_yes && btn->value()) |
| 99 |
h213_btn_no->value(0); |
| 100 |
else if (btn == h213_btn_no && btn->value()) |
| 101 |
h213_btn_yes->value(0); |
| 102 |
} |
| 103 |
|
| 104 |
static void h213_cb_btn_priority(Fl_Button *b, void*) { |
| 105 |
Fl_Check_Button *btn = (Fl_Check_Button *)b; |
| 106 |
if (btn == h213_btn_low && btn->value()) { |
| 107 |
h213_btn_high->value(0); |
| 108 |
h213_btn_medium->value(0); |
| 109 |
} else if (btn == h213_btn_medium && btn->value()) { |
| 110 |
h213_btn_high->value(0); |
| 111 |
h213_btn_low->value(0); |
| 112 |
} else if (btn == h213_btn_high && btn->value()) { |
| 113 |
h213_btn_medium->value(0); |
| 114 |
h213_btn_low->value(0); |
| 115 |
} |
| 116 |
} |
| 117 |
|
| 118 |
void create_hics213_tab() |
| 119 |
{ |
| 120 |
int Y = tab_top; |
| 121 |
h213_tab = new Fl_Group(0, Y, 570, 390); |
| 122 |
h213_tab->align(FL_ALIGN_TOP); |
| 123 |
|
| 124 |
h213_tab_type = new Fl_Tabs(0, Y, 570, 387); |
| 125 |
h213_tab_type->selection_color((Fl_Color)246); |
| 126 |
|
| 127 |
tab_213_grp_orig = new Fl_Group(0, Y+25, 570, 360, _("Originator")); |
| 128 |
{ |
| 129 |
h213_txt_fm = new Fl_Input2(80, Y+40, 480, 24, _("From")); |
| 130 |
h213_txt_fm->tooltip(_("originator")); |
| 131 |
h213_txt_fm->box(FL_DOWN_BOX); |
| 132 |
h213_txt_fm->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 133 |
h213_txt_fm->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 134 |
h213_txt_fm->labeltype(FL_NORMAL_LABEL); |
| 135 |
h213_txt_fm->labelfont(0); |
| 136 |
h213_txt_fm->labelsize(14); |
| 137 |
h213_txt_fm->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 138 |
h213_txt_fm->align(FL_ALIGN_LEFT); |
| 139 |
h213_txt_fm->callback(hics_changed); |
| 140 |
h213_txt_fm->when(FL_WHEN_CHANGED); |
| 141 |
|
| 142 |
h213_txt_to = new Fl_Input2(80, Y+66, 480, 24, _("To")); |
| 143 |
h213_txt_to->tooltip(_("Addressee")); |
| 144 |
h213_txt_to->box(FL_DOWN_BOX); |
| 145 |
h213_txt_to->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 146 |
h213_txt_to->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 147 |
h213_txt_to->labeltype(FL_NORMAL_LABEL); |
| 148 |
h213_txt_to->labelfont(0); |
| 149 |
h213_txt_to->labelsize(14); |
| 150 |
h213_txt_to->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 151 |
h213_txt_to->align(FL_ALIGN_LEFT); |
| 152 |
h213_txt_to->callback(hics_changed); |
| 153 |
h213_txt_to->when(FL_WHEN_CHANGED); |
| 154 |
|
| 155 |
h213_txt_date = new Fl_DateInput(80, Y+92, 125, 24, _("Date")); |
| 156 |
h213_txt_date->tooltip(_("Date of origination")); |
| 157 |
h213_txt_date->box(FL_DOWN_BOX); |
| 158 |
h213_txt_date->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 159 |
h213_txt_date->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 160 |
h213_txt_date->labeltype(FL_NORMAL_LABEL); |
| 161 |
h213_txt_date->labelfont(0); |
| 162 |
h213_txt_date->labelsize(14); |
| 163 |
h213_txt_date->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 164 |
h213_txt_date->align(FL_ALIGN_LEFT); |
| 165 |
h213_txt_date->when(FL_WHEN_CHANGED); |
| 166 |
h213_txt_date->callback(hics_changed); |
| 167 |
h213_txt_date->local_datetime(progStatus.UTC > 1); |
| 168 |
h213_txt_date->format(2); |
| 169 |
|
| 170 |
h213_btn_date = new Fl_Button(210, Y+94, 20, 20, _("...")); |
| 171 |
h213_btn_date->tooltip(_("Set today")); |
| 172 |
h213_btn_date->callback((Fl_Callback*)h213_cb_btn_date); |
| 173 |
|
| 174 |
h213_txt_time = new Fl_Input2(300, Y+92, 103, 24, _("Time")); |
| 175 |
h213_txt_time->tooltip(_("Time of origination")); |
| 176 |
h213_txt_time->box(FL_DOWN_BOX); |
| 177 |
h213_txt_time->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 178 |
h213_txt_time->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 179 |
h213_txt_time->labeltype(FL_NORMAL_LABEL); |
| 180 |
h213_txt_time->labelfont(0); |
| 181 |
h213_txt_time->labelsize(14); |
| 182 |
h213_txt_time->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 183 |
h213_txt_time->align(FL_ALIGN_LEFT); |
| 184 |
h213_txt_time->callback(hics_changed); |
| 185 |
h213_txt_time->when(FL_WHEN_CHANGED); |
| 186 |
|
| 187 |
h213_btn_time0 = new Fl_Button(410, Y+94, 20, 20, _("...")); |
| 188 |
h213_btn_time0->tooltip(_("Set time now")); |
| 189 |
h213_btn_time0->callback((Fl_Callback*)h213_cb_btn_time0); |
| 190 |
|
| 191 |
{ Fl_Group *o = new Fl_Group(2, Y+124, 282, 50, _("Received via:")); |
| 192 |
o->box(FL_ENGRAVED_FRAME); |
| 193 |
o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE); |
| 194 |
|
| 195 |
h213_btn_phone = new Fl_Check_Button(30, Y+145, 60, 24, _("Phone")); |
| 196 |
h213_btn_phone->value(0); |
| 197 |
h213_btn_phone->callback((Fl_Callback*)h213_cb_btn_via); |
| 198 |
|
| 199 |
h213_btn_radio = new Fl_Check_Button(120, Y+145, 60, 24, _("Radio")); |
| 200 |
h213_btn_radio->value(0); |
| 201 |
h213_btn_radio->callback((Fl_Callback*)h213_cb_btn_via); |
| 202 |
|
| 203 |
h213_btn_other = new Fl_Check_Button(210, Y+145, 60, 24, _("Other")); |
| 204 |
h213_btn_other->value(0); |
| 205 |
h213_btn_other->callback((Fl_Callback*)h213_cb_btn_via); |
| 206 |
|
| 207 |
o->end(); |
| 208 |
} |
| 209 |
|
| 210 |
{ Fl_Group *o = new Fl_Group(286, Y+124, 282, 50, _("Reply requested:")); |
| 211 |
o->box(FL_ENGRAVED_FRAME); |
| 212 |
o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE); |
| 213 |
|
| 214 |
h213_btn_yes = new Fl_Check_Button(340, Y+145, 60, 24, _("Yes")); |
| 215 |
h213_btn_yes->value(0); |
| 216 |
h213_btn_yes->callback((Fl_Callback*)h213_cb_btn_yes_no); |
| 217 |
|
| 218 |
h213_btn_no = new Fl_Check_Button(440, Y+145, 60, 24, _("No")); |
| 219 |
h213_btn_no->value(0); |
| 220 |
h213_btn_no->callback((Fl_Callback*)h213_cb_btn_yes_no); |
| 221 |
|
| 222 |
o->end(); |
| 223 |
} |
| 224 |
|
| 225 |
h213_txt_reply_to = new Fl_Input2(80, Y+175, 480, 24, _("Reply to:")); |
| 226 |
h213_txt_reply_to->tooltip(_("alternate reply-to if NO reply requested")); |
| 227 |
h213_txt_reply_to->box(FL_DOWN_BOX); |
| 228 |
h213_txt_reply_to->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 229 |
h213_txt_reply_to->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 230 |
h213_txt_reply_to->labeltype(FL_NORMAL_LABEL); |
| 231 |
h213_txt_reply_to->labelfont(0); |
| 232 |
h213_txt_reply_to->labelsize(14); |
| 233 |
h213_txt_reply_to->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 234 |
h213_txt_reply_to->align(FL_ALIGN_LEFT); |
| 235 |
h213_txt_reply_to->callback(hics_changed); |
| 236 |
h213_txt_reply_to->when(FL_WHEN_CHANGED); |
| 237 |
|
| 238 |
{ Fl_Group *o = new Fl_Group(2, Y+205, 566, 50, _("Priority")); |
| 239 |
o->box(FL_ENGRAVED_FRAME); |
| 240 |
o->align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE); |
| 241 |
|
| 242 |
h213_btn_high = new Fl_Check_Button(20, Y+226, 60, 24, _("Urgent - High")); |
| 243 |
h213_btn_high->value(0); |
| 244 |
h213_btn_high->callback((Fl_Callback*)h213_cb_btn_priority); |
| 245 |
|
| 246 |
h213_btn_medium = new Fl_Check_Button(155, Y+226, 60, 24, _("Non Urgent - Medium")); |
| 247 |
h213_btn_medium->value(0); |
| 248 |
h213_btn_medium->callback((Fl_Callback*)h213_cb_btn_priority); |
| 249 |
|
| 250 |
h213_btn_low = new Fl_Check_Button(340, Y+226, 60, 24, _("Informational - Low")); |
| 251 |
h213_btn_low->value(0); |
| 252 |
h213_btn_low->callback((Fl_Callback*)h213_cb_btn_priority); |
| 253 |
|
| 254 |
o->end(); |
| 255 |
} |
| 256 |
|
| 257 |
h213_txt_facility = new Fl_Input2(80, Y+270, 480, 24, _("Facility")); |
| 258 |
h213_txt_facility->tooltip(_("")); |
| 259 |
h213_txt_facility->box(FL_DOWN_BOX); |
| 260 |
h213_txt_facility->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 261 |
h213_txt_facility->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 262 |
h213_txt_facility->labeltype(FL_NORMAL_LABEL); |
| 263 |
h213_txt_facility->labelfont(0); |
| 264 |
h213_txt_facility->labelsize(14); |
| 265 |
h213_txt_facility->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 266 |
h213_txt_facility->align(FL_ALIGN_LEFT); |
| 267 |
h213_txt_facility->callback(hics_changed); |
| 268 |
h213_txt_facility->when(FL_WHEN_CHANGED); |
| 269 |
} |
| 270 |
tab_213_grp_orig->end(); |
| 271 |
|
| 272 |
tab_213_grp_msg = new Fl_Group(0, Y+25, 570, 360, _("Message/Action")); |
| 273 |
{ |
| 274 |
h213_txt_msg = new FTextEdit(5, Y+50, 562, 155, _("Message:")); |
| 275 |
h213_txt_msg->box(FL_DOWN_FRAME); |
| 276 |
h213_txt_msg->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 277 |
h213_txt_msg->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 278 |
h213_txt_msg->labeltype(FL_NORMAL_LABEL); |
| 279 |
h213_txt_msg->labelfont(0); |
| 280 |
h213_txt_msg->labelsize(14); |
| 281 |
h213_txt_msg->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 282 |
h213_txt_msg->align(FL_ALIGN_TOP_LEFT); |
| 283 |
h213_txt_msg->callback(hics_changed); |
| 284 |
h213_txt_msg->when(FL_WHEN_CHANGED); |
| 285 |
|
| 286 |
h213_txt_action = new FTextEdit(5, Y+225, 562, 155, _("Action:")); |
| 287 |
h213_txt_action->box(FL_DOWN_FRAME); |
| 288 |
h213_txt_action->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 289 |
h213_txt_action->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 290 |
h213_txt_action->labeltype(FL_NORMAL_LABEL); |
| 291 |
h213_txt_action->labelfont(0); |
| 292 |
h213_txt_action->labelsize(14); |
| 293 |
h213_txt_action->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 294 |
h213_txt_action->align(FL_ALIGN_TOP_LEFT); |
| 295 |
h213_txt_action->callback(hics_changed); |
| 296 |
h213_txt_action->when(FL_WHEN_CHANGED); |
| 297 |
|
| 298 |
Fl_Group::current()->resizable(h213_txt_msg); |
| 299 |
} |
| 300 |
tab_213_grp_msg->end(); |
| 301 |
|
| 302 |
tab_213_grp_receipt1 = new Fl_Group(0, Y+25, 570, 360, _("Receipt 1")); |
| 303 |
{ |
| 304 |
h213_txt_rcvd_by = new Fl_Input2(80, Y+40, 480, 24, _("Rec' by")); |
| 305 |
h213_txt_rcvd_by->tooltip(_("first receipt")); |
| 306 |
h213_txt_rcvd_by->box(FL_DOWN_BOX); |
| 307 |
h213_txt_rcvd_by->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 308 |
h213_txt_rcvd_by->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 309 |
h213_txt_rcvd_by->labeltype(FL_NORMAL_LABEL); |
| 310 |
h213_txt_rcvd_by->labelfont(0); |
| 311 |
h213_txt_rcvd_by->labelsize(14); |
| 312 |
h213_txt_rcvd_by->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 313 |
h213_txt_rcvd_by->align(FL_ALIGN_LEFT); |
| 314 |
h213_txt_rcvd_by->callback(hics_changed); |
| 315 |
h213_txt_rcvd_by->when(FL_WHEN_CHANGED); |
| 316 |
|
| 317 |
h213_txt_time_rcvd = new Fl_Input2(80, Y+66, 103, 24, _("Time")); |
| 318 |
h213_txt_time_rcvd->tooltip(_("Time of receipt")); |
| 319 |
h213_txt_time_rcvd->box(FL_DOWN_BOX); |
| 320 |
h213_txt_time_rcvd->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 321 |
h213_txt_time_rcvd->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 322 |
h213_txt_time_rcvd->labeltype(FL_NORMAL_LABEL); |
| 323 |
h213_txt_time_rcvd->labelfont(0); |
| 324 |
h213_txt_time_rcvd->labelsize(14); |
| 325 |
h213_txt_time_rcvd->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 326 |
h213_txt_time_rcvd->align(FL_ALIGN_LEFT); |
| 327 |
h213_txt_time_rcvd->callback(hics_changed); |
| 328 |
h213_txt_time_rcvd->when(FL_WHEN_CHANGED); |
| 329 |
|
| 330 |
h213_btn_time1 = new Fl_Button(185, Y+68, 20, 20, _("...")); |
| 331 |
h213_btn_time1->tooltip(_("Set time now")); |
| 332 |
h213_btn_time1->callback((Fl_Callback*)h213_cb_btn_time1); |
| 333 |
|
| 334 |
h213_txt_fwd_to = new Fl_Input2(80, Y+92, 480, 24, _("Fwd to")); |
| 335 |
h213_txt_fwd_to->tooltip(_("forwarded to")); |
| 336 |
h213_txt_fwd_to->box(FL_DOWN_BOX); |
| 337 |
h213_txt_fwd_to->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 338 |
h213_txt_fwd_to->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 339 |
h213_txt_fwd_to->labeltype(FL_NORMAL_LABEL); |
| 340 |
h213_txt_fwd_to->labelfont(0); |
| 341 |
h213_txt_fwd_to->labelsize(14); |
| 342 |
h213_txt_fwd_to->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 343 |
h213_txt_fwd_to->align(FL_ALIGN_LEFT); |
| 344 |
h213_txt_fwd_to->callback(hics_changed); |
| 345 |
h213_txt_fwd_to->when(FL_WHEN_CHANGED); |
| 346 |
|
| 347 |
h213_txt_comments = new FTextEdit(5, Y+136, 562, 240, _("Comments")); |
| 348 |
h213_txt_comments->box(FL_DOWN_FRAME); |
| 349 |
h213_txt_comments->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 350 |
h213_txt_comments->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 351 |
h213_txt_comments->labeltype(FL_NORMAL_LABEL); |
| 352 |
h213_txt_comments->labelfont(0); |
| 353 |
h213_txt_comments->labelsize(14); |
| 354 |
h213_txt_comments->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 355 |
h213_txt_comments->align(FL_ALIGN_TOP_LEFT); |
| 356 |
h213_txt_comments->callback(hics_changed); |
| 357 |
h213_txt_comments->when(FL_WHEN_CHANGED); |
| 358 |
|
| 359 |
Fl_Group::current()->resizable(h213_txt_comments); |
| 360 |
|
| 361 |
} |
| 362 |
tab_213_grp_receipt1->end(); |
| 363 |
|
| 364 |
tab_213_grp_receipt2 = new Fl_Group(0, Y+25, 570, 360, _("Receipt 2")); |
| 365 |
{ |
| 366 |
h213_txt_rcvd_by2 = new Fl_Input2(80, Y+40, 480, 24, _("Rec' by")); |
| 367 |
h213_txt_rcvd_by2->tooltip(_("first receipt")); |
| 368 |
h213_txt_rcvd_by2->box(FL_DOWN_BOX); |
| 369 |
h213_txt_rcvd_by2->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 370 |
h213_txt_rcvd_by2->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 371 |
h213_txt_rcvd_by2->labeltype(FL_NORMAL_LABEL); |
| 372 |
h213_txt_rcvd_by2->labelfont(0); |
| 373 |
h213_txt_rcvd_by2->labelsize(14); |
| 374 |
h213_txt_rcvd_by2->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 375 |
h213_txt_rcvd_by2->align(FL_ALIGN_LEFT); |
| 376 |
h213_txt_rcvd_by2->callback(hics_changed); |
| 377 |
h213_txt_rcvd_by2->when(FL_WHEN_CHANGED); |
| 378 |
|
| 379 |
h213_txt_time_rcvd2 = new Fl_Input2(80, Y+66, 103, 24, _("Time")); |
| 380 |
h213_txt_time_rcvd2->tooltip(_("Time of receipt")); |
| 381 |
h213_txt_time_rcvd2->box(FL_DOWN_BOX); |
| 382 |
h213_txt_time_rcvd2->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 383 |
h213_txt_time_rcvd2->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 384 |
h213_txt_time_rcvd2->labeltype(FL_NORMAL_LABEL); |
| 385 |
h213_txt_time_rcvd2->labelfont(0); |
| 386 |
h213_txt_time_rcvd2->labelsize(14); |
| 387 |
h213_txt_time_rcvd2->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 388 |
h213_txt_time_rcvd2->align(FL_ALIGN_LEFT); |
| 389 |
h213_txt_time_rcvd2->callback(hics_changed); |
| 390 |
h213_txt_time_rcvd2->when(FL_WHEN_CHANGED); |
| 391 |
|
| 392 |
h213_btn_time2 = new Fl_Button(185, Y+68, 20, 20, _("...")); |
| 393 |
h213_btn_time2->tooltip(_("Set time now")); |
| 394 |
h213_btn_time2->callback((Fl_Callback*)h213_cb_btn_time2); |
| 395 |
|
| 396 |
h213_txt_fwd_to2 = new Fl_Input2(80, Y+92, 480, 24, _("Fwd to")); |
| 397 |
h213_txt_fwd_to2->tooltip(_("forwarded to")); |
| 398 |
h213_txt_fwd_to2->box(FL_DOWN_BOX); |
| 399 |
h213_txt_fwd_to2->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 400 |
h213_txt_fwd_to2->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 401 |
h213_txt_fwd_to2->labeltype(FL_NORMAL_LABEL); |
| 402 |
h213_txt_fwd_to2->labelfont(0); |
| 403 |
h213_txt_fwd_to2->labelsize(14); |
| 404 |
h213_txt_fwd_to2->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 405 |
h213_txt_fwd_to2->align(FL_ALIGN_LEFT); |
| 406 |
h213_txt_fwd_to2->callback(hics_changed); |
| 407 |
h213_txt_fwd_to2->when(FL_WHEN_CHANGED); |
| 408 |
|
| 409 |
h213_txt_comments2 = new FTextEdit(5, Y+136, 562, 240, _("Comments")); |
| 410 |
h213_txt_comments2->box(FL_DOWN_FRAME); |
| 411 |
h213_txt_comments2->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 412 |
h213_txt_comments2->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 413 |
h213_txt_comments2->labeltype(FL_NORMAL_LABEL); |
| 414 |
h213_txt_comments2->labelfont(0); |
| 415 |
h213_txt_comments2->labelsize(14); |
| 416 |
h213_txt_comments2->labelcolor((Fl_Color)FL_FOREGROUND_COLOR); |
| 417 |
h213_txt_comments2->align(FL_ALIGN_TOP_LEFT); |
| 418 |
h213_txt_comments2->callback(hics_changed); |
| 419 |
h213_txt_comments2->when(FL_WHEN_CHANGED); |
| 420 |
|
| 421 |
Fl_Group::current()->resizable(h213_txt_comments2); |
| 422 |
} |
| 423 |
tab_213_grp_receipt2->end(); |
| 424 |
|
| 425 |
h213_tab_type->end(); |
| 426 |
Fl_Group::current()->resizable(h213_tab_type); |
| 427 |
|
| 428 |
h213_tab->end(); |
| 429 |
|
| 430 |
h213_tab->hide(); |
| 431 |
} |