summaryrefslogtreecommitdiffabout
path: root/src/widgets.h
blob: 99936ff37e46cbc11588f405f30d94ab52ee5ba1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef __N_WIDGETS_H
#define __N_WIDGETS_H

#include <gtkmm/box.h>
#include <gtkmm/label.h>
#include <gtkmm/separator.h>
#include <gtkmm/table.h>
#include "sleep_timeline.h"

namespace napkin {
    namespace gtk {

	class hypnoinfo_t : public Gtk::VBox {
	    public:
		Gtk::Label l_date;
		Gtk::HSeparator l_hseparator;
		Gtk::Table w_upper;
		Gtk::Label lc_tobed, lc_timeline, lc_alarm, lc_window;
		Gtk::Label lf_tobed, lf_alarm, lf_window;
		sleep_timeline_t st_timeline;
		Gtk::Label lc_almost_awakes;
		Gtk::Label lf_almost_awakes;
		Gtk::Label l_data_a;

		hypnoinfo_t();

		void update_data(const hypnodata_ptr_t& hd);
	};

    }
}

#endif /* __N_WIDGETS_H */