~ubuntu-branches/ubuntu/precise/code-saturne/precise

« back to all changes in this revision

Viewing changes to gui/Pages/MatisseRangeDescriptionView.py

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2011-11-24 00:00:08 UTC
  • mfrom: (6.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20111124000008-2vo99e38267942q5
Tags: 2.1.0-3
Install a missing file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: iso-8859-1 -*-
2
 
#
3
 
#-------------------------------------------------------------------------------
4
 
#
5
 
#     This file is part of the Code_Saturne User Interface, element of the
6
 
#     Code_Saturne CFD tool.
7
 
#
8
 
#     Copyright (C) 1998-2009 EDF S.A., France
9
 
#
10
 
#     contact: saturne-support@edf.fr
11
 
#
12
 
#     The Code_Saturne User Interface is free software; you can redistribute it
13
 
#     and/or modify it under the terms of the GNU General Public License
14
 
#     as published by the Free Software Foundation; either version 2 of
15
 
#     the License, or (at your option) any later version.
16
 
#
17
 
#     The Code_Saturne User Interface is distributed in the hope that it will be
18
 
#     useful, but WITHOUT ANY WARRANTY; without even the implied warranty
19
 
#     of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 
#     GNU General Public License for more details.
21
 
#
22
 
#     You should have received a copy of the GNU General Public License
23
 
#     along with the Code_Saturne Kernel; if not, write to the
24
 
#     Free Software Foundation, Inc.,
25
 
#     51 Franklin St, Fifth Floor,
26
 
#     Boston, MA  02110-1301  USA
27
 
#
28
 
#-------------------------------------------------------------------------------
29
 
 
30
 
"""
31
 
This module contains the following classes and function:
32
 
- MatisseRangeDescriptionView
33
 
"""
34
 
 
35
 
#-------------------------------------------------------------------------------
36
 
# Standard modules
37
 
#-------------------------------------------------------------------------------
38
 
 
39
 
import logging
40
 
 
41
 
#-------------------------------------------------------------------------------
42
 
# Third-party modules
43
 
#-------------------------------------------------------------------------------
44
 
 
45
 
from PyQt4.QtCore import *
46
 
from PyQt4.QtGui  import *
47
 
 
48
 
#-------------------------------------------------------------------------------
49
 
# Application modules import
50
 
#-------------------------------------------------------------------------------
51
 
 
52
 
from Base.Toolbox import GuiParam
53
 
from MatisseRangeDescriptionForm import Ui_MatisseRangeDescriptionForm
54
 
import Base.QtPage as QtPage
55
 
 
56
 
import Pages.MatisseGeomModel as MatisseGeom
57
 
from Pages.MatisseRangeDescriptionModel import MatisseRangeDescriptionModel
58
 
 
59
 
#-------------------------------------------------------------------------------
60
 
# log config
61
 
#-------------------------------------------------------------------------------
62
 
 
63
 
logging.basicConfig()
64
 
log = logging.getLogger("MatisseRangeDescriptionView")
65
 
log.setLevel(GuiParam.DEBUG)
66
 
 
67
 
#-------------------------------------------------------------------------------
68
 
# Main class
69
 
#-------------------------------------------------------------------------------
70
 
 
71
 
class MatisseRangeDescriptionView(QWidget, Ui_MatisseRangeDescriptionForm):
72
 
    """
73
 
    """
74
 
    def __init__(self, parent, case, rangeType):
75
 
        """
76
 
        Constructor
77
 
        """
78
 
        QWidget.__init__(self, parent)
79
 
 
80
 
        Ui_MatisseRangeDescriptionForm.__init__(self)
81
 
        self.setupUi(self)
82
 
 
83
 
        self.rangeType = rangeType
84
 
        self.case = case
85
 
 
86
 
        # Create the Page layout.
87
 
        if self.rangeType == "inlet_range":
88
 
            self.widgetLine.initWidget(self.case, "inlet_range_line")
89
 
            self.widgetHeight.initWidget(self.case, "inlet_range_height")
90
 
        if self.rangeType == "outlet_range":
91
 
            self.widgetLine.initWidget(self.case, "outlet_range_line")
92
 
            self.widgetHeight.initWidget(self.case, "outlet_range_height")
93
 
 
94
 
 
95
 
    def tr(self, text):
96
 
        """
97
 
        Translation
98
 
        """
99
 
        return text
100
 
 
101
 
#-------------------------------------------------------------------------------
102
 
# Testing part
103
 
#-------------------------------------------------------------------------------
104
 
 
105
 
if __name__ == "__main__":
106
 
    pass
107
 
 
108
 
#-------------------------------------------------------------------------------
109
 
# End
110
 
#-------------------------------------------------------------------------------
 
 
b'\\ No newline at end of file'