added (inactive) controls

git-svn-id: svn://anubis/misc/sierpinski-gtk@251 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
josh 2010-10-21 21:24:00 +00:00
parent ba473756ff
commit 94e1600456

View File

@ -7,6 +7,8 @@
#include <gtkmm/main.h>
#include <gtkmm/window.h>
#include <gtkmm/box.h>
#include <gtkmm/button.h>
#include <gtkmm/entry.h>
#include <gtkglmm.h>
#include "SierpinskiDA.h"
@ -44,6 +46,15 @@ int main(int argc, char * argv[])
Gtk::VBox vbox;
SierpinskiDA da(glconfig);
vbox.pack_start(da);
Gtk::HBox hbox;
Gtk::Label lbl("# of points:");
hbox.pack_start(lbl, false, false);
Gtk::Entry num_points_e;
hbox.pack_start(num_points_e, true, true);
Gtk::Button regenerate_btn("_Regenerate", true);
hbox.pack_start(regenerate_btn, false, false);
vbox.pack_start(hbox, Gtk::PACK_SHRINK);
mw.add(vbox);
mw.show_all();