#! /bin/bash
Encoding=UTF-8

export MAIN_DIALOG='
<window window_position="1" title="Administration des environnements" width-request="850" height-request="600">
<notebook scrollable="True" labels="Contrôle parental|Administration des applications">
<vbox>
<vbox homogeneous="True">
<frame>
<hbox homogeneous="True">
<text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'large'"'><small>FILTRAGE INTERNET</small></span>"</label></text>
</hbox>
<frame>
<hbox homogeneous="True">

 <button>
	  <input file>/usr/share/pixmaps/system-software-update.png</input>
  <action>gksu "/usr/local/bin/primtux/progres-1.30" &</action>
      <label>Mise à jour du contrôle parental</label>
 

    </button>
 <button>
	
         <input file>/usr/share/pixmaps/earth_lock_2.png</input>
      <action>gksudo "/usr/bin/webstrict" &</action>
      <label>Configuration du contrôle parental</label>

    </button>
</hbox>
</frame>
<frame>
<hbox homogeneous="True">
<text width-request="780" use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' size='"'small'"'>Ce bouton permet de déverrouiller le proxy de firefox pour y entrer par exemple une adresse de proxy académique (et verrouiller à nouveau ensuite). Dans le cas contraire, il est fortement conseillé de le laisser verrouillé.</span>"</label></text>
 </hbox>
<vbox>
<hbox homogeneous="True">
 <button>
	<action>/usr/local/bin/primtux/proxy-protect-firefox-esr</action>
      <label>Protection du proxy</label>
<action type="refresh">PPF</action>
    </button>
<pixmap>
<input file>/usr/share/pixmaps/preferences-system-network-locked.png</input>
<variable>PPF</variable>
</pixmap>
 <button>

      <input file>/usr/share/pixmaps/firefox-esr.png</input>
      <action>firefox about:preferences#advanced &</action>
      <label>Régler le proxy de firefox</label>

    </button>
</hbox>
</vbox>
</frame>
<frame>
<hbox homogeneous="True">
<text width-request="780" use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' size='"'small'"'>Ces boutons permettent de lancer firefox en tant que mini, super et maxi, et donc de les paramétrer depuis cette session.</span>"</label></text>
 </hbox>
<hbox homogeneous="True">

 <button width-request="200">
	
      <input file>/usr/share/pixmaps/firefox-mini.png</input>
      <action>gksudo "/usr/local/bin/primtux/firefox-mini" &</action>
      <label>Lancer firefox mini</label>

    </button>
 <button width-request="200">
	
      <input file>/usr/share/pixmaps/firefox-super.png</input>
      <action>gksudo "/usr/local/bin/primtux/firefox-super" &</action>
      <label>Lancer firefox super</label>

    </button>
 <button width-request="200">
	
      <input file>/usr/share/pixmaps/firefox-maxi.png</input>
      <action>gksudo "/usr/local/bin/primtux/firefox-maxi" &</action>
      <label>Lancer firefox maxi</label>

    </button>
</hbox>
</frame>
</frame>
</vbox>
<vbox homogeneous="True">
<frame>
<hbox homogeneous="True">
  <text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'large'"'><small>VERROUILLAGE DES BUREAUX</small></span>"</label></text>
 </hbox>
 <hbox homogeneous="True">
<text width-request="780" use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' size='"'small'"'>En verrouillant les bureaux, toutes les modifications impromptues des barres latérale et inférieure sont annulées en fermant la session, les déverrouiller permet de les personnaliser (verrouiller à nouveau une fois les modifications effectuées).</span>"</label></text>
 </hbox>
<hbox homogeneous="True">
<pixmap>
<input file>/usr/share/pixmaps/locked.png</input>	
<variable>VERROU</variable>
</pixmap>
<button>
	<action>gksudo "/usr/local/bin/primtux/lock"</action>
<action type="refresh">VERROU</action>
	<label>Verrouiller les bureaux</label>
    </button>
<button>
	<action>gksudo "/usr/local/bin/primtux/unlock"</action>
<action type="refresh">VERROU</action>
	<label>Déverrouiller les bureaux</label>
    </button>
</hbox>
</frame>
<frame>
<hbox>
<button>
      <label>Activer la gestion de l'\''écran et redémarrer</label>
        <action>gksudo /usr/local/bin/primtux/screen-on.sh && cp -f /home/administrateur/.primtux/screen/xscreensaver-on.png /home/administrateur/.primtux/xscreensaver-off.png && systemctl reboot</action>
</button>
<button>
      <label>Désactiver la gestion de l'\''écran et redémarrer</label>
        <action>gksudo /usr/local/bin/primtux/screen-off.sh && cp -f /home/administrateur/.primtux/screen/xscreensaver-off.png /home/administrateur/.primtux/xscreensaver-off.png && systemctl reboot</action>
</button>
<pixmap>
<input file>/home/administrateur/.primtux/xscreensaver-off.png</input>	
</pixmap>
</hbox>
</frame>

</vbox>

</vbox>
<vbox homogeneous="True">
<frame>
<hbox homogeneous="True">
  <text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'large'"'><small>PARAMÉTRAGE DES MENUS</small></span>"</label></text>
</hbox>
<hbox homogeneous="True">
<frame>
<vbox>
<hbox homogeneous="True">
  <text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>DÉMARRAGE AUTOMATIQUE DES HANDYMENUS</small></span>"</label></text>
  </hbox>
<hbox homogeneous="True">
  <vbox homogeneous="True">
<pixmap>
<input file>/usr/share/pixmaps/mini-off.png</input>
<variable>HMINI</variable>
</pixmap>

 <button  width-request="120">
	
      <action>gksudo "/usr/local/bin/primtux/mini-on.sh"</action>
	<action>refresh:HMINI</action>
      <label>Handymini ON</label>

    </button>
 <button  width-request="120">
	
      <action>gksudo "/usr/local/bin/primtux/mini-off.sh"</action>
<action>refresh:HMINI</action>
	   <label>Handymini OFF</label>

    </button>
</vbox>
<vbox homogeneous="True">
<pixmap>
<input file>/usr/share/pixmaps/super-off.png</input>
<variable>HSUPER</variable>
</pixmap>
 <button width-request="120">
	
      <action>gksudo "/usr/local/bin/primtux/super-on.sh"</action>
	<action>refresh:HSUPER</action>
      <label>Handysuper ON</label>

    </button>
 <button  width-request="120">
	
      <action>gksudo "/usr/local/bin/primtux/super-off.sh"</action>
<action>refresh:HSUPER</action>
	   <label>Handysuper OFF</label>

    </button>
</vbox>
<vbox homogeneous="True">
<pixmap>
<input file>/usr/share/pixmaps/maxi-off.png</input>
<variable>HMAXI</variable>
</pixmap>
 <button  width-request="120">
	
      <action>gksudo "/usr/local/bin/primtux/maxi-on.sh"</action>
	<action>refresh:HMAXI</action>
      <label>Handymaxi ON</label>

    </button>
 <button  width-request="120">
	
      <action>gksudo "/usr/local/bin/primtux/maxi-off.sh"</action>
<action>refresh:HMAXI</action>
	   <label>Handymaxi OFF</label>

    </button>
    </vbox>
    </hbox>
    </vbox>
    </frame>
    <frame>
    <vbox>
      <text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>CONFIGURATION DES MENUS</small></span>"</label></text>
<hbox homogeneous="True">
<vbox homogeneous="True">
<hbox homogeneous="True">
<button width-request="180">
<input file>/usr/share/pixmaps/handy-mini-config.64.png</input>
<action>gksudo "/usr/local/bin/primtux/handymenu-mini-config" &</action>
<label>Handymenu-mini</label>
</button>
</hbox>
<hbox homogeneous="True">
<button width-request="180">
<input file>/usr/share/pixmaps/handy-super-config.64.png</input>
<action>gksudo "/usr/local/bin/primtux/handymenu-super-config" &</action>
<label>Handymenu-super</label>
</button>
</hbox>
<hbox homogeneous="True">
<button width-request="180">
<input file>/usr/share/pixmaps/handy-maxi-config.64.png</input>
<action>gksudo "/usr/local/bin/primtux/handymenu-maxi-config" &</action>
<label>Handymenu-maxi</label>
</button>
</hbox>
</vbox>
<vbox homogeneous="True">
<hbox homogeneous="True">
<button width-request="150">
<input file>/usr/share/pixmaps/menu-super.png</input>
<action>gksudo "/usr/local/bin/primtux/menulibre-super" &</action>
<label>Menu-super</label>
</button>
</hbox>
<hbox homogeneous="True">
<button width-request="150">
<input file>/usr/share/pixmaps/menu-maxi.png</input>
<action>gksudo "/usr/local/bin/primtux/menulibre-maxi" &</action>
<label>Menu-maxi</label>
</button>
</hbox>
</vbox>
</hbox>
</vbox>
</frame>
 </hbox>
 </frame>
<hbox>
<frame>
  <text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'large'"'><small>APPLICATIONS ET REPERTOIRES</small></span>"</label></text>
<hbox homogeneous="True">
<vbox homogeneous="True">
<hbox homogeneous="True">
 <button  width-request="248">
	
      <input file>/usr/share/pixmaps/menu-mini.png</input>
      <action>gksudo "/usr/local/bin/primtux/liens-mini" &</action>
      <label>Applications de mini</label>

    </button>
</hbox>
<hbox homogeneous="True">
 <button  width-request="248">
	
      <input file>/usr/share/pixmaps/menu-super.png</input>
      <action>gksudo "/usr/local/bin/primtux/liens-super" &</action>
      <label>Applications de super</label>

    </button>
</hbox>
<hbox homogeneous="True">
 <button  width-request="248">
	
      <input file>/usr/share/pixmaps/menu-maxi.png</input>
      <action>gksudo "/usr/local/bin/primtux/liens-maxi" &</action>
      <label>Applications de maxi</label>

    </button>
</hbox>
</vbox>
<vbox homogeneous="True">
<hbox homogeneous="True">
 <button  width-request="248">
	
      <input file>/usr/share/pixmaps/home-mini.png</input>
      <action>gksudo "/usr/local/bin/primtux/home-01-mini" &</action>
      <label>Home de mini</label>

    </button>
</hbox>
<hbox homogeneous="True">
 <button  width-request="248">
	
      <input file>/usr/share/pixmaps/home-super.png</input>
      <action>gksudo "/usr/local/bin/primtux/home-02-super" &</action>
      <label>Home de super</label>

    </button>
</hbox>
<hbox homogeneous="True">
 <button  width-request="248">
	
      <input file>/usr/share/pixmaps/home-maxi.png</input>
      <action>gksudo "/usr/local/bin/primtux/home-03-maxi" &</action>
      <label>Home de maxi</label>

    </button>
</hbox>
</vbox>
</hbox>
</frame>
<frame>

<vbox>
  <text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'large'"'><small>IMAGES DE LIBREOFFICE</small></span>"</label></text>
<hbox homogeneous="True"> 
 <button  width-request="248">
	
      <input file>/usr/share/pixmaps/gnome-photos-mini.png</input>
      <action>gksudo "/usr/local/bin/primtux/images-lo-mini" &</action>
      <label>Répertoire de mini</label>

    </button>
</hbox>
<hbox homogeneous="True">
 <button  width-request="248">
	
    <input file>/usr/share/pixmaps/gnome-photos-super.png</input>
      <action>gksudo "/usr/local/bin/primtux/images-lo-super" &</action>
      <label>Répertoire de super</label>

    </button>
</hbox>
<hbox homogeneous="True">
 <button  width-request="248">
	
      <input file>/usr/share/pixmaps/gnome-photos-maxi.png</input>
      <action>gksudo "/usr/local/bin/primtux/images-lo-maxi" &</action>
      <label>Répertoire de maxi</label>

    </button>
</hbox>
</vbox>
</frame>
</hbox>
 </vbox>
</notebook>
</window>
 '
 gtkdialog --program MAIN_DIALOG

