File: empty.tcl

package info (click to toggle)
savi 1.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,932 kB
  • sloc: ansic: 7,054; tcl: 5,755; makefile: 270; sh: 237
file content (48 lines) | stat: -rw-r--r-- 1,176 bytes parent folder | download
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
39
40
41
42
43
44
45
46
47
48
#
######################################################
#
#  SaVi by Lloyd Wood (lloydwood@users.sourceforge.net),
#          Patrick Worfolk (worfolk@alum.mit.edu) and
#          Robert Thurman.
#
#  Copyright (c) 1997 by The Geometry Center.
#  Also Copyright (c) 2017 by Lloyd Wood.
#
#  This file is part of SaVi.  SaVi is free software;
#  you can redistribute it and/or modify it only under
#  the terms given in the file COPYRIGHT which you should
#  have received along with this file.  SaVi may be
#  obtained from:
#  http://savi.sourceforge.net/
#  http://www.geom.uiuc.edu/locate/SaVi
#
######################################################
#
# empty.tcl
#
# $Id: empty.tcl 8 2019-01-24 04:33:00Z lloydwood $

proc empty(build) {} {
    if {[eval window(raise) empty]} return

    set name [build_Toplevel empty]

    wm protocol $name WM_DELETE_WINDOW empty(dismiss)

    build_Title $name "empty space?"

    build_Buttonbar $name dbbar \
	{"Empty space of all satellites" empty(delete_all)} \
        {"Cancel" empty(dismiss)}

    update
}

proc empty(delete_all) {} {
    main(delete_all)
    empty(dismiss)
}

proc empty(dismiss) {} {
    destroy .empty
}