Update of /cvsroot/wxlua/wxLua/samples
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv8620/wxLua/samples
Modified Files:
wxluasudoku.wx.lua
Log Message:
make generating unique solns faster, cleanup, docs
Index: wxluasudoku.wx.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/samples/wxluasudoku.wx.lua,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** wxluasudoku.wx.lua 1 Jun 2006 22:50:54 -0000 1.52
--- wxluasudoku.wx.lua 2 Jun 2006 04:41:08 -0000 1.53
***************
*** 76,80 ****
if not t then return atable end -- already gone
end
! if (not only_if_empty) or ((type(t[args[#args]]) == "table") and (TableCount(t[args[#args]]) == 0)) then
t[args[#args]] = nil
end
--- 76,80 ----
if not t then return atable end -- already gone
end
! if (not only_if_empty) or ((type(t[args[#args]]) == "table") and TableIsEmpty(t[args[#args]])) then
t[args[#args]] = nil
[...1504 lines suppressed...]
userPossMenu:Append( sudokuGUI.ID_USER_POSSIBLE_SETALL, "Set all...", "Set all pencil marks")
! userPossMenu:Append( sudokuGUI.ID_USER_POSSIBLE_INIT, "Calculate...", "Initialize pencil marks to calculated possible")
possibleMenu:AppendMenu(ID_USER_POSSIBLE_MENU, "Pencil marks", userPossMenu, "Setup user possible values")
***************
*** 4585,4588 ****
--- 4662,4666 ----
local solveMenu = wx.wxMenu("", 0)
solveMenu:Append(sudokuGUI.ID_VERIFY_PUZZLE, "Verify unique solution...", "Verify that the puzzle has only one solution")
+ solveMenu:AppendSeparator()
local elimSolveMenu = wx.wxMenu("", 0)
elimSolveMenu:AppendCheckItem(sudokuGUI.ID_ELIMINATE_NAKED, "Eliminate &naked groups", "Eliminate all naked groups from possible values")
***************
*** 4639,4642 ****
--- 4717,4721 ----
-- ------------------------------------------------------------------------
+ -- Use single centralized menu/toolbar event handler
sudokuGUI.frame:Connect(wx.wxID_ANY, wx.wxEVT_COMMAND_MENU_SELECTED,
sudokuGUI.OnMenuEvent)
|