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 "rec_param_dlg_glade.hh"
00023 #include <gdk/gdkkeysyms.h>
00024 #include <gtkmm/accelgroup.h>
00025 #include <gtkmm/adjustment.h>
00026 #include <gtkmm/radiobutton.h>
00027
00028 rec_param_dlg_glade::rec_param_dlg_glade(
00029 )
00030 { rec_param_dlg = this;
00031 gmm_data = new GlademmData(get_accel_group());
00032 cancelbutton1 = Gtk::manage(new class Gtk::Button(Gtk::StockID("gtk-cancel")));
00033 ok_btn = Gtk::manage(new class Gtk::Button(Gtk::StockID("gtk-ok")));
00034 label47 = Gtk::manage(new class Gtk::Label("Number of Nodes"));
00035
00036 Gtk::Adjustment *num_node_spin_adj = Gtk::manage(new class Gtk::Adjustment(4, 0, 100, 1, 0, 0));
00037 num_node_spin = Gtk::manage(new class Gtk::SpinButton(*num_node_spin_adj, 1, 0));
00038
00039 Gtk::RadioButton::Group _RadioBGroup_real_rb;
00040 real_rb = Gtk::manage(new class Gtk::RadioButton(_RadioBGroup_real_rb, "Linux"));
00041 marte_rb = Gtk::manage(new class Gtk::RadioButton(_RadioBGroup_real_rb, "MaRTE OS"));
00042 shmem_rb = Gtk::manage(new class Gtk::RadioButton(_RadioBGroup_real_rb, "Shared Memory"));
00043 shmem_file = Gtk::manage(new class Gtk::Entry());
00044 shmem_btn = Gtk::manage(new class Gtk::Button("..."));
00045 hbox23 = Gtk::manage(new class Gtk::HBox(false, 0));
00046 compile_cb = Gtk::manage(new class Gtk::CheckButton("Compile "));
00047 exec_cb = Gtk::manage(new class Gtk::CheckButton("Execute "));
00048 log_cb = Gtk::manage(new class Gtk::CheckButton("Log"));
00049 hbox24 = Gtk::manage(new class Gtk::HBox(false, 0));
00050 param_txt = Gtk::manage(new class Gtk::Entry());
00051 alignment23 = Gtk::manage(new class Gtk::Alignment());
00052 label95 = Gtk::manage(new class Gtk::Label(""));
00053 frame14 = Gtk::manage(new class Gtk::Frame());
00054 label94 = Gtk::manage(new class Gtk::Label("Parameters"));
00055 #if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2
00056 expander1 = Gtk::manage(new class Gtk::Expander());
00057 #else //
00058 expander1 = Gtk::manage(new class Gtk::HandleBox());
00059 #endif //
00060 vbox19 = Gtk::manage(new class Gtk::VBox(false, 0));
00061 alignment20 = Gtk::manage(new class Gtk::Alignment());
00062 label91 = Gtk::manage(new class Gtk::Label("<b>Local</b>"));
00063 frame13 = Gtk::manage(new class Gtk::Frame());
00064 vbox18 = Gtk::manage(new class Gtk::VBox(false, 0));
00065 alignment16 = Gtk::manage(new class Gtk::Alignment());
00066 label86 = Gtk::manage(new class Gtk::Label("<b>Online</b>"));
00067 frame9 = Gtk::manage(new class Gtk::Frame());
00068 vbox17 = Gtk::manage(new class Gtk::VBox(false, 0));
00069 filename_txt = Gtk::manage(new class Gtk::Entry());
00070 shmem_btn1 = Gtk::manage(new class Gtk::Button("..."));
00071 hbox1 = Gtk::manage(new class Gtk::HBox(false, 0));
00072 vbox1 = Gtk::manage(new class Gtk::VBox(false, 0));
00073 alignment1 = Gtk::manage(new class Gtk::Alignment());
00074 label3 = Gtk::manage(new class Gtk::Label("<b>Filename</b>"));
00075 frame1 = Gtk::manage(new class Gtk::Frame());
00076 vbox6 = Gtk::manage(new class Gtk::VBox(false, 0));
00077 cancelbutton1->set_flags(Gtk::CAN_FOCUS);
00078 cancelbutton1->set_flags(Gtk::CAN_DEFAULT);
00079 ok_btn->set_flags(Gtk::CAN_FOCUS);
00080 ok_btn->set_flags(Gtk::CAN_DEFAULT);
00081 rec_param_dlg->get_action_area()->unset_flags(Gtk::CAN_FOCUS);
00082 rec_param_dlg->get_action_area()->property_layout_style().set_value(Gtk::BUTTONBOX_SPREAD);
00083 label47->unset_flags(Gtk::CAN_FOCUS);
00084 num_node_spin->set_flags(Gtk::CAN_FOCUS);
00085 num_node_spin->set_numeric(true);
00086 real_rb->set_flags(Gtk::CAN_FOCUS);
00087 real_rb->set_mode(true);
00088 real_rb->set_active(true);
00089 marte_rb->set_flags(Gtk::CAN_FOCUS);
00090 marte_rb->set_mode(true);
00091 marte_rb->set_active(true);
00092 shmem_rb->set_flags(Gtk::CAN_FOCUS);
00093 shmem_rb->set_mode(true);
00094 shmem_rb->set_active(true);
00095 shmem_file->set_flags(Gtk::CAN_FOCUS);
00096 shmem_btn->set_flags(Gtk::CAN_FOCUS);
00097 hbox23->unset_flags(Gtk::CAN_FOCUS);
00098 hbox23->pack_start(*shmem_file);
00099 hbox23->pack_start(*shmem_btn, Gtk::PACK_SHRINK, 0);
00100 compile_cb->set_flags(Gtk::CAN_FOCUS);
00101 compile_cb->set_mode(true);
00102 exec_cb->set_flags(Gtk::CAN_FOCUS);
00103 exec_cb->set_mode(true);
00104 log_cb->set_flags(Gtk::CAN_FOCUS);
00105 log_cb->set_mode(true);
00106 hbox24->unset_flags(Gtk::CAN_FOCUS);
00107 hbox24->pack_start(*compile_cb, Gtk::PACK_SHRINK, 0);
00108 hbox24->pack_start(*exec_cb, Gtk::PACK_SHRINK, 0);
00109 hbox24->pack_start(*log_cb, Gtk::PACK_SHRINK, 0);
00110 param_txt->set_flags(Gtk::CAN_FOCUS);
00111 alignment23->unset_flags(Gtk::CAN_FOCUS);
00112 alignment23->add(*param_txt);
00113 label95->unset_flags(Gtk::CAN_FOCUS);
00114 label95->set_use_markup(true);
00115 frame14->unset_flags(Gtk::CAN_FOCUS);
00116 frame14->set_shadow_type(Gtk::SHADOW_NONE);
00117 frame14->set_label_align(0,0);
00118 frame14->add(*alignment23);
00119 frame14->set_label_widget(*label95);
00120 label94->unset_flags(Gtk::CAN_FOCUS);
00121 expander1->set_flags(Gtk::CAN_FOCUS);
00122 #if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2
00123 expander1->set_expanded(true);
00124 #endif //
00125 expander1->add(*frame14);
00126 #if GTKMM_MAJOR_VERSION==2 && GTKMM_MINOR_VERSION>2
00127 expander1->set_label_widget(*label94);
00128 #endif //
00129 vbox19->unset_flags(Gtk::CAN_FOCUS);
00130 vbox19->pack_start(*shmem_rb, Gtk::PACK_SHRINK, 0);
00131 vbox19->pack_start(*hbox23);
00132 vbox19->pack_start(*hbox24, Gtk::PACK_SHRINK, 0);
00133 vbox19->pack_start(*expander1);
00134 alignment20->unset_flags(Gtk::CAN_FOCUS);
00135 alignment20->add(*vbox19);
00136 label91->unset_flags(Gtk::CAN_FOCUS);
00137 label91->set_use_markup(true);
00138 frame13->unset_flags(Gtk::CAN_FOCUS);
00139 frame13->set_shadow_type(Gtk::SHADOW_NONE);
00140 frame13->set_label_align(0,0);
00141 frame13->add(*alignment20);
00142 frame13->set_label_widget(*label91);
00143 vbox18->unset_flags(Gtk::CAN_FOCUS);
00144 vbox18->pack_start(*real_rb, Gtk::PACK_SHRINK, 0);
00145 vbox18->pack_start(*marte_rb, Gtk::PACK_SHRINK, 0);
00146 vbox18->pack_start(*frame13, Gtk::PACK_SHRINK, 0);
00147 alignment16->unset_flags(Gtk::CAN_FOCUS);
00148 alignment16->add(*vbox18);
00149 label86->unset_flags(Gtk::CAN_FOCUS);
00150 label86->set_use_markup(true);
00151 frame9->unset_flags(Gtk::CAN_FOCUS);
00152 frame9->set_label_align(0,0);
00153 frame9->add(*alignment16);
00154 frame9->set_label_widget(*label86);
00155 vbox17->unset_flags(Gtk::CAN_FOCUS);
00156 vbox17->pack_start(*frame9, Gtk::PACK_SHRINK, 0);
00157 filename_txt->set_flags(Gtk::CAN_FOCUS);
00158 shmem_btn1->set_flags(Gtk::CAN_FOCUS);
00159 hbox1->unset_flags(Gtk::CAN_FOCUS);
00160 hbox1->pack_start(*filename_txt);
00161 hbox1->pack_start(*shmem_btn1, Gtk::PACK_SHRINK, 0);
00162 vbox1->unset_flags(Gtk::CAN_FOCUS);
00163 vbox1->pack_start(*hbox1);
00164 alignment1->unset_flags(Gtk::CAN_FOCUS);
00165 alignment1->add(*vbox1);
00166 label3->unset_flags(Gtk::CAN_FOCUS);
00167 label3->set_alignment(0.48,0.5);
00168 label3->set_use_markup(true);
00169 frame1->unset_flags(Gtk::CAN_FOCUS);
00170 frame1->set_shadow_type(Gtk::SHADOW_NONE);
00171 frame1->set_label_align(0,0);
00172 frame1->add(*alignment1);
00173 frame1->set_label_widget(*label3);
00174 vbox6->unset_flags(Gtk::CAN_FOCUS);
00175 vbox6->pack_start(*label47, Gtk::PACK_SHRINK, 0);
00176 vbox6->pack_start(*num_node_spin, Gtk::PACK_SHRINK, 0);
00177 vbox6->pack_start(*vbox17, Gtk::PACK_SHRINK, 0);
00178 vbox6->pack_start(*frame1, Gtk::PACK_SHRINK, 0);
00179 rec_param_dlg->get_vbox()->unset_flags(Gtk::CAN_FOCUS);
00180 rec_param_dlg->get_vbox()->pack_start(*vbox6, Gtk::PACK_SHRINK, 0);
00181 rec_param_dlg->set_size_request(400,200);
00182 rec_param_dlg->unset_flags(Gtk::CAN_FOCUS);
00183 rec_param_dlg->set_title("Recording Parameters");
00184 rec_param_dlg->set_modal(true);
00185 rec_param_dlg->set_has_separator(true);
00186 rec_param_dlg->add_action_widget(*cancelbutton1, -6);
00187 rec_param_dlg->add_action_widget(*ok_btn, -5);
00188 cancelbutton1->show();
00189 ok_btn->show();
00190 label47->show();
00191 num_node_spin->show();
00192 real_rb->show();
00193 marte_rb->show();
00194 shmem_rb->show();
00195 shmem_file->show();
00196 shmem_btn->show();
00197 hbox23->show();
00198 compile_cb->show();
00199 exec_cb->show();
00200 log_cb->show();
00201 hbox24->show();
00202 param_txt->show();
00203 alignment23->show();
00204 label95->show();
00205 frame14->show();
00206 label94->show();
00207 expander1->show();
00208 vbox19->show();
00209 alignment20->show();
00210 label91->show();
00211 frame13->show();
00212 vbox18->show();
00213 alignment16->show();
00214 label86->show();
00215 frame9->show();
00216 vbox17->show();
00217 filename_txt->show();
00218 shmem_btn1->show();
00219 hbox1->show();
00220 vbox1->show();
00221 alignment1->show();
00222 label3->show();
00223 frame1->show();
00224 vbox6->show();
00225 rec_param_dlg->show();
00226 real_rb->signal_clicked().connect(sigc::mem_fun(*this, &rec_param_dlg_glade::on_sim_rb_clicked), false);
00227 marte_rb->signal_clicked().connect(sigc::mem_fun(*this, &rec_param_dlg_glade::on_sim_rb_clicked), false);
00228 shmem_rb->signal_clicked().connect(sigc::mem_fun(*this, &rec_param_dlg_glade::on_sim_rb_clicked), false);
00229 shmem_btn->signal_clicked().connect(sigc::mem_fun(*this, &rec_param_dlg_glade::on_shmem_btn_clicked), false);
00230 shmem_btn1->signal_clicked().connect(sigc::mem_fun(*this, &rec_param_dlg_glade::on_filename_clicked), false);
00231 }
00232
00233 rec_param_dlg_glade::~rec_param_dlg_glade()
00234 { delete gmm_data;
00235 }