demo GTK controls v_0 v0.15
authorFrantišek Kučera <franta-hg@frantovo.cz>
Tue, 03 Dec 2019 16:24:22 +0100
branchv_0
changeset 4 b2c40d783699
parent 3 9236822bfc0e
child 5 c33bb7db854d
demo GTK controls
src/relpipe-out-gui.cpp
--- a/src/relpipe-out-gui.cpp	Wed Oct 30 16:47:43 2019 +0100
+++ b/src/relpipe-out-gui.cpp	Tue Dec 03 16:24:22 2019 +0100
@@ -39,5 +39,29 @@
 	window.set_default_size(640, 480);
 	window.set_title("relpipe-out-gui.gtk");
 
+	Gtk::Notebook notebook;
+
+	Gtk::TreeModelColumnRecord columns;
+	Gtk::TreeModelColumn<Glib::ustring> m_col_text;
+	Gtk::TreeModelColumn<int> m_col_number;
+	columns.add(m_col_text);
+	columns.add(m_col_number);
+	
+
+	auto model = Gtk::ListStore::create(columns);
+	
+	Gtk::TreeView table(model);
+	table.set_headers_visible(true);
+	notebook.append_page(table, "TreeView");
+	
+	
+	Gtk::CheckButton b1;
+	b1.set_label("hello");
+
+	notebook.append_page(b1, "CheckButton");
+
+
+	notebook.show_all();
+	window.add(notebook);
 	return app->run(window);
 }