00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #if defined __GNUC__ && __GNUC__ < 3
00012 #error This program will crash if compiled with g++ 2.x
00013
00014 #endif //
00015 #include "config.h"
00016 #include <gtkmmconfig.h>
00017 #if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2
00018 #define GMM_GTKMM_22_24(a,b) b
00019 #else //gtkmm 2.2
00020 #define GMM_GTKMM_22_24(a,b) a
00021 #endif //
00022 #include "window2_glade.hh"
00023 #include <gdk/gdkkeysyms.h>
00024 #include <gtkmm/accelgroup.h>
00025 #include <gtkmm/adjustment.h>
00026
00027 window2_glade::window2_glade(
00028 )
00029 { window2 = this;
00030 gmm_data = new GlademmData(get_accel_group());
00031 treeview2 = Gtk::manage(new class Gtk::TreeView());
00032 scrolledwindow5 = Gtk::manage(new class Gtk::ScrolledWindow());
00033 label62 = Gtk::manage(new class Gtk::Label("From:"));
00034
00035 Gtk::Adjustment *from_sb_adj = Gtk::manage(new class Gtk::Adjustment(0, 0, 1000000, 1, 10, 0));
00036 from_sb = Gtk::manage(new class Gtk::SpinButton(*from_sb_adj, 1, 0));
00037 label63 = Gtk::manage(new class Gtk::Label("To:"));
00038
00039 Gtk::Adjustment *to_sb_adj = Gtk::manage(new class Gtk::Adjustment(1, 0, 1000000, 1, 10, 0));
00040 to_sb = Gtk::manage(new class Gtk::SpinButton(*to_sb_adj, 1, 0));
00041 hbox16 = Gtk::manage(new class Gtk::HBox(false, 0));
00042 alignment7 = Gtk::manage(new class Gtk::Alignment());
00043 image10 = Gtk::manage(new class Gtk::Image(Gtk::StockID("gtk-copy"), Gtk::IconSize(Gtk::ICON_SIZE_BUTTON)));
00044 label98 = Gtk::manage(new class Gtk::Label("Copy"));
00045 hbox27 = Gtk::manage(new class Gtk::HBox(false, 2));
00046 alignment26 = Gtk::manage(new class Gtk::Alignment());
00047 button10 = Gtk::manage(new class Gtk::Button());
00048 image11 = Gtk::manage(new class Gtk::Image(Gtk::StockID("gtk-yes"), Gtk::IconSize(Gtk::ICON_SIZE_BUTTON)));
00049 label99 = Gtk::manage(new class Gtk::Label("Apply"));
00050 hbox28 = Gtk::manage(new class Gtk::HBox(false, 2));
00051 alignment27 = Gtk::manage(new class Gtk::Alignment());
00052 button11 = Gtk::manage(new class Gtk::Button());
00053 image12 = Gtk::manage(new class Gtk::Image(Gtk::StockID("gtk-home"), Gtk::IconSize(Gtk::ICON_SIZE_BUTTON)));
00054 label100 = Gtk::manage(new class Gtk::Label("Reset"));
00055 hbox29 = Gtk::manage(new class Gtk::HBox(false, 2));
00056 alignment28 = Gtk::manage(new class Gtk::Alignment());
00057 button20 = Gtk::manage(new class Gtk::Button());
00058 image13 = Gtk::manage(new class Gtk::Image(Gtk::StockID("gtk-zoom-fit"), Gtk::IconSize(Gtk::ICON_SIZE_BUTTON)));
00059 label101 = Gtk::manage(new class Gtk::Label("EFZ"));
00060 hbox30 = Gtk::manage(new class Gtk::HBox(false, 2));
00061 alignment29 = Gtk::manage(new class Gtk::Alignment());
00062 button21 = Gtk::manage(new class Gtk::Button());
00063 image14 = Gtk::manage(new class Gtk::Image(Gtk::StockID("gtk-cut"), Gtk::IconSize(Gtk::ICON_SIZE_BUTTON)));
00064 label102 = Gtk::manage(new class Gtk::Label("Cut"));
00065 hbox31 = Gtk::manage(new class Gtk::HBox(false, 2));
00066 alignment30 = Gtk::manage(new class Gtk::Alignment());
00067 button22 = Gtk::manage(new class Gtk::Button());
00068 image15 = Gtk::manage(new class Gtk::Image(Gtk::StockID("gtk-close"), Gtk::IconSize(Gtk::ICON_SIZE_BUTTON)));
00069 label103 = Gtk::manage(new class Gtk::Label("Close"));
00070 hbox32 = Gtk::manage(new class Gtk::HBox(false, 2));
00071 alignment31 = Gtk::manage(new class Gtk::Alignment());
00072 button12 = Gtk::manage(new class Gtk::Button());
00073 hbox15 = Gtk::manage(new class Gtk::HBox(false, 0));
00074 vbox8 = Gtk::manage(new class Gtk::VBox(false, 0));
00075 treeview2->set_events(Gdk::BUTTON_PRESS_MASK);
00076 treeview2->set_flags(Gtk::CAN_FOCUS);
00077 scrolledwindow5->set_flags(Gtk::CAN_FOCUS);
00078 scrolledwindow5->set_shadow_type(Gtk::SHADOW_IN);
00079 scrolledwindow5->set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC);
00080 scrolledwindow5->add(*treeview2);
00081 label62->unset_flags(Gtk::CAN_FOCUS);
00082 from_sb->set_flags(Gtk::CAN_FOCUS);
00083 label63->unset_flags(Gtk::CAN_FOCUS);
00084 to_sb->set_flags(Gtk::CAN_FOCUS);
00085 hbox16->unset_flags(Gtk::CAN_FOCUS);
00086 hbox16->pack_start(*label62, Gtk::PACK_SHRINK, 0);
00087 hbox16->pack_start(*from_sb);
00088 hbox16->pack_start(*label63, Gtk::PACK_SHRINK, 0);
00089 hbox16->pack_start(*to_sb);
00090 alignment7->unset_flags(Gtk::CAN_FOCUS);
00091 alignment7->add(*hbox16);
00092 image10->unset_flags(Gtk::CAN_FOCUS);
00093 label98->unset_flags(Gtk::CAN_FOCUS);
00094 hbox27->unset_flags(Gtk::CAN_FOCUS);
00095 hbox27->pack_start(*image10, Gtk::PACK_SHRINK, 0);
00096 hbox27->pack_start(*label98);
00097 alignment26->unset_flags(Gtk::CAN_FOCUS);
00098 alignment26->add(*hbox27);
00099 button10->set_size_request(80,-1);
00100 button10->set_flags(Gtk::CAN_FOCUS);
00101 button10->add(*alignment26);
00102 image11->unset_flags(Gtk::CAN_FOCUS);
00103 label99->unset_flags(Gtk::CAN_FOCUS);
00104 hbox28->unset_flags(Gtk::CAN_FOCUS);
00105 hbox28->pack_start(*image11, Gtk::PACK_SHRINK, 0);
00106 hbox28->pack_start(*label99, Gtk::PACK_SHRINK, 0);
00107 alignment27->unset_flags(Gtk::CAN_FOCUS);
00108 alignment27->add(*hbox28);
00109 button11->set_size_request(80,-1);
00110 button11->set_flags(Gtk::CAN_FOCUS);
00111 button11->add(*alignment27);
00112 image12->unset_flags(Gtk::CAN_FOCUS);
00113 label100->unset_flags(Gtk::CAN_FOCUS);
00114 hbox29->unset_flags(Gtk::CAN_FOCUS);
00115 hbox29->pack_start(*image12, Gtk::PACK_SHRINK, 0);
00116 hbox29->pack_start(*label100, Gtk::PACK_SHRINK, 0);
00117 alignment28->unset_flags(Gtk::CAN_FOCUS);
00118 alignment28->add(*hbox29);
00119 button20->set_size_request(80,-1);
00120 button20->set_flags(Gtk::CAN_FOCUS);
00121 button20->add(*alignment28);
00122 image13->unset_flags(Gtk::CAN_FOCUS);
00123 label101->unset_flags(Gtk::CAN_FOCUS);
00124 hbox30->unset_flags(Gtk::CAN_FOCUS);
00125 hbox30->pack_start(*image13, Gtk::PACK_SHRINK, 0);
00126 hbox30->pack_start(*label101, Gtk::PACK_SHRINK, 0);
00127 alignment29->unset_flags(Gtk::CAN_FOCUS);
00128 alignment29->add(*hbox30);
00129 button21->set_size_request(80,-1);
00130 button21->set_flags(Gtk::CAN_FOCUS);
00131 button21->add(*alignment29);
00132 image14->unset_flags(Gtk::CAN_FOCUS);
00133 label102->unset_flags(Gtk::CAN_FOCUS);
00134 hbox31->unset_flags(Gtk::CAN_FOCUS);
00135 hbox31->pack_start(*image14, Gtk::PACK_SHRINK, 0);
00136 hbox31->pack_start(*label102, Gtk::PACK_SHRINK, 0);
00137 alignment30->unset_flags(Gtk::CAN_FOCUS);
00138 alignment30->add(*hbox31);
00139 button22->set_size_request(80,-1);
00140 button22->set_flags(Gtk::CAN_FOCUS);
00141 button22->add(*alignment30);
00142 image15->unset_flags(Gtk::CAN_FOCUS);
00143 label103->unset_flags(Gtk::CAN_FOCUS);
00144 hbox32->unset_flags(Gtk::CAN_FOCUS);
00145 hbox32->pack_start(*image15, Gtk::PACK_SHRINK, 0);
00146 hbox32->pack_start(*label103, Gtk::PACK_SHRINK, 0);
00147 alignment31->unset_flags(Gtk::CAN_FOCUS);
00148 alignment31->add(*hbox32);
00149 button12->set_size_request(80,-1);
00150 button12->set_flags(Gtk::CAN_FOCUS);
00151 button12->add(*alignment31);
00152 hbox15->unset_flags(Gtk::CAN_FOCUS);
00153 hbox15->pack_start(*button10);
00154 hbox15->pack_start(*button11);
00155 hbox15->pack_start(*button20);
00156 hbox15->pack_start(*button21);
00157 hbox15->pack_start(*button22);
00158 hbox15->pack_start(*button12);
00159 vbox8->unset_flags(Gtk::CAN_FOCUS);
00160 vbox8->pack_start(*scrolledwindow5);
00161 vbox8->pack_start(*alignment7, Gtk::PACK_SHRINK, 0);
00162 vbox8->pack_start(*hbox15, Gtk::PACK_SHRINK, 0);
00163 window2->unset_flags(Gtk::CAN_FOCUS);
00164 window2->set_title("Statistics");
00165 window2->add(*vbox8);
00166 treeview2->show();
00167 scrolledwindow5->show();
00168 label62->show();
00169 from_sb->show();
00170 label63->show();
00171 to_sb->show();
00172 hbox16->show();
00173 alignment7->show();
00174 image10->show();
00175 label98->show();
00176 hbox27->show();
00177 alignment26->show();
00178 button10->show();
00179 image11->show();
00180 label99->show();
00181 hbox28->show();
00182 alignment27->show();
00183 button11->show();
00184 image12->show();
00185 label100->show();
00186 hbox29->show();
00187 alignment28->show();
00188 button20->show();
00189 image13->show();
00190 label101->show();
00191 hbox30->show();
00192 alignment29->show();
00193 button21->show();
00194 image14->show();
00195 label102->show();
00196 hbox31->show();
00197 alignment30->show();
00198 button22->show();
00199 image15->show();
00200 label103->show();
00201 hbox32->show();
00202 alignment31->show();
00203 button12->show();
00204 hbox15->show();
00205 vbox8->show();
00206 window2->show();
00207 treeview2->signal_button_press_event().connect(sigc::mem_fun(*this, &window2_glade::on_treeview2_button_press_event), false);
00208 button10->signal_clicked().connect(sigc::mem_fun(*this, &window2_glade::on_button10_clicked), false);
00209 button11->signal_clicked().connect(sigc::mem_fun(*this, &window2_glade::on_button11_clicked), false);
00210 button20->signal_clicked().connect(sigc::mem_fun(*this, &window2_glade::on_button20_clicked), false);
00211 button21->signal_clicked().connect(sigc::mem_fun(*this, &window2_glade::on_button21_clicked), false);
00212 button22->signal_clicked().connect(sigc::mem_fun(*this, &window2_glade::on_button22_clicked), false);
00213 button12->signal_clicked().connect(sigc::mem_fun(*this, &window2_glade::on_button12_clicked), false);
00214 }
00215
00216 window2_glade::~window2_glade()
00217 { delete gmm_data;
00218 }