diff --git a/sierpinski-gtk.cc b/sierpinski-gtk.cc index f536adb..b0c21f7 100644 --- a/sierpinski-gtk.cc +++ b/sierpinski-gtk.cc @@ -7,6 +7,8 @@ #include #include #include +#include +#include #include #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();