d2a45c0be2
new file: c/ff new file: c/main.rb new file: lib/gtk2.rb new file: lib/gtk2/base.rb new file: lib/net/external.rb new file: lib/net/helper.rb new file: lib/net/http.rb new file: lib/net/icmp.rb new file: lib/net/ping.rb new file: lib/net/tcp.rb new file: lib/net/udp.rb new file: lib/net/wmi.rb new file: m/ReadFile.rb new file: v/Vue1.rb new file: v/VueError.rb
40 lines
524 B
Ruby
Executable File
40 lines
524 B
Ruby
Executable File
#! /usr/bin/ruby
|
|
|
|
#lib
|
|
require '../lib/gtk2' # lib graphique
|
|
require '../lib/net/ping' #lib netwotk
|
|
|
|
#include
|
|
require '../m/ReadFile'
|
|
require '../v/Vue1'
|
|
require '../v/VueError'
|
|
|
|
Gtk.init
|
|
v1 = Vue1.new
|
|
|
|
v1.listenerBouton
|
|
v1.listenerDestroy
|
|
|
|
v1.getWindow.show_all
|
|
Gtk.main
|
|
str = v1.getEntry
|
|
#print str
|
|
|
|
if(File.exist?(str))
|
|
f = ReadFile.new(str)
|
|
tabL = f.getLines
|
|
|
|
for i in tabL
|
|
puts i
|
|
end
|
|
else
|
|
vd = VueError.new("Fichier inexistant")
|
|
vd.getDialog.run
|
|
vd.getDialog.destroy
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
print "Termine\n" |