Debian Codegraph @

src/blank-dnd/blank_tab.cxx

raw
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_blank = (Fl_Group *)0;
29 FTextEdit *txt_blank_msg = (FTextEdit *)0;
30
31 static void blank_changed(FTextEdit*, void*)
32 {
33 estimate();
34 }
35
36 void create_blank_tab()
37 {
38 tab_blank = new Fl_Group(0, tab_top, 570, 380);
39 tab_blank->align(FL_ALIGN_TOP);
40
41 // txt_blank_msg = new FTextEdit(4, 50, 562, 370);
42 txt_blank_msg = new FTextEdit(2, tab_blank->y() + 4, tab_blank->w() - 4, tab_blank->h() - 6);
43 txt_blank_msg->box(FL_DOWN_FRAME);
44 txt_blank_msg->color((Fl_Color)FL_BACKGROUND2_COLOR);
45 txt_blank_msg->selection_color((Fl_Color)FL_SELECTION_COLOR);
46 txt_blank_msg->labeltype(FL_NORMAL_LABEL);
47 txt_blank_msg->labelfont(0);
48 txt_blank_msg->labelsize(14);
49 txt_blank_msg->labelcolor((Fl_Color)FL_FOREGROUND_COLOR);
50 txt_blank_msg->align(FL_ALIGN_TOP_LEFT);
51 txt_blank_msg->callback((Fl_Callback*)blank_changed);
52 txt_blank_msg->when(FL_WHEN_CHANGED);
53 Fl_Group::current()->resizable(txt_blank_msg);
54 tab_blank->end();
55 tab_blank->hide();
56 }