#! /bin/bash
Encoding=UTF-8

export MAIN_DIALOG='
<window window_position="1" title="Administration des applications" width-request="850" height-request="600">
 <notebook 
                    tab-labels="A. Contrôle Parental|B. Réglages des handymenus"
                                 tab-pos="0"
                                      >
<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>
<text use-markup="True" justify="3"><label>"<span color='"'#2A3856'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>Le contrôle parental est celui de marsat, configuré pour PrimTux:

- Il filtre de manière transparente tous les navigateurs.
- Il permet de définir des plages horaires de connexion à internet.
- Il filtre le https.

Il n'\''est pas nécessaire de l'\''installer si:
- Vous disposez d'\''un proxy académique.
- Votre salle informatique dispose d'\''un serveur filtrant.

Son installation est vivement recommandée si PrimTux est installé sur un poste isolé connecté à Internet.
</small></span>"</label></text>
          <button>
      <action>/usr/bin/ct &</action>
      <label>INSTALLER LE CONTRÔLE PARENTAL</label>
      </button>
<text use-markup="True" justify="3"><label>"<span color='"'#2A3856'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>AIDE À LA CONFIGURATION:
- Pour bloquer google, il faut:
Entrer google.fr et google.com dans la blacklist.
Désactiver la safesearch.
- Pour lire les vidéos, ne pas cocher le filtrage des vidéos.</small></span>"</label></text>
</frame>
<frame>
 <button>
  <action>x-terminal-emulator -e "sudo CTparental -uhtml" &</action>
      <label>Changer le mot de passe de l'\''interface du filtrage</label>
     </button>
 <button>
      <action>/usr/bin/firefox https://admin.ct.local &</action>
      <label>Configuration du contrôle parental</label>
    </button>
</frame>
</frame>
</vbox>
<vbox>
<frame>
  <text use-markup="True"><label>"<span color='"'#638DE5'"' font-family='"'Sans'"' weight='"'bold'"' size='"'medium'"'><small>CONFIGURATION DES HANDYMENUS</small></span>"</label></text>
<hbox homogeneous="True">
<button width-request="200">
<input file>/usr/share/pixmaps/handy-mini-config.64.png</input>
<action>x-terminal-emulator -e "sudo /usr/bin/handymenu-mini-config" &</action>
<label>Handymenu-mini</label>
</button>
<button width-request="200">
<input file>/usr/share/pixmaps/handy-super-config.64.png</input>
<action>x-terminal-emulator -e "sudo /usr/bin/handymenu-super-config" &</action>
<label>Handymenu-super</label>
</button>
<button width-request="200">
<input file>/usr/share/pixmaps/handy-maxi-config.64.png</input>
<action>x-terminal-emulator -e "sudo /usr/bin/handymenu-maxi-config" &</action>
<label>Handymenu-maxi</label>
</button>
</hbox>
<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>
<pixmap>
<input file>/usr/share/pixmaps/administration/mini-off.png</input>
<variable>HMINI</variable>
</pixmap>

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

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

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

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

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

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

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

