source: CPL/oasis3-mct/branches/OASIS3-MCT_2.0_branch/util/oasisgui/opentea/create_modelframe.tcl

Last change on this file was 4775, checked in by aclsce, 5 years ago
  • Imported oasis3-mct from Cerfacs svn server (not suppotred anymore).

The version has been extracted from https://oasis3mct.cerfacs.fr/svn/branches/OASIS3-MCT_2.0_branch/oasis3-mct@1818

File size: 2.7 KB
Line 
1#  This program is under CECILL_B licence. See footer for details.
2
3
4#####################
5# create a 'float' container able to display
6# several parameters and some help
7# the validity status could be shown, but is not
8# displayed for the moment to reduce the number
9# of informations for the user.
10#####################
11
12proc modelframe_create { args } {
13   
14    set mandatory_arguments { path_father address style}
15    initWidget
16   
17    set widgetInfo($address-status) 1
18   
19    set style [dTree_tryGetAttribute $XMLtree $full_address_XML_clean "layout" $style]
20   
21   
22    smartpacker_setup_modelframe $win $address
23   
24   
25   
26    finishWidget   
27    append widgetInfo($address-refreshStatus) [ subst { modelframe_refreshStatus $win $address}]   
28   
29   
30    help_add_desc_docu_to_widget
31   
32   
33   
34   
35    if {$style == "onrequest"} {
36        return $win.snap
37    } else {
38        return $win
39    }
40   
41}
42
43
44# existif behavior
45proc modelframe_refreshStatus {win address} {
46    global widgetInfo
47    smartpacker_update_visibility $win $address
48}
49
50
51
52
53#  Copyright CERFACS 2014
54#   
55#  antoine.dauptain@cerfacs.fr
56#   
57#  This software is a computer program whose purpose is to ensure technology
58#  transfer between academia and industry.
59#   
60#  This software is governed by the CeCILL-B license under French law and
61#  abiding by the rules of distribution of free software.  You can  use,
62#  modify and/ or redistribute the software under the terms of the CeCILL-B
63#  license as circulated by CEA, CNRS and INRIA at the following URL
64#  "http://www.cecill.info".
65#   
66#  As a counterpart to the access to the source code and  rights to copy,
67#  modify and redistribute granted by the license, users are provided only
68#  with a limited warranty  and the software's author,  the holder of the
69#  economic rights,  and the successive licensors  have only  limited
70#  liability.
71#   
72#  In this respect, the user's attention is drawn to the risks associated
73#  with loading,  using,  modifying and/or developing or reproducing the
74#  software by the user in light of its specific status of free software,
75#  that may mean  that it is complicated to manipulate,  and  that  also
76#  therefore means  that it is reserved for developers  and  experienced
77#  professionals having in-depth computer knowledge. Users are therefore
78#  encouraged to load and test the software's suitability as regards their
79#  requirements in conditions enabling the security of their systems and/or
80#  data to be ensured and,  more generally, to use and operate it in the
81#  same conditions as regards security.
82#   
83#  The fact that you are presently reading this means that you have had
84#  knowledge of the CeCILL-B license and that you accept its terms.
Note: See TracBrowser for help on using the repository browser.