Skip to content

Commit

Permalink
Merge branch 'release/Part_4_GTK_v1.0' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Nouuu committed Nov 22, 2020
2 parents b6e10f1 + 0c5b647 commit db18ea4
Show file tree
Hide file tree
Showing 22 changed files with 334 additions and 0 deletions.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
4 changes: 4 additions & 0 deletions working_builds/part_4/test_files/dtd_example_1.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!DOCTYPE ESGI [
<!ELEMENT classrooms (classroom+)>
<!ELEMENT classroom (#PCDATA)>
]>
4 changes: 4 additions & 0 deletions working_builds/part_4/test_files/dtd_example_2.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!DOCTYPE ESGI [
<!ELEMENT classrooms (classroom)>
<!ELEMENT classroom (#PCDATA)>
]>
6 changes: 6 additions & 0 deletions working_builds/part_4/test_files/dtd_example_3.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!DOCTYPE address [
<!ELEMENT address (name,company,phone)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT company (#PCDATA)>
<!ELEMENT phone (#PCDATA)>
]>
9 changes: 9 additions & 0 deletions working_builds/part_4/test_files/dtd_example_4.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE employee [
<!ELEMENT employee (name,designation, email)>
<!ATTLIST employee id CDATA #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ELEMENT designation (#PCDATA)>
<!ATTLIST designation discipline CDATA #IMPLIED>
<!ELEMENT email (#PCDATA)>
]>

7 changes: 7 additions & 0 deletions working_builds/part_4/test_files/dtd_example_5.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE beginnersbook [
<!ELEMENT beginnersbook (to,from,subject,message)>
<!ELEMENT to (#PCDATA)>
<!ELEMENT from (#PCDATA)>
<!ELEMENT subject (#PCDATA)>
<!ELEMENT message (#PCDATA)>
]>
10 changes: 10 additions & 0 deletions working_builds/part_4/test_files/dtd_example_6.dtd
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE encyclopedie [
<!ELEMENT encyclopedie (personne*)>
<!ELEMENT personne (nom,prenom,publication+)>
<!ATTLIST personne sexe (H | F) #REQUIRED>
<!ATTLIST personne datenaissance CDATA #REQUIRED>
<!ELEMENT nom (#PCDATA)>
<!ELEMENT prenom (#PCDATA)>
<!ELEMENT publication (#PCDATA)>
]>

10 changes: 10 additions & 0 deletions working_builds/part_4/test_files/xml_example_1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- xml for dtd_example_2.dtd file (correct) -->
<ESGI>
<classrooms key="key">
<classroom>AL</classroom>
<classroom>IABD</classroom>
<classroom>MOC</classroom>
<classroom>IBC</classroom>
</classrooms>
</ESGI>
10 changes: 10 additions & 0 deletions working_builds/part_4/test_files/xml_example_2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!-- xml for dtd_example_4.dtd file (correct) -->
<ESGI>
<classrooms key="key">
<classroom>AL</classroom>
<classroom>IABD</classroom>
<classroom>MOC</classroom>
<classroom>IBC</classroom>
</classrooms>
</ESGI>
6 changes: 6 additions & 0 deletions working_builds/part_4/test_files/xml_example_3.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<address>
<name>Tanmay Patil</name>
<company>TutorialsPoint</company>
<phone>(011) 123-4567</phone>
</address>
9 changes: 9 additions & 0 deletions working_builds/part_4/test_files/xml_example_4.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version = "1.0" ?>

<employee id="1">
<name>Nou larlac</name>
<designation discipline="Pro developper">
Junior Engineer
</designation>
<email>noe@mail.com</email>
</employee>
8 changes: 8 additions & 0 deletions working_builds/part_4/test_files/xml_example_5.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0"?>

<beginnersbook>
<to>My Readers</to>
<from>Chaitanya</from>
<subject>A Message to my readers</subject>
<message>Welcome to beginnersbook.com</message>
</beginnersbook>
27 changes: 27 additions & 0 deletions working_builds/part_4/test_files/xml_example_6.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0"?>

<encyclopedie>
<personne datenaissance="1942-01-08" sexe="H">
<nom>HAWKING</nom>
<prenom>Stephen</prenom>
<publication>Une brève histoire du temps</publication>
</personne>
<personne datenaissance="1932-07-13" sexe="H">
<nom>REEVES</nom>
<prenom>Hubert</prenom>
<publication>L'Univers expliqué à mes petits-enfants</publication>
<publication>Patience dans l'azur, L'évolution cosmique</publication>
<publication>Poussières d'étoiles</publication>
</personne>
<personne datenaissance="1879-03-14" sexe="H">
<nom>EINSTEN</nom>
<prenom>Albert</prenom>
<publication>Des ondes gravitationnelles</publication>
<publication>Sur la théorie quantique du rayonnement</publication>
</personne>
<personne datenaissance="1867-11-07" sexe="F">
<nom>CURIE</nom>
<prenom>Marie</prenom>
<publication>traité de radioactivité</publication>
</personne>
</encyclopedie>
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added working_builds/part_4/windows/V1.0/gtk_files/spy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
224 changes: 224 additions & 0 deletions working_builds/part_4/windows/V1.0/gtk_files/window.glade
Original file line number Diff line number Diff line change
@@ -0,0 +1,224 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.1 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkTextBuffer" id="consoleTextbuffer">
<property name="text" translatable="yes">bonj,our</property>
</object>
<object class="GtkImage" id="spy">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">spy.png</property>
</object>
<object class="GtkWindow" id="window">
<property name="width-request">800</property>
<property name="height-request">700</property>
<property name="can-focus">False</property>
<property name="title" translatable="yes">CXML - Ultimate XML DTD validator</property>
<property name="resizable">False</property>
<property name="icon">CXML.png</property>
<child>
<object class="GtkFixed">
<property name="visible">True</property>
<property name="can-focus">False</property>
<child>
<object class="GtkImage">
<property name="width-request">760</property>
<property name="height-request">100</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">banner.png</property>
</object>
<packing>
<property name="x">20</property>
<property name="y">20</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="spacing">20</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Choose XML file :</property>
<attributes>
<attribute name="font-desc" value="Sans Bold 12"/>
<attribute name="style" value="normal"/>
<attribute name="underline" value="True"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkFileChooserButton" id="xmlFileChooserButton">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="create-folders">False</property>
<property name="title" translatable="yes">Choose file</property>
<property name="width-chars">15</property>
<signal name="file-set" handler="on_xmlFileChooserButton_file_set" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="x">20</property>
<property name="y">200</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="spacing">20</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Choose DTD file :</property>
<attributes>
<attribute name="font-desc" value="Sans Bold 12"/>
<attribute name="style" value="normal"/>
<attribute name="underline" value="True"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkFileChooserButton" id="dtdFileChooserButton">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="create-folders">False</property>
<property name="show-hidden">True</property>
<property name="title" translatable="yes">Choose key</property>
<property name="width-chars">15</property>
<signal name="file-set" handler="on_dtdFileChooserButton_file_set" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="x">420</property>
<property name="y">200</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="height-request">50</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="spacing">20</property>
<child>
<object class="GtkLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Status :</property>
<attributes>
<attribute name="font-desc" value="Sans Bold 12"/>
<attribute name="style" value="normal"/>
<attribute name="underline" value="True"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="statusLabel">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="single-line-mode">True</property>
<property name="max-width-chars">83</property>
<attributes>
<attribute name="font-desc" value="Sans 10"/>
<attribute name="foreground" value="#4e4e9a9a0606"/>
</attributes>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="x">20</property>
<property name="y">630</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="width-request">760</property>
<property name="height-request">350</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="shadow-type">in</property>
<child>
<object class="GtkTextView" id="consoleTextView">
<property name="width-request">760</property>
<property name="height-request">160</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="vscroll-policy">natural</property>
<property name="editable">False</property>
<property name="wrap-mode">word</property>
<property name="left-margin">5</property>
<property name="right-margin">5</property>
<property name="top-margin">5</property>
<property name="bottom-margin">5</property>
<property name="buffer">consoleTextbuffer</property>
<property name="input-purpose">terminal</property>
<property name="monospace">True</property>
<style>
<class name="textview text {&#10;color : #8E3388;&#10;}"/>
</style>
</object>
</child>
</object>
<packing>
<property name="x">20</property>
<property name="y">250</property>
</packing>
</child>
<child>
<object class="GtkButton" id="validateButton">
<property name="label" translatable="yes">Validate document</property>
<property name="width-request">180</property>
<property name="height-request">50</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">spy</property>
<property name="always-show-image">True</property>
<signal name="clicked" handler="on_validateButton_clicked" swapped="no"/>
</object>
<packing>
<property name="x">600</property>
<property name="y">630</property>
</packing>
</child>
</object>
</child>
</object>
</interface>

0 comments on commit db18ea4

Please sign in to comment.