Revision: 52027
          http://brlcad.svn.sourceforge.net/brlcad/?rev=52027&view=rev
Author:   bob1961
Date:     2012-08-15 14:04:14 +0000 (Wed, 15 Aug 2012)
Log Message:
-----------
Added code to cadwidgets::TkTable::handleKey to enforce a single selection mode 
if the -singleSelectCallback option is set.

Modified Paths:
--------------
    brlcad/trunk/src/tclscripts/lib/TkTable.tcl

Modified: brlcad/trunk/src/tclscripts/lib/TkTable.tcl
===================================================================
--- brlcad/trunk/src/tclscripts/lib/TkTable.tcl 2012-08-15 12:57:50 UTC (rev 
52026)
+++ brlcad/trunk/src/tclscripts/lib/TkTable.tcl 2012-08-15 14:04:14 UTC (rev 
52027)
@@ -439,6 +439,11 @@
                return
            }
 
+           if {$itk_option(-singleSelectCallback) != ""} {
+               selectSingleRow $row
+               return
+           }
+
            if {[set [subst $mTableDataVar\($index\)]] == "*"} {
                setTableVal $index ""
                $itk_component(table) tag cell {} $index

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to