added (inactive) controls
git-svn-id: svn://anubis/misc/sierpinski-gtk@251 bd8a9e45-a331-0410-811e-c64571078777
This commit is contained in:
parent
ba473756ff
commit
94e1600456
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user