-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainWindow.h
executable file
·43 lines (33 loc) · 924 Bytes
/
MainWindow.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
43
#ifndef GTKMM_MainWindow_H
#define GTKMM_MainWindow_H
#include <gtkmm.h>
#include "AddWindow.h"
#include "ModelColumns.h"
class MainWindow : public Gtk::Window
{
public:
MainWindow();
virtual ~MainWindow();
protected:
//Signal handlers:
void on_button_quit();
void on_button_add_task();
void on_addtask_done();
void RefreshList();
ModelColumns m_Columns;
//Child widgets:
Gtk::Box m_VBox;
Gtk::ScrolledWindow m_ScrolledWindow;
Gtk::TreeView m_TreeView;
Glib::RefPtr<Gtk::ListStore> m_refTreeModel;
Gtk::ButtonBox m_ButtonBox;
Gtk::Button m_Button_Quit;
Gtk::Button m_Button_AddTask;
//For the validated column:
//You could also use a CellRendererSpin or a CellRendererProgress:
Gtk::CellRendererText m_cellrenderer_validated;
Gtk::TreeView::Column m_treeviewcolumn_validated;
bool m_validate_retry;
Glib::ustring m_invalid_text_for_retry;
};
#endif //GTKMM_MainWindow_H