Changeset 2055 for trunk/tester/testtree.tcl
- Timestamp:
- Jan 19, 2011, 7:49:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tester/testtree.tcl
r2053 r2055 38 38 39 39 constructor {args} { #defined later } 40 destructor { #defined later } 40 41 41 42 public method getTest {args} … … 117 118 } 118 119 119 # TODO: destructor 120 121 # ---------------------------------------------------------------------- 122 # Repopulate tree if test directory or toolxml have been changed. 120 # ---------------------------------------------------------------------- 121 # DESTRUCTOR 122 # ---------------------------------------------------------------------- 123 itcl::body Rappture::Tester::TestTree::destructor {} { 124 foreach id [getLeaves] { 125 itcl::delete object [getTest $id] 126 } 127 } 128 129 # ---------------------------------------------------------------------- 130 # CONFIGURATION OPTION: -testdir 131 # 132 # Location of the directory containing a set of test xml files. 133 # Repopulate the tree if -testdir option is changed, but only if 134 # -toolxml has already been defined. 123 135 # ---------------------------------------------------------------------- 124 136 itcl::configbody Rappture::Tester::TestTree::testdir { … … 128 140 } 129 141 142 # ---------------------------------------------------------------------- 143 # CONFIGURATION OPTION: -toolxml 144 # 145 # Location of the tool.xml for the tool being tested. Repopulate the 146 # tree if -toolxml is changed, but only if -testdir has already been 147 # defined. 130 148 itcl::configbody Rappture::Tester::TestTree::toolxml { 131 149 if {$itk_option(-testdir) != ""} { … … 135 153 136 154 # ---------------------------------------------------------------------- 155 # CONFIGURATION OPTION: -selectcommand 156 # 137 157 # Forward the TestTree's selectcommand to the treeview, but tack on the 138 158 # updateLabel method to keep the label refreshed when selection is … … 256 276 # ---------------------------------------------------------------------- 257 277 itcl::body Rappture::Tester::TestTree::populate {} { 258 # TODO: Delete existing test objects 278 foreach id [getLeaves] { 279 itcl::delete object [getTest $id] 280 } 259 281 $itk_component(treeview) delete 0 260 282 # TODO: add an appropriate icon
Note: See TracChangeset
for help on using the changeset viewer.