#include "MyWin.hh" MyWin::MyWin() :main_box(Gtk::ORIENTATION_VERTICAL,5), btnbox(Gtk::ORIENTATION_HORIZONTAL,5), btnopen("Open Image") { //Add Widgets set_default_size(800,450); set_icon_name("org.gtk.daleclack"); //Scrolled Window sw.set_policy(Gtk::POLICY_AUTOMATIC,Gtk::POLICY_AUTOMATIC); sw.add(image_area); main_box.pack_start(sw); //Initalize Scale m_adjustment = Gtk::Adjustment::create(1.0,0.1,10.0,0.1,0.1); scale.set_default_direction(Gtk::TEXT_DIR_LTR); scale.set_adjustment(m_adjustment); //Add control widgets btnbox.pack_start(scale); btnbox.pack_start(btnopen,Gtk::PACK_SHRINK); main_box.pack_start(btnbox,Gtk::PACK_SHRINK); btnopen.signal_clicked().connect(sigc::mem_fun(*this,&MyWin::btnopen_clicked)); add(main_box); show_all_children(); } void MyWin::btnopen_clicked(){ } void MyWin::dialog_response(int response_id){ }