-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdetailview.h
42 lines (28 loc) · 858 Bytes
/
detailview.h
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
34
35
36
37
38
39
40
41
42
#ifndef CALENDARI__DETAIL_VIEW_H
#define CALENDARI__DETAIL_VIEW_H 1
#include <gtk/gtk.h>
namespace calendari {
class Calendari;
class Occurrence;
struct DetailView
{
Calendari& cal;
GtkEntry* title_entry;
GtkEntry* start_entry;
GtkEntry* end_entry;
GtkComboBox* calendar_combobox;
GtkComboBox* repeat_combobox;
GtkListStore* repeat_liststore;
GtkTextView* textview;
DetailView(Calendari& c): cal(c) {}
/** Populate members. */
void build(Calendari* cal, GtkBuilder* builder);
void clear(void);
void select(Occurrence* occ);
void moved(Occurrence* occ);
void entry_cb(GtkEntry* entry, calendari::Calendari* cal);
void combobox_cb(GtkComboBox* cb, calendari::Calendari* cal);
void textview_cb(GtkTextView* tv, calendari::Calendari* cal);
};
} // end namespace
#endif // CALENDARI__DETAIL_VIEW_H