Debian Codegraph @

examples/book/listbox_flowbox/listbox/examplewindow.h

raw
1 /* gtkmm example Copyright (C) 2013 gtkmm development team
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 #ifndef GTKMM_EXAMPLEWINDOW_H
18 #define GTKMM_EXAMPLEWINDOW_H
19
20 #include <gtkmm.h>
21 #include "examplerow.h"
22
23 class ExampleWindow : public Gtk::Window
24 {
25 public:
26 ExampleWindow();
27
28 private:
29 // Signal handlers.
30 void on_selection_mode_changed();
31 void on_single_click_toggled();
32 void on_row_selected(Gtk::ListBoxRow* row);
33 void on_row_activated(Gtk::ListBoxRow* row);
34 void on_sort_clicked();
35 void on_reverse_sort_clicked();
36 void on_change_clicked();
37 void on_filter_clicked();
38 //void on_unfilter_clicked();
39 void on_add_clicked();
40 void on_separate_clicked();
41 void on_unseparate_clicked();
42 void on_visibility_clicked();
43
44 static int sort_func(Gtk::ListBoxRow* row1, Gtk::ListBoxRow* row2);
45 static void update_header_func(Gtk::ListBoxRow* row, Gtk::ListBoxRow* before);
46
47 // Member data.
48 Gtk::Box m_HBox;
49 Gtk::Box m_VBox1;
50 Gtk::Box m_VBox2;
51 Gtk::ListBox m_ListBox;
52 Gtk::DropDown m_DropDown;
53 Gtk::CheckButton m_CheckButton_SingleClick;
54 Gtk::ScrolledWindow m_ScrolledWindow;
55 ExampleRow m_Row3;
56 Gtk::Box m_VBox_Row;
57 Gtk::Box m_HBox_Row;
58 Gtk::Label m_Label_Row;
59 Gtk::CheckButton m_CheckButton_Row1;
60 Gtk::CheckButton m_CheckButton_Row2;
61 Gtk::Button m_Button_Row1;
62 Gtk::Button m_Button_Row2;
63 Gtk::Button m_Button_Sort;
64 Gtk::Button m_Button_ReverseSort;
65 Gtk::Button m_Button_Change;
66 Gtk::Button m_Button_Filter;
67 Gtk::Button m_Button_Unfilter;
68 Gtk::Button m_Button_Add;
69 Gtk::Button m_Button_Separate;
70 Gtk::Button m_Button_Unseparate;
71 Gtk::Button m_Button_Visibility;
72 };
73
74 #endif // GTKMM_EXAMPLEWINDOW_H