Debian Codegraph @

src/include/flmisc.h

raw
1 // ----------------------------------------------------------------------------
2 // flmisc.h
3 //
4 // Copyright (C) 2018
5 // David Freese, W1HKJ
6 //
7 // This file is part of flmsg.
8 //
9 // Fldigi is free software: you can redistribute it and/or modify
10 // it under the terms of the GNU General Public License as published by
11 // the Free Software Foundation, either version 3 of the License, or
12 // (at your option) any later version.
13 //
14 // Fldigi is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 // GNU General Public License for more details.
18 //
19 // You should have received a copy of the GNU General Public License
20 // along with fldigi. If not, see <http://www.gnu.org/licenses/>.
21 // ----------------------------------------------------------------------------
22
23 #ifndef fl_misc_h_
24 #define fl_misc_h_
25
26 #include <config.h>
27
28 #include <FL/Enumerations.H>
29 #include <FL/Fl_Menu_Item.H>
30 #include <FL/Fl_Window.H>
31 #include <FL/Fl_Box.H>
32 #include <FL/Fl_Dial.H>
33 #include <FL/Fl_Dial.H>
34 #include <FL/Fl_Return_Button.H>
35 #include "flinput2.h"
36
37 class notify_dialog : public Fl_Window
38 {
39 Fl_Box icon;
40 Fl_Input2 message;
41 Fl_Dial dial;
42 Fl_Return_Button button;
43 Fl_Box resize_box;
44 bool delete_on_hide;
45
46 public:
47 notify_dialog(int X = 410, int Y = 103, const char* l = 0);
48 ~notify_dialog();
49 int handle(int event);
50 Fl_Button* make_button(int W, int H = 23);
51 void notify(const char* msg, double timeout, bool delete_on_hide_ = false);
52 private:
53 static void button_cb(Fl_Widget* w, void*);
54 static void dial_timer(void* arg);
55 int newx;
56 };
57
58 #endif // fl_misc_h_