-rw-r--r-- | src/widgets.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/widgets.h b/src/widgets.h new file mode 100644 index 0000000..99936ff --- a/dev/null +++ b/src/widgets.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef __N_WIDGETS_H | ||
2 | #define __N_WIDGETS_H | ||
3 | |||
4 | #include <gtkmm/box.h> | ||
5 | #include <gtkmm/label.h> | ||
6 | #include <gtkmm/separator.h> | ||
7 | #include <gtkmm/table.h> | ||
8 | #include "sleep_timeline.h" | ||
9 | |||
10 | namespace napkin { | ||
11 | namespace gtk { | ||
12 | |||
13 | class hypnoinfo_t : public Gtk::VBox { | ||
14 | public: | ||
15 | Gtk::Label l_date; | ||
16 | Gtk::HSeparator l_hseparator; | ||
17 | Gtk::Table w_upper; | ||
18 | Gtk::Label lc_tobed, lc_timeline, lc_alarm, lc_window; | ||
19 | Gtk::Label lf_tobed, lf_alarm, lf_window; | ||
20 | sleep_timeline_t st_timeline; | ||
21 | Gtk::Label lc_almost_awakes; | ||
22 | Gtk::Label lf_almost_awakes; | ||
23 | Gtk::Label l_data_a; | ||
24 | |||
25 | hypnoinfo_t(); | ||
26 | |||
27 | void update_data(const hypnodata_ptr_t& hd); | ||
28 | }; | ||
29 | |||
30 | } | ||
31 | } | ||
32 | |||
33 | #endif /* __N_WIDGETS_H */ | ||