| 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 *tab_dnd = (Fl_Group *)0; |
| 29 |
Fl_Input *drop_box = (Fl_Input *)0; |
| 30 |
|
| 31 |
static void cb_drop_box(Fl_Input*, void*) { |
| 32 |
drop_box_changed(); |
| 33 |
} |
| 34 |
|
| 35 |
void create_dnd_tab() |
| 36 |
{ |
| 37 |
tab_dnd = new Fl_Group(0, tab_top, 570, 380); |
| 38 |
Fl_Box *b = new Fl_Box(50, 50, 470, 80, |
| 39 |
_( |
| 40 |
"flmsg data files, wrapped data files and/or\n\ |
| 41 |
data file text may be imported.")); |
| 42 |
b->box(FL_FLAT_BOX); |
| 43 |
b->align(FL_ALIGN_CENTER); |
| 44 |
drop_box = new Fl_Input(175, 135, 220, 220, _("^Drop Text/File Here^")); |
| 45 |
drop_box->callback((Fl_Callback*)cb_drop_box); |
| 46 |
drop_box->box(FL_DOWN_BOX); |
| 47 |
drop_box->value(""); |
| 48 |
drop_box->labeltype(FL_NORMAL_LABEL); |
| 49 |
drop_box->labelfont(0); |
| 50 |
drop_box->labelsize(16); |
| 51 |
drop_box->color((Fl_Color)FL_BACKGROUND2_COLOR); |
| 52 |
drop_box->selection_color((Fl_Color)FL_SELECTION_COLOR); |
| 53 |
drop_box->align(FL_ALIGN_BOTTOM | FL_ALIGN_CENTER); |
| 54 |
drop_box->when(FL_WHEN_CHANGED); |
| 55 |
|
| 56 |
tab_dnd->end(); |
| 57 |
|
| 58 |
tab_dnd->hide(); |
| 59 |
} |