- test-holt_widget: temporary added an extra holt_widget in container
- gui_builder: added an holt_widget in container - Makefile.am: added holt_containr_window accordling git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1015 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
51ce976d65
commit
2b9942bbec
|
@ -302,6 +302,7 @@ sgpemv2_SOURCES = \
|
||||||
src/configure_policy_dialog.cc \
|
src/configure_policy_dialog.cc \
|
||||||
src/graphical_preferences_editor.cc \
|
src/graphical_preferences_editor.cc \
|
||||||
src/gui_builder.cc \
|
src/gui_builder.cc \
|
||||||
|
src/holt_container_window.cc \
|
||||||
src/holt_widget.cc \
|
src/holt_widget.cc \
|
||||||
src/main.cc \
|
src/main.cc \
|
||||||
src/parse_opts.cc \
|
src/parse_opts.cc \
|
||||||
|
@ -472,6 +473,7 @@ src_testsuite_test_holt_widget_SOURCES = \
|
||||||
src/cairo_elements.cc \
|
src/cairo_elements.cc \
|
||||||
src/cairo_widget.cc \
|
src/cairo_widget.cc \
|
||||||
src/simulation_widget.cc \
|
src/simulation_widget.cc \
|
||||||
|
src/holt_container_window.cc \
|
||||||
src/holt_widget.cc \
|
src/holt_widget.cc \
|
||||||
src/testsuite/test-holt_widget.cc
|
src/testsuite/test-holt_widget.cc
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
#include "configure_policy_dialog.hh"
|
#include "configure_policy_dialog.hh"
|
||||||
#include "graphical_preferences_editor.hh"
|
#include "graphical_preferences_editor.hh"
|
||||||
|
#include "holt_container_window.hh"
|
||||||
#include "holt_widget.hh"
|
#include "holt_widget.hh"
|
||||||
#include "schedulables_tree_widget.hh"
|
#include "schedulables_tree_widget.hh"
|
||||||
#include "simulation_widget.hh"
|
#include "simulation_widget.hh"
|
||||||
|
@ -432,7 +433,9 @@ GuiBuilder::on_toggle_simulation_mode()
|
||||||
|
|
||||||
|
|
||||||
GuiBuilder::GuiBuilder(const std::string& gladefile)
|
GuiBuilder::GuiBuilder(const std::string& gladefile)
|
||||||
: _refXml(Xml::create(gladefile)), _controller(Simulation::get_instance(), _refXml)
|
: _refXml(Xml::create(gladefile)), _controller(Simulation::get_instance(), _refXml),
|
||||||
|
_holt_container(Simulation::get_instance())
|
||||||
|
|
||||||
{
|
{
|
||||||
using namespace Gtk;
|
using namespace Gtk;
|
||||||
|
|
||||||
|
@ -535,6 +538,11 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
|
||||||
// HoltWidget& holt = *manage(new HoltWidget(Simulation::get_instance()));
|
// HoltWidget& holt = *manage(new HoltWidget(Simulation::get_instance()));
|
||||||
// simulation_window->add(holt);
|
// simulation_window->add(holt);
|
||||||
// holt.show();
|
// holt.show();
|
||||||
|
|
||||||
|
// temporary test on holt widget...
|
||||||
|
_holt_container.set_keep_above();
|
||||||
|
// _holt_container.set_deletable(false);
|
||||||
|
_holt_container.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#define GUI_BUILDER_HH 1
|
#define GUI_BUILDER_HH 1
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "holt_container_window.hh"
|
||||||
#include "simulation_widget.hh"
|
#include "simulation_widget.hh"
|
||||||
|
|
||||||
#include "backend/cpu_policy.hh"
|
#include "backend/cpu_policy.hh"
|
||||||
|
@ -68,6 +69,9 @@ namespace sgpem
|
||||||
|
|
||||||
// Used to store the loaded snapshot filename, when !empty
|
// Used to store the loaded snapshot filename, when !empty
|
||||||
std::string _filename;
|
std::string _filename;
|
||||||
|
|
||||||
|
HoltContainerWindow _holt_container;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //~ namespace sgpem
|
} //~ namespace sgpem
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
#include "backend/thread.hh"
|
#include "backend/thread.hh"
|
||||||
#include "cairo_elements.hh"
|
#include "cairo_elements.hh"
|
||||||
#include "cairo_widget.hh"
|
#include "cairo_widget.hh"
|
||||||
|
#include "holt_container_window.hh"
|
||||||
#include "holt_widget.hh"
|
#include "holt_widget.hh"
|
||||||
#include "simulation_widget.hh"
|
#include "simulation_widget.hh"
|
||||||
|
|
||||||
|
@ -229,6 +230,13 @@ protected:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------
|
// ------------------------------------------------------
|
||||||
//
|
//
|
||||||
// MainWindow class
|
// MainWindow class
|
||||||
|
@ -274,6 +282,8 @@ protected:
|
||||||
Gtk::ScrolledWindow _simulation_scroller;
|
Gtk::ScrolledWindow _simulation_scroller;
|
||||||
Gtk::ScrolledWindow _holt_scroller;
|
Gtk::ScrolledWindow _holt_scroller;
|
||||||
Simulation::state _sim_state;
|
Simulation::state _sim_state;
|
||||||
|
|
||||||
|
HoltContainerWindow _holt_container;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -291,7 +301,8 @@ MainWindow::MainWindow(Simulation& simulation)
|
||||||
_circular_radio("dispose circular"),
|
_circular_radio("dispose circular"),
|
||||||
_simulation_widget(simulation),
|
_simulation_widget(simulation),
|
||||||
_holt_widget(simulation),
|
_holt_widget(simulation),
|
||||||
_sim_state(Simulation::state_stopped)
|
_sim_state(Simulation::state_stopped),
|
||||||
|
_holt_container(simulation)
|
||||||
{
|
{
|
||||||
// This just sets the title of our new window.
|
// This just sets the title of our new window.
|
||||||
set_title("Holt Graph Widget Test");
|
set_title("Holt Graph Widget Test");
|
||||||
|
@ -380,6 +391,9 @@ MainWindow::MainWindow(Simulation& simulation)
|
||||||
timeout_source->connect(sigc::ptr_fun(&timeout_handler));
|
timeout_source->connect(sigc::ptr_fun(&timeout_handler));
|
||||||
timeout_source->attach(Glib::MainContext::get_default());
|
timeout_source->attach(Glib::MainContext::get_default());
|
||||||
*/
|
*/
|
||||||
|
_holt_container.set_keep_above();
|
||||||
|
// _holt_container.set_deletable(false);
|
||||||
|
_holt_container.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
MainWindow::~MainWindow()
|
MainWindow::~MainWindow()
|
||||||
|
@ -534,7 +548,7 @@ Glib::ustring get_simulation_state_name(Simulation::state st);
|
||||||
|
|
||||||
// ------------------------------------------------------
|
// ------------------------------------------------------
|
||||||
//
|
//
|
||||||
// MainWindow class
|
// program main
|
||||||
//
|
//
|
||||||
// ------------------------------------------------------
|
// ------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue