This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
DUT2Curling/c/Main.rb
Quentin 09592ec43d modified: c/CtrlCheckLinks.rb
modified:   c/CtrlHistoLink.rb
 	modified:   c/Main.rb
 	new file:   doc/rdoc/CtrlCheckLinks.html
 	new file:   doc/rdoc/CtrlHistoLink.html
 	new file:   doc/rdoc/Menu.html
 	new file:   doc/rdoc/ReadFile.html
 	new file:   doc/rdoc/Vue1.html
 	new file:   doc/rdoc/VueHisto.html
 	new file:   doc/rdoc/VueMenu.html
 	new file:   doc/rdoc/VueResult.html
 	new file:   doc/rdoc/c/CtrlCheckLinks_rb.html
 	new file:   doc/rdoc/c/CtrlHistoLink_rb.html
 	new file:   doc/rdoc/c/Main_rb.html
 	new file:   doc/rdoc/c/hello_rb.html
 	new file:   doc/rdoc/created.rid
 	new file:   doc/rdoc/images/brick.png
 	new file:   doc/rdoc/images/brick_link.png
 	new file:   doc/rdoc/images/bug.png
 	new file:   doc/rdoc/images/bullet_black.png
 	new file:   doc/rdoc/images/bullet_toggle_minus.png
 	new file:   doc/rdoc/images/bullet_toggle_plus.png
 	new file:   doc/rdoc/images/date.png
 	new file:   doc/rdoc/images/find.png
 	new file:   doc/rdoc/images/loadingAnimation.gif
 	new file:   doc/rdoc/images/macFFBgHack.png
 	new file:   doc/rdoc/images/package.png
 	new file:   doc/rdoc/images/page_green.png
 	new file:   doc/rdoc/images/page_white_text.png
 	new file:   doc/rdoc/images/page_white_width.png
 	new file:   doc/rdoc/images/plugin.png
 	new file:   doc/rdoc/images/ruby.png
 	new file:   doc/rdoc/images/tag_green.png
 	new file:   doc/rdoc/images/wrench.png
 	new file:   doc/rdoc/images/wrench_orange.png
 	new file:   doc/rdoc/images/zoom.png
 	new file:   doc/rdoc/index.html
 	new file:   doc/rdoc/m/ReadFile_rb.html
 	new file:   doc/rdoc/rdoc.css
 	new file:   doc/rdoc/v/Vue1_rb.html
 	new file:   doc/rdoc/v/VueHisto_rb.html
 	new file:   doc/rdoc/v/VueMenu_rb.html
 	new file:   doc/rdoc/v/VueResult_rb.html
 	modified:   m/ReadFile.rb
 	modified:   v/Vue1.rb
 	modified:   v/VueHisto.rb
 	modified:   v/VueMenu.rb
 	modified:   v/VueResult.rb
2014-01-17 09:20:36 +01:00

59 lines
1.3 KiB
Ruby
Executable File

#! /usr/bin/ruby
#lib
require 'gtk2' # lib graphique
require 'net/ping' #lib netwotk
#include
require './CtrlCheckLinks'
require './CtrlHistoLink'
require '../m/ReadFile'
require '../v/Vue1'
require '../v/VueResult'
require '../v/VueMenu'
require '../v/VueHisto'
#Controleur du menu principal de l'application
class Menu
# <b>Controleur du menu d'acceuil VueMenu</b>
def initialize
@v = VueMenu.new(self,"Menu")
@v.getWindow.show_all # affichage
Gtk.main
end
# <b>Acces au controleur CtrlHistoLink</b>
def histo
@v.getWindow.hide_all #cache le menu
c = CtrlHistoLink.new
urls = c.saisie
@v.getWindow.show_all #reaffiche le menu
end
# <b>Acces au controleur vérification d'un fichier CtrlCheckLinks</b>
def newVerifFile
@v.getWindow.hide_all #cache le menu
c = CtrlCheckLinks.new
urls = c.saisie(1, 'Saisie nom fichier')
@v.getWindow.show_all #reaffiche le menu
end
# <b>Acces au controleur vérification d'un dossier CtrlCheckLinks</b>
def newVerifDossier
@v.getWindow.hide_all #cache le menu
c = CtrlCheckLinks.new
urls = c.saisie(0, 'Saisie nom dossier')
@v.getWindow.show_all #reaffiche le menu
end
# <b>Controleur permettant de detruire la VueMenu</b>
def destructionMenu
@v.getWindow.destroy
Gtk.main_quit
end
end
Menu.new
print "Termine\n"