CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
Vispa.Views.PropertyView.ClosableProperty Class Reference
Inheritance diagram for Vispa.Views.PropertyView.ClosableProperty:

Public Member Functions

def __init__
 
def closableProperty
 
def closeButton
 
def enterEvent
 
def leaveEvent
 

Private Attributes

 _closeButton
 
 _property
 

Detailed Description

Definition at line 15 of file PropertyView.py.

Constructor & Destructor Documentation

def Vispa.Views.PropertyView.ClosableProperty.__init__ (   self,
  property 
)

Definition at line 16 of file PropertyView.py.

References PhysicsTools::MLP.layout, and ProcMLP.layout.

16 
17  def __init__(self,property):
18  QWidget.__init__(self)
19  self.setContentsMargins(0, 0, 0, 0)
20  self.setLayout(QHBoxLayout())
21  self.layout().setSpacing(0)
22  self.layout().setContentsMargins(0, 0, 0, 0)
23  self.layout().addWidget(property)
24  self._closeButton=QToolButton()
25  self._closeButton.setText("x")
26  self._closeButton.hide()
27  self._property=property
self.layout().addWidget(self._closeButton)

Member Function Documentation

def Vispa.Views.PropertyView.ClosableProperty.closableProperty (   self)

Definition at line 28 of file PropertyView.py.

References Vispa.Views.PropertyView.ClosableProperty._property.

28 
29  def closableProperty(self):
return self._property
def Vispa.Views.PropertyView.ClosableProperty.closeButton (   self)

Definition at line 30 of file PropertyView.py.

References Vispa.Views.PropertyView.ClosableProperty._closeButton, and Vispa.Gui.FindDialog.FindDialog._closeButton.

30 
31  def closeButton(self):
return self._closeButton
def Vispa.Views.PropertyView.ClosableProperty.enterEvent (   self,
  event 
)

Definition at line 32 of file PropertyView.py.

32 
33  def enterEvent(self,event):
self._closeButton.show()
def Vispa.Views.PropertyView.ClosableProperty.leaveEvent (   self,
  event 
)

Definition at line 34 of file PropertyView.py.

34 
35  def leaveEvent(self,event):
36  self._closeButton.hide()

Member Data Documentation

Vispa.Views.PropertyView.ClosableProperty._closeButton
private

Definition at line 23 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.ClosableProperty.closeButton().

Vispa.Views.PropertyView.ClosableProperty._property
private

Definition at line 26 of file PropertyView.py.

Referenced by Vispa.Views.PropertyView.ClosableProperty.closableProperty(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.properties(), and Vispa.Views.PropertyView.LabelItem.property().