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
This commit is contained in:
Quentin
2014-01-17 09:20:36 +01:00
parent 7df4c9c289
commit 09592ec43d
48 changed files with 4179 additions and 60 deletions

View File

@@ -1,27 +1,29 @@
#Classe permettant de g"rer l'historique de fichier traité
#Classe permettant de gzrer l'historique de fichier traité et la vue VueHisto
class CtrlHistoLink
#Saisie pour vérification de lien stocké en historique
# <b>Saisie pour vérification de lien stocké en historique, controleur VueHisto</b>
def saisie
@v = VueHisto.new(self,"Historique") #creation vue
@v.getWindow.show_all # affichage
Gtk.main
return @urls
end
#Sauvegarde les liens dans un fichier pour historique
def sauv(fileName, urls)
fileName = File.basename(fileName)
f = File.new("../sauv/#{fileName}", "w+")
# <b>Sauvegarde les liens dans un fichier pour historique</b>
# * String pathName : chemin du fichier à mettre en historique
# * String urls : liste urls à sauver dans l'historique
def sauv(pathName, urls)
pathName = File.basename(pathName)
f = File.new("../sauv/#{pathName}", "w+")
f.write(urls)
f.close
end
#Permet de rejouer les liens d'un fichier
def rejouer(fileName)
# <b>Permet de rejouer les liens d'un fichier</b>
# * Sting pathName : chemin du fichier de l'historique à rejouer
def rejouer(pathName)
r = CtrlCheckLinks.new
@urls = r.recupUrls(fileName)
@urls = r.recupUrls(pathName)
end
#Controleur permettant de detruire la vue historique
# <b>Controleur permettant de detruire la vue historique</b>
def destructionFen
@v.getWindow.destroy
Gtk.main_quit