#! /bin/bash
Encoding=UTF-8

export MAIN_DIALOG='


<window window_position="1"  title="Bienvenue!" width-request="800">
<vbox>
<notebook scrollable="True" labels="Bienvenue!|1-Finalisation de l'\''installation|2-Installation de logiciels non-libres|3-Documentation pédagogique">
<vbox>
<pixmap><input file>/usr/share/pixmaps/logo-accueil.png</input></pixmap>
<text use-markup="True" width="700" justify="3"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>BIENVENUE SUR PRIMTUX!</small></span>"</label></text>
<vbox homogeneous="true">
<frame>
<text use-markup="True" width="700" justify="3"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>AVANT TOUTE CHOSE</small></span>"</label></text>
<hbox homogeneous="true">
      <button>
      <action>wicd-gtk --no-tray &</action>
      <label>1 - CONNECTEZ-VOUS À INTERNET</label>
      </button>
           <button>
      <action>/usr/bin/ct &</action>
      <label>2 - INSTALLEZ LE CONTRÔLE PARENTAL</label>
      </button>
</hbox>
</frame>
<frame>
<text use-markup="True" width="700" justify="3"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>SOMMAIRE DE L'\''ACCUEIL</small></span>"</label></text>

<text use-markup="True" width="700" justify="3"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>- Les onglets 1 et 2 permettent la finalisation de l'\''installation et présentent le support technique.</small></span>"</label></text>
<text use-markup="True" width="700" justify="3"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>- L'\''onglet 3 présente les logiciels ainsi que la documentation aidant à leur utilisation.</small></span>"</label></text>
</frame>
<frame>
<text use-markup="True" width="700" justify="3"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>PrimTux, c'\''est aussi une association loi 1901. Pour nous rejoindre ou nous soutenir,</small></span>"</label></text>
      <hbox homogeneous="true" width-request="10">
      <button>
      <action>xdg-open http://collectif.primtux.fr &</action>
      <label>Cliquez ici</label>
      </button>
      </hbox>
      </frame>
</vbox>
</vbox>
<vbox homogeneous="true">
<frame>
<hbox homogeneous="true">
<vbox>
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>RÉGLAGES</small></span>"</label></text>
<button>	
      <input file>/usr/share/pixmaps/preferences-desktop-locale-symbolic.png</input>
      <action>fskbsetting &</action>
      <label>Choix du clavier</label>
    </button>
<button>	
      <input file>/usr/share/pixmaps/accueil-wine.png</input>
      <action>gksudo "/usr/local/bin/primtux/primtux-wine.sh" &</action>
      <label>Rétablir les associations de fichiers</label>
    </button>
</vbox>
<vbox>
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>SUPPORT TECHNIQUE</small></span>"</label></text>
 <button>
	      <input file>/usr/share/pixmaps/application-info.png</input>
      <action>xdg-open http://wiki.primtux.fr/doku.php/presentation_du_systeme &</action>
      <label>Wiki</label>
      </button>
<button>
<input file>/usr/share/pixmaps/kopete.png</input>	
      <action>xdg-open http://forum.primtux.fr &</action>
      <label>Forum</label>
    </button>
</vbox>
</hbox>
</frame>
<frame>
<vbox>
<hbox homogeneous="true">
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>CHANGER LES MOTS DE PASSE</small></span>"</label></text>
</hbox>
<hbox homogeneous="true">
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>(conseillé pour des raisons de sécurité, choisissez le même mot de passe pour root et administrateur)</small></span>"</label></text>
</hbox>
<hbox homogeneous="true">
<pixmap>
<input file>/usr/share/pixmaps/user-password.png</input>
</pixmap>
</hbox>
</vbox>
<hbox homogeneous="true">
<button>
<action>roxterm -e "sudo passwd root" &</action>
<label>Changer le mot de passe root</label>
</button>
<button>
<action>roxterm -e "sudo passwd administrateur" &</action>
<label>Changer le mot de passe de la session administrateur</label>
</button>
</hbox>
</frame>
</vbox>
<vbox>
<frame>
<hbox homogeneous="true">
<text><label>Ces logiciels sont disponibles sous différentes licences non-libres (freewares windows, autorisation de diffusion pour un usage non-commercial). Pour en savoir plus,</label></text>
<button>
<action>leafpad /usr/local/bin/primtux/licences &</action>
<label>cliquez ici</label>
</button>
</hbox>
</frame>
<frame>
<button>
      <label>Installer les logiciels maternelle (mini). Téléchargement: 1,3 Go. Mise à jour automatique du menu.</label>	
<action>/usr/local/bin/primtux/installe-logiciels mini &</action>
    </button>
<button>
<action>/usr/local/bin/primtux/installe-logiciels super &</action>
      <label>Installer les logiciels 6-7 ans (super). Téléchargement: 2,2 Go. Mise à jour automatique du menu.</label>
    </button>
<button>
<action>/usr/local/bin/primtux/installe-logiciels maxi &</action>
      <label>Installer les logiciels 8-10 ans (maxi). Téléchargement: 2,3 Go. Mise à jour automatique du menu.</label>
    </button>
<button>
<action>/usr/local/bin/primtux/installe-logiciels outils &</action>	
      <label>Installer les outils non-libres (flash, java...). Téléchargement: 200 Mo</label>
    </button>
<button>
<action>/usr/local/bin/primtux/installe-logiciels all &</action>
      <label>Installer tous les logiciels éducatifs non-libres. Téléchargement: 2,8 Go</label>
    </button>
</frame>
</vbox>
<vbox homogeneous="true">
<frame>
<hbox homogeneous="true">

<button>
     <input file>/usr/share/pixmaps/software-store.png</input>
      <action>xdg-open http://wiki.primtux.fr/doku.php/logitheque2 &</action>
      <label>Logithèque</label>

    </button>
<button>
	<input file>/usr/share/pixmaps/gtk-info.png</input>
	<action>xdg-open http://ressources.primtux.fr &</action>
	<label>Site de Ressources</label>
    </button>
    <button>
<input file>/usr/share/pixmaps/emblem-favorites.png</input>	
      <action>xdg-open http://primtux.fr/favoris &</action>
      <label>Les favoris de PrimTux</label>
    </button>

</hbox>
    </frame>
    <frame>
<hbox homogeneous="true">

<button>
<input file>/usr/share/pixmaps/applications-system.png</input>	
      <action>libreoffice --calc /usr/share/guides-logiciels-primtux/logiciels-PrimTux-V4.ods &</action>
      <label>Tableau de présentation des logiciels inclus dans PrimTux</label>
    </button>

</hbox>
    </frame>
    <frame>
    <hbox homogeneous="true">
<text use-markup="True" width="700" justify="3"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>Cartes heuristiques d'\''utilisation des logiciels par domaine</small></span>"</label></text>
</hbox>
<hbox homogeneous="true">
<button>
      <action>xdg-open /usr/share/guides-logiciels-primtux/Cycle1.html &</action>
      <label>Logiciels pour le cycle 1</label>
    </button>
    <button>
 
      <action>xdg-open /usr/share/guides-logiciels-primtux/Cycle2.html &</action>
      <label>Logiciels pour le cycle 2</label>
    </button>
    <button>

      <action>xdg-open /usr/share/guides-logiciels-primtux/Langue-C2.html &</action>
      <label>Français Cycle 2</label>
    </button>
    <button>

      <action>xdg-open /usr/share/guides-logiciels-primtux/Calcul-Numeration-C2.html &</action>
      <label>Mathématiques cycle 2</label>
    </button>
</hbox>
<hbox homogeneous="true">
    <button>
 
      <action>xdg-open /usr/share/guides-logiciels-primtux/Cycle3.html &</action>
      <label>Logiciels pour le cycle 3</label>
    </button>
    <button>

      <action>xdg-open /usr/share/guides-logiciels-primtux/Langue-C3.html &</action>
      <label>Français Cycle 3</label>
    </button>
    <button>

      <action>xdg-open /usr/share/guides-logiciels-primtux/Mathematiques-C3.html &</action>
      <label>Mathématiques cycle 3</label>
    </button>
</hbox>

    </frame>
</vbox>
</notebook>
<hbox>
<pixmap><input file>/home/administrateur/.primtux/checkbox-on.png</input>
<variable>ACCUEIL-ON</variable>
</pixmap>
<button>
	<action>/usr/local/bin/primtux/accueil-on</action>
<action>cp -f /home/administrateur/.primtux/accueil/checkbox-on.png /home/administrateur/.primtux/checkbox-on.png</action>
<action type="refresh">ACCUEIL-ON</action>
      <label>Afficher l'\''accueil au démarrage</label>
    </button>
<button>
	<action>/usr/local/bin/primtux/accueil-off</action>
<action>cp -f /home/administrateur/.primtux/accueil/checkbox-off.png /home/administrateur/.primtux/checkbox-on.png</action>
<action type="refresh">ACCUEIL-ON</action>
      <label>Ne pas afficher l'\''accueil au démarrage</label>
    </button>
</hbox>
</vbox>
</window>
 '
 gtkdialog --program MAIN_DIALOG

