|
From: <fu...@us...> - 2003-12-19 16:56:42
|
Update of /cvsroot/neelix/neelix/view
In directory sc8-pr-cvs1:/tmp/cvs-serv21078/view
Modified Files:
fox.rb
Log Message:
All recipe form fields are active now. See TODO changes.
Index: fox.rb
===================================================================
RCS file: /cvsroot/neelix/neelix/view/fox.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** fox.rb 15 Dec 2003 20:11:54 -0000 1.4
--- fox.rb 19 Dec 2003 16:56:39 -0000 1.5
***************
*** 16,31 ****
--- 16,43 ----
author = FXTextField.new(self, 80)
author.text = recipe.author
+ author.connect(SEL_COMMAND) do |sender,sel,data|
+ recipe.author = author.text
+ end
FXLabel.new(self,"Oven Temp.")
temp = FXTextField.new(self, 80)
temp.text = recipe.temp
+ temp.connect(SEL_COMMAND) do |sender,sel,data|
+ recipe.temp = temp.text
+ end
FXLabel.new(self,"Total Time")
tottime = FXTextField.new(self, 80)
tottime.text = recipe.tottime
+ tottime.connect(SEL_COMMAND) do |sender,sel,data|
+ recipe.tottime = tottime.text
+ end
FXLabel.new(self,"Yields")
yields = FXTextField.new(self, 80)
yields.text = recipe.yields
+ yields.connect(SEL_COMMAND) do |sender,sel,data|
+ recipe.yields = yields.text
+ end
FXLabel.new(self,"Ingredients")
***************
*** 46,49 ****
--- 58,64 ----
directions.visCols=80
directions.text = recipe.directions
+ directions.connect(SEL_CHANGED) do |sender,sel,data|
+ recipe.directions = directions.text
+ end
FXLabel.new(self,"Notes")
***************
*** 51,54 ****
--- 66,72 ----
notes.visCols=80
notes.text = recipe.note
+ notes.connect(SEL_CHANGED) do |sender,sel,data|
+ recipe.note = notes.text
+ end
end
end
***************
*** 99,100 ****
--- 117,120 ----
neelix.show
app.run
+
+ # vim:nowrap
|