blob: 33c4b17d03a4d4d737052218641c0211b3892f8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Copyright (C) 1999-2018
# Smithsonian Astrophysical Observatory, Cambridge, MA, USA
# For conditions of distribution and use, see copyright notice in "copyright"
package provide DS9 1.0
proc EpandaDialog {varname} {
upvar #0 $varname var
global $varname
# see if we already have a header window visible
if {[winfo exists $var(top)]} {
raise $var(top)
return
}
# procs
set var(which) epanda
set var(proc,apply) MarkerBasePandaRectApply
set var(proc,close) MarkerBasePandaRectClose
set var(proc,generate) EpandaGenerate
set var(proc,coordCB) MarkerBasePandaRectCoordCB
set var(proc,editCB) MarkerBasePandaRectEditCB
set var(proc,distCB) MarkerBasePandaRectDistCB
# base panda rect dialog
MarkerBasePandaRectDialog $varname
}
# actions
proc EpandaGenerate {varname} {
upvar #0 $varname var
global $varname
MarkerBaseAnnulusGenerateEllipse $varname
MarkerBasePandaGenerateAngles $varname
}
|