- Added statistics skeletron, updated gradients
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1048 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
312b67e2a4
commit
3e4848b999
|
@ -169,7 +169,7 @@ HoltSchedulable::~HoltSchedulable()
|
||||||
void HoltSchedulable::draw(cairo_t *cr)
|
void HoltSchedulable::draw(cairo_t *cr)
|
||||||
{
|
{
|
||||||
static const Color red(1, 0, 0);
|
static const Color red(1, 0, 0);
|
||||||
static const Color yellow(1, 1, 0);
|
static const Color yellow(1, 0.9, 0);
|
||||||
static const Color green(0, 1, 0);
|
static const Color green(0, 1, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -124,10 +124,12 @@ JumpToDialog::_on_jump()
|
||||||
catch(const CPUPolicyException& cpe)
|
catch(const CPUPolicyException& cpe)
|
||||||
{
|
{
|
||||||
// Fatal error. We should never get here.
|
// Fatal error. We should never get here.
|
||||||
|
#ifndef NDEBUG
|
||||||
std::cerr << _(" [EE] Fatal error. Impossible to deactivate the policy in ") << __FILE__ << ":" << __LINE__
|
std::cerr << _(" [EE] Fatal error. Impossible to deactivate the policy in ") << __FILE__ << ":" << __LINE__
|
||||||
<< std::endl << _(" [EE] ") << cpe.what() << std::endl;
|
<< std::endl << _(" [EE] ") << cpe.what() << std::endl;
|
||||||
;
|
;
|
||||||
abort();
|
abort();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(const NullPolicyException& npe)
|
catch(const NullPolicyException& npe)
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#endif
|
#endif
|
||||||
|
@ -128,6 +129,8 @@ SimulationWidget::update(const History& /* changed_history */ )
|
||||||
// MOVED in calc_drawing_size(...)
|
// MOVED in calc_drawing_size(...)
|
||||||
// count_elements();
|
// count_elements();
|
||||||
resize_redraw();
|
resize_redraw();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -493,20 +496,20 @@ SimulationWidget::make_gradients()
|
||||||
|
|
||||||
_ready_process_gradient = cairo_pattern_create_linear(0, 0, 0, _yu_process_bar_height * _y_unit);
|
_ready_process_gradient = cairo_pattern_create_linear(0, 0, 0, _yu_process_bar_height * _y_unit);
|
||||||
// yellow
|
// yellow
|
||||||
cairo_pattern_add_color_stop_rgb(_ready_process_gradient, 0.0, 1.00, 1.00, 0.0);
|
cairo_pattern_add_color_stop_rgb(_ready_process_gradient, 0.0, 1.00, 0.9, 0.0);
|
||||||
cairo_pattern_add_color_stop_rgb(_ready_process_gradient, 0.3, 0.85, 0.85, 0.0);
|
cairo_pattern_add_color_stop_rgb(_ready_process_gradient, 0.3, 1.00, 1.0, 0.9);
|
||||||
cairo_pattern_add_color_stop_rgb(_ready_process_gradient, 1.0, 1.00, 1.00, 0.0);
|
cairo_pattern_add_color_stop_rgb(_ready_process_gradient, 1.0, 1.00, 0.8, 0.0);
|
||||||
|
|
||||||
_running_process_gradient = cairo_pattern_create_linear(0, 0, 0, _yu_process_bar_height * _y_unit);
|
_running_process_gradient = cairo_pattern_create_linear(0, 0, 0, _yu_process_bar_height * _y_unit);
|
||||||
// green
|
// green
|
||||||
cairo_pattern_add_color_stop_rgb(_running_process_gradient, 0.0, 0.0, 0.7, 0.0);
|
cairo_pattern_add_color_stop_rgb(_running_process_gradient, 0.0, 0.0, 0.8, 0.0);
|
||||||
cairo_pattern_add_color_stop_rgb(_running_process_gradient, 0.3, 0.0, 1.0, 0.0);
|
cairo_pattern_add_color_stop_rgb(_running_process_gradient, 0.3, 0.0, 1.0, 0.0);
|
||||||
cairo_pattern_add_color_stop_rgb(_running_process_gradient, 1.0, 0.0, 0.7, 0.0);
|
cairo_pattern_add_color_stop_rgb(_running_process_gradient, 1.0, 0.0, 0.65, 0.0);
|
||||||
|
|
||||||
_blocked_process_gradient = cairo_pattern_create_linear(0, 0, 0, _yu_process_bar_height * _y_unit);
|
_blocked_process_gradient = cairo_pattern_create_linear(0, 0, 0, _yu_process_bar_height * _y_unit);
|
||||||
// red
|
// red
|
||||||
cairo_pattern_add_color_stop_rgb(_blocked_process_gradient, 0.0, 0.7, 0.0, 0.0);
|
cairo_pattern_add_color_stop_rgb(_blocked_process_gradient, 0.0, 0.85, 0.0, 0.0);
|
||||||
cairo_pattern_add_color_stop_rgb(_blocked_process_gradient, 0.3, 1.0, 0.0, 0.0);
|
cairo_pattern_add_color_stop_rgb(_blocked_process_gradient, 0.3, 1.0, 0.5, 0.5);
|
||||||
cairo_pattern_add_color_stop_rgb(_blocked_process_gradient, 1.0, 0.7, 0.0, 0.0);
|
cairo_pattern_add_color_stop_rgb(_blocked_process_gradient, 1.0, 0.65, 0.0, 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue