| 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 |
#include "combo.h" |
| 28 |
|
| 29 |
Fl_Group *tab_custom_transfer = (Fl_Group *)0; |
| 30 |
|
| 31 |
Fl_ListBox *custom_selector = (Fl_ListBox *)0; |
| 32 |
Fl_Output *txt_rcvd_custom_html_filename = (Fl_Output *)0; |
| 33 |
Fl_Button *btn_save_custom_html_file = (Fl_Button *)0; |
| 34 |
|
| 35 |
void create_custom_transfer_tab() |
| 36 |
{ |
| 37 |
tab_custom_transfer = new Fl_Group(0, tab_top, 570, 380); |
| 38 |
tab_custom_transfer->align(FL_ALIGN_TOP); |
| 39 |
|
| 40 |
Fl_Group *TransmitGroup = new Fl_Group(2, tab_top + 30, 566, 80, _("Transmit Custom FORM for transfer")); |
| 41 |
TransmitGroup->box(FL_ENGRAVED_BOX); |
| 42 |
TransmitGroup->align(FL_ALIGN_TOP | FL_ALIGN_INSIDE); |
| 43 |
|
| 44 |
custom_selector = new Fl_ListBox( 10, tab_top + 65, 480, 24, _("Select custom form")); |
| 45 |
custom_selector->align(FL_ALIGN_TOP_LEFT); |
| 46 |
load_custom_transfer(); |
| 47 |
custom_selector->callback((Fl_Callback*)cb_btn_select_custom_html); |
| 48 |
|
| 49 |
TransmitGroup->end(); |
| 50 |
|
| 51 |
Fl_Group *ReceiveGroup = new Fl_Group(2, tab_top + 115, 566, 80, _("Receive Custom FORM")); |
| 52 |
ReceiveGroup->box(FL_ENGRAVED_BOX); |
| 53 |
ReceiveGroup->align(FL_ALIGN_TOP | FL_ALIGN_INSIDE); |
| 54 |
|
| 55 |
txt_rcvd_custom_html_filename = new Fl_Output(10, tab_top + 150, 480, 24, _("Received custom form")); |
| 56 |
txt_rcvd_custom_html_filename->align(FL_ALIGN_TOP_LEFT); |
| 57 |
txt_rcvd_custom_html_filename->tooltip(""); |
| 58 |
|
| 59 |
btn_save_custom_html_file = new Fl_Button(495, tab_top + 150, 70, 24, _("Save")); |
| 60 |
btn_save_custom_html_file->tooltip(_("Export data to file")); |
| 61 |
btn_save_custom_html_file->callback((Fl_Callback*)cb_save_custom_html); |
| 62 |
|
| 63 |
ReceiveGroup->end(); |
| 64 |
|
| 65 |
tab_custom_transfer->end(); |
| 66 |
tab_custom_transfer->hide(); |
| 67 |
} |
| 68 |
|