- Implemented jumpto for the gui, it has some problems, but at 4:00 AM a human being should be doing something else, perhaps sleeping
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1034 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
0f718f2899
commit
4aa7bcf460
6 changed files with 825 additions and 439 deletions
|
@ -31,6 +31,7 @@
|
|||
#include "schedulables_tree_widget.hh"
|
||||
#include "simulation_widget.hh"
|
||||
#include "resources_widget.hh"
|
||||
#include "jump_to_dialog.hh"
|
||||
|
||||
#include <sgpemv2/templates/sequences.tcc>
|
||||
|
||||
|
@ -75,7 +76,18 @@ GuiBuilder::on_edit_preferences_activate()
|
|||
// a refptr member data?)
|
||||
}
|
||||
|
||||
void
|
||||
GuiBuilder::on_simulation_jump_to_activate()
|
||||
{
|
||||
using Gnome::Glade::Xml;
|
||||
|
||||
Glib::RefPtr<Xml> jump_to_dialog_glade = Xml::create(GLADEDIR "/jump-to-dialog.glade");
|
||||
|
||||
JumpToDialog* jump_to_dialog = NULL;
|
||||
jump_to_dialog_glade->get_widget_derived("JumpToDialog", jump_to_dialog);
|
||||
|
||||
jump_to_dialog->run();
|
||||
}
|
||||
|
||||
void
|
||||
GuiBuilder::on_view_show_threads_activate()
|
||||
|
@ -506,7 +518,10 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
|
|||
_refXml->get_widget("MenuItem.Edit.Preferences", edit_preferences);
|
||||
edit_preferences->signal_activate().connect(sigc::mem_fun(*this, &GuiBuilder::on_edit_preferences_activate));
|
||||
|
||||
|
||||
// JumpTo
|
||||
MenuItem* simulation_jump_to = NULL;
|
||||
_refXml->get_widget("MenuItem.Simulation.JumpTo", simulation_jump_to);
|
||||
simulation_jump_to->signal_activate().connect(sigc::mem_fun(*this, &GuiBuilder::on_simulation_jump_to_activate));
|
||||
|
||||
// enable/disable show threads on widgets
|
||||
MenuItem* show_threads;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue