#! /bin/bash
Encoding=UTF-8

export MAIN_DIALOG='
<window window_position="1" title="Administration des environnements" width-request="850" height-request="600">
<vbox>
<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/user-password.png</input>
  <action>roxterm -e "sudo CTparental -uhtml" &</action>
      <label>Changer le mot de passe de l'\''interface du filtrage</label>
 

    </button>
 <button>
	
         <input file>/usr/share/pixmaps/earth_lock_2.png</input>
      <action>/usr/bin/firefox https://admin.ct.local &</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'"'>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>roxterm -e "sudo /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>roxterm -e "sudo /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>roxterm -e "sudo /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>pkexec /usr/local/bin/primtux/lock</action>
<action type="refresh">VERROU</action>
	<label>Verrouiller les bureaux</label>
    </button>
<button>
	<action>pkexec /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 la session</label>
        <action>/usr/local/bin/primtux/screen-on.sh</action>
</button>
<button>
      <label>Désactiver la gestion de l'\''écran et redémarrer la session</label>
        <action>/usr/local/bin/primtux/screen-off.sh</action>
</button>
<pixmap>
<input file>/home/administrateur/.primtux/xscreensaver-off.png</input>	
</pixmap>
</hbox>
</frame>

</vbox>

</vbox>
<vbox homogeneous="True">
<frame>
<vbox homogeneous="True">
  <text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>CONFIGURATION DES HANDYMENUS</small></span>"</label></text>
</vbox>
<hbox homogeneous="True">
<button width-request="180">
<input file>/usr/share/pixmaps/handy-mini-config.64.png</input>
<action>roxterm -e "sudo /usr/local/bin/primtux/handymenu-mini-config" &</action>
<label>Handymenu-mini</label>
</button>
<button width-request="180">
<input file>/usr/share/pixmaps/handy-super-config.64.png</input>
<action>roxterm -e "sudo /usr/local/bin/primtux/handymenu-super-config" &</action>
<label>Handymenu-super</label>
</button>
<button width-request="180">
<input file>/usr/share/pixmaps/handy-maxi-config.64.png</input>
<action>roxterm -e "sudo /usr/local/bin/primtux/handymenu-maxi-config" &</action>
<label>Handymenu-maxi</label>
</button>
</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>roxterm -e "sudo /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>roxterm -e "sudo /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>roxterm -e "sudo /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>roxterm -e "sudo /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>roxterm -e "sudo /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>roxterm -e "sudo /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>roxterm -e "sudo /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>roxterm -e "sudo /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>roxterm -e "sudo /usr/local/bin/primtux/images-lo-maxi" &</action>
      <label>Répertoire de maxi</label>

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

