#! /bin/bash
Encoding=UTF-8

export MAIN_DIALOG='
<window window_position="1" title="Administration des applications" width-request="850" height-request="600">
<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>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>
</vbox>
<vbox>
<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>
<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>pkexec /usr/local/bin/primtux/mini-on.sh</action>
	<action>refresh:HMINI</action>
      <label>Handymini ON</label>

    </button>
 <button  width-request="120">
	
      <action>pkexec /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>pkexec /usr/local/bin/primtux/super-on.sh</action>
	<action>refresh:HSUPER</action>
      <label>Handysuper ON</label>

    </button>
 <button  width-request="120">
	
      <action>pkexec /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>pkexec /usr/local/bin/primtux/maxi-on.sh</action>
	<action>refresh:HMAXI</action>
      <label>Handymaxi ON</label>

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

    </button>
    </vbox>
<vbox homogeneous="True">
 <button  width-request="120">
	
      <action>pkexec /usr/local/bin/primtux/handy-on.sh</action>
	<action>refresh:HMAXI</action>
	<action>refresh:HSUPER</action>
	<action>refresh:HMINI</action>
      <label>Handys ON</label>

    </button>
 <button  width-request="120">
	
      <action>pkexec /usr/local/bin/primtux/handy-off.sh</action>
	<action>refresh:HMAXI</action>
	<action>refresh:HSUPER</action>
	<action>refresh:HMINI</action>
	   <label>Handys OFF</label>
    </button>
    </vbox>
    </hbox>
    </vbox>

</frame>
</vbox>
</vbox>

</vbox>
</window>
 '
 gtkdialog --program MAIN_DIALOG

