206 auto_scale = new Gtk::CheckButton("Autoscale"); |
206 auto_scale = new Gtk::CheckButton("Autoscale"); |
207 auto_scale->set_active(false); |
207 auto_scale->set_active(false); |
208 auto_scale->signal_toggled().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); |
208 auto_scale->signal_toggled().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); |
209 table2.attach(*auto_scale, 0,2,0,1); |
209 table2.attach(*auto_scale, 0,2,0,1); |
210 |
210 |
211 Gtk::Label * unit_label= new Gtk::Label("Unit:"); |
211 Gtk::Label * width_label= new Gtk::Label("Edge Width:"); |
212 // table2.attach(*unit_label, 2,3,0,1); |
212 table2.attach(*width_label, 0,1,1,2); |
213 |
213 |
214 Gtk::Adjustment * adjustment_unit=new Gtk::Adjustment(20, 5, 200, 5, 10); |
214 Gtk::Adjustment * adjustment_width=new Gtk::Adjustment(20, 1, 200, 5, 10); |
215 |
|
216 radius_unit = new Gtk::SpinButton(*adjustment_unit, 5,0); |
|
217 radius_unit->signal_value_changed().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); |
|
218 // table2.attach(*radius_unit, 3,4,0,1); |
|
219 |
|
220 Gtk::Label * min_label= new Gtk::Label("Min:"); |
|
221 // table2.attach(*min_label, 0,1,1,2); |
|
222 |
215 |
223 Gtk::Adjustment * adjustment_min=new Gtk::Adjustment(20, 5, 200, 5, 10); |
216 edge_width = new Gtk::SpinButton(*adjustment_width, 5,0); |
224 |
217 edge_width->signal_value_changed().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); |
225 radius_min = new Gtk::SpinButton(*adjustment_min, 5,0); |
218 table2.attach(*edge_width, 1,2,1,2); |
226 radius_min->signal_value_changed().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); |
219 |
227 // table2.attach(*radius_min, 1,2,1,2); |
220 Gtk::Label * radius_label= new Gtk::Label("Node Radius:"); |
228 |
221 table2.attach(*radius_label, 2,3,1,2); |
229 Gtk::Label * max_label= new Gtk::Label("Size:"); |
|
230 table2.attach(*max_label, 2,3,1,2); |
|
231 |
222 |
232 Gtk::Adjustment * adjustment_max=new Gtk::Adjustment(20, 0, 200, 5, 10); |
223 Gtk::Adjustment * adjustment_radius=new Gtk::Adjustment(20, 0, 500, 5, 10); |
233 |
224 |
234 radius_max = new Gtk::SpinButton(*adjustment_max, 5,0); |
225 radius_size = new Gtk::SpinButton(*adjustment_radius, 5,0); |
235 radius_max->signal_value_changed().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); |
226 radius_size->signal_value_changed().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); |
236 table2.attach(*radius_max, 3,4,1,2); |
227 table2.attach(*radius_size, 3,4,1,2); |
237 |
228 |
238 zoom_track = new Gtk::CheckButton("Zoom tracking"); |
229 zoom_track = new Gtk::CheckButton("Zoom tracking"); |
239 zoom_track->set_active(false); |
230 zoom_track->set_active(false); |
240 zoom_track->signal_toggled().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); |
231 zoom_track->signal_toggled().connect(sigc::mem_fun(*this, &MainWin::nodeViewChanged)); |
241 table2.attach(*zoom_track, 2,4,0,1); |
232 table2.attach(*zoom_track, 2,4,0,1); |
242 |
233 |
243 |
234 |
244 //vbox.pack_start(hbox, Gtk::PACK_SHRINK); |
|
245 table.attach(table2, 1, 2, 0, 2, Gtk::SHRINK, Gtk::SHRINK); |
235 table.attach(table2, 1, 2, 0, 2, Gtk::SHRINK, Gtk::SHRINK); |
246 |
236 |
247 tooltips.set_tip(*(uim->get_widget("/ToolBar/CreateNode")),"Create Node"); |
237 tooltips.set_tip(*(uim->get_widget("/ToolBar/CreateNode")),"Create Node"); |
248 tooltips.enable(); |
238 tooltips.enable(); |
249 |
239 |
250 active_tab=-1; |
240 active_tab=-1; |
251 notebook.signal_switch_page().connect(sigc::mem_fun(*this, &MainWin::onChangeTab)); |
241 notebook.signal_switch_page().connect(sigc::mem_fun(*this, &MainWin::onChangeTab)); |
252 |
242 |
253 active_tool = MOVE; |
243 active_tool = MOVE; |
254 |
244 |
255 //vbox.pack_start(notebook); |
|
256 table.attach(notebook,0,2,2,3, Gtk::EXPAND|Gtk::FILL, Gtk::EXPAND|Gtk::FILL); |
245 table.attach(notebook,0,2,2,3, Gtk::EXPAND|Gtk::FILL, Gtk::EXPAND|Gtk::FILL); |
257 |
246 |
258 show_all_children(); |
247 show_all_children(); |
259 } |
248 } |
260 |
249 |