This file is indexed.

/usr/share/elmerpost/tcl/savepng.tcl is in elmer-common 6.1.0.svn.5396.dfsg2-4ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#/*****************************************************************************
# *
# *  Elmer, A Finite Element Software for Multiphysical Problems
# *
# *  Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland
# * 
# *  This program is free software; you can redistribute it and/or
# *  modify it under the terms of the GNU General Public License
# *  as published by the Free Software Foundation; either version 2
# *  of the License, or (at your option) any later version.
# * 
# *  This program is distributed in the hope that it will be useful,
# *  but WITHOUT ANY WARRANTY; without even the implied warranty of
# *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# *  GNU General Public License for more details.
# *
# *  You should have received a copy of the GNU General Public License
# *  along with this program (in file fem/GPL-2); if not, write to the 
# *  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
# *  Boston, MA 02110-1301, USA.
# *
# *****************************************************************************/

#*******************************************************************************
#*
#*    PNG save utility routines
#*
#*******************************************************************************
#*
#*                     Author:       Mikko Lyly
#*
#*                    Address: CSC - IT Center for Science Ltd.
#*                                Keilaranta 14, P.O. BOX 405
#*                                  02101 Espoo, Finland
#*                                  Tel. +358 0 457 2723
#*                                Telefax: +358 0 457 2302
#*                              EMail: Juha.Ruokolainen@csc.fi
#*
#*                       Date: 04 Oct 2007
#*
#*                Modified by:
#*
#*       Date of modification:
#*
#******************************************************************************
set PNGFileName "elmerpost.png"

proc savepng.Control { } {
    global savepng_control PNGFileName 

    set savepng_control .savepng_control
    
    if { [winfo exists $savepng_control] } {
	destroy $savepng_control.title
	destroy $savepng_control.file
	destroy $savepng_control.save_button
	destroy $savepng_control.buttons
    } else {
	toplevel $savepng_control
	place_window $savepng_control
    }

    wm title $savepng_control "Savepng control"
    #
    # File name:
    #
    frame $savepng_control.file
    
    label $savepng_control.file.label -width 8 -text "File name:"
    entry $savepng_control.file.name -width 30 -textvariable PNGFileName
    button $savepng_control.file.button -text "Browse.." \
	-command { set PNGFileName [tk_getSaveFile -parent .savepng_control \
					-title "Save Picture To File"]; }
    pack $savepng_control.file.label $savepng_control.file.name \
	$savepng_control.file.button -side left -expand 1

    pack $savepng_control.file -expand 1 -fill both -side top
    #
    #   Buttons:
    #
    frame $savepng_control.buttons

    button $savepng_control.buttons.close -text "Close" \
	-command { destroy $savepng_control }

    frame $savepng_control.save_button
    button $savepng_control.save_button.save \
	-text "Save" -command { savepng $PNGFileName  }
    pack $savepng_control.save_button.save \
	-side left -expand 1 -fill x

    pack $savepng_control.buttons.close -side right

    pack $savepng_control.save_button -side top -expand 1 -fill x
    pack $savepng_control.buttons -side top -fill x -expand 1
}