- modified cairo_widget and simulation_widget to support scaling
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@908 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
df24fafb06
commit
e4c269f5d4
5 changed files with 93 additions and 142 deletions
|
@ -130,7 +130,7 @@ GuiBuilder::on_file_open_activate()
|
|||
void
|
||||
GuiBuilder::on_file_save_activate()
|
||||
{
|
||||
_simulation_widget->change_scaling_mode();
|
||||
// _simulation_widget->change_scaling_mode();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -258,12 +258,14 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
|
|||
|
||||
|
||||
// Main simulation widget
|
||||
|
||||
ScrolledWindow* simulation_window = NULL;
|
||||
_refXml->get_widget("SimulationScrolledWindow", simulation_window);
|
||||
_simulation_widget = new SimulationWidget();
|
||||
SimulationWidget* simulation_widget = manage(_simulation_widget);
|
||||
simulation_window->add(*simulation_widget);
|
||||
simulation_widget->show();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue