src/relpipe-out-gui.cpp
branchv_0
changeset 4 b2c40d783699
parent 2 bca03092cdb6
equal deleted inserted replaced
3:9236822bfc0e 4:b2c40d783699
    37 	auto app = Gtk::Application::create(argc, argv, "org.gtkmm.examples.base");
    37 	auto app = Gtk::Application::create(argc, argv, "org.gtkmm.examples.base");
    38 	Gtk::Window window;
    38 	Gtk::Window window;
    39 	window.set_default_size(640, 480);
    39 	window.set_default_size(640, 480);
    40 	window.set_title("relpipe-out-gui.gtk");
    40 	window.set_title("relpipe-out-gui.gtk");
    41 
    41 
       
    42 	Gtk::Notebook notebook;
       
    43 
       
    44 	Gtk::TreeModelColumnRecord columns;
       
    45 	Gtk::TreeModelColumn<Glib::ustring> m_col_text;
       
    46 	Gtk::TreeModelColumn<int> m_col_number;
       
    47 	columns.add(m_col_text);
       
    48 	columns.add(m_col_number);
       
    49 	
       
    50 
       
    51 	auto model = Gtk::ListStore::create(columns);
       
    52 	
       
    53 	Gtk::TreeView table(model);
       
    54 	table.set_headers_visible(true);
       
    55 	notebook.append_page(table, "TreeView");
       
    56 	
       
    57 	
       
    58 	Gtk::CheckButton b1;
       
    59 	b1.set_label("hello");
       
    60 
       
    61 	notebook.append_page(b1, "CheckButton");
       
    62 
       
    63 
       
    64 	notebook.show_all();
       
    65 	window.add(notebook);
    42 	return app->run(window);
    66 	return app->run(window);
    43 }
    67 }