- Add a widget to show the ReadyQueue
- Change slightly the gradients of the SimulationWidget to make them more aggressive. Bite, Fido! :-) git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1025 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
dbfc7393ed
commit
cb1d85a4cc
|
@ -306,6 +306,7 @@ sgpemv2_SOURCES = \
|
||||||
src/holt_widget.cc \
|
src/holt_widget.cc \
|
||||||
src/main.cc \
|
src/main.cc \
|
||||||
src/parse_opts.cc \
|
src/parse_opts.cc \
|
||||||
|
src/ready_queue_widget.cc \
|
||||||
src/resources_widget.cc \
|
src/resources_widget.cc \
|
||||||
src/schedulable_state_widget.cc \
|
src/schedulable_state_widget.cc \
|
||||||
src/schedulables_tree_widget.cc \
|
src/schedulables_tree_widget.cc \
|
||||||
|
@ -323,6 +324,7 @@ noinst_HEADERS += \
|
||||||
src/holt_widget.hh \
|
src/holt_widget.hh \
|
||||||
src/main.hh \
|
src/main.hh \
|
||||||
src/parse_opts.hh \
|
src/parse_opts.hh \
|
||||||
|
src/ready_queue_widget.hh \
|
||||||
src/resources_widget.hh \
|
src/resources_widget.hh \
|
||||||
src/schedulable_state_widget.hh \
|
src/schedulable_state_widget.hh \
|
||||||
src/schedulables_tree_widget.hh \
|
src/schedulables_tree_widget.hh \
|
||||||
|
|
|
@ -1,86 +1,72 @@
|
||||||
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">
|
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
||||||
|
<!-- Generated with glade3
|
||||||
|
Version: 3.0.1
|
||||||
|
Date: Wed Sep 6 15:54:52 2006
|
||||||
|
User: matteo
|
||||||
|
Host: tulip
|
||||||
|
-->
|
||||||
<glade-interface>
|
<glade-interface>
|
||||||
|
<widget class="GtkWindow" id="MainWindow">
|
||||||
<widget class="GtkWindow" id="MainWindow">
|
|
||||||
<property name="title">SGPEMv2</property>
|
<property name="title">SGPEMv2</property>
|
||||||
<property name="type">GTK_WINDOW_TOPLEVEL</property>
|
|
||||||
<property name="window_position">GTK_WIN_POS_NONE</property>
|
|
||||||
<property name="modal">False</property>
|
|
||||||
<property name="default_width">800</property>
|
<property name="default_width">800</property>
|
||||||
<property name="default_height">600</property>
|
<property name="default_height">600</property>
|
||||||
<property name="resizable">True</property>
|
|
||||||
<property name="destroy_with_parent">False</property>
|
|
||||||
<property name="icon_name">gtk-dialog-warning</property>
|
<property name="icon_name">gtk-dialog-warning</property>
|
||||||
<property name="decorated">True</property>
|
|
||||||
<property name="skip_taskbar_hint">False</property>
|
|
||||||
<property name="skip_pager_hint">False</property>
|
|
||||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
|
|
||||||
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
|
|
||||||
<property name="focus_on_map">True</property>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkVBox" id="MainBox">
|
<widget class="GtkVBox" id="MainBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="homogeneous">False</property>
|
|
||||||
<property name="spacing">0</property>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuBar" id="MenuBar">
|
<widget class="GtkMenuBar" id="MenuBar">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="MenuItem.File">
|
<widget class="GtkMenuItem" id="MenuItem.File">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">_File</property>
|
<property name="label">_File</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenu" id="MenuItem.File_menu">
|
<widget class="GtkMenu" id="MenuItem.File_menu">
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.File.Open">
|
<widget class="GtkImageMenuItem" id="MenuItem.File.Open">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">gtk-open</property>
|
<property name="label">gtk-open</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.File.Save">
|
<widget class="GtkImageMenuItem" id="MenuItem.File.Save">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">gtk-save</property>
|
<property name="label">gtk-save</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.File.SaveAs">
|
<widget class="GtkImageMenuItem" id="MenuItem.File.SaveAs">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">gtk-save-as</property>
|
<property name="label">gtk-save-as</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.File.Close">
|
<widget class="GtkImageMenuItem" id="MenuItem.File.Close">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">gtk-close</property>
|
<property name="label">gtk-close</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkSeparatorMenuItem" id="separator1">
|
<widget class="GtkSeparatorMenuItem" id="separator1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.File.Quit">
|
<widget class="GtkImageMenuItem" id="MenuItem.File.Quit">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">gtk-quit</property>
|
<property name="label">gtk-quit</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
@ -88,20 +74,18 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="MenuItem.Edit">
|
<widget class="GtkMenuItem" id="MenuItem.Edit">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">_Edit</property>
|
<property name="label">_Edit</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenu" id="MenuItem.Edit_menu">
|
<widget class="GtkMenu" id="MenuItem.Edit_menu">
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.Edit.Preferences">
|
<widget class="GtkImageMenuItem" id="MenuItem.Edit.Preferences">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">gtk-preferences</property>
|
<property name="label">gtk-preferences</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
@ -109,30 +93,26 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="MenuItem.View">
|
<widget class="GtkMenuItem" id="MenuItem.View">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">_View</property>
|
<property name="label">_View</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenu" id="MenuItem.View_menu">
|
<widget class="GtkMenu" id="MenuItem.View_menu">
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="MenuItem.View.ShowThreads">
|
<widget class="GtkMenuItem" id="MenuItem.View.ShowThreads">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="tooltip" translatable="yes">Enable/disable threads visualization in Graphs</property>
|
<property name="tooltip">Enable/disable threads visualization in Graphs</property>
|
||||||
<property name="label" translatable="yes">Show _Threads</property>
|
<property name="label">Show _Threads</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="MenuItem.View.ShowHoltGraph">
|
<widget class="GtkMenuItem" id="MenuItem.View.ShowHoltGraph">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="tooltip" translatable="yes">Show/Hide holt graph window</property>
|
<property name="tooltip">Show/Hide holt graph window</property>
|
||||||
<property name="label" translatable="yes">Show _Holt Graph</property>
|
<property name="label">Show _Holt Graph</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
@ -140,75 +120,69 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="MenuItem.Simulation">
|
<widget class="GtkMenuItem" id="MenuItem.Simulation">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">_Simulation</property>
|
<property name="label">_Simulation</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenu" id="MenuItem.Simulation_menu">
|
<widget class="GtkMenu" id="MenuItem.Simulation_menu">
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.Simulation.Play">
|
<widget class="GtkImageMenuItem" id="MenuItem.Simulation.Play">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">gtk-media-play</property>
|
<property name="label">gtk-media-play</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.Simulation.Pause">
|
<widget class="GtkImageMenuItem" id="MenuItem.Simulation.Pause">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive">False</property>
|
<property name="sensitive">False</property>
|
||||||
<property name="label">gtk-media-pause</property>
|
<property name="label">gtk-media-pause</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.Simulation.Stop">
|
<widget class="GtkImageMenuItem" id="MenuItem.Simulation.Stop">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive">False</property>
|
<property name="sensitive">False</property>
|
||||||
<property name="label">gtk-media-stop</property>
|
<property name="label">gtk-media-stop</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<signal name="activate" handler="on_stop1_activate"/>
|
<signal name="activate" handler="on_stop1_activate"/>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkSeparatorMenuItem" id="MenuItem.Simulation.Separator1">
|
<widget class="GtkSeparatorMenuItem" id="MenuItem.Simulation.Separator1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkCheckMenuItem" id="MenuItem.Simulation.ContinuousMode">
|
<widget class="GtkCheckMenuItem" id="MenuItem.Simulation.ContinuousMode">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">Continuous mode</property>
|
|
||||||
<property name="use_underline">True</property>
|
|
||||||
<property name="active">True</property>
|
<property name="active">True</property>
|
||||||
|
<property name="label">Continuous mode</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuItem" id="MenuItem.Help">
|
<widget class="GtkMenuItem" id="MenuItem.Help">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes">_Help</property>
|
<property name="label">_Help</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenu" id="MenuItem.Help_menu">
|
<widget class="GtkMenu" id="MenuItem.Help_menu">
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkImageMenuItem" id="MenuItem.Help.About">
|
<widget class="GtkImageMenuItem" id="MenuItem.Help.About">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">gtk-about</property>
|
<property name="label">gtk-about</property>
|
||||||
|
<property name="use_underline">True</property>
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
@ -218,209 +192,119 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkToolbar" id="ToolBar">
|
<widget class="GtkToolbar" id="ToolBar">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="orientation">GTK_ORIENTATION_HORIZONTAL</property>
|
|
||||||
<property name="toolbar_style">GTK_TOOLBAR_BOTH</property>
|
<property name="toolbar_style">GTK_TOOLBAR_BOTH</property>
|
||||||
<property name="tooltips">True</property>
|
|
||||||
<property name="show_arrow">True</property>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkToolButton" id="ToolBar.Open">
|
<widget class="GtkToolButton" id="ToolBar.Open">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="stock_id">gtk-open</property>
|
<property name="stock_id">gtk-open</property>
|
||||||
<property name="visible_horizontal">True</property>
|
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
<property name="is_important">False</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">True</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkToolButton" id="ToolBar.Save">
|
<widget class="GtkToolButton" id="ToolBar.Save">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="stock_id">gtk-save</property>
|
<property name="stock_id">gtk-save</property>
|
||||||
<property name="visible_horizontal">True</property>
|
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
<property name="is_important">False</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">True</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkSeparatorToolItem" id="ToolBar.Separator0">
|
<widget class="GtkSeparatorToolItem" id="ToolBar.Separator0">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="draw">True</property>
|
|
||||||
<property name="visible_horizontal">True</property>
|
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">False</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkToolButton" id="ToolBar.Play">
|
<widget class="GtkToolButton" id="ToolBar.Play">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="tooltip">Start the simulation</property>
|
|
||||||
<property name="stock_id">gtk-media-play</property>
|
<property name="stock_id">gtk-media-play</property>
|
||||||
<property name="visible_horizontal">True</property>
|
<property name="tooltip">Start the simulation</property>
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
<property name="is_important">False</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">True</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkToolButton" id="ToolBar.Pause">
|
<widget class="GtkToolButton" id="ToolBar.Pause">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive">False</property>
|
<property name="sensitive">False</property>
|
||||||
<property name="stock_id">gtk-media-pause</property>
|
<property name="stock_id">gtk-media-pause</property>
|
||||||
<property name="visible_horizontal">True</property>
|
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
<property name="is_important">False</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">True</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkToolButton" id="ToolBar.Stop">
|
<widget class="GtkToolButton" id="ToolBar.Stop">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive">False</property>
|
<property name="sensitive">False</property>
|
||||||
<property name="stock_id">gtk-media-stop</property>
|
<property name="stock_id">gtk-media-stop</property>
|
||||||
<property name="visible_horizontal">True</property>
|
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
<property name="is_important">False</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">True</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkSeparatorToolItem" id="ToolBar.Separator1">
|
<widget class="GtkSeparatorToolItem" id="ToolBar.Separator1">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="draw">True</property>
|
|
||||||
<property name="visible_horizontal">True</property>
|
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">False</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuToolButton" id="ToolBar.PolicySelector">
|
<widget class="GtkMenuToolButton" id="ToolBar.PolicySelector">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">Scheduling Policy</property>
|
<property name="label">Scheduling Policy</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="stock_id">gtk-convert</property>
|
<property name="stock_id">gtk-convert</property>
|
||||||
<property name="visible_horizontal">True</property>
|
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
<property name="is_important">False</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">False</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkSeparatorToolItem" id="ToolBar.Separator2">
|
<widget class="GtkSeparatorToolItem" id="ToolBar.Separator2">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="draw">True</property>
|
|
||||||
<property name="visible_horizontal">True</property>
|
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">False</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkMenuToolButton" id="ToolBar.ResourceScheduling">
|
<widget class="GtkMenuToolButton" id="ToolBar.ResourceScheduling">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label">Resource Scheduling</property>
|
<property name="label">Resource Scheduling</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
<property name="stock_id">gtk-select-color</property>
|
<property name="stock_id">gtk-select-color</property>
|
||||||
<property name="visible_horizontal">True</property>
|
|
||||||
<property name="visible_vertical">True</property>
|
|
||||||
<property name="is_important">False</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="homogeneous">False</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
<property name="position">1</property>
|
||||||
|
</packing>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<widget class="GtkHBox" id="ReadyQueueBox">
|
||||||
|
<property name="visible">True</property>
|
||||||
|
</widget>
|
||||||
|
<packing>
|
||||||
|
<property name="expand">False</property>
|
||||||
|
<property name="position">3</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkVPaned" id="MainVPaned">
|
<widget class="GtkVPaned" id="MainVPaned">
|
||||||
<property name="border_width">1</property>
|
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
|
<property name="border_width">1</property>
|
||||||
<property name="position">200</property>
|
<property name="position">200</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkHPaned" id="EntitiesHPaned">
|
<widget class="GtkHPaned" id="EntitiesHPaned">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkFrame" id="SchedulablesFrame">
|
<widget class="GtkFrame" id="SchedulablesFrame">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label_xalign">0</property>
|
<property name="label_xalign">0,000000</property>
|
||||||
<property name="label_yalign">0</property>
|
<property name="label_yalign">0,000000</property>
|
||||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkAlignment" id="SchedulablesFrame.Alignment">
|
<widget class="GtkAlignment" id="SchedulablesFrame.Alignment">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0,000000</property>
|
||||||
<property name="yalign">0</property>
|
<property name="yalign">0,000000</property>
|
||||||
<property name="xscale">1</property>
|
|
||||||
<property name="yscale">1</property>
|
|
||||||
<property name="top_padding">0</property>
|
|
||||||
<property name="bottom_padding">0</property>
|
|
||||||
<property name="left_padding">12</property>
|
<property name="left_padding">12</property>
|
||||||
<property name="right_padding">0</property>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkScrolledWindow" id="SchedulablesScrolledWindow">
|
<widget class="GtkScrolledWindow" id="SchedulablesScrolledWindow">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||||
<property name="shadow_type">GTK_SHADOW_OUT</property>
|
<property name="shadow_type">GTK_SHADOW_OUT</property>
|
||||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<placeholder/>
|
||||||
</child>
|
</child>
|
||||||
|
@ -428,24 +312,14 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="SchedulablesFrame.Label">
|
<widget class="GtkLabel" id="SchedulablesFrame.Label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes"><i>Schedulables</i></property>
|
<property name="xalign">0,000000</property>
|
||||||
<property name="use_underline">False</property>
|
<property name="yalign">0,000000</property>
|
||||||
<property name="use_markup">True</property>
|
|
||||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
|
||||||
<property name="wrap">False</property>
|
|
||||||
<property name="selectable">False</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
<property name="yalign">0</property>
|
|
||||||
<property name="xpad">0</property>
|
|
||||||
<property name="ypad">2</property>
|
<property name="ypad">2</property>
|
||||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
<property name="label" translatable="yes"><i>Schedulables</i></property>
|
||||||
<property name="width_chars">-1</property>
|
<property name="use_markup">True</property>
|
||||||
<property name="single_line_mode">False</property>
|
|
||||||
<property name="angle">0</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="type">label_item</property>
|
<property name="type">label_item</property>
|
||||||
|
@ -453,73 +327,45 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="shrink">True</property>
|
|
||||||
<property name="resize">False</property>
|
<property name="resize">False</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkFrame" id="ResourcesFrame">
|
<widget class="GtkFrame" id="ResourcesFrame">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label_xalign">0</property>
|
<property name="label_xalign">0,000000</property>
|
||||||
<property name="label_yalign">0</property>
|
<property name="label_yalign">0,000000</property>
|
||||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkAlignment" id="SchedulablesFrame.Alignment">
|
<widget class="GtkAlignment" id="SchedulablesFrame.Alignment">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="xalign">0</property>
|
<property name="xalign">0,000000</property>
|
||||||
<property name="yalign">0</property>
|
<property name="yalign">0,000000</property>
|
||||||
<property name="xscale">1</property>
|
|
||||||
<property name="yscale">1</property>
|
|
||||||
<property name="top_padding">0</property>
|
|
||||||
<property name="bottom_padding">0</property>
|
|
||||||
<property name="left_padding">12</property>
|
<property name="left_padding">12</property>
|
||||||
<property name="right_padding">0</property>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkScrolledWindow" id="ResourcesScrolledWindow">
|
<widget class="GtkScrolledWindow" id="ResourcesScrolledWindow">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||||
<property name="shadow_type">GTK_SHADOW_OUT</property>
|
<property name="shadow_type">GTK_SHADOW_OUT</property>
|
||||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkTreeView" id="Resources.Tree">
|
<widget class="GtkTreeView" id="Resources.Tree">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="headers_visible">True</property>
|
|
||||||
<property name="rules_hint">False</property>
|
|
||||||
<property name="reorderable">False</property>
|
|
||||||
<property name="enable_search">True</property>
|
|
||||||
<property name="fixed_height_mode">False</property>
|
|
||||||
<property name="hover_selection">False</property>
|
|
||||||
<property name="hover_expand">False</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="ResourcesFrame.Label">
|
<widget class="GtkLabel" id="ResourcesFrame.Label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes"><i>Resources</i></property>
|
<property name="xalign">0,000000</property>
|
||||||
<property name="use_underline">False</property>
|
<property name="yalign">0,000000</property>
|
||||||
<property name="use_markup">True</property>
|
|
||||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
|
||||||
<property name="wrap">False</property>
|
|
||||||
<property name="selectable">False</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
<property name="yalign">0</property>
|
|
||||||
<property name="xpad">0</property>
|
|
||||||
<property name="ypad">2</property>
|
<property name="ypad">2</property>
|
||||||
<property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
|
<property name="label" translatable="yes"><i>Resources</i></property>
|
||||||
<property name="width_chars">-1</property>
|
<property name="use_markup">True</property>
|
||||||
<property name="single_line_mode">False</property>
|
|
||||||
<property name="angle">0</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="type">label_item</property>
|
<property name="type">label_item</property>
|
||||||
|
@ -527,87 +373,44 @@
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="shrink">True</property>
|
|
||||||
<property name="resize">False</property>
|
<property name="resize">False</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="shrink">False</property>
|
|
||||||
<property name="resize">False</property>
|
<property name="resize">False</property>
|
||||||
|
<property name="shrink">False</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkScrolledWindow" id="SimulationScrolledWindow">
|
<widget class="GtkScrolledWindow" id="SimulationScrolledWindow">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="hscrollbar_policy">GTK_POLICY_ALWAYS</property>
|
|
||||||
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
|
||||||
<property name="shadow_type">GTK_SHADOW_NONE</property>
|
|
||||||
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<placeholder/>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
|
||||||
<property name="shrink">True</property>
|
|
||||||
<property name="resize">True</property>
|
|
||||||
</packing>
|
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
<property name="position">2</property>
|
||||||
<property name="expand">True</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkStatusbar" id="MainStatusBar">
|
<widget class="GtkStatusbar" id="MainStatusBar">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="has_resize_grip">True</property>
|
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="pack_type">GTK_PACK_END</property>
|
<property name="pack_type">GTK_PACK_END</property>
|
||||||
</packing>
|
<property name="position">2</property>
|
||||||
</child>
|
|
||||||
|
|
||||||
<child>
|
|
||||||
<widget class="GtkLabel" id="ReadyQueueLabel">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="label" translatable="yes"><b>Ready queue: {</b> <b>}</b></property>
|
|
||||||
<property name="use_underline">False</property>
|
|
||||||
<property name="use_markup">True</property>
|
|
||||||
<property name="justify">GTK_JUSTIFY_LEFT</property>
|
|
||||||
<property name="wrap">False</property>
|
|
||||||
<property name="selectable">False</property>
|
|
||||||
<property name="xalign">0</property>
|
|
||||||
<property name="yalign">0</property>
|
|
||||||
<property name="xpad">7</property>
|
|
||||||
<property name="ypad">2</property>
|
|
||||||
<property name="ellipsize">PANGO_ELLIPSIZE_END</property>
|
|
||||||
<property name="width_chars">-1</property>
|
|
||||||
<property name="single_line_mode">True</property>
|
|
||||||
<property name="angle">0</property>
|
|
||||||
</widget>
|
|
||||||
<packing>
|
|
||||||
<property name="padding">0</property>
|
|
||||||
<property name="expand">False</property>
|
|
||||||
<property name="fill">True</property>
|
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="GtkAboutDialog" id="AboutDialog">
|
||||||
<widget class="GtkAboutDialog" id="AboutDialog">
|
|
||||||
<property name="destroy_with_parent">False</property>
|
|
||||||
<property name="name" translatable="yes">Application Name</property>
|
|
||||||
<property name="copyright">University of Padova, dept. of Pure and Applied Mathematics</property>
|
<property name="copyright">University of Padova, dept. of Pure and Applied Mathematics</property>
|
||||||
<property name="comments">An educational simulator for process scheduling policies in a monoprocessor computer.</property>
|
<property name="comments">An educational simulator for process scheduling policies in a monoprocessor computer.</property>
|
||||||
<property name="license">SGPEMv2 comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the terms of the GNU General Public License; for details see file COPYING contained in the source package.</property>
|
<property name="license">SGPEMv2 comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under the terms of the GNU General Public License; for details see file COPYING contained in the source package.</property>
|
||||||
|
@ -624,32 +427,25 @@ Matteo Settenvini <matteo@member.fsf.org>
|
||||||
Marco Trevisan <mtrevisa@studenti.math.unipd.it>
|
Marco Trevisan <mtrevisa@studenti.math.unipd.it>
|
||||||
Djina Verbanac <betalgez@yahoo.com>
|
Djina Verbanac <betalgez@yahoo.com>
|
||||||
Luca Vezzaro <lvezzaro@studenti.math.unipd.it></property>
|
Luca Vezzaro <lvezzaro@studenti.math.unipd.it></property>
|
||||||
<property name="translator_credits" translatable="yes" comments="TRANSLATORS: Replace this string with your names, one name per line.">translator-credits</property>
|
<property name="translator_credits">translator-credits</property>
|
||||||
|
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<widget class="GtkVBox" id="AboutDialog.VBox">
|
<widget class="GtkVBox" id="AboutDialog.VBox">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="homogeneous">False</property>
|
|
||||||
<property name="spacing">12</property>
|
<property name="spacing">12</property>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<placeholder/>
|
<placeholder/>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child internal-child="action_area">
|
<child internal-child="action_area">
|
||||||
<widget class="GtkHButtonBox" id="AboutDialog.ActionArea">
|
<widget class="GtkHButtonBox" id="AboutDialog.ActionArea">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
||||||
</widget>
|
</widget>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="padding">0</property>
|
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
<property name="fill">True</property>
|
|
||||||
<property name="pack_type">GTK_PACK_END</property>
|
<property name="pack_type">GTK_PACK_END</property>
|
||||||
</packing>
|
</packing>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
||||||
</glade-interface>
|
</glade-interface>
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include "graphical_preferences_editor.hh"
|
#include "graphical_preferences_editor.hh"
|
||||||
#include "holt_container_window.hh"
|
#include "holt_container_window.hh"
|
||||||
#include "holt_widget.hh"
|
#include "holt_widget.hh"
|
||||||
|
#include "ready_queue_widget.hh"
|
||||||
#include "schedulables_tree_widget.hh"
|
#include "schedulables_tree_widget.hh"
|
||||||
#include "simulation_widget.hh"
|
#include "simulation_widget.hh"
|
||||||
#include "resources_widget.hh"
|
#include "resources_widget.hh"
|
||||||
|
@ -576,15 +577,18 @@ GuiBuilder::GuiBuilder(const std::string& gladefile)
|
||||||
_simulation_widget->set_show_threads(_show_threads);
|
_simulation_widget->set_show_threads(_show_threads);
|
||||||
_simulation_widget->show();
|
_simulation_widget->show();
|
||||||
|
|
||||||
// Why this works, and SimulationWidget doesn't ??
|
|
||||||
// HoltWidget& holt = *manage(new HoltWidget(Simulation::get_instance()));
|
|
||||||
// simulation_window->add(holt);
|
|
||||||
// holt.show();
|
|
||||||
|
|
||||||
// temporary test on holt widget...
|
// ReadyQueue custom label widget
|
||||||
|
ReadyQueueWidget& rq_widget = *manage(new ReadyQueueWidget(Simulation::get_instance().get_history()));
|
||||||
|
HBox* rqb;
|
||||||
|
_refXml->get_widget("ReadyQueueBox", rqb);
|
||||||
|
rqb->pack_start(rq_widget);
|
||||||
|
rq_widget.show();
|
||||||
|
|
||||||
|
|
||||||
|
// HoltGraph container window
|
||||||
_holt_container.set_keep_above();
|
_holt_container.set_keep_above();
|
||||||
_holt_container.get_holt_widget().set_show_threads(_show_threads);
|
_holt_container.get_holt_widget().set_show_threads(_show_threads);
|
||||||
// _holt_container.set_deletable(false);
|
|
||||||
_holt_container.show();
|
_holt_container.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,73 @@
|
||||||
|
// src/ready_queue_widget.cc - Copyright 2005, 2006, University
|
||||||
|
// of Padova, dept. of Pure and Applied
|
||||||
|
// Mathematics
|
||||||
|
//
|
||||||
|
// This file is part of SGPEMv2.
|
||||||
|
//
|
||||||
|
// This is free software; you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// SGPEMv2 is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with SGPEMv2; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
#include "gettext.h"
|
||||||
|
|
||||||
|
#include "ready_queue_widget.hh"
|
||||||
|
|
||||||
|
#include "backend/history.hh"
|
||||||
|
#include "backend/environment.hh"
|
||||||
|
#include "backend/ready_queue.hh"
|
||||||
|
#include "backend/thread.hh"
|
||||||
|
|
||||||
|
#include <glibmm/markup.h>
|
||||||
|
#include <glibmm/ustring.h>
|
||||||
|
|
||||||
|
#include <sstream>
|
||||||
|
|
||||||
|
using namespace sgpem;
|
||||||
|
|
||||||
|
static const Glib::ustring string_start = _("<b>Ready queue: { </b>");
|
||||||
|
static const Glib::ustring string_end = "<b> }</b>";
|
||||||
|
static const Glib::ustring separator = " ~ ";
|
||||||
|
|
||||||
|
ReadyQueueWidget::ReadyQueueWidget(History& history)
|
||||||
|
: Gtk::Label(string_start + string_end), _h(history)
|
||||||
|
{
|
||||||
|
_h.attach(*this);
|
||||||
|
|
||||||
|
set_use_markup(true);
|
||||||
|
set_justify(Gtk::JUSTIFY_LEFT);
|
||||||
|
set_padding(5, 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ReadyQueueWidget::~ReadyQueueWidget()
|
||||||
|
{
|
||||||
|
_h.detach(*this);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ReadyQueueWidget::update(const History& changed_history)
|
||||||
|
{
|
||||||
|
Glib::ustring text(string_start);
|
||||||
|
|
||||||
|
const ReadyQueue& rq = changed_history.get_last_environment().get_sorted_queue();
|
||||||
|
size_t size = rq.size();
|
||||||
|
|
||||||
|
for(size_t i = 0; i < size; ++i)
|
||||||
|
text += Glib::Markup::escape_text(rq.get_item_at(i).get_name()) + separator;
|
||||||
|
|
||||||
|
text += string_end;
|
||||||
|
|
||||||
|
set_markup(text);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
// src/ready_queue_widget.hh - Copyright 2005, 2006, University
|
||||||
|
// of Padova, dept. of Pure and Applied
|
||||||
|
// Mathematics
|
||||||
|
//
|
||||||
|
// This file is part of SGPEMv2.
|
||||||
|
//
|
||||||
|
// This is free software; you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation; either version 2 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
//
|
||||||
|
// SGPEMv2 is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with SGPEMv2; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
#ifndef READY_QUEUE_WIDGET_HH
|
||||||
|
#define READY_QUEUE_WIDGET_HH 1
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <gtkmm/label.h>
|
||||||
|
|
||||||
|
#include "backend/history_observer.hh"
|
||||||
|
|
||||||
|
namespace sgpem
|
||||||
|
{
|
||||||
|
class ReadyQueueWidget : public HistoryObserver, public Gtk::Label
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ReadyQueueWidget(History& history);
|
||||||
|
virtual ~ReadyQueueWidget();
|
||||||
|
|
||||||
|
virtual void update(const History& changed_history);
|
||||||
|
private:
|
||||||
|
History& _h;
|
||||||
|
};
|
||||||
|
|
||||||
|
} //~ namespace sgpem
|
||||||
|
|
||||||
|
|
||||||
|
#endif //~ READY_QUEUE_WIDGET_HH
|
|
@ -38,7 +38,10 @@
|
||||||
#include <gtkmm/menuitem.h>
|
#include <gtkmm/menuitem.h>
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace sgpem;
|
using namespace sgpem;
|
||||||
using Gnome::Glade::Xml;
|
using Gnome::Glade::Xml;
|
||||||
|
|
|
@ -164,7 +164,6 @@ SimulationWidget::draw_widget(cairo_t* ctx)
|
||||||
void
|
void
|
||||||
SimulationWidget::draw_names(cairo_t* ctx)
|
SimulationWidget::draw_names(cairo_t* ctx)
|
||||||
{
|
{
|
||||||
// std::cout << " SimulationWidget::draw_names " << std::endl;
|
|
||||||
// show processes (and thread) names...
|
// show processes (and thread) names...
|
||||||
|
|
||||||
// useful constants
|
// useful constants
|
||||||
|
@ -331,7 +330,10 @@ SimulationWidget::draw_bars(cairo_t* ctx)
|
||||||
from_time = 1;
|
from_time = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
std::cout << " SimulationWidget::draw_bars from:" << from_time << " to:" << hist_front << std::endl;
|
std::cout << " SimulationWidget::draw_bars from:" << from_time << " to:" << hist_front << std::endl;
|
||||||
|
#endif
|
||||||
|
|
||||||
for(unsigned int t=from_time; t<=hist_front; t++)
|
for(unsigned int t=from_time; t<=hist_front; t++)
|
||||||
{
|
{
|
||||||
// draw schedulables bars
|
// draw schedulables bars
|
||||||
|
@ -373,12 +375,6 @@ void
|
||||||
SimulationWidget::draw_instant_rect(cairo_t* ctx, double x, double y,
|
SimulationWidget::draw_instant_rect(cairo_t* ctx, double x, double y,
|
||||||
double w, double h, Schedulable::state state)
|
double w, double h, Schedulable::state state)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
// _ready_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);
|
|
||||||
// _blocked_process_gradient = cairo_pattern_create_linear(0, 0, 0, _yu_process_bar_height * _y_unit);
|
|
||||||
|
|
||||||
cairo_matrix_t matrix;
|
cairo_matrix_t matrix;
|
||||||
|
|
||||||
switch(state)
|
switch(state)
|
||||||
|
@ -429,212 +425,10 @@ SimulationWidget::draw_instant_rect(cairo_t* ctx, double x, double y,
|
||||||
} // ~ switch(state)
|
} // ~ switch(state)
|
||||||
}
|
}
|
||||||
|
|
||||||
// OLD - START ***************
|
|
||||||
/*
|
|
||||||
void
|
|
||||||
SimulationWidget::draw_widget(cairo_t* ctx)
|
|
||||||
{
|
|
||||||
|
|
||||||
const History& hist = _simulation->get_history();
|
|
||||||
const Environment::Processes& processes = hist.get_last_environment().get_processes();
|
|
||||||
if(_n_proc<1) // nothing to draw
|
|
||||||
return;
|
|
||||||
|
|
||||||
double text_maxw = 0;
|
|
||||||
bool* terminated = 0;
|
|
||||||
double top_margin = _y_unit;
|
|
||||||
double left_margin = _x_unit;
|
|
||||||
double top_graph_margin = 1.0 * _y_unit; //3.0 * _y_unit;
|
|
||||||
double left_graph_margin = 11.0 * _x_unit;
|
|
||||||
double process_label_delta = 1.0 * _y_unit;
|
|
||||||
double process_bar_delta = 1.0 * _y_unit;
|
|
||||||
double process_bar_height = 1.0 * _y_unit;
|
|
||||||
double process_height = process_bar_height + 2*process_bar_delta;
|
|
||||||
double thread_bar_height = 1.0 * _y_unit;
|
|
||||||
Simulation::state sim_state = _simulation->get_state();
|
|
||||||
cairo_text_extents_t extents;
|
|
||||||
int item_index;
|
|
||||||
if(_n_proc+_n_thr>0)
|
|
||||||
terminated = new bool[_n_proc+_n_thr];
|
|
||||||
|
|
||||||
// show processes names...
|
|
||||||
// set clip region to cut long names
|
|
||||||
cairo_rectangle(ctx, 0, top_graph_margin,
|
|
||||||
left_graph_margin - _x_unit, _n_proc*process_height + _n_thr*thread_bar_height);
|
|
||||||
cairo_clip(ctx); // set the rectangular clip region
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{ // draw schedulables names block
|
|
||||||
item_index = 0;
|
|
||||||
double ypos = top_graph_margin; // height of process bar
|
|
||||||
const Environment::Processes& processes = hist.get_last_environment().get_processes();
|
|
||||||
Environment::Processes::const_iterator proc_iter = processes.begin();
|
|
||||||
while(proc_iter!=processes.end())
|
|
||||||
{
|
|
||||||
Process* p = (*proc_iter);
|
|
||||||
proc_iter++;
|
|
||||||
ypos += process_bar_delta; // white row before
|
|
||||||
cairo_move_to(ctx, left_margin, ypos);
|
|
||||||
cairo_show_text(ctx,p->get_name().c_str());
|
|
||||||
ypos += process_bar_delta; // height of process bar
|
|
||||||
terminated[item_index] = false;
|
|
||||||
item_index++;
|
|
||||||
if(_show_threads)
|
|
||||||
{
|
|
||||||
const std::vector<Thread*>& tvect = p->get_threads();
|
|
||||||
std::vector<Thread*>::const_iterator thr_iter = tvect.begin();
|
|
||||||
while(thr_iter!=tvect.end())
|
|
||||||
{
|
|
||||||
Thread* t = (*thr_iter);
|
|
||||||
thr_iter++;
|
|
||||||
cairo_move_to(ctx, left_margin+_x_unit, ypos);
|
|
||||||
cairo_show_text(ctx,t->get_name().c_str());
|
|
||||||
ypos += thread_bar_height; // height of process bar
|
|
||||||
terminated[item_index] = false;
|
|
||||||
item_index++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
ypos += process_bar_delta; // white row after
|
|
||||||
} // ~ while(proc_iter!=processes.end())
|
|
||||||
} // ~ draw schedulables names block
|
|
||||||
|
|
||||||
|
|
||||||
cairo_reset_clip(ctx); // remove clip region
|
|
||||||
|
|
||||||
// std::cout << " draw_widget not_stop " << std::endl;
|
|
||||||
unsigned int pos = _simulation->get_history().get_front();
|
|
||||||
|
|
||||||
// show grid
|
|
||||||
cairo_save(ctx);
|
|
||||||
cairo_set_line_width(ctx, 0.5*cairo_get_line_width(ctx));
|
|
||||||
// _n_proc+1 horizontal lines
|
|
||||||
for(int i=0; i<=_n_proc; i++)
|
|
||||||
{
|
|
||||||
cairo_move_to(ctx, left_graph_margin, top_graph_margin + process_height*i);
|
|
||||||
cairo_line_to(ctx, left_graph_margin + (pos+2)*_x_unit, top_graph_margin + process_height*i);
|
|
||||||
}
|
|
||||||
// opening vertical line
|
|
||||||
cairo_move_to(ctx, left_graph_margin, top_graph_margin);
|
|
||||||
cairo_line_to(ctx, left_graph_margin, top_graph_margin + process_height*_n_proc);
|
|
||||||
cairo_stroke(ctx);
|
|
||||||
|
|
||||||
// closing vertical line
|
|
||||||
if(sim_state!=Simulation::state_stopped)
|
|
||||||
{
|
|
||||||
double dashes = 1.5;
|
|
||||||
cairo_set_dash(ctx, &dashes, 1, 0.0);
|
|
||||||
}
|
|
||||||
cairo_move_to(ctx, left_graph_margin + (pos+2)*_x_unit, top_graph_margin);
|
|
||||||
cairo_line_to(ctx, left_graph_margin + (pos+2)*_x_unit, top_graph_margin + process_height*_n_proc);
|
|
||||||
cairo_stroke(ctx);
|
|
||||||
cairo_restore(ctx);
|
|
||||||
|
|
||||||
item_index = 0;
|
|
||||||
for(int t=1; t<=pos; t++)
|
|
||||||
{
|
|
||||||
double ypos = top_graph_margin;
|
|
||||||
const Environment::Processes& processes = hist.get_environment_at(t).get_processes();
|
|
||||||
double xpos = left_graph_margin + t*_x_unit;
|
|
||||||
Environment::Processes::const_iterator proc_iter = processes.begin();
|
|
||||||
while(proc_iter!=processes.end())
|
|
||||||
{
|
|
||||||
Process* p = (*proc_iter);
|
|
||||||
proc_iter++;
|
|
||||||
ypos += process_bar_delta; // space y before process bar
|
|
||||||
Schedulable::state st = p->get_state();
|
|
||||||
// Schedulable::state st = processes[i]->get_state();
|
|
||||||
switch(st)
|
|
||||||
{
|
|
||||||
case Schedulable::state_running:
|
|
||||||
cairo_set_source_rgb(ctx, 0, 1, 0);
|
|
||||||
cairo_rectangle(ctx, xpos, ypos, _x_unit, _y_unit);
|
|
||||||
cairo_fill(ctx);
|
|
||||||
break;
|
|
||||||
case Schedulable::state_ready:
|
|
||||||
cairo_set_source_rgb(ctx, 1, 1, 0);
|
|
||||||
cairo_rectangle(ctx, xpos, ypos, _x_unit, _y_unit);
|
|
||||||
cairo_fill(ctx);
|
|
||||||
break;
|
|
||||||
case Schedulable::state_blocked:
|
|
||||||
cairo_set_source_rgb(ctx, 1, 0, 0);
|
|
||||||
cairo_rectangle(ctx, xpos, ypos, _x_unit, _y_unit);
|
|
||||||
cairo_fill(ctx);
|
|
||||||
break;
|
|
||||||
case Schedulable::state_future:
|
|
||||||
break;
|
|
||||||
case Schedulable::state_terminated:
|
|
||||||
if(!terminated[item_index])
|
|
||||||
{
|
|
||||||
cairo_set_source_rgb(ctx, 0, 0, 0);
|
|
||||||
cairo_rectangle(ctx, xpos, ypos, _x_unit, _y_unit);
|
|
||||||
cairo_fill(ctx);
|
|
||||||
}
|
|
||||||
terminated[item_index] = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
ypos += process_bar_delta; // height of process bar
|
|
||||||
item_index++;
|
|
||||||
if(_show_threads)
|
|
||||||
{
|
|
||||||
const std::vector<Thread*>& tvect = p->get_threads();
|
|
||||||
std::vector<Thread*>::const_iterator thr_iter = tvect.begin();
|
|
||||||
while(thr_iter!=tvect.end())
|
|
||||||
{
|
|
||||||
Thread* t = (*thr_iter);
|
|
||||||
thr_iter++;
|
|
||||||
Schedulable::state thr_state = t->get_state();
|
|
||||||
switch(thr_state)
|
|
||||||
{
|
|
||||||
case Schedulable::state_running:
|
|
||||||
cairo_set_source_rgb(ctx, 0, 1, 0);
|
|
||||||
cairo_rectangle(ctx, xpos, ypos+_y_unit/3.0, _x_unit, _y_unit/3.0);
|
|
||||||
cairo_fill(ctx);
|
|
||||||
break;
|
|
||||||
case Schedulable::state_ready:
|
|
||||||
cairo_set_source_rgb(ctx, 1, 1, 0);
|
|
||||||
cairo_rectangle(ctx, xpos, ypos+_y_unit/3.0, _x_unit, _y_unit/3.0);
|
|
||||||
cairo_fill(ctx);
|
|
||||||
break;
|
|
||||||
case Schedulable::state_blocked:
|
|
||||||
cairo_set_source_rgb(ctx, 1, 0, 0);
|
|
||||||
cairo_rectangle(ctx, xpos, ypos+_y_unit/3.0, _x_unit, _y_unit/3.0);
|
|
||||||
cairo_fill(ctx);
|
|
||||||
break;
|
|
||||||
case Schedulable::state_future:
|
|
||||||
break;
|
|
||||||
case Schedulable::state_terminated:
|
|
||||||
if(!terminated[item_index])
|
|
||||||
{
|
|
||||||
cairo_set_source_rgb(ctx, 0, 0, 0);
|
|
||||||
cairo_rectangle(ctx, xpos, ypos+_y_unit/3.0, _x_unit, _y_unit/3.0);
|
|
||||||
cairo_fill(ctx);
|
|
||||||
}
|
|
||||||
terminated[item_index] = true;
|
|
||||||
break;
|
|
||||||
} // ~ switch(thr_state) - thread
|
|
||||||
item_index++;
|
|
||||||
ypos += thread_bar_height; // height of process bar
|
|
||||||
} // ~ while(thr_iter!=tvect.end())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} // ~ for(int t=1; t<=pos; t++)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
delete[] terminated;
|
|
||||||
|
|
||||||
} // ~ draw_widget
|
|
||||||
// OLD - END ******************
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
void
|
void
|
||||||
SimulationWidget::calc_drawing_size(cairo_t* ctx, size_t& width, size_t& height)
|
SimulationWidget::calc_drawing_size(cairo_t* ctx, size_t& width, size_t& height)
|
||||||
{
|
{
|
||||||
// std::cout << "Simulation widget BEFORE calc_drawing_size width=" << width << " height=" << height << std::endl;
|
|
||||||
|
|
||||||
if(!_simulation)
|
if(!_simulation)
|
||||||
return;
|
return;
|
||||||
const History& hist = _simulation->get_history();
|
const History& hist = _simulation->get_history();
|
||||||
|
@ -642,7 +436,6 @@ SimulationWidget::calc_drawing_size(cairo_t* ctx, size_t& width, size_t& height)
|
||||||
int pos = _simulation->get_history().get_front();
|
int pos = _simulation->get_history().get_front();
|
||||||
cairo_text_extents_t extents;
|
cairo_text_extents_t extents;
|
||||||
|
|
||||||
// std::cout << " x_unit: " << std::endl;
|
|
||||||
Glib::ustring val("999");
|
Glib::ustring val("999");
|
||||||
cairo_text_extents(ctx, val.c_str(), &extents);
|
cairo_text_extents(ctx, val.c_str(), &extents);
|
||||||
if(_x_unit<extents.width)
|
if(_x_unit<extents.width)
|
||||||
|
@ -656,8 +449,6 @@ SimulationWidget::calc_drawing_size(cairo_t* ctx, size_t& width, size_t& height)
|
||||||
height = (size_t)((_yu_top_margin + (_yu_process_bar_spacing*2.0+_yu_process_bar_height) * _n_proc + 3.0) * _y_unit);
|
height = (size_t)((_yu_top_margin + (_yu_process_bar_spacing*2.0+_yu_process_bar_height) * _n_proc + 3.0) * _y_unit);
|
||||||
if(_show_threads)
|
if(_show_threads)
|
||||||
height += (size_t) (_n_thr * (_yu_thread_bar_spacing*2.0+_yu_thread_bar_height) * _y_unit);
|
height += (size_t) (_n_thr * (_yu_thread_bar_spacing*2.0+_yu_thread_bar_height) * _y_unit);
|
||||||
|
|
||||||
// std::cout << "Simulation widget AFTER calc_drawing_size width=" << width << " height=" << height << std::endl;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -666,7 +457,6 @@ SimulationWidget::calc_drawing_size(cairo_t* ctx, size_t& width, size_t& height)
|
||||||
void
|
void
|
||||||
SimulationWidget::count_elements()
|
SimulationWidget::count_elements()
|
||||||
{
|
{
|
||||||
std::cout << "SimulationWidget::count_elements" << std::endl;
|
|
||||||
_n_proc = _n_thr = 0;
|
_n_proc = _n_thr = 0;
|
||||||
|
|
||||||
const History& hist = _simulation->get_history();
|
const History& hist = _simulation->get_history();
|
||||||
|
@ -684,8 +474,6 @@ SimulationWidget::count_elements()
|
||||||
_n_thr += p->get_threads().size();
|
_n_thr += p->get_threads().size();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << " _n_proc=" << _n_proc << " _n_thr=" << _n_thr << std::endl;
|
|
||||||
// count_elements();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -694,17 +482,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_rgba(_ready_process_gradient, 0.00, 1.0, 1.0, 0.5, 0.7);
|
cairo_pattern_add_color_stop_rgb(_ready_process_gradient, 0.0, 1.00, 1.00, 0.0);
|
||||||
cairo_pattern_add_color_stop_rgba(_ready_process_gradient, 1.00, 1.0, 1.0, 0.0, 1.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, 1.0, 1.00, 1.00, 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_rgba(_running_process_gradient, 0.00, 0.5, 1.0, 0.5, 0.7);
|
cairo_pattern_add_color_stop_rgb(_running_process_gradient, 0.0, 0.0, 0.7, 0.0);
|
||||||
cairo_pattern_add_color_stop_rgba(_running_process_gradient, 1.00, 0.0, 1.0, 0.0, 1.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);
|
||||||
|
|
||||||
_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_rgba(_blocked_process_gradient, 0.00, 1.0, 0.5, 0.5, 0.7);
|
cairo_pattern_add_color_stop_rgb(_blocked_process_gradient, 0.0, 0.7, 0.0, 0.0);
|
||||||
cairo_pattern_add_color_stop_rgba(_blocked_process_gradient, 1.00, 1.0, 0.0, 0.0, 1.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, 1.0, 0.7, 0.0, 0.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue