1
# -*- coding: iso-8859-1 -*-
3
#-------------------------------------------------------------------------------
5
# This file is part of the Code_Saturne User Interface, element of the
6
# Code_Saturne CFD tool.
8
# Copyright (C) 1998-2009 EDF S.A., France
10
# contact: saturne-support@edf.fr
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.
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.
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
28
#-------------------------------------------------------------------------------
31
This module contains the following classes and function:
32
- MatisseRangeDescriptionView
35
#-------------------------------------------------------------------------------
37
#-------------------------------------------------------------------------------
41
#-------------------------------------------------------------------------------
43
#-------------------------------------------------------------------------------
45
from PyQt4.QtCore import *
46
from PyQt4.QtGui import *
48
#-------------------------------------------------------------------------------
49
# Application modules import
50
#-------------------------------------------------------------------------------
52
from Base.Toolbox import GuiParam
53
from MatisseRangeDescriptionForm import Ui_MatisseRangeDescriptionForm
54
import Base.QtPage as QtPage
56
import Pages.MatisseGeomModel as MatisseGeom
57
from Pages.MatisseRangeDescriptionModel import MatisseRangeDescriptionModel
59
#-------------------------------------------------------------------------------
61
#-------------------------------------------------------------------------------
64
log = logging.getLogger("MatisseRangeDescriptionView")
65
log.setLevel(GuiParam.DEBUG)
67
#-------------------------------------------------------------------------------
69
#-------------------------------------------------------------------------------
71
class MatisseRangeDescriptionView(QWidget, Ui_MatisseRangeDescriptionForm):
74
def __init__(self, parent, case, rangeType):
78
QWidget.__init__(self, parent)
80
Ui_MatisseRangeDescriptionForm.__init__(self)
83
self.rangeType = rangeType
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")
101
#-------------------------------------------------------------------------------
103
#-------------------------------------------------------------------------------
105
if __name__ == "__main__":
108
#-------------------------------------------------------------------------------
110
#-------------------------------------------------------------------------------
b'\\ No newline at end of file'