Back to index

salome-gui  6.5.0
Public Member Functions | Public Attributes
tubedialog.TubeDialogOnTopWithApply Class Reference
Inheritance diagram for tubedialog.TubeDialogOnTopWithApply:
Inheritance graph
[legend]
Collaboration diagram for tubedialog.TubeDialogOnTopWithApply:
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

Detailed Description

Definition at line 77 of file tubedialog.py.


Member Function Documentation

def tubedialog.TubeDialog.accept (   self) [inherited]
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:

def tubedialog.TubeDialog.getData (   self) [inherited]

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 
) [inherited]
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 
) [inherited]
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 
) [inherited]
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:

def tubedialog.TubeDialog.reject (   self) [inherited]
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 
) [inherited]

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))

This setupUi adds a button 'Apply' to execute a processing
tasks (ex: preview), and set a flag that keeps the dialog on
top of all windows.

Reimplemented from tubedialog.TubeDialog.

Definition at line 78 of file tubedialog.py.

00078 
00079     def setupUi(self):
00080         """
00081         This setupUi adds a button 'Apply' to execute a processing
00082         tasks (ex: preview), and set a flag that keeps the dialog on
00083         top of all windows.
00084         """
00085         TubeDialog.setupUi(self)
00086         # Add a button "Apply"
00087         self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|
00088                                           QtGui.QDialogButtonBox.Apply|
00089                                           QtGui.QDialogButtonBox.Ok)
00090 
00091         # Keep the dialog on top of the windows
00092         self.setWindowFlags(self.windowFlags() |
00093                             QtCore.Qt.WindowStaysOnTopHint)
00094 
00095 
00096 #
00097 # ======================================================================
00098 # Unit test
00099 # ======================================================================
#

Here is the caller graph for this function:

def tubedialog.TubeDialog.wasOk (   self) [inherited]

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 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: