summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin (Beber) <beber.mailing@gmail.com>2006-05-30 01:08:07 +0200
committerbeber <beber@meathook.melee>2006-05-30 01:08:07 +0200
commit3e3d8f2ee71d32fc3d6a0cbaa411775da39b22fa (patch)
tree953d7f3554c38e80e49947cd2c6f7aa79edf3808
parentmove perl code to perl/ (diff)
downloadwmhuitrehuitre-3e3d8f2ee71d32fc3d6a0cbaa411775da39b22fa.tar.gz
First Ruby release of wmHuitreHuitre.
Just the interface for now :)
-rwxr-xr-xrb/wmHuitreHuitre.rb53
1 files changed, 53 insertions, 0 deletions
diff --git a/rb/wmHuitreHuitre.rb b/rb/wmHuitreHuitre.rb
new file mode 100755
index 0000000..1c2d51c
--- /dev/null
+++ b/rb/wmHuitreHuitre.rb
@@ -0,0 +1,53 @@
+#!/usr/bin/ruby
+#
+# (c) 2006 Else Team
+#
+# Author: Bertrand Jacquin <beber@gna.org>
+#
+# Jabber Chat Room: else@chat.jabberfr.org
+
+require 'gtk2'
+
+Gtk.init
+
+interface = Gtk::Window.new
+interface.title = "wmHuitreHuitre"
+interface.set_default_size(600, 400)
+
+interface.signal_connect("delete_event") do
+ Gtk.main_quit
+ false
+end
+
+container = Gtk::HBox.new(false, 0)
+
+interface.add(container)
+
+table = Gtk::Table.new(3, 2, false)
+
+container.pack_start(table, true, true, 0)
+
+menu = Gtk::MenuBar.new()
+table.attach(menu, 0, 2, 0, 1, Gtk::FILL | Gtk::EXPAND, 0, 0, 0)
+
+mn_fichier = Gtk::MenuItem.new("Fichier", true)
+mn_edit = Gtk::MenuItem.new("Édition", true)
+mn_aff = Gtk::MenuItem.new("Affichage", true)
+mn_aide = Gtk::MenuItem.new("Aide", true)
+
+menu.append(mn_fichier)
+menu.append(mn_edit)
+menu.append(mn_aff)
+menu.append(mn_aide)
+
+entry_box = Gtk::Entry.new()
+table.attach(entry_box, 0, 1, 2, 3, Gtk::FILL | Gtk::EXPAND, 0, 0, 0)
+
+bouton = Gtk::Button.new("Send", false)
+table.attach(bouton, 1, 2, 2, 3, Gtk::FILL, 0, 0, 0)
+
+dialog_box = Gtk::ScrolledWindow.new()
+table.attach(dialog_box, 0, 2, 1 ,2, Gtk::FILL, Gtk::FILL | Gtk::EXPAND, 0, 0)
+
+interface.show_all
+Gtk.main