------------------------------------------------------------------------------ ------------------------------------------------------------------------------ -- Cheddar is a GNU GPL real-time scheduling analysis tool. -- This program provides services to automatically check schedulability and -- other performance criteria of real-time architecture models. -- -- Copyright (C) 2002-2023, Frank Singhoff, Alain Plantec, Jerome Legrand, -- Hai Nam Tran, Stephane Rubini -- -- The Cheddar project was started in 2002 by -- Frank Singhoff, Lab-STICC UMR 6285, Université de Bretagne Occidentale -- -- Cheddar has been published in the "Agence de Protection des Programmes/France" in 2008. -- Since 2008, Ellidiss technologies also contributes to the development of -- Cheddar and provides industrial support. -- -- The full list of contributors and sponsors can be found in README.md -- -- This program 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. -- -- This program 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 this program; if not, write to the Free Software -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -- -- -- Contact : cheddar@listes.univ-brest.fr -- ------------------------------------------------------------------------------ -- Last update : -- $Rev: 3657 $ -- $Date: 2020-12-13 13:25:49 +0100 (dim., 13 déc. 2020) $ -- $Author: singhoff $ ------------------------------------------------------------------------------ ------------------------------------------------------------------------------ with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Gtk.Combo_Box; use Gtk.Combo_Box; with Gtk.Combo_Box_text; use Gtk.Combo_Box_text; with Gtk.Text_Buffer; use Gtk.Text_Buffer; with Gtk.List_Store; use Gtk.List_Store; with Gtk.Tree_View; use Gtk.Tree_View; with Gtk.Tree_Model; use Gtk.Tree_Model; with Glib; use Glib; with Glib.Object; use Glib.Object; with Glib.Values; use Glib.Values; with Gtkada.Builder; use Gtkada.Builder; with Doubles; use Doubles; with Scheduler_interface; use Scheduler_interface; with Standards_io; use Standards_io; use Standards_io.double_io; package graphical_editor.generic_package_widget is number_of_widget : Positive := 30; type my_windows is (cache_window, core_window, processor_window, network_window, address_space_window, tasks_window, resource_window, buffer_window, dependencies_window, message_window, event_analyser_window, deployment_window, precedence_dependency_window, time_triggered_dependency_window, queueing_buffer_dependency_window, black_board_buffer_dependency_window, resource_dependency_window, asynchronous_communication_dependency_window, task_groups_window); type parameter_type is (buffer_string, buffer_integer, buffer_double, combo, lists, view, my_window); type t_widget (ptype : parameter_type := buffer_string) is record case ptype is when buffer_string | buffer_integer | buffer_double => buffer_value : gtk_text_buffer; when combo => combo_value : gtk_combo_box_text; when lists => list_value : gtk_list_store; when view => view_value : gtk_tree_view; when my_window => window_value : my_windows; end case; end record; type widget_ptr is access t_widget; type table_widget_id is array (1 .. number_of_widget) of widget_ptr; function get_value_buffer_string (buffer : gtk_text_buffer) return Unbounded_String; function get_value_buffer_integer (buffer : gtk_text_buffer) return Integer; function get_value_buffer_double (buffer : gtk_text_buffer) return Double; function get_number_elements (treemodel : gtk_tree_model) return Integer; function get_int_combo (combo : gtk_combo_box_text; value : Unbounded_String) return Integer; end graphical_editor.generic_package_widget;