- Added visualization of resources queue to resourceswidget. Task #28
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@978 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
eb9546a63c
commit
58cf50b500
5 changed files with 138 additions and 54 deletions
|
@ -110,6 +110,46 @@ GlobalPreferences::set_speed(int new_speed)
|
|||
return old_speed;
|
||||
}
|
||||
|
||||
Glib::ustring
|
||||
GlobalPreferences::get_schedulable_color(Schedulable::state st) const
|
||||
{
|
||||
switch(st)
|
||||
{
|
||||
case Schedulable::state_running:
|
||||
return "green";
|
||||
case Schedulable::state_ready:
|
||||
return "yellow";
|
||||
case Schedulable::state_blocked:
|
||||
return "red";
|
||||
case Schedulable::state_terminated:
|
||||
return "DimGray";
|
||||
case Schedulable::state_future:
|
||||
return "LightGrey";
|
||||
default:
|
||||
return "black";
|
||||
}
|
||||
}
|
||||
|
||||
Glib::ustring
|
||||
GlobalPreferences::get_request_color(Request::state st) const
|
||||
{
|
||||
switch(st)
|
||||
{
|
||||
case Request::state_allocated:
|
||||
return "green";
|
||||
case Request::state_allocable:
|
||||
return "yellow";
|
||||
case Request::state_unallocable:
|
||||
return "red";
|
||||
case Request::state_exhausted:
|
||||
return "DimGray";
|
||||
case Request::state_future:
|
||||
return "LightGrey";
|
||||
default:
|
||||
return "black";
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
GlobalPreferences::write_configrc()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue