Back to index

salome-gui  6.5.0
Public Member Functions | Public Attributes | Private Attributes
tubedialog.TubeDialog Class Reference
Inheritance diagram for tubedialog.TubeDialog:
Inheritance graph
[legend]
Collaboration diagram for tubedialog.TubeDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def setupUi
def handleAcceptWith
def handleRejectWith
def handleApplyWith
def accept
def reject
def wasOk
def setData
def getData

Public Attributes

 hboxlayout
 vboxlayout
 hboxlayout1
 vboxlayout1
 lblRadius
 lblLength
 lblWidth
 vboxlayout2
 txtRadius
 txtLength
 txtWidth
 buttonBox

Private Attributes

 _wasOk

Detailed Description

Definition at line 28 of file tubedialog.py.


Member Function Documentation

Callback function when dialog is accepted (click Ok)

Definition at line 47 of file tubedialog.py.

00047 
00048     def accept(self):
00049         '''Callback function when dialog is accepted (click Ok)'''
00050         self._wasOk = True
00051         # We should test here the validity of values
00052         QtGui.QDialog.accept(self)

Here is the caller graph for this function:

Definition at line 66 of file tubedialog.py.

00066 
00067     def getData(self):
00068         try:
00069             radius=eval(str(self.txtRadius.text()))
00070             length=eval(str(self.txtLength.text()))
00071             width=eval(str(self.txtWidth.text()))
00072         except:
00073             print "pb a la saisie"
00074 
00075         return radius, length, width

def tubedialog.TubeDialog.handleAcceptWith (   self,
  callbackFunction 
)
This defines the function to be connected to the signal 'accepted()' (click on Ok)

Definition at line 34 of file tubedialog.py.

00034 
00035     def handleAcceptWith(self,callbackFunction):
00036         """This defines the function to be connected to the signal 'accepted()' (click on Ok)"""
00037         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), callbackFunction)

Here is the caller graph for this function:

def tubedialog.TubeDialog.handleApplyWith (   self,
  callbackFunction 
)
This defines the function to be connected to the signal 'apply()' (click on Apply)

Definition at line 42 of file tubedialog.py.

00042 
00043     def handleApplyWith(self,callbackFunction):
00044         """This defines the function to be connected to the signal 'apply()' (click on Apply)"""
00045         button = self.buttonBox.button(QtGui.QDialogButtonBox.Apply)        
00046         QtCore.QObject.connect(button, QtCore.SIGNAL("clicked()"), callbackFunction);

def tubedialog.TubeDialog.handleRejectWith (   self,
  callbackFunction 
)
This defines the function to be connected to the signal 'rejected()' (click on Cancel)

Definition at line 38 of file tubedialog.py.

00038 
00039     def handleRejectWith(self,callbackFunction):
00040         """This defines the function to be connected to the signal 'rejected()' (click on Cancel)"""
00041         QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), callbackFunction)

Here is the caller graph for this function:

Callback function when dialog is rejected (click Cancel)

Definition at line 53 of file tubedialog.py.

00053 
00054     def reject(self):
00055         '''Callback function when dialog is rejected (click Cancel)'''
00056         self._wasOk = False
00057         QtGui.QDialog.reject(self)

Here is the caller graph for this function:

def tubedialog.TubeDialog.setData (   self,
  radius,
  length,
  width 
)

Definition at line 61 of file tubedialog.py.

00061 
00062     def setData(self, radius, length, width):
00063         self.txtRadius.setText(str(radius))
00064         self.txtLength.setText(str(length))
00065         self.txtWidth.setText(str(width))

Reimplemented from tubedialog_ui.TubeDialog_UI.

Reimplemented in tubedialog.TubeDialogOnTopWithApply.

Definition at line 29 of file tubedialog.py.

00029 
00030     def setupUi(self):
00031         TubeDialog_UI.setupUi(self)
00032         self.handleAcceptWith(self.accept)
00033         self.handleRejectWith(self.reject)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 58 of file tubedialog.py.

00058 
00059     def wasOk(self):
00060         return self._wasOk

Here is the caller graph for this function:


Member Data Documentation

Definition at line 49 of file tubedialog.py.

Definition at line 83 of file tubedialog_ui.py.

Definition at line 40 of file tubedialog_ui.py.

Definition at line 48 of file tubedialog_ui.py.

Definition at line 59 of file tubedialog_ui.py.

Definition at line 56 of file tubedialog_ui.py.

Definition at line 62 of file tubedialog_ui.py.

Definition at line 73 of file tubedialog_ui.py.

Definition at line 70 of file tubedialog_ui.py.

Definition at line 76 of file tubedialog_ui.py.

Definition at line 44 of file tubedialog_ui.py.

Definition at line 52 of file tubedialog_ui.py.

Definition at line 66 of file tubedialog_ui.py.


The documentation for this class was generated from the following file: