Hello
i would like to transform this inx fill in glade fill for an extension. Can somebody help me ?
Thanks
Circumpolaire
<?xml version="1.0" encoding="UTF-8"?><inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> <name>Carto : Hachures et grains</name> <id>carto</id> <dependency type="executable" location="extensions">hatches_grains.py</dependency> <!-- Version 5.2 - 04.10.2023 --> <param name="tab" type="notebook"> <!-- Standardized hatches settings --> <page name="hatches_page" gui-text="Hachures continues"> <label xml:space="preserve">Créer des hachures standardisées pour différencier ou hiérachiser des objets cartographiques.</label> <label appearance="header">Jeux de hachures continues</label> <param name="angle" type="enum" gui-text="Orientation :"> <item value="90">0°</item> <item value="135">45°</item> <item value="0">90°</item> <item value="45">135°</item> </param> <param name="thickness" type="enum" gui-text="Epaisseur :"> <item value="0.25">0.25 mm</item> <item value="0.5">0.5 mm</item> <item value="1">1 mm</item> <item value="2">2 mm</item> <item value="3">3 mm</item> <item value="5">5 mm</item> <item value="10">10 mm</item> <item value="15">15 mm</item> </param> <param name="spacing" type="enum" gui-text="Espacement :"> <item value="2">2 mm</item> <item value="3">3 mm</item> <item value="5">5 mm</item> <item value="10">10 mm</item> <item value="15">15 mm</item> </param> <label appearance="header">Couleurs des hachures</label> <param name="hcolor" type="color" gui-text="Hatches color"/> </page> <!-- Standardized discontinuous hatches settings --> <page name="dhatches_page" gui-text="Hachures discontinues"> <label xml:space="preserve">Créer des hachures standardisées pour différencier ou hiérachiser des objets cartographiques.</label> <label appearance="header">Jeux de hachures discontinues</label> <param name="dangle" type="enum" gui-text="Orientation :"> <item value="90">0°</item> <item value="135">45°</item> <item value="0">90°</item> <item value="45">135°</item> </param> <param name="dthickness" type="enum" gui-text="Epaisseur :"> <item value="0.5">0.5 mm</item> <item value="1">1 mm</item> <item value="2">2 mm</item> <item value="3">3 mm</item> </param> <param name="dspacing" type="enum" gui-text="Espacement :"> <item value="2">2 mm</item> <item value="3">3 mm</item> <item value="5">5 mm</item> <item value="10">10 mm</item> </param> <label appearance="header">Couleurs des hachures</label> <param name="dcolor" type="color" gui-text="Hatches color"/> </page> <!-- Paramètres des grains standardisés --> <page name="grains_page" gui-text="Grains"> <label xml:space="preserve">Créer des grains standardisés pour différencier ou hiérachiser des objets cartographiques.</label> <label appearance="header">Jeux de grains</label> <param name="type_grain" type="enum" gui-text="Grains :"> <item value="grain_v">V</item> <item value="grain_vi">ʌ</item> <item value="grain_p">+</item> <item value="grain_tir">-</item> <item value="grain_x">X</item> <item value="grain_c">○</item> <item value="grain_r">●</item> <item value="grain_car">Carré</item> <item value="grain_carf">Carré plein</item> <item value="grain_los">Losange</item> <item value="grain_losf">Losange plein</item> <item value="grain_vegb">Végétation basse</item> <item value="grain_vegh">Végétation haute</item> </param> <param name="size" type="enum" gui-text="Taille :"> <item value="0.25">Taille 1</item> <item value="0.5">Taille 2</item> <item value="1">Taille 3</item> <item value="1.5">Taille 4</item> <item value="2">Taille 5</item> <item value="3">Taille 6</item> <item value="4">Taille 7</item> </param> <param name="space_level" type="enum" gui-text="Coefficient d'espacement :"> <item value="0.6">1.0</item> <item value="0.8">1.2</item> <item value="1.0">1.4</item> <item value="1.2">1.6</item> <item value="1.4">1.8</item> <item value="1.6">2.0</item> <item value="1.8">2.2</item> <item value="2.0">2.4</item> </param> <label appearance="header">Couleurs des grains</label> <param name="gcolor" type="color" gui-text="Grain color"/> </page> <!-- Page information --> <page name="info" gui-text="Information"> <label appearance="header">Carto : Hachures et grains</label> <label xml:space="preserve">Ce module est destiné à la communauté des géographes et des cartographes.Il permet de créer des variables visuelles telles que des hachures ou des grains sur des surfaces ou des ponctuels, pour différencier ou hiérarchiser des informations cartographiques.
Version du module Hachures et grains : V 5.2 - 04.10.2023</label> </page> </param> <effect> <object-type>all</object-type> <effects-menu> <submenu name="Cartographie"/> </effects-menu> </effect> <script> <command reldir="extensions" interpreter="python">hatches_grains.py</command> </script></inkscape-extension>
It might be possible to write an .inx --> .glade script.
However I suspect it would just be quicker to design it in Glade from scratch.
To make a dropdown in .glade you need, a GtkComboBox, GtkListStore and a GtkCellRendererText
Thanks Inklinea
I have to find good tutorial of glade....
Where can i find a recent Glade for Windows ?
I tested this on my virtual machine:
Instructions from:
https://github.com/GNOME/glade
Install https://www.msys2.org/
Download the installer: msys2-x86_64-20230718.exe
Then:
pacman -S mingw-w64-x86_64-glade
and the glade program appears at
C:\msys64\mingw64\bin\glade.exe
Hi
When i try to use GtkListStore, Glade scratch evrytime... I use gchar and gfloat. Is it good ?
It's a learning curve going from .inx to learning how to use glade.
I'm only a beginner.
Generally you would use gcharray if you have more than one character.
I have attached a basic example.
Hello
i would like to transform this inx fill in glade fill for an extension. Can somebody help me ?
Thanks
Circumpolaire
<?xml version="1.0" encoding="UTF-8"?>
<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
<name>Carto : Hachures et grains</name>
<id>carto</id>
<dependency type="executable" location="extensions">hatches_grains.py</dependency>
<!-- Version 5.2 - 04.10.2023 -->
<param name="tab" type="notebook">
<!-- Standardized hatches settings -->
<page name="hatches_page" gui-text="Hachures continues">
<label xml:space="preserve">Créer des hachures standardisées pour différencier ou hiérachiser des objets cartographiques.</label>
<label appearance="header">Jeux de hachures continues</label>
<param name="angle" type="enum" gui-text="Orientation :">
<item value="90">0°</item>
<item value="135">45°</item>
<item value="0">90°</item>
<item value="45">135°</item>
</param>
<param name="thickness" type="enum" gui-text="Epaisseur :">
<item value="0.25">0.25 mm</item>
<item value="0.5">0.5 mm</item>
<item value="1">1 mm</item>
<item value="2">2 mm</item>
<item value="3">3 mm</item>
<item value="5">5 mm</item>
<item value="10">10 mm</item>
<item value="15">15 mm</item>
</param>
<param name="spacing" type="enum" gui-text="Espacement :">
<item value="2">2 mm</item>
<item value="3">3 mm</item>
<item value="5">5 mm</item>
<item value="10">10 mm</item>
<item value="15">15 mm</item>
</param>
<label appearance="header">Couleurs des hachures</label>
<param name="hcolor" type="color" gui-text="Hatches color"/>
</page>
<!-- Standardized discontinuous hatches settings -->
<page name="dhatches_page" gui-text="Hachures discontinues">
<label xml:space="preserve">Créer des hachures standardisées pour différencier ou hiérachiser des objets cartographiques.</label>
<label appearance="header">Jeux de hachures discontinues</label>
<param name="dangle" type="enum" gui-text="Orientation :">
<item value="90">0°</item>
<item value="135">45°</item>
<item value="0">90°</item>
<item value="45">135°</item>
</param>
<param name="dthickness" type="enum" gui-text="Epaisseur :">
<item value="0.5">0.5 mm</item>
<item value="1">1 mm</item>
<item value="2">2 mm</item>
<item value="3">3 mm</item>
</param>
<param name="dspacing" type="enum" gui-text="Espacement :">
<item value="2">2 mm</item>
<item value="3">3 mm</item>
<item value="5">5 mm</item>
<item value="10">10 mm</item>
</param>
<label appearance="header">Couleurs des hachures</label>
<param name="dcolor" type="color" gui-text="Hatches color"/>
</page>
<!-- Paramètres des grains standardisés -->
<page name="grains_page" gui-text="Grains">
<label xml:space="preserve">Créer des grains standardisés pour différencier ou hiérachiser des objets cartographiques.</label>
<label appearance="header">Jeux de grains</label>
<param name="type_grain" type="enum" gui-text="Grains :">
<item value="grain_v">V</item>
<item value="grain_vi">ʌ</item>
<item value="grain_p">+</item>
<item value="grain_tir">-</item>
<item value="grain_x">X</item>
<item value="grain_c">○</item>
<item value="grain_r">●</item>
<item value="grain_car">Carré</item>
<item value="grain_carf">Carré plein</item>
<item value="grain_los">Losange</item>
<item value="grain_losf">Losange plein</item>
<item value="grain_vegb">Végétation basse</item>
<item value="grain_vegh">Végétation haute</item>
</param>
<param name="size" type="enum" gui-text="Taille :">
<item value="0.25">Taille 1</item>
<item value="0.5">Taille 2</item>
<item value="1">Taille 3</item>
<item value="1.5">Taille 4</item>
<item value="2">Taille 5</item>
<item value="3">Taille 6</item>
<item value="4">Taille 7</item>
</param>
<param name="space_level" type="enum" gui-text="Coefficient d'espacement :">
<item value="0.6">1.0</item>
<item value="0.8">1.2</item>
<item value="1.0">1.4</item>
<item value="1.2">1.6</item>
<item value="1.4">1.8</item>
<item value="1.6">2.0</item>
<item value="1.8">2.2</item>
<item value="2.0">2.4</item>
</param>
<label appearance="header">Couleurs des grains</label>
<param name="gcolor" type="color" gui-text="Grain color"/>
</page>
<!-- Page information -->
<page name="info" gui-text="Information">
<label appearance="header">Carto : Hachures et grains</label>
<label xml:space="preserve">
Ce module est destiné à la communauté des géographes et des cartographes.
Il permet de créer des variables visuelles telles que des hachures ou des grains sur des surfaces ou des ponctuels, pour différencier ou hiérarchiser des informations cartographiques.
Version du module Hachures et grains : V 5.2 - 04.10.2023</label>
</page>
</param>
<effect>
<object-type>all</object-type>
<effects-menu>
<submenu name="Cartographie"/>
</effects-menu>
</effect>
<script>
<command reldir="extensions" interpreter="python">hatches_grains.py</command>
</script>
</inkscape-extension>
It might be possible to write an .inx --> .glade script.
However I suspect it would just be quicker to design it in Glade from scratch.
To make a dropdown in .glade you need, a GtkComboBox, GtkListStore and a GtkCellRendererText
Thanks Inklinea
I have to find good tutorial of glade....
Hello
Where can i find a recent Glade for Windows ?
I tested this on my virtual machine:
Instructions from:
https://github.com/GNOME/glade
Install https://www.msys2.org/
Download the installer: msys2-x86_64-20230718.exe
Then:
pacman -S mingw-w64-x86_64-glade
and the glade program appears at
C:\msys64\mingw64\bin\glade.exe
Hi
When i try to use GtkListStore, Glade scratch evrytime... I use gchar and gfloat. Is it good ?
It's a learning curve going from .inx to learning how to use glade.
I'm only a beginner.
Generally you would use gcharray if you have more than one character.
I have attached a basic example.