- Add desktop file

- Delete old leftovers from first xmlsave implementation
- Move valid dtd to xmlsave


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@1166 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-09-14 23:34:12 +00:00
parent 7bcd220f89
commit 29c664951f
8 changed files with 26 additions and 91 deletions

View File

@ -42,6 +42,8 @@ examplesdir = $(sharedir)/examples
policiesdir = $(sharedir)/policies policiesdir = $(sharedir)/policies
plugindir = $(sharedir)/plugins plugindir = $(sharedir)/plugins
gladedir = $(sharedir)/glade gladedir = $(sharedir)/glade
applicationsdir = @datadir@/applications
localedir = @datadir@/locale localedir = @datadir@/locale
aclocaldir = @datadir@/aclocal aclocaldir = @datadir@/aclocal
@ -106,6 +108,10 @@ MAINTAINERCLEANFILES += doc/API
pkgconfdir = $(libdir)/pkgconfig pkgconfdir = $(libdir)/pkgconfig
pkgconf_DATA = config/sgpemv2.pc pkgconf_DATA = config/sgpemv2.pc
applications_DATA = data/sgpemv2.desktop
EXTRA_DIST += $(applications_DATA)
# ############################################################ # ############################################################
# #
# documentation # documentation

View File

@ -1,27 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE sgpem SYSTEM "preferences.dtd">
<sgpem>
<recents>
<recent order="recent1" name="caio">Ultimo file aperto</recent>
<recent order="recent2" name="tullio">Penultimo file aperto</recent>
<recent order="recent3" name="sempronio">Terzultimo file aperto</recent>
</recents>
<layout>
<window id="mainwnd" geometry="0.0 0.0 100.0 100.0"/>
<window id="processeswnd" geometry="0.0 0.0 20.0 50.0"/>
<window id="resourceswnd" geometry="0.0 50.0 20.0 50.0"/>
<window id="schewnd" geometry="20.0 0.0 80.0 100.0"/>
</layout>
<preferences>
<default-speed>100</default-speed>
<modules>
<module id="python-sjf" />
<module id="python-rr" enabled="true" />
<module id="python-ocio" enabled="false" />
</modules>
</preferences>
</sgpem>
<!-- This file is for test only.
Handwrited to test DTD and for data example.
Validated with: xmllint -->

View File

@ -1,33 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE sgpem SYSTEM "sgpem.dtd">
<sgpem>
<resources>
<resource name="Resource 1" id="reskey2" arrival-time="0" how-many="1" pre-emptible="false"/>
<resource name="Invalid? Resource &lt;n&gt; 1" id="reskey3" arrival-time="0" how-many="1" pre-emptible="false"/>
</resources>
<schedulables>
<process name="Process 1" priority="2" arrival-time="0">
<threads>
<thread name="Process 1 - Thread 1" priority="6" arrival-delta="2" lasts-for="0">
<requests>
<request arrival-time="3">
<subrequest resource="2" how-many="2" lasts-for="5"/>
</request>
</requests>
</thread>
<thread name="Process 1 - Thread 2" priority="5" arrival-delta="3" lasts-for="0">
<requests/>
</thread>
</threads>
</process>
<process name="Process 2" priority="3" arrival-time="7">
<threads/>
</process>
<process name="Process 3" priority="1" arrival-time="9">
<threads/>
</process>
<process name="Invalid? &lt;process/&gt; &amp;3 or\4" priority="1" arrival-time="9">
<threads/>
</process>
</schedulables>
</sgpem>

View File

@ -1,29 +0,0 @@
<!ELEMENT sgpem (recents, layout?, preferences) >
<!ENTITY % text "#PCDATA">
<!-- Ricorda i file piu' recenti -->
<!ELEMENT recents (recent)*>
<!ELEMENT recent (%text;)>
<!ATTLIST recent
order ID #REQUIRED
name CDATA #IMPLIED>
<!ELEMENT layout (window)+>
<!ELEMENT window EMPTY>
<!--
attribute 'geometry' is: x y width height. All
values are percentuals of the screen size
-->
<!ATTLIST window
id ID #REQUIRED
geometry NMTOKENS #REQUIRED>
<!-- Altre preferenze -->
<!ELEMENT preferences (default-speed, modules)>
<!ELEMENT default-speed (%text;)>
<!ELEMENT modules (module)*>
<!ELEMENT module EMPTY>
<!ATTLIST module
id ID #REQUIRED
enabled (true | false) "false">

15
data/sgpemv2.desktop Normal file
View File

@ -0,0 +1,15 @@
Type=Application
Version=0.9
Name=SGPEMv2
Categories=Education;Engineering;GTK
GenericName=Process Scheduling Simulator
GenericName[it]=Simulatore della Gestione dei Processi
Comment=An educational software showing process scheduling in a simulated operating system
Comment[it]=Un programma educativo che mostra la gestione dei processi in un sistema operativo simulato
Icon=scc-sgpemv2
Exec=sgpemv2 '%f'
Terminal=false

View File

@ -60,6 +60,9 @@ EXTRA_DIST += \
gettext.h \ gettext.h \
$(macros) $(macros)
# dtds
EXTRA_DIST += src/sgpem.dtd
# ############################################################ # ############################################################
# #
# source : libxmlsave.la # source : libxmlsave.la