CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
Vispa.Gui.VispaWidget.VispaWidget Class Reference
Inheritance diagram for Vispa.Gui.VispaWidget.VispaWidget:
Vispa.Gui.ZoomableWidget.ZoomableWidget Vispa.Gui.Zoomable.Zoomable Vispa.Gui.ConnectableWidget.ConnectableWidget Vispa.Gui.MenuWidget.MenuWidget Vispa.Gui.PortWidget.PortWidget Vispa.Main.StartupScreen.StartupScreen Vispa.Views.LineDecayView.ParticleWidget Vispa.Gui.WidgetContainer.WidgetContainer Vispa.Gui.PortWidget.SinkPort Vispa.Gui.PortWidget.SourcePort Vispa.Views.BoxDecayView.BoxDecayContainer Vispa.Views.LineDecayView.LineDecayContainer

Public Member Functions

def __init__ (self, parent=None)
 
def autosize (self, skipSizeHint=False)
 
def autosizeEnabled (self)
 
def bodyWidget (self)
 
def boundingRect (self)
 
def colorHeaderBackgroundEnabled (self)
 
def contentRect (self)
 
def defineArrowBackgroundShape (self)
 
def defineCircleBackgroundShape (self, painter)
 
def defineDistances (self, keepDefaultRatio=False)
 
def defineRectBackgroundShape (self, painter)
 
def defineRoundRectBackgroundShape (self, painter)
 
def delete (self)
 
def distances (self)
 
def dragReferencePoint (self)
 
def dragWidget (self, pPos)
 
def drawBody (self, painter)
 
def drawHeaderBackground (self, painter)
 
def drawImage (self, painter)
 
def drawTextField (self, painter)
 
def drawTitle (self, painter)
 
def enableAutopositionizeWhenZooming (self, auto)
 
def enableAutosizing (self, auto, keepAspectRatio=True)
 
def enableBackgroundGradient (self, enable=True)
 
def enableColorHeaderBackground (self, enable=True)
 
def getDistance (self, name, scale=None, keepDefaultRatio=False)
 
def height (self)
 
def imageRectF (self, width=None, height=None)
 
def imageSizeF (self)
 
def isDeletable (self)
 
def isDragable (self)
 
def isSelectable (self)
 
def isSelected (self)
 
def isTitlePoint (self, point)
 
def isUseBackgroundGradientEnabled (self)
 
def keyPressEvent (self, event)
 
def mouseDoubleClickEvent (self, event)
 
def mouseMoveEvent (self, event)
 
def mousePressEvent (self, event)
 
def mouseReleaseEvent (self, event)
 
def move (self, target)
 
def noRearangeContent (self, no=True)
 
def paint (self, painter, event=None)
 
def paintEvent (self, event)
 
def penColor (self)
 
def previousDragPosition (self)
 
def rearangeContent (self)
 
def resetMouseDragOffset (self)
 
def resize (self, width, height)
 
def scale (self)
 
def scheduleCalculateDistances (self)
 
def scheduleRearangeContent (self)
 
def select (self, sel=True, multiSelect=False)
 
def setArrowShape (self, direction)
 
def setBodyWidget (self, widget)
 
def setColors (self, penColor, fillColor1, fillColor2)
 
def setDeletable (self, deleteable)
 
def setDragable (self, dragable, recursive=False)
 
def setDragReferencePoint (self, pos)
 
def setImage (self, image)
 
def setMaximumSize (self, attr)
 
def setMinimumSize (self, attr)
 
def setPreviousDragPosition (self, position)
 
def setSelectable (self, selectable)
 
def setShape (self, shape)
 
def setText (self, text)
 
def setTextFieldAutosizeFont (self, auto)
 
def setTextFieldAutotruncateText (self, auto)
 
def setTitle (self, title)
 
def setZoom (self, zoom)
 
def showEvent (self, event)
 
def sizeHint (self)
 
def text (self)
 
def textField (self)
 
def textFieldIsSet (self)
 
def title (self)
 
def titleField (self)
 
def titleIsSet (self)
 
def unzoomedX (self)
 
def unzoomedY (self)
 
def width (self)
 
- Public Member Functions inherited from Vispa.Gui.ZoomableWidget.ZoomableWidget
def __init__ (self, parent=None)
 
def exportImage (self, filename=None)
 
def setZoom (self, zoom)
 
- Public Member Functions inherited from Vispa.Gui.Zoomable.Zoomable
def __init__ (self)
 
def decrementZoom (self)
 
def incrementZoom (self)
 
def setZoom (self, zoom)
 
def zoom (self)
 
def zoomFactor (self)
 

Public Attributes

 fillColor1
 
 fillColor2
 
 framePenColor
 
 HEIGHT
 
 WIDTH
 

Private Member Functions

def _initTextField (self)
 
def _initTitleField (self)
 

Private Attributes

 _arrowShape
 
 _autopositioninzeWhenZoomingFlag
 
 _autosizeFlag
 
 _autosizeKeepAspectRatioFlag
 
 _backgroundGradientEnabledFlag
 
 _backgroundShape
 
 _backgroundShapePath
 
 _bodyWidget
 
 _colorHeaderBackgroundFlag
 
 _deletableFlag
 
 _distances
 
 _distancesHaveToBeRecalculatedFlag
 
 _distancesLastScale
 
 _distancesLastScaleHeight
 
 _distancesLastScaleWidth
 
 _dragableFlag
 
 _dragMouseXrel
 
 _dragMouseYrel
 
 _image
 
 _noRearangeContentFlag
 
 _previusDragPosition
 
 _rearangeContentFlag
 
 _scale
 
 _scaleHeight
 
 _scaleWidth
 
 _selectableFlag
 
 _selectedFlag
 
 _textField
 
 _titleField
 
 _unzoomedPositionX
 
 _unzoomedPositionY
 

Detailed Description

Class supporting random shapes, title and text field.

Title and text field content are stored in TextField objects.
You can influence the behavior of the widget by severals flags.
If you want the widget's size to fit the content size (increases / decreases widget) use enableAutosizing().
You can also chose the decrease the text field's font size, if text does not fit in. See setTextFieldAutosizeFont().
Additionally the text can be truncated instead using setTextFieldAutotruncateText().   

Definition at line 338 of file VispaWidget.py.

Constructor & Destructor Documentation

def Vispa.Gui.VispaWidget.VispaWidget.__init__ (   self,
  parent = None 
)
Constructor

Definition at line 416 of file VispaWidget.py.

416  def __init__(self, parent=None):
417  """ Constructor
418  """
419  #print "VispaWidget.__init__()"
420  self._autosizeFlag = False
422  self._titleField = None
425 
426  self._scale = 1
427  self._scaleWidth = 1
428  self._scaleHeight = 1
429 
430  self.framePenColor = None
431  self.fillColor1 = None
432  self.fillColor2 = None
433 
434  self._textField = None
435  self._selectableFlag = False
436  self._selectedFlag = False
437  self._deletableFlag = True
438  self._dragableFlag = True
439  self._dragMouseXrel = 0
440  self._dragMouseYrel = 0
441 
442  self._distances = None
449 
452  self._arrowShape = None
453 
454  self._unzoomedPositionX = 0 # These values are set by the overridden move() function.
455  self._unzoomedPositionY = 0 # With these values the widgets position can be scaled when zooming.
457 
458  self._bodyWidget = None
459  self._image = None
460 
461  ZoomableWidget.__init__(self, parent)
462 
463  self.setColors(self.PEN_COLOR, self.FILL_COLOR1, self.FILL_COLOR2)
464  self.setSelectable(self.SELECTABLE_FLAG)
465  self.setShape(self.BACKGROUND_SHAPE)
466  self.setArrowShape(self.ARROW_SHAPE)
467  self.enableAutopositionizeWhenZooming(self.AUTOPOSITIONIZE_WHEN_ZOOMING_FLAG)
468  self.enableAutosizing(self.AUTOSIZE, self.AUTOSIZE_KEEP_ASPECT_RATIO)
469  self.enableColorHeaderBackground(self.COLOR_HEADER_BACKGROUND_FLAG)
470  self.enableBackgroundGradient(self.USE_BACKGROUND_GRADIENT_FLAG)
471  self.setMinimumSize(self.MINIMUM_WIDTH, self.MINIMUM_HEIGHT)
472 
473  self.noRearangeContent(False)
475  self._previusDragPosition = self.pos()
476 
def enableColorHeaderBackground(self, enable=True)
Definition: VispaWidget.py:610
def enableAutopositionizeWhenZooming(self, auto)
Definition: VispaWidget.py:510
def enableBackgroundGradient(self, enable=True)
Definition: VispaWidget.py:620
def setSelectable(self, selectable)
Definition: VispaWidget.py:589
def setArrowShape(self, direction)
Definition: VispaWidget.py:548
def noRearangeContent(self, no=True)
Definition: VispaWidget.py:896
def enableAutosizing(self, auto, keepAspectRatio=True)
Definition: VispaWidget.py:560
def setColors(self, penColor, fillColor1, fillColor2)
Definition: VispaWidget.py:531
def __init__(self, parent=None)
Definition: VispaWidget.py:416

Member Function Documentation

def Vispa.Gui.VispaWidget.VispaWidget._initTextField (   self)
private

Definition at line 701 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeFlag, Vispa.Gui.VispaWidget.VispaWidget._autosizeKeepAspectRatioFlag, Vispa.Gui.VispaWidget.VispaWidget._textField, ValidateGeometry.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.getDistance().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.setText(), Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutosizeFont(), and Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutotruncateText().

701  def _initTextField(self):
702  if self._textField == None:
703  self._textField = TextField()
704  self._textField.setFontSizeRange(self.TEXTFIELD_FONTSIZE_MIN, self.TEXTFIELD_FONTSIZE_MAX)
705  self._textField.setDefaultWidth(self.getDistance('textFieldWidth', 1, True))
706  self._textField.setDefaultHeight(self.getDistance('textFieldHeight', 1, True))
707  self._textField.setDefaultFontSize(self.TEXTFIELD_FONTSIZE)
708  self._textField.setAutosizeFont(self.TEXTFIELD_AUTOSIZE_FONT_FLAG)
709  self._textField.setAutotruncate(self.TEXTFIELD_AUTOTRUNCATE_TEXT_FLAG)
710  self._textField.setOutputFlags(self.TEXTFIELD_FLAGS)
711  self._textField.setAutoscale(self._autosizeFlag, self._autosizeKeepAspectRatioFlag)
712 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def Vispa.Gui.VispaWidget.VispaWidget._initTitleField (   self)
private
Initializes title field.

Sets default flags for title field.

Definition at line 663 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._titleField, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.titleField().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.setTitle().

663  def _initTitleField(self):
664  """ Initializes title field.
665 
666  Sets default flags for title field.
667  """
668  if self._titleField == None:
669  self._titleField = TextField()
670  self._titleField.setDefaultWidth(self.getDistance('titleFieldWidth', 1, True))
671  self._titleField.setDefaultFontSize(self.TITLEFIELD_FONTSIZE)
672  self._titleField.setAutotruncate(False)
673  #self._titleField.setAutoscale(self._autosizeFlag, self._autosizeKeepAspectRatioFlag)
674  self.titleField().setAutoscale(True, False)
675  self._titleField.setPenColor(self.TITLE_COLOR)
676 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def Vispa.Gui.VispaWidget.VispaWidget.autosize (   self,
  skipSizeHint = False 
)
Calculates scale factors and resizes widget accordingly.

Calculates by which factor width and height of this widget should be scaled
depending on the content of the widget.
If skipSizeHint is True only the resize part is performed.

Definition at line 833 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeKeepAspectRatioFlag, Vispa.Gui.VispaWidget.VispaWidget._bodyWidget, Vispa.Gui.MenuWidget.MenuWidget._scaleHeight, Vispa.Gui.VispaWidget.VispaWidget._scaleHeight, Vispa.Gui.MenuWidget.MenuWidget._scaleWidth, Vispa.Gui.VispaWidget.VispaWidget._scaleWidth, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, presentation.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, Vispa.Gui.VispaWidget.VispaWidget.HEIGHT, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, min(), Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint(), Vispa.Gui.MenuWidget.MenuWidget.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), DDDWorldObserver< Event >.update(), ECALPFSeedCleaner.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), TrajectoryStateUpdator.update(), RecHitTopologicalCleanerBase.update(), PFlow2DClusterizerWithTime.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), FastFedCablingTask.update(), VpspScanTask.update(), ErrorCorrelation.update(), MSLayersAtAngle.update(), ApvTimingTask.update(), FedTimingTask.update(), PrintSensitive.update(), OptoScanTask.update(), PedestalsTask.update(), GsfMultiStateUpdator.update(), AlignableDet.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), NoiseHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), VpspScanHistosUsingDb.update(), LatencyTask.update(), CalibrationScanTask.update(), MonopoleSteppingAction.update(), FineDelayTask.update(), SCRegressionCalculator< VarCalc >.update(), edm::SubProcessParentageHelper.update(), FastFedCablingHistosUsingDb.update(), CalibrationTask.update(), PFCPositionCalculatorBase.update(), PFClusterEnergyCorrectorBase.update(), AlignableDetUnit.update(), RHStopTracer.update(), FedCablingTask.update(), KFStrip1DUpdator.update(), CheckOverlap.update(), TkPhase2OTMeasurementDet.update(), cond::persistency::ITagTable.update(), LatencyHistosUsingDb.update(), NoiseTask.update(), PedsOnlyTask.update(), TkPixelMeasurementDet.update(), CalibrationHistosUsingDb.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), ChildUpdator.update(), FineDelayHistosUsingDb.update(), PedsFullNoiseTask.update(), progressbar.Widget.update(), BaselinePFSCRegression.update(), PrintMaterialBudgetInfo.update(), KFSwitching1DUpdator.update(), PhysicsTools::MVAComputerCache.update(), AlignableCSCChamber.update(), KinematicConstrainedVertexUpdator.update(), MaterialBudgetHcal.update(), cond::persistency::GLOBAL_TAG::Table.update(), HGCScintSD.update(), StoreSecondary.update(), edm::RunningAverage.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfJob * >.update(), Observer< const EndOfRun * >.update(), Observer< const EndOfTrack * >.update(), Observer< const BeginOfJob * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const EndOfEvent * >.update(), Observer< const Event * >.update(), Observer< const DDDWorld * >.update(), Observer< const T * >.update(), AlignableTracker.update(), BinomialProbability.update(), Observer< const BeginOfRun * >.update(), Observer< T >.update(), pathelpers::Record.update(), MuonServiceProxy.update(), PFClusterBuilderBase.update(), GflashG4Watcher.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), cond::persistency::TAG::Table.update(), HGCSD.update(), MaterialBudget.update(), MaterialBudgetForward.update(), funct::Master< F >.update(), RealisticSimClusterMapper.update(), KFUpdator.update(), AlignableComposite.update(), CaloTrkProcessing.update(), CheckSecondary.update(), EcalSimHitsValidProducer.update(), KalmanVertexTrackUpdator< 5 >.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< N >.update(), SimG4FluxProducer.update(), TrackingMaterialProducer.update(), TrackingVerboseAction.update(), FWJobMetadataManager.update(), HcalTestAnalysis.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), KalmanVertexUpdator< 5 >.update(), SingleParticleEvent.update(), pos::PixelConfig.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), edm::service::CondorStatusService.update(), SiStripPartition.update(), fwlite::RecordWriter.update(), MuonTrajectoryUpdator.update(), AlignableMuon.update(), SiStripConfObject.update(), fastsim::Geometry.update(), FWParameterSetterBase.update(), TimingSD.update(), HCalSD.update(), HGCPassive.update(), FiberSD.update(), progressbar.Timer.update(), SimG4HcalValidation.update(), TotemTestGem.update(), HcaluLUTTPGCoder.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), Alignable.update(), MuonUpdatorAtVertex.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), TkAccumulatingSensitiveDetector.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfTrack >.update(), ApvAnalysisFactory.update(), CaloSteppingAction.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< T >.update(), progressbar.WidgetHFill.update(), SimTracer.update(), HcalForwardAnalysis.update(), DTSegmentUpdator.update(), FP420SD.update(), DTVDriftCalibration::cellInfo.update(), sistrip::RawToDigiUnpacker.update(), DAClusterizerInZ.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), PhysicsTools::TreeReader::Value.update(), EcalTBH4Trigger.update(), CastorTestAnalysis.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), edm::BMixingModule.update(), evf::FastMonitoringService::Encoding.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), TrajectoryStateOnSurface.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), Folder.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), const_iterator.update(), DetSetVector< SiPixelCluster >.update(), DetSetVector< ClusterType >.update(), DetSetVector< SiStripCluster >.update(), edmNew::DetSetVector< T >.update(), DetSetVector< T >.update(), TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), SimpleCylinderBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, Bounds.width(), DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, LA_Filler_Fitter.WIDTH, FWColumnLabelCellRenderer.width(), function::ZMuMuFunction.width, function::ZMuTrackFunction.width, function::ZMuMuScaledFunction.width, btag::SimpleMatrix< T >.width, SimpleConeBounds.width(), function::ZMuStandaloneScaledFunction.width, FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledFunction.width, function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, Vispa.Gui.VispaWidget.VispaWidget.WIDTH, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.autolayoutPostprocess(), Vispa.Views.LineDecayView.LineDecayContainer.createObject(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse(), and Vispa.Gui.WidgetContainer.WidgetContainer.widgetDragged().

833  def autosize(self, skipSizeHint=False):
834  """ Calculates scale factors and resizes widget accordingly.
835 
836  Calculates by which factor width and height of this widget should be scaled
837  depending on the content of the widget.
838  If skipSizeHint is True only the resize part is performed.
839  """
840  #logging.debug(self.__class__.__name__ +": autosize()")
841  if not skipSizeHint:
842  neededSpace = self.sizeHint()
843  neededWidth = neededSpace.width()
844  neededHeight = neededSpace.height()
845 
846  self._scaleWidth = 1.0 * neededWidth / self.WIDTH
847  self._scaleHeight = 1.0 * neededHeight / self.HEIGHT
848 
850  self._scaleWidth = min(self._scaleWidth, self._scaleHeight)
851  self._scaleHeight = self._scaleWidth
852 
853  if self._bodyWidget:
854  self._bodyWidget.move(self.getDistance("contentStartX"), self.getDistance("contentStartY"))
855 
856  ZoomableWidget.resize(self, self.width(), self.height())
857  self.update()
858  # update() is sometimes required
859  # if content has changed but size did not.
860  # user can expect repainting after calling autosize()? TODO: think about this
861 
def autosize(self, skipSizeHint=False)
Definition: VispaWidget.py:833
def getDistance(self, name, scale=None, keepDefaultRatio=False)
T min(T a, T b)
Definition: MathUtil.h:58
def Vispa.Gui.VispaWidget.VispaWidget.autosizeEnabled (   self)
Returns True if auto resizing is enabled.

See enableAutosizing().

Definition at line 582 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeFlag.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.widgetDragged().

582  def autosizeEnabled(self):
583  """ Returns True if auto resizing is enabled.
584 
585  See enableAutosizing().
586  """
587  return self._autosizeFlag
588 
def Vispa.Gui.VispaWidget.VispaWidget.bodyWidget (   self)
Returns body widget if there is one or None otherwise.

Definition at line 1485 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._bodyWidget.

1485  def bodyWidget(self):
1486  """ Returns body widget if there is one or None otherwise.
1487  """
1488  return self._bodyWidget
def Vispa.Gui.VispaWidget.VispaWidget.boundingRect (   self)

Definition at line 1471 of file VispaWidget.py.

References cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, presentation.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, Bounds.width(), DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, FWColumnLabelCellRenderer.width(), function::ZMuMuFunction.width, btag::SimpleMatrix< T >.width, function::ZMuTrackFunction.width, function::ZMuMuScaledFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledFunction.width, SimpleConeBounds.width(), FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), svgfig.Dots.width, Quad.x, reco::MuonRPCHitMatch.x, RPFlatParams::EP.x, stAPVGain.x, gen::PdfInfo.x, MadKinematicDescriptor.x, EnergyDepositUnit.x(), AmplitudeSegmentFP420.x(), TwoBodyDecayParameters.x, TkLayerMap::XYbin.x, SimplePixel.x, ScoutingVertex.x(), SignalPoint.x(), reco::MuonChamberMatch.x, lumiregperbunch.bsmeas.x, EnergySegmentFP420.x(), Geom::Polar2Cartesian< T >.x(), reco::MuonMETCorrectionData.x(), SiStripFineDelayTOF.x(), HFShowerPhoton.x(), ME0DigiPreReco.x(), PixelClusterizerBase::AccretionCluster.x, CTPPSTimingLocalTrack.x, online::BeamSpot_v1.x, HGCal_helpers::Coordinates.x, BinomialProbHelper.x(), LHCInterpolatedOpticalFunctionsSet::Kinematics.x, FTLCluster::FTLHit.x(), EcalTBHodoscopeRecInfoAlgo::BeamTrack.x, Phase2ITPixelCluster::Pixel.x, reco::MuonSegmentMatch.x, BeamSpotFakeConditions.x, SiPixelCluster::Pixel.x, PhiInterval.x, BSvsPVHistogramMaker.x(), ClusterShape.x, RHStopTracer::StopPoint.x, TotemTestHistoClass::Hit.x, VertexType.x, PGlobalSimHit::Vtx.x, MTDHit.x, MTDClusterizerBase::AccretionCluster.x, egPM::AbsEtaNrClus.x, PV2DBase< float, PointTag, LocalTag >.x(), PV2DBase< T, VectorTag, FrameTag >.x(), PV2DBase< float, VectorTag, GlobalTag >.x(), PV2DBase< T, PointTag, FrameTag >.x(), PV2DBase< double, PointTag, LocalTag >.x(), Point2DBase< Scalar, LocalTag >.x(), Point2DBase< U, FrameTag >.x(), Vector2DBase< U, FrameTag >.x(), Point2DBase< T, Frame >.x(), Vector2DBase< U, Frame >.x(), Vector2DBase< T, Frame >.x(), Point2DBase< U, Frame >.x(), Point2DBase< T, FrameTag >.x(), Vector2DBase< T, FrameTag >.x(), PV2DBase< T, PVType, FrameType >.x(), mathSSE::Rot3< double >.x(), mathSSE::Rot3< float >.x(), mathSSE::Rot3< Scalar >.x(), mathSSE::Rot3< align::Scalar >.x(), mathSSE::Rot3< T >.x(), Geom::Cylindrical2Cartesian< T >.x(), HcalForwardAnalysis::Photon.x, ParabolaFit::Point.x, BeamSpotOnline.x(), RooCMSShape.x, MuScleFitMuon.x(), HGCalRecHitValidation::HitsInfo.x, Pixinfo.x, egPM::AbsEtaNrClusPhi.x, funct::GaussLegendreIntegrator.x, QcdLowPtDQM::Pixel.x(), reco::CastorCell.x(), Hit.x, PV3DBase< float, VectorTag, LocalTag >.x(), PV3DBase< Scalar, VectorTag, GlobalTag >.x(), PV3DBase< T, VectorTag, FrameTag >.x(), PV3DBase< T, PointTag, FrameTag >.x(), Point3DBase< Scalar, LocalTag >.x(), Point3DBase< U, LocalTag >.x(), Point3DBase< U, GlobalTag >.x(), Vector3DBase< U, LocalTag >.x(), Vector3DBase< U, GlobalTag >.x(), Point3DBase< U, FrameTag >.x(), Vector3DBase< U, FrameTag >.x(), Point3DBase< T, Frame >.x(), Vector3DBase< U, Frame >.x(), Point3DBase< U, Frame >.x(), Vector3DBase< T, Frame >.x(), Vector3DBase< T, FrameTag >.x(), PV3DBase< T, PVType, FrameType >.x(), MonitorTrackResidualsBase< pixel_or_strip >::HistoXY.x, DigitizerUtility::EnergyDepositUnit.x(), Basic2DVector< Scalar >.x(), Basic2DVector< double >.x(), Basic2DVector< float >.x(), HGCalDigiValidation::digiInfo.x, Basic2DVector< U >.x(), Basic2DVector< T >.x(), HGCalSimHitValidation::hitsinfo.x, PixelModule.x, Clust.x, l1t::emtf::AMC13Header.x, reco::BeamSpot.x(), python.rootplot.utilities.Hist2D.x, Geom::Spherical2Cartesian< T >.x(), egPM::AbsEtaNrClusEt.x, VertexClassifier::GeneratedPrimaryVertex.x, PixelUnpackingRegions::Module.x, reco::CastorEgamma.x(), reco::CastorJet.x(), Rechit.x, HcalForwardAnalysis.x, Basic3DVector< long double >.x(), PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex.x, hit.x, DigitizerUtility::SignalPoint.x(), Geom::Cartesian2Cartesian3D< T >.x(), QcdLowPtDQM::Vertex.x(), Basic3DVector< Scalar >.x(), Basic3DVector< float >.x(), Basic3DVector< align::Scalar >.x(), Basic3DVector< U >.x(), Basic3DVector< float > constituentCentre Basic3DVector< float >.x(), Basic3DVector< double >.x(), Basic3DVector< T >.x(), reco::CastorCluster.x(), Phase2ITPixelCluster.x(), RecHitsSortedInPhi.x, SiPixelCluster.x(), GaussianSumUtilities1D::FinderState.x, XHistogram::position.x, FTLCluster.x(), SiStripRecHitsValid::RecHitProperties.x, TrackClassifier::GeneratedPrimaryVertex.x, reco::Vertex.x(), funct::GaussIntegrator.x, PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.x, mathSSE::Rot2< Scalar >.x(), mathSSE::Rot2< T >.x(), CTPPSLocalTrackLite.x, MuonGeometryArrange::MGACollection.x, python.rootplot.utilities.Hist.x, SOAFrame< T >.x(), HGCalCLUEAlgo::Hexel.x, reco::CaloCluster.x(), EPOS::EPOS_Wrapper.x(), BeamSpotOnlineRaw_v4.x, HGCalImagingAlgo::Hexel.x, lhef::HEPEUP::FiveVector.x, HitDoublets.x(), RawParticle.x(), MuScleFitUtils.x, SiPixelDigitizerAlgorithm::EnergyDepositUnit.x(), Rot3< Scalar >.x(), Rot3< double >.x(), Rot3< float >.x(), Rot3< align::Scalar >.x(), Rot3< T >.x(), SiStripTrackingRecHitsValid::RecHitProperties.x, SiPixelDigitizerAlgorithm::SignalPoint.x(), perftools::detail::Hist.x, TkRotation< Scalar >.x(), TkRotation< double >.x(), TkRotation< float >.x(), TkRotation< align::Scalar >.x(), TkRotation< U >.x(), TkRotation< T >.x(), hitfit::Fourvec_Event.x(), Rot2< Scalar >.x(), Rot2< T >.x(), TkRotation2D< Scalar >.x(), TkRotation2D< T >.x(), PDF.x, edmStreamStallGrapher.Point.x, svgfig.Plot.x, svgfig.Frame.x, Vispa.Views.LineDecayView.DecayNode.x(), PMuonSimHit::Vtx.x, PTrackerSimHit::Vtx.x, svgfig.Text.x, svgfig.TextGlobal.x, svgfig.VLine.x, Quad.y, RPFlatParams::EP.y, stAPVGain.y, EnergyDepositUnit.y(), AmplitudeSegmentFP420.y(), TwoBodyDecayParameters.y, TkLayerMap::XYbin.y, MadKinematicDescriptor.y, ScoutingVertex.y(), SignalPoint.y(), SimplePixel.y, RPCCluster.y(), reco::MuonChamberMatch.y, EnergySegmentFP420.y(), lumiregperbunch.bsmeas.y, Geom::Polar2Cartesian< T >.y(), reco::MuonMETCorrectionData.y(), HFShowerPhoton.y(), SiStripFineDelayTOF.y(), ME0DigiPreReco.y(), CTPPSTimingLocalTrack.y, PixelClusterizerBase::AccretionCluster.y, online::BeamSpot_v1.y, HGCal_helpers::Coordinates.y, FTLCluster::FTLHit.y(), Phase2ITPixelCluster::Pixel.y, LHCInterpolatedOpticalFunctionsSet::Kinematics.y, reco::MuonSegmentMatch.y, BeamSpotFakeConditions.y, SiPixelCluster::Pixel.y, PhiInterval.y, ClusterShape.y, BSvsPVHistogramMaker.y(), RHStopTracer::StopPoint.y, TotemTestHistoClass::Hit.y, VertexType.y, PGlobalSimHit::Vtx.y, MTDHit.y, MTDClusterizerBase::AccretionCluster.y, egPM::AbsEtaNrClus.y, PV2DBase< T, PVType, FrameType >.y(), Vector2DBase< T, Frame >.y(), Vector2DBase< U, FrameTag >.y(), Vector2DBase< T, FrameTag >.y(), PV2DBase< T, PointTag, FrameTag >.y(), PV2DBase< double, PointTag, LocalTag >.y(), PV2DBase< float, VectorTag, GlobalTag >.y(), Point2DBase< Scalar, LocalTag >.y(), PV2DBase< T, VectorTag, FrameTag >.y(), Point2DBase< U, Frame >.y(), PV2DBase< float, PointTag, LocalTag >.y(), Point2DBase< U, FrameTag >.y(), Point2DBase< T, Frame >.y(), Vector2DBase< U, Frame >.y(), Point2DBase< T, FrameTag >.y(), mathSSE::Rot3< float >.y(), mathSSE::Rot3< T >.y(), mathSSE::Rot3< Scalar >.y(), mathSSE::Rot3< double >.y(), mathSSE::Rot3< align::Scalar >.y(), ParabolaFit::Point.y, HcalForwardAnalysis::Photon.y, Geom::Cylindrical2Cartesian< T >.y(), BeamSpotOnline.y(), MuScleFitMuon.y(), HGCalRecHitValidation::HitsInfo.y, Pixinfo.y, egPM::AbsEtaNrClusPhi.y, QcdLowPtDQM::Pixel.y(), reco::CastorCell.y(), Hit.y, Vector3DBase< U, GlobalTag >.y(), PV3DBase< float, VectorTag, LocalTag >.y(), Point3DBase< Scalar, LocalTag >.y(), PV3DBase< Scalar, VectorTag, GlobalTag >.y(), PV3DBase< T, VectorTag, FrameTag >.y(), Vector3DBase< U, LocalTag >.y(), PV3DBase< T, PointTag, FrameTag >.y(), Point3DBase< U, GlobalTag >.y(), Vector3DBase< T, FrameTag >.y(), Point3DBase< U, LocalTag >.y(), Vector3DBase< T, Frame >.y(), Vector3DBase< U, FrameTag >.y(), PV3DBase< T, PVType, FrameType >.y(), MonitorTrackResidualsBase< pixel_or_strip >::HistoXY.y, Point3DBase< U, FrameTag >.y(), Point3DBase< U, Frame >.y(), Point3DBase< T, Frame >.y(), DigitizerUtility::EnergyDepositUnit.y(), Vector3DBase< U, Frame >.y(), HGCalDigiValidation::digiInfo.y, Basic2DVector< float >.y(), Basic2DVector< T >.y(), Basic2DVector< double >.y(), Basic2DVector< Scalar >.y(), Basic2DVector< U >.y(), HGCalSimHitValidation::hitsinfo.y, PixelModule.y, Clust.y, reco::BeamSpot.y(), Geom::Spherical2Cartesian< T >.y(), python.rootplot.utilities.Hist2D.y, egPM::AbsEtaNrClusEt.y, VertexClassifier::GeneratedPrimaryVertex.y, PixelUnpackingRegions::Module.y, Rechit.y, reco::CastorJet.y(), reco::CastorEgamma.y(), HcalForwardAnalysis.y, PrimaryVertexAnalyzer4PUSlimmed::simPrimaryVertex.y, Basic3DVector< long double >.y(), hit.y, DigitizerUtility::SignalPoint.y(), Geom::Cartesian2Cartesian3D< T >.y(), QcdLowPtDQM::Vertex.y(), Basic3DVector< T >.y(), Basic3DVector< align::Scalar >.y(), Basic3DVector< U >.y(), Basic3DVector< float >.y(), Basic3DVector< float > constituentCentre Basic3DVector< float >.y(), Basic3DVector< double >.y(), Basic3DVector< Scalar >.y(), reco::CastorCluster.y(), RecHitsSortedInPhi.y, GaussianSumUtilities1D::FinderState.y, reco::Candidate.y(), XHistogram::position.y, Phase2ITPixelCluster.y(), SiStripRecHitsValid::RecHitProperties.y, contrib::CMSBoostedTauSeedingAlgorithmStructure.y(), TrackClassifier::GeneratedPrimaryVertex.y, SiPixelCluster.y(), reco::Vertex.y(), FTLCluster.y(), reco::Particle.y(), PrimaryVertexAnalyzer4PUSlimmed::recoPrimaryVertex.y, reco::ParticleState.y(), mathSSE::Rot2< Scalar >.y(), mathSSE::Rot2< T >.y(), MuonGeometryArrange::MGACollection.y, CTPPSLocalTrackLite.y, python.rootplot.utilities.Hist.y, reco::LeafCandidate.y(), CandidateWithRef< Ref >.y(), HGCalClusterT< C >.y(), SOAFrame< T >.y(), python.rootplot.root2matplotlib.Hist.y, CaloParticle.y(), UrbanMscModel93.y, HGCalCLUEAlgo::Hexel.y, SimCluster.y(), EPOS::EPOS_Wrapper.y(), reco::CaloCluster.y(), BeamSpotOnlineRaw_v4.y, HGCalImagingAlgo::Hexel.y, HitDoublets.y(), RawParticle.y(), TrackingParticle.y(), pat::PackedGenParticle.y(), SiPixelDigitizerAlgorithm::EnergyDepositUnit.y(), Rot3< align::Scalar >.y(), Rot3< double >.y(), Rot3< T >.y(), Rot3< float >.y(), Rot3< Scalar >.y(), SiStripTrackingRecHitsValid::RecHitProperties.y, SiPixelDigitizerAlgorithm::SignalPoint.y(), TkRotation< Scalar >.y(), TkRotation< align::Scalar >.y(), TkRotation< U >.y(), TkRotation< float >.y(), TkRotation< T >.y(), TkRotation< double >.y(), Exhume::CrossSection.y, Rot2< Scalar >.y(), Rot2< T >.y(), TkRotation2D< T >.y(), TkRotation2D< Scalar >.y(), edmStreamStallGrapher.Point.y, pat::PackedCandidate.y(), svgfig.Plot.y, svgfig.Frame.y, Vispa.Views.LineDecayView.DecayNode.y(), PMuonSimHit::Vtx.y, svgfig.Curve.Sample.y, PTrackerSimHit::Vtx.y, svgfig.Text.y, svgfig.TextGlobal.y, and svgfig.HLine.y.

Referenced by Vispa.Views.LineDecayView.DecayNode.containsPoint(), and Vispa.Views.LineDecayView.DecayNode.move().

1471  def boundingRect(self):
1472  return QRect(self.x(), self.y(), self.width(), self.height())
1473 
def Vispa.Gui.VispaWidget.VispaWidget.colorHeaderBackgroundEnabled (   self)
def Vispa.Gui.VispaWidget.VispaWidget.contentRect (   self)

Definition at line 1230 of file VispaWidget.py.

References ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, presentation.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), SeedMultiplicityAnalyzer::FromTrackRefSeedFilter.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, Bounds.width(), DDTIDAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, FWColumnLabelCellRenderer.width(), function::ZMuMuFunction.width, btag::SimpleMatrix< T >.width, function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, SimpleConeBounds.width(), function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledFunction.width, FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorEgamma.width(), reco::CastorJet.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paintEvent().

1230  def contentRect(self):
1231  frame_width = 2
1232  if self.isSelected():
1233  frame_width = self.SELECTED_FRAME_WIDTH
1234  return QRect(frame_width, self.getDistance("titleFieldBottom"),
1235  self.width() - 2* frame_width -1,
1236  self.height() - self.getDistance("titleFieldBottom") - frame_width -1)
1237 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape (   self)

Definition at line 1101 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._arrowShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, Vispa.Gui.VispaWidget.VispaWidget._scale, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, presentation.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), RectangularPlaneBounds.width(), GeneralNSurfaceDelimitedBounds.width(), funct::GammaZInterference.width, SimpleCylinderBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), funct::BreitWigner.width, Bounds.width(), DDTIDAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, FWColumnLabelCellRenderer.width(), function::ZMuMuFunction.width, btag::SimpleMatrix< T >.width, function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, SimpleConeBounds.width(), function::ZMuTrackScaledFunction.width, FWCollectionSummaryModelCellRenderer.width(), function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorEgamma.width(), reco::CastorJet.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1102  if not hasattr(self._backgroundShapePath, "united"):
1103  logging.warning(self.__class__.__name__ +": defineArrowBackgroundShape() - Upgrade your Qt version at least to 4.3 to use this feature. Aborting...")
1104  return
1105 
1106  #logging.debug(self.__class__.__name__ +":defineArrowBackgroundShape()")
1107 
1108  offset = 0
1109  if self._backgroundShape == "ROUNDRECT":
1110  offset = (self.ROUNDRECT_RADIUS) * self._scale * 0.2
1111  p = self._backgroundShapePath.toFillPolygon()
1112  #print "background shape", [p[i] for i in range(len(p))]
1113  arrowPath = None
1114  if self._arrowShape == self.ARROW_SHAPE_TOP:
1115  arrowPath = QPainterPath()
1116  arrowPath.moveTo(self.getDistance('frameLeft'), self.getDistance('frameTop') + offset)
1117  arrowPath.lineTo(0.5 * self.width(), 1)
1118  arrowPath.lineTo(self.getDistance('frameRight'), self.getDistance('frameTop') + offset)
1119  arrowPath.closeSubpath()
1120  elif self._arrowShape == self.ARROW_SHAPE_RIGHT:
1121  arrowPath = QPainterPath()
1122  arrowPath.moveTo(self.getDistance('frameRight') - offset, self.getDistance('frameTop'))
1123  arrowPath.lineTo(self.width(), 0.5 * self.height())
1124  arrowPath.lineTo(self.getDistance('frameRight') - offset, self.getDistance('frameBottom'))
1125  arrowPath.closeSubpath()
1126  elif self._arrowShape == self.ARROW_SHAPE_BOTTOM:
1127  arrowPath = QPainterPath()
1128  arrowPath.moveTo(self.getDistance('frameLeft'), self.getDistance('frameBottom') - offset)
1129  arrowPath.lineTo(0.5 * self.width(), self.height())
1130  arrowPath.lineTo(self.getDistance('frameRight'), self.getDistance('frameBottom') - offset)
1131  arrowPath.closeSubpath()
1132  elif self._arrowShape == self.ARROW_SHAPE_LEFT:
1133  arrowPath = QPainterPath()
1134  arrowPath.moveTo(self.getDistance('frameLeft') + offset, self.getDistance('frameTop'))
1135  arrowPath.lineTo(1, 0.5 * self.height())
1136  arrowPath.lineTo(self.getDistance('frameLeft') + offset, self.getDistance('frameBottom'))
1137  arrowPath.closeSubpath()
1138 
1139  if arrowPath:
1140  self._backgroundShapePath = arrowPath.united(self._backgroundShapePath).simplified()
1141 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape (   self,
  painter 
)
Draws background for circular shape.

Definition at line 1063 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, presentation.PageLayout.height, FWTextTableCellRenderer.height(), FWFramedTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, min(), TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), RectangularPlaneBounds.width(), GeneralNSurfaceDelimitedBounds.width(), funct::GammaZInterference.width, SimpleCylinderBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, Bounds.width(), TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), FWColumnLabelCellRenderer.width(), function::ZMuStandaloneFunction.width, function::ZMuMuFunction.width, btag::SimpleMatrix< T >.width, function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, function::ZMuTrackScaledFunction.width, SimpleConeBounds.width(), FWCollectionSummaryModelCellRenderer.width(), function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1063  def defineCircleBackgroundShape(self, painter):
1064  """ Draws background for circular shape.
1065  """
1066  w = self.width()
1067  h = self.height()
1068  r = min(w, h) - 3 # radius
1069 
1070  self._backgroundShapePath = QPainterPath()
1071  self._backgroundShapePath.addEllipse(0.5 * (w -r), 0.5 * (h -r), r, r)
1072 
def defineCircleBackgroundShape(self, painter)
T min(T a, T b)
Definition: MathUtil.h:58
def Vispa.Gui.VispaWidget.VispaWidget.defineDistances (   self,
  keepDefaultRatio = False 
)
Defines supported distances.

The distances are needed for drawing widget content and are scaled according to current scale / zoom factors.
The distances are stored in an dictionary (see distances()).

Definition at line 925 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._arrowShape, Vispa.Gui.VispaWidget.VispaWidget._distances, Vispa.Gui.VispaWidget.VispaWidget._distancesHaveToBeRecalculatedFlag, Vispa.Gui.VispaWidget.VispaWidget._distancesLastScale, Vispa.Gui.VispaWidget.VispaWidget._distancesLastScaleHeight, Vispa.Gui.VispaWidget.VispaWidget._distancesLastScaleWidth, Vispa.Gui.VispaWidget.VispaWidget._noRearangeContentFlag, Vispa.Gui.VispaWidget.VispaWidget._rearangeContentFlag, Vispa.Gui.MenuWidget.MenuWidget._scaleHeight, Vispa.Gui.VispaWidget.VispaWidget._scaleHeight, Vispa.Gui.MenuWidget.MenuWidget._scaleWidth, Vispa.Gui.VispaWidget.VispaWidget._scaleWidth, cmsPerfStripChart.dict, Vispa.Gui.VispaWidget.VispaWidget.HEIGHT, Vispa.Gui.ConnectableWidget.ConnectableWidget.rearangeContent(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet(), Vispa.Gui.VispaWidget.VispaWidget.titleIsSet(), LA_Filler_Fitter.WIDTH, and Vispa.Gui.VispaWidget.VispaWidget.WIDTH.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.getDistance().

925  def defineDistances(self, keepDefaultRatio=False):
926  """ Defines supported distances.
927 
928  The distances are needed for drawing widget content and are scaled according to current scale / zoom factors.
929  The distances are stored in an dictionary (see distances()).
930  """
931  if self._rearangeContentFlag and not self._noRearangeContentFlag:# and self.isVisible():
932  self.rearangeContent()
933 
934  scale = 1.0 # remove if works without
935  if keepDefaultRatio:
936  scaleWidth = 1.0
937  scaleHeight = 1.0
938  else:
939  scaleWidth = self._scaleWidth
940  scaleHeight = self._scaleHeight
941 
942  if not self._distancesHaveToBeRecalculatedFlag and \
943  scaleWidth == self._distancesLastScaleWidth and \
944  scaleHeight == self._distancesLastScaleHeight:
945  return False
946 
947  #logging.debug(self.__class__.__name__ +": defineDistances() - scale = '"+ str(scale) +"'")
948 
949  self._distancesLastScale = scale
950  self._distancesLastScaleWidth = scaleWidth
951  self._distancesLastScaleHeight = scaleHeight
953 
954  self._distances = dict()
955  self._distances['width'] = self.WIDTH * scale * scaleWidth
956  self._distances['height'] = self.HEIGHT * scale * scaleHeight
957 
958  self._distances['frameTop'] = 1
959  self._distances['frameLeft'] = 1
960  self._distances['frameBottom'] = self._distances['height'] - 1
961  self._distances['frameRight'] = self._distances['width'] - 1
962 
963  if self._arrowShape == self.ARROW_SHAPE_TOP:
964  self._distances['frameTop'] = self.ARROW_SIZE * scale
965  self._distances['height'] += self._distances['frameTop']
966  self._distances['frameBottom'] = self._distances['height'] -1
967  elif self._arrowShape == self.ARROW_SHAPE_RIGHT:
968  self._distances['frameRight'] = self._distances['width']
969  self._distances['width'] += self.ARROW_SIZE * scale
970  elif self._arrowShape == self.ARROW_SHAPE_BOTTOM:
971  self._distances['frameBottom'] = self._distances['height']
972  self._distances['height'] += self.ARROW_SIZE * scale
973  elif self._arrowShape == self.ARROW_SHAPE_LEFT:
974  self._distances['frameLeft'] = self.ARROW_SIZE * scale
975  self._distances['width'] += self._distances['frameLeft']
976  self._distances['frameRight'] = self._distances['width'] -1
977 
978  self._distances['topMargin'] = self.TOP_MARGIN * scale
979  self._distances['leftMargin'] = self.LEFT_MARGIN * scale
980  self._distances['bottomMargin'] = self.BOTTOM_MARGIN * scale
981  self._distances['rightMargin'] = self.RIGHT_MARGIN * scale
982 
983  self._distances['horizontalInnerMargin'] = self.HORIZONTAL_INNER_MARGIN * scale
984  self._distances['verticalInnerMargin'] = self.VERTICAL_INNTER_MARGIN * scale
985 
986  self._distances['titleFieldX'] = self._distances['frameLeft'] + self._distances['leftMargin']
987  self._distances['titleFieldY'] = self._distances['frameTop'] + self._distances['topMargin']
988  if self.titleIsSet():
989  self._distances['titleFieldWidth'] = self._titleField.getWidth() * scale
990  self._distances['titleFieldHeight'] = self._titleField.getHeight() * scale
991  self._distances['titleFieldBottom'] = self._distances['titleFieldY'] + self._distances['titleFieldHeight']
992  else:
993  self._distances['titleFieldHeight'] = 0
994  self._distances['titleFieldBottom'] = self._distances['frameTop']
995  self._distances['titleFieldWidth'] = self._distances['width'] - self._distances['leftMargin'] - self._distances['rightMargin']
996 
997  self._distances['contentStartX'] = self._distances['frameLeft'] + self._distances['leftMargin']
998  self._distances['contentStartY'] = self._distances['titleFieldBottom'] + self._distances['topMargin']
999 
1000  self._distances['textFieldX'] = self._distances['contentStartX']
1001  self._distances['textFieldY'] = self._distances['contentStartY']
1002  if self.textFieldIsSet():
1003  self._distances['textFieldWidth'] = self._textField.getWidth() * scale
1004  self._distances['textFieldHeight'] = self._textField.getHeight() * scale
1005  else:
1006  self._distances['textFieldWidth'] = self._distances['width'] - self._distances['textFieldX'] - self._distances['rightMargin']
1007  self._distances['textFieldHeight'] = self._distances['height'] - self._distances['textFieldY'] - self._distances['bottomMargin']
1008  self._distances['textFieldRight'] = self._distances['textFieldX'] + self._distances['textFieldWidth']
1009 
1010  return True # indicates changes for overridden function of sub classes
1011 
def defineDistances(self, keepDefaultRatio=False)
Definition: VispaWidget.py:925
def Vispa.Gui.VispaWidget.VispaWidget.defineRectBackgroundShape (   self,
  painter 
)
Draws background for rectangular shape.

Definition at line 1052 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, ValidateGeometry.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.getDistance().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1052  def defineRectBackgroundShape(self, painter):
1053  """ Draws background for rectangular shape.
1054  """
1055  l = self.getDistance('frameLeft')
1056  t = self.getDistance('frameTop')
1057  r = self.getDistance('frameRight')
1058  b = self.getDistance('frameBottom')
1059  myRect = QRectF(l, t, r - l , b - t)
1060  self._backgroundShapePath = QPainterPath()
1061  self._backgroundShapePath.addRect(myRect)
1062 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def defineRectBackgroundShape(self, painter)
def Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape (   self,
  painter 
)
Draws background for rectangular shape with rounded corners.

Definition at line 1073 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, Vispa.Gui.VispaWidget.VispaWidget._scale, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, presentation.PageLayout.height, FWTextTableCellRenderer.height(), FWFramedTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, min(), TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), RectangularPlaneBounds.width(), GeneralNSurfaceDelimitedBounds.width(), funct::GammaZInterference.width, SimpleCylinderBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, Bounds.width(), DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), FWColumnLabelCellRenderer.width(), function::ZMuStandaloneFunction.width, function::ZMuMuFunction.width, function::ZMuTrackFunction.width, function::ZMuMuScaledFunction.width, btag::SimpleMatrix< T >.width, SimpleConeBounds.width(), FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledFunction.width, function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1074  """ Draws background for rectangular shape with rounded corners.
1075  """
1076  r = (self.ROUNDRECT_RADIUS) * self._scale
1077  w = self.width()# - 2
1078  h = self.height()# - 2
1079 
1080  w = self.getDistance("frameRight")
1081  h = self.getDistance("frameBottom")
1082  t = self.getDistance("frameTop")
1083  l = self.getDistance("frameLeft")
1084 
1085  # Prevent nasty lines when box too small
1086  f = 0.8
1087  r = min(r, f * h, f * w)
1088 
1089  self._backgroundShapePath = QPainterPath()
1090  self._backgroundShapePath.moveTo(w, r + t)
1091  self._backgroundShapePath.arcTo(w - r, t, r, r, 0, 90)
1092  self._backgroundShapePath.lineTo(r + l, t)
1093  self._backgroundShapePath.arcTo(l, t, r, r, 90, 90)
1094  self._backgroundShapePath.lineTo(l, h - r)
1095  self._backgroundShapePath.arcTo(l, h - r, r, r, 180, 90)
1096  self._backgroundShapePath.lineTo(w - r, h)
1097  self._backgroundShapePath.arcTo(w - r, h - r, r, r, 270, 90)
1098  self._backgroundShapePath.closeSubpath()
1099  self._backgroundShapePath = self._backgroundShapePath.simplified()
1100 
def defineRoundRectBackgroundShape(self, painter)
def getDistance(self, name, scale=None, keepDefaultRatio=False)
T min(T a, T b)
Definition: MathUtil.h:58
def Vispa.Gui.VispaWidget.VispaWidget.delete (   self)
Deletes this widget.

Definition at line 1355 of file VispaWidget.py.

References Vispa.Gui.ConnectableWidget.ConnectableWidget.deleteLater(), edm::signalslot::Signal< void(ModuleDescription const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, TerminationOrigin)>.emit(), edm::signalslot::Signal< void(const std::string &, const std::string &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(PathsAndConsumesOfModulesBase const &, ProcessContext const &)>.emit(), edm::signalslot::Signal< void(const edmplugin::PluginFactoryBase *)>.emit(), edm::signalslot::Signal< void(TerminationOrigin)>.emit(), edm::signalslot::Signal< void(const boost::filesystem::path &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, TerminationOrigin)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &)>.emit(), edm::signalslot::Signal< void(std::string const &, bool)>.emit(), edm::signalslot::Signal< void(GlobalContext const &)>.emit(), edm::signalslot::Signal< void(edm::BranchDescription const &)>.emit(), edm::signalslot::Signal< void(const edmplugin::SharedLibrary &)>.emit(), edm::signalslot::Signal< void(LuminosityBlockIndex)>.emit(), edm::signalslot::Signal< void(eventsetup::ComponentDescription const *, eventsetup::EventSetupRecordKey const &, eventsetup::DataKey const &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(RunIndex)>.emit(), edm::signalslot::Signal< T >.emit(), edm::signalslot::Signal< void()>.emit(), edm::signalslot::Signal< void(edm::StreamContext const &, edm::ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &, HLTPathStatus const &)>.emit(), edm::signalslot::Signal< void(const std::string &, const edmplugin::PluginInfo &)>.emit(), edm::signalslot::Signal< void(StreamContext const &)>.emit(), edm::signalslot::Signal< void(service::SystemBounds const &)>.emit(), edm::signalslot::Signal< void(StreamID)>.emit(), Signal< void(BranchDescription const &)>.emit(), Vispa.Gui.PortConnection.PointToPointConnection.isDeletable(), Vispa.Gui.VispaWidget.VispaWidget.isDeletable(), edmIntegrityCheck.PublishToFileSystem.parent, edm::ThinnedAssociationBranches.parent(), confdb.HLTProcess.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), math::GraphWalker< N, E >.parent(), GraphWalker< N, E >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, emtf::Node.parent, EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), BeautifulSoup.PageElement.parent, globcontrol.parent, and Vispa.Views.LineDecayView.DecayObject.parent().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.keyPressEvent(), and Vispa.Gui.VispaWidget.VispaWidget.keyPressEvent().

1355  def delete(self):
1356  """ Deletes this widget.
1357  """
1358  if not self.isDeletable():
1359  logging.warning(self.__class__.__name__ +": delete() - Tried to remove undeletable widget. Aborting...")
1360  return False
1361 
1362  if isinstance(self.parent(), VispaWidgetOwner):
1363  self.parent().widgetAboutToDelete(self)
1364 
1365  self.deleteLater()
1366  self.emit(SIGNAL("widgetDeleted"))
1367  return True
1368 
def Vispa.Gui.VispaWidget.VispaWidget.distances (   self)
Returns dictionary containing distances as defined in defineDistances().

Definition at line 920 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._distances.

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.defineDistances().

920  def distances(self):
921  """ Returns dictionary containing distances as defined in defineDistances().
922  """
923  return self._distances
924 
def Vispa.Gui.VispaWidget.VispaWidget.dragReferencePoint (   self)
def Vispa.Gui.VispaWidget.VispaWidget.dragWidget (   self,
  pPos 
)
Perform dragging when user moves cursor while left mouse button is pressed.

Definition at line 1380 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragableFlag, Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel, Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel, Vispa.Gui.VispaWidget.VispaWidget._previusDragPosition, SiStripPI.max, AlignableDetUnit.move(), AlignableBeamSpot.move(), fastsim::HelixTrajectory.move(), fastsim::StraightTrajectory.move(), AlignableComposite.move(), CaloGeometryHelper.move(), fastsim::Trajectory.move(), Alignable.move(), GloballyPositioned< T >.move(), Vispa.Gui.ConnectableWidget.ConnectableWidget.move(), Vispa.Gui.VispaWidget.VispaWidget.move(), edmIntegrityCheck.PublishToFileSystem.parent, edm::ThinnedAssociationBranches.parent(), confdb.HLTProcess.parent, reco::PattRecoNode< Cluster >.parent(), FSimVertex.parent(), DDI::Division.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), math::GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), GraphWalker< N, E >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), FWPSetTableManager::PSetData.parent, emtf::Node.parent, edm::DocFormatHelper.parent(), EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), BeautifulSoup.PageElement.parent, DDXMLElement.parent(), globcontrol.parent, Vispa.Views.LineDecayView.DecayObject.parent(), gem::VFATfirst.pos, AlignableData< T >.pos(), reco::DeDxHitInfo::DeDxHitInfoContainer.pos(), CaloNavigator< T, TOPO >.pos(), CaloNavigator< DetId >.pos(), PhysicsTools::SourceVariableSet::PosVar.pos, reco::DeDxHitInfo.pos(), geometryXMLparser.Alignable.pos(), DTSegmentExtendedCand::DTSLRecClusterForFit.pos, STLInputStream.pos, CaloG4Hit.pos, MatacqProducer::PosEstimator.pos(), PhysicsTools::BitSet::Iterator.pos, lhef::CBInputStream.pos, lhef::STLInputStream.pos, lhef::StorageInputStream.pos, and CLookToRead.pos.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.mouseMoveEvent().

1380  def dragWidget(self, pPos):
1381  """ Perform dragging when user moves cursor while left mouse button is pressed.
1382  """
1383  if not self._dragableFlag:
1384  return
1385 
1386  self._previusDragPosition = self.pos()
1387  #pPos = self.mapToParent(event.pos())
1388  self.move(max(0,pPos.x() - self._dragMouseXrel), max(0,pPos.y() - self._dragMouseYrel))
1389 
1390  # Tell parent, a widget moved to trigger file modification.
1391  if isinstance(self.parent(), VispaWidgetOwner):
1392  self.parent().widgetDragged(self)
1393 
def Vispa.Gui.VispaWidget.VispaWidget.drawBody (   self,
  painter 
)
This function calls drawTextField() and drawImage().

Inheriting classes should overwrite this function if they wish to draw different things or alter the order of drawing.

Definition at line 1222 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.drawImage(), Vispa.Gui.PortWidget.PortWidget.drawTextField(), and Vispa.Gui.VispaWidget.VispaWidget.drawTextField().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1222  def drawBody(self, painter):
1223  """ This function calls drawTextField() and drawImage().
1224 
1225  Inheriting classes should overwrite this function if they wish to draw different things or alter the order of drawing.
1226  """
1227  self.drawTextField(painter)
1228  self.drawImage(painter)
1229 
def drawTextField(self, painter)
def Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground (   self,
  painter 
)
Color background of title in frame pen color.

Definition at line 1142 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, Vispa.Gui.VispaWidget.VispaWidget._colorHeaderBackgroundFlag, Vispa.Gui.VispaWidget.VispaWidget.framePenColor, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), SeedMultiplicityAnalyzer::FromTrackRefSeedFilter.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), CaloMeanResponse.scale, CSCDBChipSpeedCorrection.scale(), CSCDBGains.scale(), scaleGains.scale, CSCDBNoiseMatrix.scale(), LocalError.scale(), correctionValue_class.scale, DQMRivetClient::ScaleFactorOption.scale, DrawPlot.scale(), CaloSamples.scale(), python.rootplot.rootmath.Target.scale, heppy::Davismt2.scale, python.rootplot.tree2hists.RootTree.scale, reco::PattRecoPeak< Real >.scale(), MuonErrorMatrix.scale, Vispa.Gui.VispaWidget.VispaWidget.scale(), TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), SimpleCylinderBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, Bounds.width(), TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, FWColumnLabelCellRenderer.width(), function::ZMuMuFunction.width, btag::SimpleMatrix< T >.width, function::ZMuMuScaledFunction.width, function::ZMuTrackFunction.width, function::ZMuTrackScaledFunction.width, FWCollectionSummaryModelCellRenderer.width(), SimpleConeBounds.width(), function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWTextTableCellRenderer.width(), FWFramedTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorEgamma.width(), reco::CastorJet.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.drawTitle().

1142  def drawHeaderBackground(self, painter):
1143  """ Color background of title in frame pen color.
1144  """
1145  if not self._colorHeaderBackgroundFlag or self._backgroundShapePath == None:
1146  # Cannot color background
1147  return
1148 
1149  if hasattr(self._backgroundShapePath, "intersected"):
1150  # Available since Qt 4.3
1151  topRectPath = QPainterPath()
1152  topRectPath.addRect(QRectF(0, 0, self.getDistance('width'), self.getDistance('titleFieldBottom')))
1153  headerPath = topRectPath.intersected(self._backgroundShapePath)
1154  painter.setPen(QColor(self.framePenColor))
1155  painter.setBrush(self.framePenColor)
1156  painter.drawPath(headerPath)
1157  return
1158 
1159  # Fallback for Qt versions prior to 4.3
1160 
1161  backgroundShapePolygon = self._backgroundShapePath.toFillPolygon()
1162  headerPolygonPoints = []
1163  i = 0
1164  headerBottom = 0
1165  nearlyBottom = 0
1166  if self.isSelected():
1167  selectedWidth = (self.SELECTED_FRAME_WIDTH +4) * self.scale()
1168  else:
1169  selectedWidth = 0
1170  while i < backgroundShapePolygon.count():
1171  thisP = backgroundShapePolygon.value(i)
1172  i += 1
1173  # selectedWidth prevents horizontal line in SELECT_COLOR
1174  if thisP.y() <= self.getDistance('titleFieldBottom') - selectedWidth:
1175  if thisP.y() > headerBottom:
1176  headerBottom = thisP.y()
1177  elif thisP.y() > nearlyBottom:
1178  nearlyBottom = thisP.y()
1179  headerPolygonPoints.append(thisP)
1180  headerPolygon = QPolygonF(headerPolygonPoints)
1181 
1182  painter.setPen(Qt.NoPen)
1183  painter.setBrush(self.framePenColor)
1184  titleBgPath = QPainterPath()
1185  titleBgPath.addPolygon(headerPolygon)
1186  painter.drawPath(titleBgPath)
1187 
1188  headerBottom = nearlyBottom # test whether second lowest header point works better
1189  if (self._backgroundShape == 'ROUNDRECT' or self._backgroundShape == 'RECT') and headerBottom < self.getDistance('titleFieldBottom'):
1190  #if (headerBottom) < self.getDistance('titleFieldBottom'): # This condition unfortunately does not work correctly on round shapes.
1191  # backgroundShapePolygon does not have a sufficient number of points at the straight lines on the side, so this is a work around.
1192  # This is not a clean solution as most functions should be independent from chosen backgroundShape.
1193  xBorder = 0
1194  if self.isSelected():
1195  # do not paint on frame
1196  if headerBottom == 0:
1197  headerBottom = self.SELECTED_FRAME_WIDTH - 2
1198  xBorder = self.SELECTED_FRAME_WIDTH - 2
1199  #painter.setPen(Qt.NoPen)
1200  painter.setPen(self.framePenColor)
1201  painter.drawRect(QRectF(xBorder, headerBottom, self.width() - 2 * xBorder - 2, self.getDistance('titleFieldBottom') - headerBottom))
1202 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def drawHeaderBackground(self, painter)
def Vispa.Gui.VispaWidget.VispaWidget.drawImage (   self,
  painter 
)
Draws image onto the widget's centre. See setImage().

Definition at line 1424 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._image, and Vispa.Gui.VispaWidget.VispaWidget.imageRectF().

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.drawBody(), and Vispa.Gui.VispaWidget.VispaWidget.drawBody().

1424  def drawImage(self, painter):
1425  """ Draws image onto the widget's centre. See setImage().
1426  """
1427  if not self._image:
1428  return
1429 
1430  if isinstance(self._image, QSvgRenderer):
1431  #rect = self.imageRectF(self._image.defaultSize().width() * self.scale(), self._image.defaultSize().height() * self.scale())
1432  self._image.render(painter, self.imageRectF())
1433  elif isinstance(self._image, QPixmap):
1434  #rect = self.imageRectF(self._image.width() * self.scale(), self._image.height() * self.scale())
1435  painter.drawPixmap(self.imageRectF(), self._image, QRectF(self._image.rect()))
1436 
1437  # debug
1438  #painter.drawRect(self.imageRectF())
1439 
def imageRectF(self, width=None, height=None)
def Vispa.Gui.VispaWidget.VispaWidget.drawTextField (   self,
  painter 
)
Tells TextField object of text field to draw title on widget.

Definition at line 1213 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._scale, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet().

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.drawBody(), and Vispa.Gui.VispaWidget.VispaWidget.drawBody().

1213  def drawTextField(self, painter):
1214  """ Tells TextField object of text field to draw title on widget.
1215  """
1216  if not self.textFieldIsSet():
1217  return
1218 
1219  painter.setPen(QPen())
1220  self._textField.paint(painter, self.getDistance('textFieldX'), self.getDistance('textFieldY'), self._scale)
1221 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def drawTextField(self, painter)
def Vispa.Gui.VispaWidget.VispaWidget.drawTitle (   self,
  painter 
)
Tells TextField object of title to draw title on widget.

Definition at line 1203 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._scale, Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.titleIsSet().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.paint().

1203  def drawTitle(self, painter):
1204  """ Tells TextField object of title to draw title on widget.
1205  """
1206  if not self.titleIsSet():
1207  return
1208  self.drawHeaderBackground(painter)
1209 
1210  painter.setPen(QPen())
1211  self._titleField.paint(painter, self.getDistance('titleFieldX'), self.getDistance('titleFieldY'), self._scale)
1212 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def drawHeaderBackground(self, painter)
def Vispa.Gui.VispaWidget.VispaWidget.enableAutopositionizeWhenZooming (   self,
  auto 
)
If True the position of this widget will be corrected according to it unzoomed position.

Prevents unexpected moving when zoom is enabled due to rounding errors.

Definition at line 510 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autopositioninzeWhenZoomingFlag, and electrons_cff.bool.

511  """ If True the position of this widget will be corrected according to it unzoomed position.
512 
513  Prevents unexpected moving when zoom is enabled due to rounding errors.
514  """
516 
def enableAutopositionizeWhenZooming(self, auto)
Definition: VispaWidget.py:510
def Vispa.Gui.VispaWidget.VispaWidget.enableAutosizing (   self,
  auto,
  keepAspectRatio = True 
)
Sets flag for auto resizing this widget.

If auto is True the size of this widget will be adjusted to widget size.
If keepAspectRatio is False the aspect ratio may change according to widget content.

Definition at line 560 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeFlag, Vispa.Gui.VispaWidget.VispaWidget._autosizeKeepAspectRatioFlag, Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent(), Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet(), Vispa.Gui.VispaWidget.VispaWidget.titleIsSet(), DDDWorldObserver< Event >.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), ECALPFSeedCleaner.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), TrajectoryStateUpdator.update(), RecHitTopologicalCleanerBase.update(), FastFedCablingTask.update(), PFlow2DClusterizerWithTime.update(), LagrangeChildUpdator.update(), ErrorCorrelation.update(), ApvTimingTask.update(), FedTimingTask.update(), MSLayersAtAngle.update(), VpspScanTask.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), VpspScanHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), AlignableDet.update(), PrintSensitive.update(), GsfMultiStateUpdator.update(), OptoScanTask.update(), PedestalsTask.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), LatencyTask.update(), FineDelayTask.update(), FastFedCablingHistosUsingDb.update(), CalibrationTask.update(), SCRegressionCalculator< VarCalc >.update(), edm::SubProcessParentageHelper.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), RHStopTracer.update(), AlignableDetUnit.update(), FedCablingTask.update(), KFStrip1DUpdator.update(), LatencyHistosUsingDb.update(), cond::persistency::ITagTable.update(), CheckOverlap.update(), TkPhase2OTMeasurementDet.update(), NoiseTask.update(), TkPixelMeasurementDet.update(), PedsOnlyTask.update(), CalibrationHistosUsingDb.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), FineDelayHistosUsingDb.update(), ChildUpdator.update(), PrintMaterialBudgetInfo.update(), BaselinePFSCRegression.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), AlignableCSCChamber.update(), KinematicConstrainedVertexUpdator.update(), HGCScintSD.update(), StoreSecondary.update(), cond::persistency::GLOBAL_TAG::Table.update(), MaterialBudgetHcal.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), Observer< const Event * >.update(), AlignableTracker.update(), Observer< const EndOfEvent * >.update(), Observer< T >.update(), BinomialProbability.update(), Observer< const BeginOfJob * >.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfJob * >.update(), Observer< const EndOfRun * >.update(), Observer< const T * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfRun * >.update(), Observer< const DDDWorld * >.update(), Observer< const EndOfTrack * >.update(), GflashG4Watcher.update(), pathelpers::Record.update(), MuonServiceProxy.update(), PFClusterBuilderBase.update(), HGCSD.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), cond::persistency::TAG::Table.update(), MaterialBudgetForward.update(), funct::Master< F >.update(), KFUpdator.update(), MaterialBudget.update(), RealisticSimClusterMapper.update(), CaloTrkProcessing.update(), AlignableComposite.update(), CheckSecondary.update(), SimG4FluxProducer.update(), EcalSimHitsValidProducer.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< 5 >.update(), KalmanVertexTrackUpdator< N >.update(), TrackingMaterialProducer.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), TrackingVerboseAction.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), pos::PixelConfig.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), edm::service::CondorStatusService.update(), MuonTrajectoryUpdator.update(), fwlite::RecordWriter.update(), SiStripPartition.update(), SiStripConfObject.update(), AlignableMuon.update(), fastsim::Geometry.update(), FWParameterSetterBase.update(), TimingSD.update(), HCalSD.update(), HGCPassive.update(), FiberSD.update(), TotemTestGem.update(), SimG4HcalValidation.update(), progressbar.Timer.update(), HcaluLUTTPGCoder.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), Alignable.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), CaloSteppingAction.update(), sim_act::Signaler< G4Step >.update(), ApvAnalysisFactory.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< BeginOfTrack >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), FP420SD.update(), DTSegmentUpdator.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), EcalTBH4Trigger.update(), PhysicsTools::TreeReader::Value.update(), CastorTestAnalysis.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), evf::FastMonitoringService::Encoding.update(), edm::BMixingModule.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), progressbar.FormatLabel.update(), TrajectoryStateOnSurface.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), Folder.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), DetSetVector< SiPixelCluster >.update(), const_iterator.update(), DetSetVector< SiStripCluster >.update(), edmNew::DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), and DetSetVector< T >.update().

560  def enableAutosizing(self, auto, keepAspectRatio=True):
561  """ Sets flag for auto resizing this widget.
562 
563  If auto is True the size of this widget will be adjusted to widget size.
564  If keepAspectRatio is False the aspect ratio may change according to widget content.
565  """
566  if self._autosizeKeepAspectRatioFlag != auto or self._autosizeKeepAspectRatioFlag != keepAspectRatio:
567  changed = True
568  else:
569  changed = False
570 
571  self._autosizeFlag = auto
572  self._autosizeKeepAspectRatioFlag = keepAspectRatio
573  if self.titleIsSet():
574  self._titleField.setAutoscale(auto, keepAspectRatio)
575  if self.textFieldIsSet():
576  self._textField.setAutoscale(auto, keepAspectRatio)
577 
578  if changed:
580  self.update()
581 
def enableAutosizing(self, auto, keepAspectRatio=True)
Definition: VispaWidget.py:560
def Vispa.Gui.VispaWidget.VispaWidget.enableBackgroundGradient (   self,
  enable = True 
)
If set to True the background color is painted using a QLinearGradient with the two fill colors.

See setColors().

Definition at line 620 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundGradientEnabledFlag.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

620  def enableBackgroundGradient(self, enable=True):
621  """ If set to True the background color is painted using a QLinearGradient with the two fill colors.
622 
623  See setColors().
624  """
625  self._backgroundGradientEnabledFlag = enable
626 
def enableBackgroundGradient(self, enable=True)
Definition: VispaWidget.py:620
def Vispa.Gui.VispaWidget.VispaWidget.enableColorHeaderBackground (   self,
  enable = True 
)
If set to True the background of the header is painted using pen color.

See setColors().

Definition at line 610 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._colorHeaderBackgroundFlag.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

610  def enableColorHeaderBackground(self, enable=True):
611  """ If set to True the background of the header is painted using pen color.
612 
613  See setColors().
614  """
615  self._colorHeaderBackgroundFlag = enable
616 
def enableColorHeaderBackground(self, enable=True)
Definition: VispaWidget.py:610
def Vispa.Gui.VispaWidget.VispaWidget.getDistance (   self,
  name,
  scale = None,
  keepDefaultRatio = False 
)
Gets the length of the element called 'name'.

Definition at line 1012 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._distances, Vispa.Gui.VispaWidget.VispaWidget._scale, Vispa.Gui.ConnectableWidget.ConnectableWidget.defineDistances(), and Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Referenced by Vispa.Gui.VispaWidget.VispaWidget._initTextField(), Vispa.Gui.VispaWidget.VispaWidget._initTitleField(), Vispa.Gui.ConnectableWidget.ConnectableWidget.arrangePorts(), Vispa.Gui.WidgetContainer.WidgetContainer.autolayoutChildren(), Vispa.Views.LineDecayView.LineDecayContainer.autolayoutThreadFinished(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.ConnectableWidget.ConnectableWidget.centerSinglePortVertically(), Vispa.Views.LineDecayView.LineDecayContainer.childrenRect(), Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.WidgetContainer.WidgetContainer.contentStartX(), Vispa.Gui.WidgetContainer.WidgetContainer.contentStartY(), Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), Vispa.Gui.MenuWidget.MenuWidget.drawMenuEntries(), Vispa.Gui.ConnectableWidget.ConnectableWidget.drawPortNames(), Vispa.Gui.VispaWidget.VispaWidget.drawTextField(), Vispa.Gui.VispaWidget.VispaWidget.drawTitle(), Vispa.Gui.ConnectableWidget.ConnectableWidget.dropArea(), Vispa.Gui.VispaWidget.VispaWidget.height(), Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Gui.VispaWidget.VispaWidget.isTitlePoint(), Vispa.Gui.WidgetContainer.WidgetContainer.mouseDoubleClickEvent(), Vispa.Gui.WidgetContainer.WidgetContainer.mouseMoveEvent(), Vispa.Gui.VispaWidget.VispaWidget.paint(), Vispa.Gui.ConnectableWidget.ConnectableWidget.positionizeMenuWidget(), Vispa.Gui.VispaWidget.VispaWidget.rearangeContent(), Vispa.Gui.WidgetContainer.WidgetContainer.sizeHint(), Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), and Vispa.Gui.VispaWidget.VispaWidget.width().

1012  def getDistance(self, name, scale=None, keepDefaultRatio=False):
1013  """ Gets the length of the element called 'name'.
1014  """
1015  self.defineDistances(keepDefaultRatio)
1016  if scale == None:
1017  scale = self._scale
1018  elif scale == 1:
1019  scale = 1.0
1020 
1021  if name in self._distances:
1022  #logging.debug(self.__class__.__name__ +": getdistance() - name = '"+ name +"' - "+ str(self._distances[name]))
1023  return self._distances[name] * scale
1024  else:
1025  logging.warning(self.__class__.__name__ +": getdistance() - Unknown distance '"+ name +"'")
1026  return 0
1027 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def defineDistances(self, keepDefaultRatio=False)
Definition: VispaWidget.py:925
def Vispa.Gui.VispaWidget.VispaWidget.height (   self)
Returns height of this widget.

Definition at line 1035 of file VispaWidget.py.

References ValidateGeometry.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.getDistance().

Referenced by Vispa.Main.MainWindow.MainWindow._saveIni(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.VispaWidget.VispaWidget.boundingRect(), Vispa.Gui.ConnectableWidget.ConnectableWidget.centerSinglePortVertically(), Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Views.LineDecayView.ParticleWidget.mouseMoveEvent(), Vispa.Gui.VispaWidget.VispaWidget.paint(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), Vispa.Views.LineDecayView.LineDecayContainer.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), and Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry().

1035  def height(self):
1036  """ Returns height of this widget.
1037  """
1038  # TODO: implement this more flexible regarding different QSizePolicies (also width())
1039  #if self.parent() and self.parent().layout():
1040  # return QWidget.height(self)
1041  return self.getDistance('height')
1042 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def Vispa.Gui.VispaWidget.VispaWidget.imageRectF (   self,
  width = None,
  height = None 
)
Returns draw area as QRectF for drawImage.

Definition at line 1452 of file VispaWidget.py.

References ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, presentation.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, Vispa.Gui.VispaWidget.VispaWidget.imageSizeF(), min(), CaloMeanResponse.scale, scaleGains.scale, CSCDBChipSpeedCorrection.scale(), CSCDBGains.scale(), CSCDBNoiseMatrix.scale(), LocalError.scale(), correctionValue_class.scale, DQMRivetClient::ScaleFactorOption.scale, DrawPlot.scale(), CaloSamples.scale(), python.rootplot.rootmath.Target.scale, heppy::Davismt2.scale, python.rootplot.tree2hists.RootTree.scale, reco::PattRecoPeak< Real >.scale(), MuonErrorMatrix.scale, Vispa.Gui.VispaWidget.VispaWidget.scale(), TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), RectangularPlaneBounds.width(), funct::GammaZInterference.width, GeneralNSurfaceDelimitedBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), SimpleCylinderBounds.width(), funct::BreitWigner.width, DDTIDAxialCableAlgo.width, Bounds.width(), DDTECAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, FWColumnLabelCellRenderer.width(), function::ZMuMuFunction.width, function::ZMuTrackFunction.width, function::ZMuMuScaledFunction.width, btag::SimpleMatrix< T >.width, FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledFunction.width, SimpleConeBounds.width(), function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWTextTableCellRenderer.width(), FWFramedTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorJet.width(), reco::CastorEgamma.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), and svgfig.Dots.width.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.drawImage().

1452  def imageRectF(self, width=None, height=None):
1453  """ Returns draw area as QRectF for drawImage.
1454  """
1455  if not width or not height:
1456  size = self.imageSizeF() * self.scale()
1457  width = size.width()
1458  height = size.height()
1459 
1460  if width > self.width() or height > self.height():
1461  widthScale = 1.0 * self.width() / width
1462  heightScale = 1.0 *self.height() / height
1463  scale = min(widthScale, heightScale)
1464  width *= scale
1465  height *= scale
1466 
1467  rect = QRectF((self.width() - width) * 0.5, (self.height() - height + self.getDistance("titleFieldBottom")) * 0.5, width, height)
1468  #print "rect ", rect
1469  return rect
1470 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
T min(T a, T b)
Definition: MathUtil.h:58
def imageRectF(self, width=None, height=None)
def Vispa.Gui.VispaWidget.VispaWidget.imageSizeF (   self)
Returns QSizeF object representing the unzoomed size of the image. See setImage().

Definition at line 1440 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._image.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint(), and Vispa.Gui.VispaWidget.VispaWidget.sizeHint().

1440  def imageSizeF(self):
1441  """ Returns QSizeF object representing the unzoomed size of the image. See setImage().
1442  """
1443  if not self._image:
1444  return QSizeF(0, 0)
1445  if isinstance(self._image, QSvgRenderer):
1446  return QSizeF(self._image.defaultSize())
1447  if isinstance(self._image, QPixmap):
1448  return QSizeF(self._image.size())
1449  logging.warning(self.__class__.__name__ +": imageSizeF() - Unknown image type.")
1450  return QSizeF(0, 0)
1451 
def Vispa.Gui.VispaWidget.VispaWidget.isDeletable (   self)
def Vispa.Gui.VispaWidget.VispaWidget.isDragable (   self)
def Vispa.Gui.VispaWidget.VispaWidget.isSelectable (   self)
Returns True if widget can be selected.

Definition at line 599 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection._selectableFlag, and Vispa.Gui.VispaWidget.VispaWidget._selectableFlag.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.isSelected(), and Vispa.Gui.VispaWidget.VispaWidget.select().

599  def isSelectable(self):
600  """ Returns True if widget can be selected.
601  """
602  return self._selectableFlag
603 
def Vispa.Gui.VispaWidget.VispaWidget.isTitlePoint (   self,
  point 
)
Returns True if this point is part of the tile field, otherwise False is returned.

Definition at line 1043 of file VispaWidget.py.

References ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.titleIsSet().

Referenced by Vispa.Views.LineDecayView.LineDecayContainer.mouseMoveEvent(), and Vispa.Views.LineDecayView.LineDecayContainer.mousePressEvent().

1043  def isTitlePoint(self, point):
1044  """ Returns True if this point is part of the tile field, otherwise False is returned.
1045  """
1046  if not self.titleIsSet():
1047  return False
1048  if point.y() >= self.getDistance("titleFieldY") and point.y() <= self.getDistance("titleFieldBottom"):
1049  return True
1050  return False
1051 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def Vispa.Gui.VispaWidget.VispaWidget.isUseBackgroundGradientEnabled (   self)
def Vispa.Gui.VispaWidget.VispaWidget.keyPressEvent (   self,
  event 
)
Calls delete() method if backspace or delete key is pressed when widget has focus.

Definition at line 1338 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection.delete(), Vispa.Gui.PortConnection.PortConnection.delete(), Vispa.Gui.VispaWidget.VispaWidget.delete(), Signal< void(BranchDescription const &)>.emit(), edm::signalslot::Signal< void(PathsAndConsumesOfModulesBase const &, ProcessContext const &)>.emit(), edm::signalslot::Signal< void(const edmplugin::PluginFactoryBase *)>.emit(), edm::signalslot::Signal< void(const boost::filesystem::path &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, TerminationOrigin)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &)>.emit(), edm::signalslot::Signal< void(edm::BranchDescription const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &, HLTPathStatus const &)>.emit(), edm::signalslot::Signal< void(const edmplugin::SharedLibrary &)>.emit(), edm::signalslot::Signal< void(LuminosityBlockIndex)>.emit(), edm::signalslot::Signal< void(eventsetup::ComponentDescription const *, eventsetup::EventSetupRecordKey const &, eventsetup::DataKey const &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(RunIndex)>.emit(), edm::signalslot::Signal< void(std::string const &, bool)>.emit(), edm::signalslot::Signal< void()>.emit(), edm::signalslot::Signal< void(edm::StreamContext const &, edm::ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(ModuleDescription const &)>.emit(), edm::signalslot::Signal< void(const std::string &, const edmplugin::PluginInfo &)>.emit(), edm::signalslot::Signal< void(StreamContext const &)>.emit(), edm::signalslot::Signal< void(service::SystemBounds const &)>.emit(), edm::signalslot::Signal< void(TerminationOrigin)>.emit(), edm::signalslot::Signal< void(StreamID)>.emit(), edm::signalslot::Signal< void(const std::string &, const std::string &)>.emit(), edm::signalslot::Signal< T >.emit(), edm::signalslot::Signal< void(StreamContext const &, TerminationOrigin)>.emit(), edm::signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)>.emit(), edm::ThinnedAssociationBranches.parent(), edmIntegrityCheck.PublishToFileSystem.parent, confdb.HLTProcess.parent, reco::PattRecoNode< Cluster >.parent(), FSimVertex.parent(), DDI::Division.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), GraphWalker< N, E >.parent(), math::GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), FWPSetTableManager::PSetData.parent, edm::DocFormatHelper.parent(), emtf::Node.parent, EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), BeautifulSoup.PageElement.parent, DDXMLElement.parent(), globcontrol.parent, and Vispa.Views.LineDecayView.DecayObject.parent().

1338  def keyPressEvent(self, event):
1339  """ Calls delete() method if backspace or delete key is pressed when widget has focus.
1340  """
1341  if event.key() == Qt.Key_Backspace or event.key() == Qt.Key_Delete:
1342  if hasattr(self.parent(), "multiSelectEnabled") and self.parent().multiSelectEnabled() and \
1343  hasattr(self.parent(), "selectedWidgets") and len(self.parent().selectedWidgets()) > 1:
1344  # let parent handle button event if multi-select is enabled
1345  self.parent().setFocus(Qt.OtherFocusReason)
1346  QCoreApplication.instance().sendEvent(self.parent(), event)
1347  else:
1348  self.emit(SIGNAL("deleteButtonPressed"))
1349  self.delete()
1350  else:
1351  # let parent handle all other events
1352  self.parent().setFocus(Qt.OtherFocusReason)
1353  QCoreApplication.instance().sendEvent(self.parent(), event)
1354 
def Vispa.Gui.VispaWidget.VispaWidget.mouseMoveEvent (   self,
  event 
)
Call dragWidget().

Definition at line 1324 of file VispaWidget.py.

References electrons_cff.bool, Vispa.Gui.ConnectableWidget.ConnectableWidget.dragWidget(), and Vispa.Gui.VispaWidget.VispaWidget.dragWidget().

1324  def mouseMoveEvent(self, event):
1325  """ Call dragWidget().
1326  """
1327  #logging.debug("%s: mouseMoveEvent()" % self.__class__.__name__)
1328  if bool(event.buttons() & Qt.LeftButton):
1329  self.dragWidget(self.mapToParent(event.pos()))
1330  return
1331 
def Vispa.Gui.VispaWidget.VispaWidget.mousePressEvent (   self,
  event 
)
Register mouse offset for dragging and calls select().

Definition at line 1306 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragableFlag, Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel, Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel, DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), SeedMultiplicityAnalyzer::FromTrackRefSeedFilter.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), edm::ThinnedAssociationBranches.parent(), edmIntegrityCheck.PublishToFileSystem.parent, confdb.HLTProcess.parent, reco::PattRecoNode< Cluster >.parent(), FSimVertex.parent(), DDI::Division.parent(), math::GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), GraphWalker< N, E >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, emtf::Node.parent, EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), BeautifulSoup.PageElement.parent, DDXMLElement.parent(), globcontrol.parent, Vispa.Views.LineDecayView.DecayObject.parent(), FWViewContextMenuHandlerGL.select(), SeedConfigSelector.select(), cond::persistency::ITagTable.select(), pf2pat::GenericPFJetSelectorDefinition.select(), pf2pat::PdgIdPFCandidateSelectorDefinition.select(), pf2pat::PtMinPFCandidateSelectorDefinition.select(), RecoTrackViewRefSelector.select(), AlignmentSeedSelector.select(), RecoTrackRefSelector.select(), CSCOverlapConfigSelector.select(), ipf2pat::ObjectSelector< Selector, CollectionType >.select(), RecoTrackSelector.select(), AlignmentCSCOverlapSelector.select(), CSCBeamHaloConfigSelector.select(), CalibrationTrackSelector.select(), AlignmentCSCBeamHaloSelector.select(), AlignmentCSCTrackSelector.select(), pf2pat::GenericPFCandidateSelectorDefinition.select(), CSCTrackConfigSelector.select(), cond::persistency::GLOBAL_TAG::Table.select(), EventSelector.select(), SiStripCalTrackConfigSelector.select(), AlignmentTwoBodyDecayTrackSelector.select(), cond::persistency::TAG::Table.select(), RawDataFEDSelector.select(), pf2pat::IsolatedPFCandidateSelectorDefinition.select(), pf2pat::MuonIDPFCandidateSelectorDefinition.select(), AlignmentGlobalTrackSelector.select(), RPCMonitorLinkSynchro.select(), pf2pat::IPCutPFCandidateSelectorDefinition.select(), AlignmentTrackSelector.select(), StringCutEventSelector< Object, any >.select(), SingleEleCalibSelector.select(), AlignmentMuonSelector.select(), reco::modules::MatcherBase< C1, C2, M >.select(), MuonConfigSelector.select(), SingleElementCollectionSelectorPlusEvent< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), reco::modulesNew::Matcher< C1, C2, S, D >.select(), TrackConfigSelector.select(), cond::persistency::IPayloadTable.select(), FWModelExpressionSelector.select(), AssociatedVariableCollectionSelector< InputCollection, VarCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), ObjectPairCollectionSelector< InputCollection, Selector, StoreContainer, RefAdder >.select(), SingleElementCollectionSelector< InputCollection, Selector, OutputCollection, StoreContainer, RefAdder >.select(), SingleElementCollectionRefSelector< InputType, Selector, OutputCollection, StoreContainer, RefAdder >.select(), SortCollectionSelector< InputCollection, Comparator, OutputCollection, StoreContainer, RefAdder >.select(), reco::SelectInCollection< Object >.select(), AlCaDiJetsProducer.select(), AlCaGammaJetProducer.select(), cond::persistency::RUN_INFO::Table.select(), cond::persistency::IIOVTable.select(), FWModelId.select(), pf2pat::ElectronIDPFCandidateSelectorDefinition.select(), reco::modules::Matcher< C1, C2, S, D, M >.select(), FWSelectionManager.select(), cond::persistency::GLOBAL_TAG_MAP::Table.select(), FWViewContextMenuHandlerBase.select(), reco::SelectIndecesInCollection< Object >.select(), AlCaHBHEMuonProducer.select(), AlCaGammaJetSelector.select(), cond::persistency::PAYLOAD::Table.select(), CosmicTrackingParticleSelector.select(), CandCombinerBase< OutputCollection, CandPtr >.select(), cond::persistency::ITagMigrationTable.select(), NamedCandCombinerBase.select(), reco::PhysObjectMatcher< C1, C2, S, D, Q >.select(), cond::persistency::IPayloadMigrationTable.select(), AlCaIsoTracksProducer.select(), StringCutsEventSelector< Object, existenceMatter >.select(), cond::persistency::IGTTable.select(), Vispa.Gui.PortConnection.PointToPointConnection.select(), NamedCandCombiner< Selector, PairSelector, Cloner, Setup >.select(), MuonResidualsFitter::MuonAlignmentTreeRow.select, cond::persistency::IGTMapTable.select(), CandCombiner< Selector, PairSelector, Cloner, OutputCollection, Setup >.select(), cond::persistency::IOV::Table.select(), cond::persistency::IRunInfoTable.select(), SelectionStepHLTBase.select(), FWEventItem.select(), SelectionStepHLT< Object >.select(), SelectionStep< Object >.select(), Vispa.Gui.ConnectableWidget.ConnectableWidget.select(), and Vispa.Gui.VispaWidget.VispaWidget.select().

1306  def mousePressEvent(self, event):
1307  """ Register mouse offset for dragging and calls select().
1308  """
1309  parentIsVispaWidgetOwner = isinstance(self.parent(), VispaWidgetOwner)
1310  if event.modifiers() == Qt.ControlModifier:
1311  # allow deselect of individual widgets in selection
1312  self.select(not self.isSelected(), True)
1313  elif parentIsVispaWidgetOwner and not self.isSelected():
1314  self.select(True)
1315 
1316  if not self._dragableFlag:
1317  return
1318  self._dragMouseXrel = event.x()
1319  self._dragMouseYrel = event.y()
1320 
1321  if parentIsVispaWidgetOwner:
1322  self.parent().initWidgetMovement(self)
1323 
def select(self, sel=True, multiSelect=False)
Definition: VispaWidget.py:630
def Vispa.Gui.VispaWidget.VispaWidget.mouseReleaseEvent (   self,
  event 
)

Definition at line 1332 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragMouseXrel, Vispa.Gui.VispaWidget.VispaWidget._dragMouseYrel, edm::signalslot::Signal< void(StreamID)>.emit(), edm::signalslot::Signal< void(const std::string &, const std::string &)>.emit(), edm::signalslot::Signal< void(service::SystemBounds const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &)>.emit(), edm::signalslot::Signal< void(const std::string &, const edmplugin::PluginInfo &)>.emit(), Signal< void(BranchDescription const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &, HLTPathStatus const &)>.emit(), edm::signalslot::Signal< void(edm::StreamContext const &, edm::ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void()>.emit(), edm::signalslot::Signal< void(std::string const &, bool)>.emit(), edm::signalslot::Signal< void(RunIndex)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(eventsetup::ComponentDescription const *, eventsetup::EventSetupRecordKey const &, eventsetup::DataKey const &)>.emit(), edm::signalslot::Signal< T >.emit(), edm::signalslot::Signal< void(const edmplugin::SharedLibrary &)>.emit(), edm::signalslot::Signal< void(edm::BranchDescription const &)>.emit(), edm::signalslot::Signal< void(GlobalContext const &)>.emit(), edm::signalslot::Signal< void(TerminationOrigin)>.emit(), edm::signalslot::Signal< void(GlobalContext const &, TerminationOrigin)>.emit(), edm::signalslot::Signal< void(const boost::filesystem::path &)>.emit(), edm::signalslot::Signal< void(const edmplugin::PluginFactoryBase *)>.emit(), edm::signalslot::Signal< void(PathsAndConsumesOfModulesBase const &, ProcessContext const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)>.emit(), edm::signalslot::Signal< void(StreamContext const &, PathContext const &)>.emit(), edm::signalslot::Signal< void(ModuleDescription const &)>.emit(), edm::signalslot::Signal< void(LuminosityBlockIndex)>.emit(), edm::signalslot::Signal< void(StreamContext const &, TerminationOrigin)>.emit(), and Vispa.Gui.VispaWidget.VispaWidget.resetMouseDragOffset().

1332  def mouseReleaseEvent(self, event):
1333  #logging.debug("%s: mouseReleaeEvent()" % self.__class__.__name__)
1334  if self._dragMouseXrel != 0 and self._dragMouseYrel != 0:
1335  self.resetMouseDragOffset()
1336  self.emit(SIGNAL("dragFinished"))
1337 
def Vispa.Gui.VispaWidget.VispaWidget.move (   self,
  target 
)
Move widgt to new position.

You can either give x and y coordinates as parameters or a QPosition object.

Definition at line 1394 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionX, Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionY, CaloMeanResponse.scale, scaleGains.scale, CSCDBChipSpeedCorrection.scale(), CSCDBGains.scale(), CSCDBNoiseMatrix.scale(), LocalError.scale(), correctionValue_class.scale, DQMRivetClient::ScaleFactorOption.scale, DrawPlot.scale(), CaloSamples.scale(), python.rootplot.rootmath.Target.scale, heppy::Davismt2.scale, python.rootplot.tree2hists.RootTree.scale, reco::PattRecoPeak< Real >.scale(), MuonErrorMatrix.scale, and Vispa.Gui.VispaWidget.VispaWidget.scale().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.dragWidget(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), and Vispa.Gui.PortConnection.PointToPointConnection.updateConnection().

1394  def move(self, *target):
1395  """ Move widgt to new position.
1396 
1397  You can either give x and y coordinates as parameters or a QPosition object.
1398  """
1399  if len(target) == 1:
1400  # Got point as argument
1401  targetX = target[0].x()
1402  targetY = target[0].y()
1403  else:
1404  # Got x and y as arguments
1405  targetX = target[0]
1406  targetY = target[1]
1407 
1408  self._unzoomedPositionX = 1.0 * targetX / self.scale()
1409  self._unzoomedPositionY = 1.0 * targetY / self.scale()
1410  # In self.setZoome() the widgets position can be set with these values
1411 
1412  QWidget.move(self, targetX, targetY)
1413 
1414  #import traceback
1415  #traceback.print_stack()
1416 
def Vispa.Gui.VispaWidget.VispaWidget.noRearangeContent (   self,
  no = True 
)
Flag disables any rearanging.

Definition at line 896 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._noRearangeContentFlag.

896  def noRearangeContent(self,no=True):
897  """ Flag disables any rearanging.
898  """
899  self._noRearangeContentFlag=no
900 
def noRearangeContent(self, no=True)
Definition: VispaWidget.py:896
def Vispa.Gui.VispaWidget.VispaWidget.paint (   self,
  painter,
  event = None 
)
Takes care of painting widget content on given painter.

Definition at line 1256 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._arrowShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundGradientEnabledFlag, Vispa.Gui.VispaWidget.VispaWidget._backgroundShape, Vispa.Gui.VispaWidget.VispaWidget._backgroundShapePath, Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.ConnectableWidget.ConnectableWidget.drawBody(), Vispa.Gui.VispaWidget.VispaWidget.drawBody(), Vispa.Gui.PortWidget.PortWidget.drawTitle(), Vispa.Gui.VispaWidget.VispaWidget.drawTitle(), Vispa.Gui.VispaWidget.VispaWidget.fillColor1, Vispa.Gui.VispaWidget.VispaWidget.fillColor2, Vispa.Gui.VispaWidget.VispaWidget.framePenColor, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, presentation.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), SeedMultiplicityAnalyzer::FromTrackRefSeedFilter.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), and Vispa.Gui.VispaWidget.VispaWidget.isSelected().

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.drawPortNames(), and Vispa.Gui.VispaWidget.VispaWidget.paintEvent().

1256  def paint(self, painter, event=None):
1257  """ Takes care of painting widget content on given painter.
1258  """
1259  if not self._backgroundGradientEnabledFlag or painter.redirected(painter.device()):
1260  # TODO: find condition which fits QPixmap but not QPicture (pdf export)
1261  # e.q. QPixmap.grabWidget()
1262  backgroundBrush = self.fillColor1
1263  else:
1264  backgroundBrush = QLinearGradient(0, self.getDistance('titleFieldBottom'), 0, self.height())
1265  backgroundBrush.setColorAt(0, self.fillColor1)
1266  backgroundBrush.setColorAt(1, self.fillColor2)
1267 
1268  painter.setPen(self.framePenColor)
1269  painter.pen().setJoinStyle(Qt.RoundJoin)
1270  painter.setBrush(backgroundBrush)
1271 
1272  if self._backgroundShape == 'CIRCLE':
1273  self.defineCircleBackgroundShape(painter)
1274  elif self._backgroundShape == 'ROUNDRECT':
1275  self.defineRoundRectBackgroundShape(painter)
1276  else:
1277  self.defineRectBackgroundShape(painter)
1278 
1279  if self._arrowShape != None:
1281 
1282  painter.drawPath(self._backgroundShapePath)
1283 
1284  self.drawTitle(painter)
1285  self.drawBody(painter)
1286 
1287  if self.isSelected():
1288  # color frame
1289  framePen = QPen(self.SELECT_COLOR)
1290  framePen.setWidth(self.SELECTED_FRAME_WIDTH)
1291  painter.setPen(framePen)
1292  painter.setBrush(Qt.NoBrush)
1293  painter.drawPath(self._backgroundShapePath)
1294 
def paint(self, painter, event=None)
def defineRoundRectBackgroundShape(self, painter)
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def defineCircleBackgroundShape(self, painter)
def defineRectBackgroundShape(self, painter)
def Vispa.Gui.VispaWidget.VispaWidget.paintEvent (   self,
  event 
)
Reacts on paint event and calls paint() method.

Definition at line 1238 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.MenuWidget.MenuWidget.paint(), Vispa.Gui.VispaWidget.TextField.paint(), Vispa.Gui.VispaWidget.VispaWidget.paint(), edmIntegrityCheck.PublishToFileSystem.parent, edm::ThinnedAssociationBranches.parent(), confdb.HLTProcess.parent, FSimVertex.parent(), reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), math::GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), GraphWalker< N, E >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, emtf::Node.parent, EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), BeautifulSoup.PageElement.parent, DDXMLElement.parent(), globcontrol.parent, Vispa.Views.LineDecayView.DecayObject.parent(), gem::VFATfirst.pos, reco::DeDxHitInfo::DeDxHitInfoContainer.pos(), AlignableData< T >.pos(), CaloNavigator< T, TOPO >.pos(), CaloNavigator< DetId >.pos(), PhysicsTools::SourceVariableSet::PosVar.pos, reco::DeDxHitInfo.pos(), geometryXMLparser.Alignable.pos(), DTSegmentExtendedCand::DTSLRecClusterForFit.pos, STLInputStream.pos, CaloG4Hit.pos, MatacqProducer::PosEstimator.pos(), PhysicsTools::BitSet::Iterator.pos, lhef::CBInputStream.pos, lhef::STLInputStream.pos, lhef::StorageInputStream.pos, CLookToRead.pos, and Vispa.Gui.Zoomable.Zoomable.zoom().

1238  def paintEvent(self, event):
1239  """ Reacts on paint event and calls paint() method.
1240  """
1241  #logging.debug(self.__class__.__name__ +": paintEvent()")
1242  painter = QPainter(self)
1243  if isinstance(self.parent(), VispaWidget):
1244  painter.setClipRegion(event.region().intersected(QRegion(self.parent().contentRect().translated(- self.pos()))))
1245  else:
1246  painter.setClipRegion(event.region())
1247 
1248  if self.zoom() > 30:
1249  painter.setRenderHint(QPainter.Antialiasing)
1250  else:
1251  painter.setRenderHint(QPainter.Antialiasing, False)
1252 
1253  self.paint(painter)
1254  ZoomableWidget.paintEvent(self, event)
1255 
def paint(self, painter, event=None)
def Vispa.Gui.VispaWidget.VispaWidget.penColor (   self)
Returns pen color for this widget.

Definition at line 505 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.framePenColor.

505  def penColor(self):
506  """ Returns pen color for this widget.
507  """
508  return self.framePenColor
509 
def Vispa.Gui.VispaWidget.VispaWidget.previousDragPosition (   self)
Returns position from before previous drag operation.

E.g. used for undo function.

Definition at line 1372 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._previusDragPosition.

1373  """ Returns position from before previous drag operation.
1374 
1375  E.g. used for undo function.
1376  """
1377  #print "VispaWidget.previousDragPosition()", self._previusDragPosition
1378  return self._previusDragPosition
1379 
def Vispa.Gui.VispaWidget.VispaWidget.rearangeContent (   self)
Checks which components have to be regarded for size calculation.

If you want to make sure this function is called next time a distance is requested use call scheduleRearangeContent().
This function is stronger than autosize, as it also recalculates dimensions of children (e.g. text field).
If content did not change autosize is probably the better approach.  

Definition at line 862 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autosizeFlag, Vispa.Gui.VispaWidget.VispaWidget._distancesHaveToBeRecalculatedFlag, Vispa.Gui.VispaWidget.VispaWidget._rearangeContentFlag, Vispa.Gui.VispaWidget.VispaWidget.autosize(), ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet(), and Vispa.Gui.VispaWidget.VispaWidget.titleIsSet().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances(), and Vispa.Gui.VispaWidget.VispaWidget.showEvent().

862  def rearangeContent(self):
863  """ Checks which components have to be regarded for size calculation.
864 
865  If you want to make sure this function is called next time a distance is requested use call scheduleRearangeContent().
866  This function is stronger than autosize, as it also recalculates dimensions of children (e.g. text field).
867  If content did not change autosize is probably the better approach.
868  """
869  self._rearangeContentFlag = False
870  # does not work with box decay tree (needs correct sizes before on screen)
871  #if not self.isVisible():
872  # return
873 
874  #logging.debug(self.__class__.__name__ +": rearangeContent() ")
875 
876  if self.textFieldIsSet():
877  self._textField.setDefaultWidth(self.getDistance('textFieldWidth', 1, True))
878  self._textField.setDefaultHeight(self.getDistance('textFieldHeight', 1, True))
879  self._textField.calculateDimensions()
880  if self.titleIsSet():
881  self._titleField.setDefaultWidth(self.getDistance('titleFieldWidth', 1, True))
882  self._titleField.setDefaultHeight(self.getDistance('titleFieldHeight', 1, True))
883  self._titleField.calculateDimensions()
884 
886  if self._autosizeFlag:
887  self.autosize()
888 
def autosize(self, skipSizeHint=False)
Definition: VispaWidget.py:833
def getDistance(self, name, scale=None, keepDefaultRatio=False)
def Vispa.Gui.VispaWidget.VispaWidget.resize (   self,
  width,
  height 
)
def Vispa.Gui.VispaWidget.VispaWidget.scheduleCalculateDistances (   self)
Sets distancesHaveToBeRecalculatedFlag to True.

Next time defineDistances() is called distances are recalculated even if zoom has not changed.

Definition at line 889 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._distancesHaveToBeRecalculatedFlag.

890  """ Sets distancesHaveToBeRecalculatedFlag to True.
891 
892  Next time defineDistances() is called distances are recalculated even if zoom has not changed.
893  """
895 
def Vispa.Gui.VispaWidget.VispaWidget.select (   self,
  sel = True,
  multiSelect = False 
)
Marks this widget as selected and informs parent if parent is VispaWidetOwner.

If multiSelect is True e.g. due to a pressed Ctrl button while clicking (see mousePressEvent()),
the VispaWidgetOwner will also be informed and might not deselect all widgets.

Definition at line 630 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection._selectedFlag, Vispa.Gui.VispaWidget.VispaWidget._selectedFlag, Vispa.Gui.PortConnection.PointToPointConnection.isSelectable(), Vispa.Gui.VispaWidget.VispaWidget.isSelectable(), DetIdSelector.isSelected(), FWGUISubviewArea.isSelected(), FWEventItem::ModelInfo.isSelected(), SeedMultiplicityAnalyzer::FromTrackRefSeedFilter.isSelected(), Vispa.Gui.PortConnection.PointToPointConnection.isSelected(), Vispa.Gui.VispaWidget.VispaWidget.isSelected(), edm::ThinnedAssociationBranches.parent(), edmIntegrityCheck.PublishToFileSystem.parent, FSimVertex.parent(), confdb.HLTProcess.parent, reco::PattRecoNode< Cluster >.parent(), DDI::Division.parent(), math::GraphWalker< N, E >.parent(), math::GraphWalker< ReferenceCountingPointer, ReferenceCountingPointer >.parent(), math::GraphWalker< DDLogicalPart, DDPosData * >.parent(), GraphWalker< N, E >.parent(), edm::ModuleCallingContext.parent(), DDLSAX2FileHandler.parent(), OpticalObject.parent(), edm::DocFormatHelper.parent(), FWPSetTableManager::PSetData.parent, emtf::Node.parent, EmDQMReco::FourVectorMonitorElements.parent, DDFilteredView.parent(), cms::DDFilteredView.parent(), DDExpandedView.parent(), DDDivision.parent(), options.HLTProcessOptions.parent, dqmservices::TriggerSelector::TreeElement.parent(), DDXMLElement.parent(), BeautifulSoup.PageElement.parent, globcontrol.parent, Vispa.Views.LineDecayView.DecayObject.parent(), DDDWorldObserver< Event >.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), ECALPFSeedCleaner.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), VertexTrackUpdator< N >.update(), TrajectoryStateUpdator.update(), RecHitTopologicalCleanerBase.update(), PFlow2DClusterizerWithTime.update(), FastFedCablingTask.update(), LagrangeChildUpdator.update(), DummyVertexTrackUpdator< N >.update(), ApvTimingTask.update(), FedTimingTask.update(), VpspScanTask.update(), MSLayersAtAngle.update(), ErrorCorrelation.update(), DaqScopeModeHistosUsingDb.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), AlignableDet.update(), PedsOnlyHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), VpspScanHistosUsingDb.update(), PrintSensitive.update(), GsfMultiStateUpdator.update(), OptoScanTask.update(), PedestalsTask.update(), ApvTimingHistosUsingDb.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), FineDelayTask.update(), LatencyTask.update(), FastFedCablingHistosUsingDb.update(), CalibrationTask.update(), SCRegressionCalculator< VarCalc >.update(), edm::SubProcessParentageHelper.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), RHStopTracer.update(), AlignableDetUnit.update(), FedCablingTask.update(), KFStrip1DUpdator.update(), LatencyHistosUsingDb.update(), cond::persistency::ITagTable.update(), CheckOverlap.update(), TkPhase2OTMeasurementDet.update(), NoiseTask.update(), TkPixelMeasurementDet.update(), PedsOnlyTask.update(), CalibrationHistosUsingDb.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), FineDelayHistosUsingDb.update(), ChildUpdator.update(), PrintMaterialBudgetInfo.update(), BaselinePFSCRegression.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), AlignableCSCChamber.update(), KinematicConstrainedVertexUpdator.update(), HGCScintSD.update(), StoreSecondary.update(), cond::persistency::GLOBAL_TAG::Table.update(), MaterialBudgetHcal.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), AlignableTracker.update(), Observer< const DDDWorld * >.update(), BinomialProbability.update(), Observer< const BeginOfRun * >.update(), Observer< const BeginOfEvent * >.update(), Observer< T >.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfJob * >.update(), Observer< const EndOfRun * >.update(), Observer< const EndOfTrack * >.update(), Observer< const BeginOfJob * >.update(), Observer< const EndOfEvent * >.update(), Observer< const Event * >.update(), Observer< const T * >.update(), GflashG4Watcher.update(), pathelpers::Record.update(), MuonServiceProxy.update(), PFClusterBuilderBase.update(), HGCSD.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), cond::persistency::TAG::Table.update(), MaterialBudget.update(), funct::Master< F >.update(), MaterialBudgetForward.update(), KFUpdator.update(), RealisticSimClusterMapper.update(), CaloTrkProcessing.update(), AlignableComposite.update(), CheckSecondary.update(), SimG4FluxProducer.update(), KalmanVertexTrackUpdator< 5 >.update(), EcalSimHitsValidProducer.update(), KalmanVertexTrackUpdator< N >.update(), ECAL2DPositionCalcWithDepthCorr.update(), TrackingMaterialProducer.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), TrackingVerboseAction.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), pos::PixelConfig.update(), KalmanVertexUpdator< N >.update(), edm::service::CondorStatusService.update(), fwlite::RecordWriter.update(), SiStripPartition.update(), MuonTrajectoryUpdator.update(), SiStripConfObject.update(), AlignableMuon.update(), fastsim::Geometry.update(), FWParameterSetterBase.update(), TimingSD.update(), HCalSD.update(), HGCPassive.update(), FiberSD.update(), TotemTestGem.update(), progressbar.Timer.update(), SimG4HcalValidation.update(), HcaluLUTTPGCoder.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), Alignable.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< BeginOfTrack >.update(), ApvAnalysisFactory.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< BeginOfEvent >.update(), CaloSteppingAction.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), FP420SD.update(), DTSegmentUpdator.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), EcalTBH4Trigger.update(), PhysicsTools::TreeReader::Value.update(), CastorTestAnalysis.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), edm::BMixingModule.update(), evf::FastMonitoringService::Encoding.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), TrajectoryStateOnSurface.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), DAClusterizerInZ_vect.update(), Folder.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), edmNew::DetSetVector< T >.update(), DetSetVector< ClusterType >.update(), DetSetVector< T >.update(), DetSetVector< SiStripCluster >.update(), const_iterator.update(), and DetSetVector< SiPixelCluster >.update().

Referenced by Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.find(), Vispa.Gui.VispaWidget.VispaWidget.mousePressEvent(), and Vispa.Views.AbstractView.AbstractView.restoreSelection().

630  def select(self, sel=True, multiSelect=False):
631  """ Marks this widget as selected and informs parent if parent is VispaWidetOwner.
632 
633  If multiSelect is True e.g. due to a pressed Ctrl button while clicking (see mousePressEvent()),
634  the VispaWidgetOwner will also be informed and might not deselect all widgets.
635  """
636  if not self.isSelectable():
637  return
638 
639  if sel != self._selectedFlag:
640  self.update()
641 
642  self._selectedFlag = sel
643 
644  # TODO: raise in front of other widget, not in front of line
645 # if sel:
646 # self.raise_()
647 
648  if (multiSelect or self.isSelected()) and isinstance(self.parent(), VispaWidgetOwner):
649  self.parent().widgetSelected(self, multiSelect)
650 
def select(self, sel=True, multiSelect=False)
Definition: VispaWidget.py:630
def Vispa.Gui.VispaWidget.VispaWidget.setArrowShape (   self,
  direction 
)
In addition to normal shape this gives whole widget the shape of an arrow.

Possible values for direction are
None
ARROW_SHAPE_TOP
ARROW_SHAPE_LEFT
ARROW_SHAPE_BOTTOM
ARROW_SHAPE_RIGHT

Definition at line 548 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._arrowShape.

548  def setArrowShape(self, direction):
549  """ In addition to normal shape this gives whole widget the shape of an arrow.
550 
551  Possible values for direction are
552  None
553  ARROW_SHAPE_TOP
554  ARROW_SHAPE_LEFT
555  ARROW_SHAPE_BOTTOM
556  ARROW_SHAPE_RIGHT
557  """
558  self._arrowShape = direction
559 
def setArrowShape(self, direction)
Definition: VispaWidget.py:548
def Vispa.Gui.VispaWidget.VispaWidget.setBodyWidget (   self,
  widget 
)
Accepts any QWidget and displays into the body section.

The body section is below the header.

Definition at line 1474 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._bodyWidget, FWDisplayProperties.isVisible(), RealisticCluster.isVisible(), and Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

1474  def setBodyWidget(self, widget):
1475  """ Accepts any QWidget and displays into the body section.
1476 
1477  The body section is below the header.
1478  """
1479  self._bodyWidget = widget
1480  self._bodyWidget.setParent(self)
1481  if self.isVisible():
1482  self._bodyWidget.setVisible(True)
1484 
def Vispa.Gui.VispaWidget.VispaWidget.setColors (   self,
  penColor,
  fillColor1,
  fillColor2 
)
Sets colors of this widget.

The pen color will be used for drawing the widget's frame.
Fill color 1 and 2 will be used for background color gradient.

Definition at line 531 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.fillColor1, Vispa.Gui.VispaWidget.VispaWidget.fillColor2, and Vispa.Gui.VispaWidget.VispaWidget.framePenColor.

Referenced by Vispa.Gui.WidgetContainer.WidgetContainer.toggleCollapse().

531  def setColors(self, penColor, fillColor1, fillColor2):
532  """ Sets colors of this widget.
533 
534  The pen color will be used for drawing the widget's frame.
535  Fill color 1 and 2 will be used for background color gradient.
536  """
537  self.framePenColor = penColor
538  self.fillColor1 = fillColor1
539  self.fillColor2 = fillColor2
540 
def setColors(self, penColor, fillColor1, fillColor2)
Definition: VispaWidget.py:531
def Vispa.Gui.VispaWidget.VispaWidget.setDeletable (   self,
  deleteable 
)
def Vispa.Gui.VispaWidget.VispaWidget.setDragable (   self,
  dragable,
  recursive = False 
)
If True the widget can be dragged using a pointing device.

If recursive is True also dragablitiy of all children will be set. 

Definition at line 517 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._dragableFlag, Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), and Vispa.Views.LineDecayView.LineDecayContainer.children().

517  def setDragable(self, dragable, recursive=False):
518  """ If True the widget can be dragged using a pointing device.
519 
520  If recursive is True also dragablitiy of all children will be set.
521  """
522  self._dragableFlag = dragable
523  if recursive:
524  for child in self.children():
525  if isinstance(child, VispaWidget):
526  child.setDragable(dragable, True)
527 
def setDragable(self, dragable, recursive=False)
Definition: VispaWidget.py:517
def Vispa.Gui.VispaWidget.VispaWidget.setDragReferencePoint (   self,
  pos 
)
def Vispa.Gui.VispaWidget.VispaWidget.setImage (   self,
  image 
)
The given image will be shown in the centre of the widget.

Currently supported image types are QPixmap and QSvgRenderer.

Definition at line 1417 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._image.

1417  def setImage(self, image):
1418  """ The given image will be shown in the centre of the widget.
1419 
1420  Currently supported image types are QPixmap and QSvgRenderer.
1421  """
1422  self._image = image
1423 
def Vispa.Gui.VispaWidget.VispaWidget.setMaximumSize (   self,
  attr 
)

Definition at line 759 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

759  def setMaximumSize(self, *attr):
760  QWidget.setMaximumSize(self, *attr)
762 
def Vispa.Gui.VispaWidget.VispaWidget.setMinimumSize (   self,
  attr 
)

Definition at line 763 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

763  def setMinimumSize(self, *attr):
764  QWidget.setMinimumSize(self, *attr)
766 
def Vispa.Gui.VispaWidget.VispaWidget.setPreviousDragPosition (   self,
  position 
)

Definition at line 1369 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._previusDragPosition.

1369  def setPreviousDragPosition(self, position):
1370  self._previusDragPosition = position
1371 
def setPreviousDragPosition(self, position)
def Vispa.Gui.VispaWidget.VispaWidget.setSelectable (   self,
  selectable 
)
Makes widget selectable if True.

Definition at line 589 of file VispaWidget.py.

References Vispa.Gui.PortConnection.PointToPointConnection._selectableFlag, Vispa.Gui.VispaWidget.VispaWidget._selectableFlag, and electrons_cff.bool.

589  def setSelectable(self, selectable):
590  """ Makes widget selectable if True.
591  """
592  self._selectableFlag = bool(selectable)
593 
594  if self._selectableFlag:
595  self.setFocusPolicy(self.FOCUSPOLICY)
596  else:
597  self.setFocusPolicy(Qt.NoFocus)
598 
def setSelectable(self, selectable)
Definition: VispaWidget.py:589
def Vispa.Gui.VispaWidget.VispaWidget.setShape (   self,
  shape 
)
Sets shape of this widget.

Right now supported 'RECT' (default), 'ROUNDRECT', 'CIRCLE'.

Definition at line 541 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._backgroundShape.

541  def setShape(self, shape):
542  """ Sets shape of this widget.
543 
544  Right now supported 'RECT' (default), 'ROUNDRECT', 'CIRCLE'.
545  """
546  self._backgroundShape = shape
547 
def Vispa.Gui.VispaWidget.VispaWidget.setText (   self,
  text 
)
Sets text for text field.

Definition at line 720 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._initTextField(), FWFramedTextTableCellRenderer.font(), FWTextTableCellRenderer.font(), Vispa.Gui.VispaWidget.TextField.font(), Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent(), CSGAction.setToolTip(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setToolTip(), DDDWorldObserver< Event >.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), ECALPFSeedCleaner.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), LagrangeChildUpdator.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), FastFedCablingTask.update(), TrajectoryStateUpdator.update(), RecHitTopologicalCleanerBase.update(), PFlow2DClusterizerWithTime.update(), ErrorCorrelation.update(), ApvTimingTask.update(), FedTimingTask.update(), VpspScanTask.update(), MSLayersAtAngle.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), VpspScanHistosUsingDb.update(), PrintSensitive.update(), PedsOnlyHistosUsingDb.update(), GsfMultiStateUpdator.update(), AlignableDet.update(), OptoScanTask.update(), PedestalsTask.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), FineDelayTask.update(), LatencyTask.update(), edm::SubProcessParentageHelper.update(), FastFedCablingHistosUsingDb.update(), SCRegressionCalculator< VarCalc >.update(), CalibrationTask.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), RHStopTracer.update(), FedCablingTask.update(), AlignableDetUnit.update(), KFStrip1DUpdator.update(), LatencyHistosUsingDb.update(), CheckOverlap.update(), cond::persistency::ITagTable.update(), TkPhase2OTMeasurementDet.update(), NoiseTask.update(), TkPixelMeasurementDet.update(), PedsOnlyTask.update(), CalibrationHistosUsingDb.update(), CountProcessesAction.update(), PrintGeomSummary.update(), PrintGeomInfoAction.update(), FineDelayHistosUsingDb.update(), ChildUpdator.update(), PrintMaterialBudgetInfo.update(), BaselinePFSCRegression.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), AlignableCSCChamber.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), KinematicConstrainedVertexUpdator.update(), HGCScintSD.update(), StoreSecondary.update(), cond::persistency::GLOBAL_TAG::Table.update(), MaterialBudgetHcal.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), Observer< const EndOfEvent * >.update(), Observer< const BeginOfJob * >.update(), AlignableTracker.update(), Observer< T >.update(), BinomialProbability.update(), Observer< const EndOfTrack * >.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfRun * >.update(), Observer< const T * >.update(), Observer< const Event * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfRun * >.update(), Observer< const DDDWorld * >.update(), Observer< const EndOfJob * >.update(), PFClusterBuilderBase.update(), GflashG4Watcher.update(), pathelpers::Record.update(), MuonServiceProxy.update(), HGCSD.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), cond::persistency::TAG::Table.update(), funct::Master< F >.update(), KFUpdator.update(), MaterialBudget.update(), MaterialBudgetForward.update(), RealisticSimClusterMapper.update(), CaloTrkProcessing.update(), CheckSecondary.update(), AlignableComposite.update(), SimG4FluxProducer.update(), EcalSimHitsValidProducer.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< 5 >.update(), KalmanVertexTrackUpdator< N >.update(), TrackingMaterialProducer.update(), TrackingVerboseAction.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), MaterialBudgetAction.update(), BasicMultiTrajectoryState.update(), pos::PixelConfig.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), AlignableMuon.update(), edm::service::CondorStatusService.update(), MuonTrajectoryUpdator.update(), fwlite::RecordWriter.update(), SiStripPartition.update(), SiStripConfObject.update(), fastsim::Geometry.update(), TimingSD.update(), FWParameterSetterBase.update(), HCalSD.update(), HGCPassive.update(), FiberSD.update(), TotemTestGem.update(), SimG4HcalValidation.update(), progressbar.Timer.update(), simwatcher::BeginOfTrackCounter.update(), HcaluLUTTPGCoder.update(), MuonSensitiveDetector.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), Alignable.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), CaloSteppingAction.update(), sim_act::Signaler< G4Step >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfTrack >.update(), ApvAnalysisFactory.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< BeginOfTrack >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< EndOfRun >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), FP420SD.update(), DTSegmentUpdator.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), PhysicsTools::TreeReader::Value.update(), EcalTBH4Trigger.update(), CastorTestAnalysis.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), evf::FastMonitoringService::Encoding.update(), edm::BMixingModule.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), TrajectoryStateOnSurface.update(), progressbar.FormatLabel.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), DAClusterizerInZ_vect.update(), Folder.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), const_iterator.update(), DetSetVector< SiPixelCluster >.update(), edmNew::DetSetVector< T >.update(), DetSetVector< SiStripCluster >.update(), DetSetVector< T >.update(), and DetSetVector< ClusterType >.update().

Referenced by Vispa.Gui.PortWidget.PortWidget.setDescription().

720  def setText(self, text):
721  """ Sets text for text field.
722  """
723  #logging.debug(self.__class__.__name__ +": setText() - %s (%s)" % (str(text), str(type(text))))
724  self._initTextField()
725  self._textField.setFont(self.font())
726  self._textField.setText(text)
727 
729 
730  self.setToolTip(self._textField.text())
731  self.update()
732 
def Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutosizeFont (   self,
  auto 
)
Sets auto resize flag of text field.

Definition at line 745 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._initTextField(), and Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

745  def setTextFieldAutosizeFont(self, auto):
746  """ Sets auto resize flag of text field.
747  """
748  self._initTextField()
749  self._textField.setAutosizeFont(auto)
751 
def setTextFieldAutosizeFont(self, auto)
Definition: VispaWidget.py:745
def Vispa.Gui.VispaWidget.VispaWidget.setTextFieldAutotruncateText (   self,
  auto 
)
Sets auto truncate flag of text field.

Definition at line 752 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._initTextField(), and Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent().

753  """ Sets auto truncate flag of text field.
754  """
755  self._initTextField()
756  self._textField.setAutotruncate(auto)
758 
def setTextFieldAutotruncateText(self, auto)
Definition: VispaWidget.py:752
def Vispa.Gui.VispaWidget.VispaWidget.setTitle (   self,
  title 
)
Sets title text.

Definition at line 684 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._initTitleField(), FWFramedTextTableCellRenderer.font(), FWTextTableCellRenderer.font(), Vispa.Gui.VispaWidget.TextField.font(), Vispa.Gui.VispaWidget.VispaWidget.scheduleRearangeContent(), DDDWorldObserver< Event >.update(), KillSecondariesRunAction.update(), KillSecondariesTrackAction.update(), ECALPFSeedCleaner.update(), SaveSimTrack.update(), PTStatistics.update(), PrintTrackNumberAction.update(), GenericMVAComputerCache.update(), Basic2DGenericPFlowClusterizer.update(), PFMultiDepthClusterizer.update(), reco::KalmanGhostTrackUpdater.update(), DDG4ProductionCuts.update(), VertexTrackUpdator< N >.update(), DummyVertexTrackUpdator< N >.update(), TrajectoryStateUpdator.update(), RecHitTopologicalCleanerBase.update(), FastFedCablingTask.update(), PFlow2DClusterizerWithTime.update(), LagrangeChildUpdator.update(), ErrorCorrelation.update(), ApvTimingTask.update(), FedTimingTask.update(), MSLayersAtAngle.update(), VpspScanTask.update(), ApvTimingHistosUsingDb.update(), DaqScopeModeHistosUsingDb.update(), NoiseHistosUsingDb.update(), OptoScanHistosUsingDb.update(), PedestalsHistosUsingDb.update(), PedsFullNoiseHistosUsingDb.update(), VpspScanHistosUsingDb.update(), PedsOnlyHistosUsingDb.update(), AlignableDet.update(), PrintSensitive.update(), GsfMultiStateUpdator.update(), OptoScanTask.update(), PedestalsTask.update(), MonopoleSteppingAction.update(), CalibrationScanTask.update(), LatencyTask.update(), FineDelayTask.update(), FastFedCablingHistosUsingDb.update(), CalibrationTask.update(), SCRegressionCalculator< VarCalc >.update(), edm::SubProcessParentageHelper.update(), PFClusterEnergyCorrectorBase.update(), PFCPositionCalculatorBase.update(), RHStopTracer.update(), AlignableDetUnit.update(), FedCablingTask.update(), KFStrip1DUpdator.update(), LatencyHistosUsingDb.update(), cond::persistency::ITagTable.update(), CheckOverlap.update(), TkPhase2OTMeasurementDet.update(), NoiseTask.update(), TkPixelMeasurementDet.update(), PedsOnlyTask.update(), CalibrationHistosUsingDb.update(), CountProcessesAction.update(), PrintGeomInfoAction.update(), PrintGeomSummary.update(), FineDelayHistosUsingDb.update(), ChildUpdator.update(), PrintMaterialBudgetInfo.update(), BaselinePFSCRegression.update(), progressbar.Widget.update(), PedsFullNoiseTask.update(), PhysicsTools::MVAComputerCache.update(), KFSwitching1DUpdator.update(), AlignableCSCChamber.update(), KinematicConstrainedVertexUpdator.update(), HGCScintSD.update(), StoreSecondary.update(), cond::persistency::GLOBAL_TAG::Table.update(), MaterialBudgetHcal.update(), HFNoseSD.update(), HGCalSD.update(), FastTimerSD.update(), edm::RunningAverage.update(), DaqScopeModeTask.update(), HGCalTBMB.update(), Observer< const Event * >.update(), AlignableTracker.update(), Observer< const EndOfEvent * >.update(), Observer< T >.update(), BinomialProbability.update(), Observer< const BeginOfJob * >.update(), Observer< const BeginOfTrack * >.update(), Observer< const G4Step * >.update(), Observer< const EndOfJob * >.update(), Observer< const EndOfRun * >.update(), Observer< const T * >.update(), Observer< const BeginOfEvent * >.update(), Observer< const BeginOfRun * >.update(), Observer< const DDDWorld * >.update(), Observer< const EndOfTrack * >.update(), GflashG4Watcher.update(), pathelpers::Record.update(), MuonServiceProxy.update(), PFClusterBuilderBase.update(), HGCSD.update(), edm::storage::StatisticsSenderService::FileStatistics.update(), cond::persistency::TAG::Table.update(), MaterialBudgetForward.update(), funct::Master< F >.update(), KFUpdator.update(), MaterialBudget.update(), RealisticSimClusterMapper.update(), CaloTrkProcessing.update(), AlignableComposite.update(), CheckSecondary.update(), SimG4FluxProducer.update(), EcalSimHitsValidProducer.update(), ECAL2DPositionCalcWithDepthCorr.update(), KalmanVertexTrackUpdator< 5 >.update(), KalmanVertexTrackUpdator< N >.update(), TrackingMaterialProducer.update(), HcalTestAnalysis.update(), FWJobMetadataManager.update(), TrackingVerboseAction.update(), L1TMuonBarrelKalmanAlgo.update(), PhysicsTools::TreeReader.update(), SiTrackerMultiRecHitUpdator.update(), BasicMultiTrajectoryState.update(), MaterialBudgetAction.update(), pos::PixelConfig.update(), SingleParticleEvent.update(), KalmanVertexUpdator< 5 >.update(), reco::GhostTrackFitter::PredictionUpdater.update(), KalmanVertexUpdator< N >.update(), edm::service::CondorStatusService.update(), MuonTrajectoryUpdator.update(), fwlite::RecordWriter.update(), SiStripPartition.update(), SiStripConfObject.update(), AlignableMuon.update(), fastsim::Geometry.update(), FWParameterSetterBase.update(), TimingSD.update(), HCalSD.update(), HGCPassive.update(), FiberSD.update(), TotemTestGem.update(), SimG4HcalValidation.update(), progressbar.Timer.update(), HcaluLUTTPGCoder.update(), MuonSensitiveDetector.update(), simwatcher::BeginOfTrackCounter.update(), Alignable.update(), TkAccumulatingSensitiveDetector.update(), MuonUpdatorAtVertex.update(), KinematicConstrainedVertexUpdatorT< nTrk, nConstraint >.update(), DQMOldReceiver.update(), HcalTB02Analysis.update(), LaserAlignmentSimulation.update(), TotemSD.update(), CaloSteppingAction.update(), sim_act::Signaler< G4Step >.update(), ApvAnalysisFactory.update(), sim_act::Signaler< T >.update(), sim_act::Signaler< BeginOfEvent >.update(), sim_act::Signaler< EndOfRun >.update(), sim_act::Signaler< EndOfEvent >.update(), sim_act::Signaler< BeginOfRun >.update(), sim_act::Signaler< DDDWorld >.update(), sim_act::Signaler< BeginOfJob >.update(), sim_act::Signaler< EndOfTrack >.update(), sim_act::Signaler< BeginOfTrack >.update(), SimTracer.update(), progressbar.WidgetHFill.update(), HcalForwardAnalysis.update(), FP420SD.update(), DTSegmentUpdator.update(), DTVDriftCalibration::cellInfo.update(), DAClusterizerInZ.update(), sistrip::RawToDigiUnpacker.update(), HcalTB04Analysis.update(), SimG4HGCalValidation.update(), DoCastorAnalysis.update(), ZdcTestAnalysis.update(), EcalTBH4Trigger.update(), PhysicsTools::TreeReader::Value.update(), CastorTestAnalysis.update(), BetafuncEvtVtxGenerator.update(), CaloSD.update(), InitialClusteringStepBase.update(), cond::persistency::IPayloadMigrationTable.update(), PhysicsTools::MVAModuleHelper< Record, Object, Filler >::Value.update(), HLTScalersClient::CountLSFifo_t.update(), progressbar.Bar.update(), DynamicTruncation.update(), jsoncollector::IntJ.update(), edm::service::SimpleMemoryCheck.update(), PFECALSuperClusterAlgo.update(), evf::FastMonitoringService::Encoding.update(), edm::BMixingModule.update(), progressbar.BouncingBar.update(), GaussianSumUtilities1D.update(), CastorShowerLibraryMaker.update(), cond::persistency::IGTTable.update(), DTRecSegment2D.update(), MonitorElement.update(), StandAloneMuonFilter.update(), jsoncollector::DoubleJ.update(), FWPSetTableManager.update(), DQMNet::Peer.update, G4StepStatistics.update(), progressbar.FormatLabel.update(), TrajectoryStateOnSurface.update(), DQMNet::AutoPeer.update, FWLiteESRecordWriterAnalyzer.update(), CommissioningTask.update(), FP420Test.update(), StMeasurementDetSet.update(), Folder.update(), DAClusterizerInZ_vect.update(), BscTest.update(), jsoncollector::StringJ.update(), dqm-mbProfile.Profile.update(), DAClusterizerInZT_vect.update(), jsoncollector::HistoJ< unsigned int >.update(), jsoncollector::HistoJ< T >.update(), BasicTrajectoryState.update(), progressbar.ProgressBar.update(), PxMeasurementDetSet.update(), Phase2OTMeasurementDetSet.update(), edmStreamStallGrapher.Stack.update(), crabFunctions.CrabTask.update(), DetSetVector< SiPixelCluster >.update(), DetSetVector< ClusterType >.update(), const_iterator.update(), edmNew::DetSetVector< T >.update(), DetSetVector< T >.update(), and DetSetVector< SiStripCluster >.update().

Referenced by Vispa.Gui.PortWidget.PortWidget.setName(), and Vispa.Views.LineDecayView.LineDecayContainer.setPxlObject().

684  def setTitle(self, title):
685  """ Sets title text.
686  """
687  self._initTitleField()
688  self._titleField.setFont(self.font())
689  self._titleField.setText(title)
691  self.update()
692 
def Vispa.Gui.VispaWidget.VispaWidget.setZoom (   self,
  zoom 
)
Sets widget's zoom.

Definition at line 494 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._autopositioninzeWhenZoomingFlag, Vispa.Gui.VispaWidget.VispaWidget._scale, Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionX, Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionY, cscdqm::StripClusterFitData.height(), FedTimingAnalysis.height(), btag::SimpleMatrix< T >.height, presentation.PageLayout.height, FWFramedTextTableCellRenderer.height(), FWTextTableCellRenderer.height(), FWTableCellRendererBase.height(), ApvTimingAnalysis.height(), DaqScopeModeAnalysis.height(), FWGeometryTableManagerBase::ColorBoxRenderer.height(), TkAlMap.TkAlMap.height, svgfig.Plot.height, svgfig.Frame.height, Vispa.Gui.VispaWidget.VispaWidget.height(), svgfig.Dots.height, AlignableDetUnit.move(), AlignableBeamSpot.move(), fastsim::HelixTrajectory.move(), fastsim::StraightTrajectory.move(), AlignableComposite.move(), CaloGeometryHelper.move(), fastsim::Trajectory.move(), Alignable.move(), GloballyPositioned< T >.move(), Vispa.Gui.ConnectableWidget.ConnectableWidget.move(), Vispa.Gui.VispaWidget.VispaWidget.move(), CaloMeanResponse.scale, scaleGains.scale, CSCDBChipSpeedCorrection.scale(), CSCDBGains.scale(), CSCDBNoiseMatrix.scale(), LocalError.scale(), correctionValue_class.scale, DQMRivetClient::ScaleFactorOption.scale, DrawPlot.scale(), CaloSamples.scale(), python.rootplot.rootmath.Target.scale, heppy::Davismt2.scale, python.rootplot.tree2hists.RootTree.scale, reco::PattRecoPeak< Real >.scale(), MuonErrorMatrix.scale, Vispa.Gui.VispaWidget.VispaWidget.scale(), TmModule.width, Random_struct.width, OpenBounds.width(), SimpleDiskBounds.width(), RectangularPlaneBounds.width(), GeneralNSurfaceDelimitedBounds.width(), funct::GammaZInterference.width, SimpleCylinderBounds.width(), PhysicsTools::Calibration::Range< Axis_t >.width(), funct::BreitWigner.width, Bounds.width(), DDTIDAxialCableAlgo.width, TrapezoidalPlaneBounds.width(), DDTECAxialCableAlgo.width, reco::CastorJetID.width, AlignableSurface.width(), DDI::Division.width(), FWCheckedTextTableCellRenderer.width(), function::ZMuStandaloneFunction.width, FWColumnLabelCellRenderer.width(), function::ZMuMuFunction.width, function::ZMuTrackFunction.width, function::ZMuMuScaledFunction.width, btag::SimpleMatrix< T >.width, FWCollectionSummaryModelCellRenderer.width(), function::ZMuTrackScaledFunction.width, SimpleConeBounds.width(), function::ZMuStandaloneScaledFunction.width, function::ZMuTrackScaledNormalBack.width, presentation.PageLayout.width, FWFramedTextTableCellRenderer.width(), FWTextTableCellRenderer.width(), FWTableCellRendererBase.width(), ProcNormalize::Map.width, reco::CastorCluster.width(), DaqFakeReader.width, reco::CastorEgamma.width(), reco::CastorJet.width(), ProcLikelihood::SplinePDF.width, FWTextTreeCellRenderer.width(), SiStripMonitorCluster::ClusterProperties.width, FWGeometryTableManagerBase::ColorBoxRenderer.width(), DDDivision.width(), python.rootplot.utilities.Hist.width, TkAlMap.TkAlMap.width, dqmTnP::VoigtianPlusExponentialFitter.width, svgfig.Plot.width, svgfig.Frame.width, Vispa.Gui.VispaWidget.VispaWidget.width(), svgfig.Dots.width, and Vispa.Gui.Zoomable.Zoomable.zoom().

Referenced by Vispa.Gui.Zoomable.Zoomable.decrementZoom(), Vispa.Gui.Zoomable.Zoomable.incrementZoom(), Vispa.Main.TabController.TabController.zoomAll(), Vispa.Main.TabController.TabController.zoomDialog(), Vispa.Main.TabController.TabController.zoomHundred(), and Vispa.Main.TabController.TabController.zoomUser().

494  def setZoom(self, zoom):
495  """ Sets widget's zoom.
496  """
497  ZoomableWidget.setZoom(self, zoom)
498 
499  self._scale = self.zoom() * 0.01
500  ZoomableWidget.resize(self, self.width(), self.height())
501 
503  self.move(self._unzoomedPositionX * self.scale(), self._unzoomedPositionY * self.scale())
504 
def Vispa.Gui.VispaWidget.VispaWidget.showEvent (   self,
  event 
)
Calls rearangeContent() if needed.

Definition at line 908 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._noRearangeContentFlag, Vispa.Gui.VispaWidget.VispaWidget._rearangeContentFlag, Vispa.Gui.ConnectableWidget.ConnectableWidget.rearangeContent(), and Vispa.Gui.VispaWidget.VispaWidget.rearangeContent().

908  def showEvent(self, event):
909  """ Calls rearangeContent() if needed.
910  """
911  # hasattr for some reason important
912  # sometimes a show event seems to occur before the constructor is called
913 # if hasattr(self, "_rearangeContentFlag") and hasattr(self, "_noRearangeContentFlag") and \
914 # self._rearangeContentFlag and not self._noRearangeContentFlag:
915 
916  if self._rearangeContentFlag and not self._noRearangeContentFlag:
917  self.rearangeContent()
918  ZoomableWidget.showEvent(self, event)
919 
def Vispa.Gui.VispaWidget.VispaWidget.sizeHint (   self)
Calculates needed space for widget content.

Definition at line 767 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._bodyWidget, Vispa.Gui.MenuWidget.MenuWidget._scaleHeight, Vispa.Gui.VispaWidget.VispaWidget._scaleHeight, Vispa.Gui.MenuWidget.MenuWidget._scaleWidth, Vispa.Gui.VispaWidget.VispaWidget._scaleWidth, ValidateGeometry.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.getDistance(), Vispa.Gui.VispaWidget.VispaWidget.height(), Vispa.Gui.VispaWidget.VispaWidget.imageSizeF(), SiStripPI.max, min(), Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet(), Vispa.Gui.VispaWidget.VispaWidget.titleIsSet(), and Vispa.Gui.VispaWidget.VispaWidget.width().

Referenced by Vispa.Gui.VispaWidget.VispaWidget.autosize().

767  def sizeHint(self):
768  """ Calculates needed space for widget content.
769  """
770  #if not self._autosizeFlag:
771  # return QSize(self.WIDTH, self.HEIGHT)
772 
773  self._scaleWidth = 1 # for getDistance()
774  self._scaleHeight = 1
775 
776  neededWidth = self.getDistance('leftMargin', 1) + self.getDistance('rightMargin', 1)
777  neededHeight = self.getDistance('topMargin', 1) + self.getDistance('bottomMargin', 1)
778 
779  titleFieldWidth = 0
780  titleFieldHeight = 0
781  titleIsSet = self.titleIsSet()
782  if titleIsSet:
783  titleFieldWidth = self.getDistance('titleFieldWidth', 1)
784  titleFieldHeight += self.getDistance('titleFieldHeight', 1)
785 
786  textFieldWidth = 0
787  textFieldHeight = 0
788  if self.textFieldIsSet():
789  textFieldWidth = self._textField.getWidth()
790  textFieldHeight += self._textField.getHeight()
791  bodyWidgetWidth = 0
792  bodyWidgetHeight = 0
793  if self._bodyWidget:
794  if self._bodyWidget.parent() != self:
795  self._bodyWidget = None
796  else:
797  sh = self._bodyWidget.sizeHint()
798  bodyWidgetWidth = sh.width()
799  bodyWidgetHeight = sh.height()
800 
801  imageSizeF = self.imageSizeF()
802  bodyWidth = max(textFieldWidth, bodyWidgetWidth, imageSizeF.width())
803  bodyHeight = max(textFieldHeight, bodyWidgetHeight, imageSizeF.height())
804 
805  if titleIsSet and bodyHeight != 0:
806  # gap between title and text
807  neededHeight += self.getDistance('bottomMargin', 1)
808 
809  neededWidth += max(bodyWidth, titleFieldWidth)
810  neededHeight += titleFieldHeight + bodyHeight
811 
812  # evaluate maximum size
813  maxWidth = self.maximumSize().width()
814  maxHeight = self.maximumSize().height()
815 
816  maxScaleWidth = min(1.0, 1.0 * maxWidth/neededWidth)
817  maxScaleHeight = min(1.0, 1.0 * maxHeight/neededHeight)
818  if maxScaleWidth != 1.0 or maxScaleHeight != 1.0:
819  # this is not limited by keepAspectRationFlag
820  # as it is about absolute sizes here
821  # ratio is evaluated in autosize()
822  scale = min(maxScaleWidth, maxScaleHeight)
823  neededWidth *= scale
824  neededHeight *= scale
825 
826  return QSize(max(self.minimumSize().width(), neededWidth), max(self.minimumSize().height(), neededHeight))
827 
def getDistance(self, name, scale=None, keepDefaultRatio=False)
T min(T a, T b)
Definition: MathUtil.h:58
def Vispa.Gui.VispaWidget.VispaWidget.text (   self)
Returns text of text field.

Definition at line 738 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet().

Referenced by Vispa.Views.TableView.TableWidgetItem.__lt__().

738  def text(self):
739  """ Returns text of text field.
740  """
741  if self.textFieldIsSet():
742  return self._textField.text()
743  return None
744 
def Vispa.Gui.VispaWidget.VispaWidget.textField (   self)
Returns TextField object belonging to text field.

Definition at line 733 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._textField.

Referenced by Vispa.Gui.ConnectableWidget.ConnectableWidget.sizeHint().

733  def textField(self):
734  """ Returns TextField object belonging to text field.
735  """
736  return self._textField
737 
def Vispa.Gui.VispaWidget.VispaWidget.textFieldIsSet (   self)
def Vispa.Gui.VispaWidget.VispaWidget.titleField (   self)
def Vispa.Gui.VispaWidget.VispaWidget.titleIsSet (   self)
def Vispa.Gui.VispaWidget.VispaWidget.unzoomedX (   self)
Returns x coordinate the widget would have if zoom was set to 100%.

Definition at line 477 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionX, and createfilelist.int.

477  def unzoomedX(self):
478  """ Returns x coordinate the widget would have if zoom was set to 100%.
479  """
480  #logging.debug(self.__class__.__name__ +": unzoomedX() "+ str(self._unzoomedPositionY))
481  return int(self._unzoomedPositionX)
482 
def Vispa.Gui.VispaWidget.VispaWidget.unzoomedY (   self)
Returns x coordinate the widget would have if zoom was set to 100%.

Definition at line 483 of file VispaWidget.py.

References Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionY, and createfilelist.int.

483  def unzoomedY(self):
484  """ Returns x coordinate the widget would have if zoom was set to 100%.
485  """
486  #logging.debug(self.__class__.__name__ +": unzoomedY() "+ str(self._unzoomedPositionY))
487  return int(self._unzoomedPositionY)
488 
def Vispa.Gui.VispaWidget.VispaWidget.width (   self)
Returns width of this widget.

Definition at line 1028 of file VispaWidget.py.

References ValidateGeometry.getDistance(), and Vispa.Gui.VispaWidget.VispaWidget.getDistance().

Referenced by Vispa.Main.MainWindow.MainWindow._saveIni(), Vispa.Gui.VispaWidget.VispaWidget.autosize(), Vispa.Gui.VispaWidget.VispaWidget.boundingRect(), Vispa.Gui.VispaWidget.VispaWidget.contentRect(), Vispa.Gui.VispaWidget.VispaWidget.defineArrowBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineCircleBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.defineRoundRectBackgroundShape(), Vispa.Gui.VispaWidget.VispaWidget.drawHeaderBackground(), Vispa.Gui.ConnectableWidget.ConnectableWidget.drawPortNames(), Vispa.Gui.VispaWidget.VispaWidget.imageRectF(), Vispa.Views.LineDecayView.ParticleWidget.mouseMoveEvent(), Vispa.Gui.ConnectableWidget.ConnectableWidget.positionizeMenuWidget(), Vispa.Views.PropertyView.PropertyView.resizeEvent(), Vispa.Views.PropertyView.PropertyView.sectionResized(), Vispa.Gui.VispaWidget.VispaWidget.setZoom(), Vispa.Views.LineDecayView.LineDecayContainer.sizeHint(), Vispa.Gui.VispaWidget.VispaWidget.sizeHint(), and Vispa.Main.MainWindow.MainWindow.updateStartupScreenGeometry().

1028  def width(self):
1029  """ Returns width of this widget.
1030  """
1031  #if self.parent() and self.parent().layout():
1032  # return QWidget.width(self)
1033  return self.getDistance('width')
1034 
def getDistance(self, name, scale=None, keepDefaultRatio=False)

Member Data Documentation

Vispa.Gui.VispaWidget.VispaWidget._autopositioninzeWhenZoomingFlag
private
Vispa.Gui.VispaWidget.VispaWidget._autosizeKeepAspectRatioFlag
private
Vispa.Gui.VispaWidget.VispaWidget._backgroundGradientEnabledFlag
private
Vispa.Gui.VispaWidget.VispaWidget._deletableFlag
private
Vispa.Gui.VispaWidget.VispaWidget._distances
private
Vispa.Gui.VispaWidget.VispaWidget._distancesHaveToBeRecalculatedFlag
private
Vispa.Gui.VispaWidget.VispaWidget._distancesLastScale
private

Definition at line 446 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget._distancesLastScaleHeight
private

Definition at line 448 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget._distancesLastScaleWidth
private

Definition at line 447 of file VispaWidget.py.

Referenced by Vispa.Gui.VispaWidget.VispaWidget.defineDistances().

Vispa.Gui.VispaWidget.VispaWidget._image
private
Vispa.Gui.VispaWidget.VispaWidget._noRearangeContentFlag
private
Vispa.Gui.VispaWidget.VispaWidget._scaleHeight
private
Vispa.Gui.VispaWidget.VispaWidget._scaleWidth
private
Vispa.Gui.VispaWidget.VispaWidget._selectableFlag
private
Vispa.Gui.VispaWidget.VispaWidget._selectedFlag
private
Vispa.Gui.VispaWidget.VispaWidget._textField
private
Vispa.Gui.VispaWidget.VispaWidget._titleField
private
Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionX
private
Vispa.Gui.VispaWidget.VispaWidget._unzoomedPositionY
private
Vispa.Gui.VispaWidget.VispaWidget.fillColor1
Vispa.Gui.VispaWidget.VispaWidget.fillColor2
Vispa.Gui.VispaWidget.VispaWidget.HEIGHT
Vispa.Gui.VispaWidget.VispaWidget.WIDTH