@@ -51,14 +51,14 @@ Function createPanel()
51
51
setGlobalStr ( "search" , prefs. search)
52
52
53
53
CodeBrowserPanel ()
54
- ListBox list 1 , win = $ panel, listWave= getDeclWave ()
54
+ ListBox List 1 , win = $ panel, listWave= getDeclWave ()
55
55
#if ( IgorVersion () >= 8.00 )
56
- ListBox list 1 , win = $ panel, helpWave= getHelpWave ()
56
+ ListBox List 1 , win = $ panel, helpWave= getHelpWave ()
57
57
#endif
58
58
59
- PopupMenu popupNamespace , win=$ panel, mode= prefs. panelNameSpace
60
- PopupMenu popupProcedure , win=$ panel, mode= prefs. panelProcedure
61
- ListBox list 1 , win=$ panel, selRow= prefs. panelElement, row= prefs. panelTopElement
59
+ PopupMenu PopupNamespace , win=$ panel, mode= prefs. panelNameSpace
60
+ PopupMenu PopupProcedure , win=$ panel, mode= prefs. panelProcedure
61
+ ListBox List 1 , win=$ panel, selRow= prefs. panelElement, row= prefs. panelTopElement
62
62
63
63
resizeToPackagePrefs ()
64
64
DoUpdate / W=$ panel
69
69
///
70
70
/// Note that all functions act on the current top panel
71
71
Function CodeBrowserPanel ()
72
- SetVariable setProcedureFilter, pos= { 72,33 } , size= { 229,18 } , proc= CodeBrowserModule# SetVarProcedureFilter, title= "filter"
73
- SetVariable setProcedureFilter, limits= { - inf , inf ,0 } , value= root: Packages: CodeBrowser: procFilter, live= 1
74
- SetVariable setProcedureFilter, userdata ( ResizeControlsInfo) = A"!!,EJ!!#=g!!#At!!#<Hz!!#`-A7TLfzzzzzzzzzzzzzz!!#`-A7TLfzz"
75
- SetVariable setProcedureFilter, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:DuaGl<C]S6zzzzzzzzzz"
76
- SetVariable setProcedureFilter, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
77
-
78
- SetVariable setSearch, pos= { 125,81 } , size= { 175.00,18.00 } , proc= CodeBrowserModule# SetVarProcedureSearch, title= "search"
79
- SetVariable setSearch, limits= { - inf , inf ,0 } , value= root: Packages: CodeBrowser: search, live= 1
80
- SetVariable setSearch, userdata ( ResizeControlsInfo) = A"!!,F_!!#?[!!#A>!!#<Hz!!#](Aon#azzzzzzzzzzzzzz!!#o2B4uAezz"
81
- SetVariable setSearch, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:DuaGl<C]S6zzzzzzzzzz"
82
- SetVariable setSearch, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
83
-
84
- CheckBox checkboxSort, pos= { 77,83 } , size= { 36.00,15.00 } , proc= CodeBrowserModule# checkboxSort, title= "sort"
85
- CheckBox checkboxSort, value= 1
86
- CheckBox checkboxSort, userdata ( ResizeControlsInfo) = A"!!,ET!!#?_!!#=s!!#<(z!!#](Aon#azzzzzzzzzzzzzz!!#`-A7TLfzz"
87
- CheckBox checkboxSort, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:DuaGl<C]S6zzzzzzzzzz"
88
- CheckBox checkboxSort, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
89
-
90
- ListBox list1, pos= { 0.00,105.00 } , size= { 300,62 } , proc= CodeBrowserModule# ListBoxProc
91
- ListBox list1, listWave= root: Packages: CodeBrowser: declarations
92
- ListBox list1, selCol= 1, widths= { 4,40 } , keySelectCol= 1
93
- ListBox list1, mode= 5, selRow= 0
94
- ListBox list1, userdata ( ResizeControlsInfo) = A"!!*'\" !!#@6!!#BP!!#?1z!!#](Aon\" Qzzzzzzzzzzzzzz!!#o2B4uAezz"
95
- ListBox list1, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#N3Bk1ct<C]S6zzzzzzzzzz"
96
- ListBox list1, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S7zzzzzzzzzzzzz!!!"
97
-
98
- PopupMenu popupProcedure, pos= { 44,53 } , size= { 257.00,19.00 } , bodyWidth=200, proc= CodeBrowserModule# popupProcedures, title= "Procedure"
99
- PopupMenu popupProcedure, mode=1, popvalue= "<ALL>" , value= # "CodeBrowserModule#generateProcedureList()"
100
- PopupMenu popupProcedure, userdata ( ResizeControlsInfo) = A"!!,D?!!#>b!!#B:J,hm&z!!#`-A7TLfzzzzzzzzzzzzzz!!#`-A7TLfzz"
101
- PopupMenu popupProcedure, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:Du]k<zzzzzzzzzzz"
102
- PopupMenu popupProcedure, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
103
-
104
- PopupMenu popupNamespace, pos= { 36,10 } , size= { 265.00,19.00 } , bodyWidth=200, proc= CodeBrowserModule# popupModules, title= "Namespace"
105
- PopupMenu popupNamespace, userdata ( niceList) = "<ALL>;ProcGlobal;COMPILE;CodeBrowserModule;"
106
- PopupMenu popupNamespace, mode=1, popvalue= "<ALL>" , value= # "CodeBrowserModule#generateModuleList()"
107
- PopupMenu popupNamespace, userdata ( ResizeControlsInfo) = A"!!,Ct!!#;-!!#B>J,hm&z!!#`-A7TLfzzzzzzzzzzzzzz!!#`-A7TLfzz"
108
- PopupMenu popupNamespace, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:Du]k<zzzzzzzzzzz"
109
- PopupMenu popupNamespace, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
72
+ SetVariable SetProcedureFilter, pos= { 72,33 } , size= { 229,18 } , proc= CodeBrowserModule# SetVarProcedureFilter, title= "filter"
73
+ SetVariable SetProcedureFilter, limits= { - inf , inf ,0 } , value= root: Packages: CodeBrowser: procFilter, live= 1
74
+ SetVariable SetProcedureFilter, help= { "Filter procedures matching the specified filter pattern from the selected namespace context." }
75
+ SetVariable SetProcedureFilter, userdata ( ResizeControlsInfo) = A"!!,EJ!!#=g!!#At!!#<Hz!!#`-A7TLfzzzzzzzzzzzzzz!!#`-A7TLfzz"
76
+ SetVariable SetProcedureFilter, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:DuaGl<C]S6zzzzzzzzzz"
77
+ SetVariable SetProcedureFilter, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
78
+
79
+ SetVariable SetSearch, pos= { 125,81 } , size= { 175.00,18.00 } , proc= CodeBrowserModule# SetVarProcedureSearch, title= "search"
80
+ SetVariable SetSearch, limits= { - inf , inf ,0 } , value= root: Packages: CodeBrowser: search, live= 1
81
+ SetVariable SetSearch, help= { "Search for elements in the list below. Search patterns will be automatically appended with leading and trailing wildcards." }
82
+ SetVariable SetSearch, userdata ( ResizeControlsInfo) = A"!!,F_!!#?[!!#A>!!#<Hz!!#](Aon#azzzzzzzzzzzzzz!!#o2B4uAezz"
83
+ SetVariable SetSearch, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:DuaGl<C]S6zzzzzzzzzz"
84
+ SetVariable SetSearch, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
85
+
86
+ CheckBox CheckboxSort, pos= { 77,83 } , size= { 36.00,15.00 } , proc= CodeBrowserModule# CheckboxSort, title= "sort"
87
+ CheckBox CheckboxSort, value= 1
88
+ CheckBox CheckboxSort, help= { "Sort results alphabetically. Uncheck to sort by line number." }
89
+ CheckBox CheckboxSort, userdata ( ResizeControlsInfo) = A"!!,ET!!#?_!!#=s!!#<(z!!#](Aon#azzzzzzzzzzzzzz!!#`-A7TLfzz"
90
+ CheckBox CheckboxSort, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:DuaGl<C]S6zzzzzzzzzz"
91
+ CheckBox CheckboxSort, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
92
+
93
+ ListBox List1, pos= { 0.00,105.00 } , size= { 300,62 } , proc= CodeBrowserModule# ListBoxProc
94
+ ListBox List1, listWave= root: Packages: CodeBrowser: declarations
95
+ ListBox List1, selCol= 1, widths= { 4,40 } , keySelectCol= 1
96
+ ListBox List1, mode= 5, selRow= 0
97
+ ListBox List1, help= { "Elements matching the search pattern in the selected procedure file(s)" }
98
+ ListBox List1, userdata ( ResizeControlsInfo) = A"!!*'\" !!#@6!!#BP!!#?1z!!#](Aon\" Qzzzzzzzzzzzzzz!!#o2B4uAezz"
99
+ ListBox List1, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#N3Bk1ct<C]S6zzzzzzzzzz"
100
+ ListBox List1, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S7zzzzzzzzzzzzz!!!"
101
+
102
+ PopupMenu PopupProcedure, pos= { 44,53 } , size= { 257.00,19.00 } , bodyWidth=200, proc= CodeBrowserModule# popupProcedures, title= "Procedure"
103
+ PopupMenu PopupProcedure, mode=1, popvalue= "<ALL>" , value= # "CodeBrowserModule#generateProcedureList()"
104
+ PopupMenu PopupProcedure, help= { "Display elements for this procedure file. Set to <ALL> to select all procedures from the current list." }
105
+ PopupMenu PopupProcedure, userdata ( ResizeControlsInfo) = A"!!,D?!!#>b!!#B:J,hm&z!!#`-A7TLfzzzzzzzzzzzzzz!!#`-A7TLfzz"
106
+ PopupMenu PopupProcedure, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:Du]k<zzzzzzzzzzz"
107
+ PopupMenu PopupProcedure, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
108
+
109
+ PopupMenu PopupNamespace, pos= { 36,10 } , size= { 265.00,19.00 } , bodyWidth=200, proc= CodeBrowserModule# popupModules, title= "Namespace"
110
+ PopupMenu PopupNamespace, userdata ( niceList) = "<ALL>;ProcGlobal;COMPILE;CodeBrowserModule;"
111
+ PopupMenu PopupNamespace, mode=1, popvalue= "<ALL>" , value= # "CodeBrowserModule#generateModuleList()"
112
+ PopupMenu PopupNamespace, help= { "NameSpace of Independent Module or ProcGlobal context. Set to <ALL> to ignore the Namespace." }
113
+ PopupMenu PopupNamespace, userdata ( ResizeControlsInfo) = A"!!,Ct!!#;-!!#B>J,hm&z!!#`-A7TLfzzzzzzzzzzzzzz!!#`-A7TLfzz"
114
+ PopupMenu PopupNamespace, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzz!!#u:Du]k<zzzzzzzzzzz"
115
+ PopupMenu PopupNamespace, userdata ( ResizeControlsInfo) += A"zzz!!#N3Bk1ct<C]S6zzzzzzzzzzzzz!!!"
110
116
111
117
SetWindow kwTopWin, userdata ( ResizeControlsInfo) = A"!!*'\" z!!#BSJ,hqczzzzzzzzzzzzzzzzzzzzz"
112
118
SetWindow kwTopWin, userdata ( ResizeControlsInfo) += A"zzzzzzzzzzzzzzzzzzzzzzzzz"
@@ -145,7 +151,7 @@ Function/S generateModuleList()
145
151
string niceList = getModuleList ()
146
152
niceList = AddListItem ( CB_selectAll, niceList)
147
153
148
- PopupMenu popupNamespace , win=$ panel, userData ( $ userDataNiceList) = niceList
154
+ PopupMenu PopupNamespace , win=$ panel, userData ( $ userDataNiceList) = niceList
149
155
150
156
return niceList
151
157
End
@@ -159,7 +165,7 @@ Function/S generateProcedureList()
159
165
niceList = AddListItem ( CB_selectAll, "" )
160
166
161
167
getProcedureList ( procList, niceList)
162
- PopupMenu popupProcedure , win=$ panel, userData ( $ userDataRawList) = procList, userData ( $ userDataNiceList) = niceList
168
+ PopupMenu PopupProcedure , win=$ panel, userData ( $ userDataRawList) = procList, userData ( $ userDataNiceList) = niceList
163
169
164
170
return niceList
165
171
End
@@ -274,22 +280,22 @@ Function/S getCurrentItem([module, procedure, index])
274
280
endif
275
281
276
282
if ( module)
277
- ControlInfo / W=$ panel popupNamespace
283
+ ControlInfo / W=$ panel PopupNamespace
278
284
279
285
if ( V_Value > 0 )
280
286
return S_Value
281
287
endif
282
288
elseif ( index)
283
- ControlInfo / W=$ panel list 1
289
+ ControlInfo / W=$ panel List 1
284
290
285
291
if ( V_Value >= 0 )
286
292
return num2str ( V_Value)
287
293
endif
288
294
elseif ( procedure)
289
- ControlInfo / W=$ panel popupProcedure
295
+ ControlInfo / W=$ panel PopupProcedure
290
296
V_Value -= 1 // 1-based index
291
297
292
- rawList = GetUserData ( panel, "popupProcedure " , userDataRawList)
298
+ rawList = GetUserData ( panel, "PopupProcedure " , userDataRawList)
293
299
if ( V_Value < 0 || V_Value >= ItemsInList ( rawList))
294
300
if ( ItemsInList ( rawList) > 0 )
295
301
// fall back to first item
@@ -357,11 +363,11 @@ Function getCurrentItemAsNumeric([module, procedure, index, indexTop])
357
363
endif
358
364
359
365
if ( module)
360
- ControlInfo / W=$ panel popupNamespace
366
+ ControlInfo / W=$ panel PopupNamespace
361
367
elseif ( procedure)
362
- ControlInfo / W=$ panel popupProcedure
368
+ ControlInfo / W=$ panel PopupProcedure
363
369
elseif ( index || indexTop)
364
- ControlInfo / W=$ panel list 1
370
+ ControlInfo / W=$ panel List 1
365
371
endif
366
372
367
373
if ( V_Value >= 0 )
@@ -390,7 +396,7 @@ Function updatePopup(ctrlName)
390
396
391
397
ControlUpdate / W=$ panel $ ctrlName
392
398
393
- list = GetUserData ( panel, "popupProcedure " , userDataNiceList)
399
+ list = GetUserData ( panel, "PopupProcedure " , userDataNiceList)
394
400
395
401
if ( ItemsInList ( list) == 1 )
396
402
PopupMenu $ ctrlName win=$ panel, disable=2
@@ -425,7 +431,7 @@ Function popupModules(pa) : PopupMenuControl
425
431
break
426
432
endif
427
433
428
- updatePopup ( "popupProcedure " )
434
+ updatePopup ( "PopupProcedure " )
429
435
430
436
if ( updateListBoxHook () == 0 )
431
437
procedure = getCurrentItem ( procedure = 1 )
@@ -463,7 +469,7 @@ Function popupProcedures(pa) : PopupMenuControl
463
469
return 0
464
470
End
465
471
466
- Function checkboxSort ( cba) : CheckBoxControl
472
+ Function CheckboxSort ( cba) : CheckBoxControl
467
473
STRUCT WMCheckboxAction & cba
468
474
469
475
switch ( cba. eventCode)
479
485
480
486
// returns 0 if checkbox is deselected or 1 if it is selected.
481
487
Function returnCheckBoxSort ()
482
- ControlInfo / W=$ panel checkboxSort
488
+ ControlInfo / W=$ panel CheckboxSort
483
489
if ( V_flag == 2 ) // Checkbox found?
484
490
return V_Value
485
491
else
@@ -488,7 +494,7 @@ Function returnCheckBoxSort()
488
494
endif
489
495
End
490
496
491
- /// @brief Action procedure for the SetVariable @c setSearch
497
+ /// @brief Action procedure for the SetVariable @c SetSearch
492
498
Function SetVarProcedureSearch ( sva) : SetVariableControl
493
499
STRUCT WMSetVariableAction & sva
494
500
@@ -507,7 +513,7 @@ Function SetVarProcedureSearch(sva) : SetVariableControl
507
513
return 0
508
514
End
509
515
510
- /// @brief Action procedure for the SetVariable @c setProcedureFilter
516
+ /// @brief Action procedure for the SetVariable @c SetProcedureFilter
511
517
Function SetVarProcedureFilter ( sva) : SetVariableControl
512
518
STRUCT WMSetVariableAction & sva
513
519
@@ -517,7 +523,7 @@ Function SetVarProcedureFilter(sva) : SetVariableControl
517
523
case 3: // Live update
518
524
Variable dval = sva. dval
519
525
String sval = sva. sval
520
- updatePopup ( "popupProcedure " )
526
+ updatePopup ( "PopupProcedure " )
521
527
updateListBoxHook ()
522
528
break
523
529
case -1: // control being killed
@@ -551,10 +557,10 @@ Function listBoxProc(lba) : ListBoxControl
551
557
break
552
558
case 4: // cell selection
553
559
case 5: // cell selection plus shift key
554
- ControlInfo / W=$ panel list 1
560
+ ControlInfo / W=$ panel List 1
555
561
if ( V_selCol == 0 )
556
562
// forcefully deselect column zero if it is selected
557
- ListBox list 1 , win=$ panel, selCol=1
563
+ ListBox List 1 , win=$ panel, selCol=1
558
564
endif
559
565
break
560
566
case 12: // keystroke
0 commit comments