CMS 3D CMS Logo

VisCuTkLayerSlWindow Class Reference

#include <VisReco/VisCustomTracker/interface/VisCuTkLayerSlWindow.h>

List of all members.

Public Slots

void notifyEvent ()

Public Member Functions

void update ()
 VisCuTkLayerSlWindow (QWidget *parent=0, const char *name=0, WFlags fl=0, VisCuTkState *state=0, VisCuTkSelectionBar *sb=0)
 ~VisCuTkLayerSlWindow ()

Public Attributes

QGridLayout * gridLayer
QLabel * labelinfo
VisCuTkLayerSelectionlayerSelection
VisCuTkSelectionBarqw

Private Slots

void closeWindow ()

Private Attributes

VisCuTkLayerlayer


Detailed Description

Definition at line 20 of file VisCuTkLayerSlWindow.h.


Constructor & Destructor Documentation

VisCuTkLayerSlWindow::VisCuTkLayerSlWindow ( QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0,
VisCuTkState state = 0,
VisCuTkSelectionBar sb = 0 
)

Definition at line 27 of file VisCuTkLayerSlWindow.cc.

References VisCuTkLayer::getId(), VisCuTkPartDetector::getName(), VisCuTkLayer::getOwner(), gridLayer, labelinfo, layer, layerSelection, out, qw, and s.

00028     : QWidget( parent, name, fl )
00029 {
00030   if ( !name )
00031     setName( "VisCuTkLayerSlWindow" );
00032   
00033   qw = sb; 
00034   layer=0;
00035   if(dynamic_cast<VisCuTkLayer*>(state))
00036     layer = dynamic_cast<VisCuTkLayer*>(state);
00037 
00038   //layer=state;
00039 
00040   //window size
00041   setMinimumSize( 400, 400 );
00042   setMaximumSize( 400, 400 );
00043   VisCuTkLayer* lay = dynamic_cast<VisCuTkLayer*>(state);
00044   ostringstream os(ostringstream::out);
00045   os << lay->getOwner()->getName() << "  "<<lay->getId()<<" modules selection window";
00046   const QString s ( os.str());
00047   setCaption( s );   
00048   
00049   layerSelection = new VisCuTkLayerSelection(this,"layer",state);
00050 
00051   gridLayer = new QGridLayout( this, 2, 1, 0 );
00052 
00053   labelinfo = new QLabel(this);
00054   // labelinfo->setGeometry( QRect(50 ,375, 280, 18 ) );
00055   labelinfo->setText( trUtf8( " " ) );
00056   
00057   gridLayer->addWidget( layerSelection, 0, 0 );
00058   gridLayer->addWidget( labelinfo, 1, 0 );
00059 }

VisCuTkLayerSlWindow::~VisCuTkLayerSlWindow (  ) 

Definition at line 64 of file VisCuTkLayerSlWindow.cc.

00065 {
00066     // no need to delete child widgets, Qt does it all for us
00067 }


Member Function Documentation

void VisCuTkLayerSlWindow::closeWindow (  )  [private, slot]

Definition at line 69 of file VisCuTkLayerSlWindow.cc.

References layer, and VisCuTkLayer::setSlWindow().

00070 {
00071     if(layer!=0)layer->setSlWindow(0);  
00072 }

void VisCuTkLayerSlWindow::notifyEvent (  )  [slot]

Definition at line 78 of file VisCuTkLayerSlWindow.cc.

00079 {
00080 }

void VisCuTkLayerSlWindow::update ( void   ) 

Definition at line 73 of file VisCuTkLayerSlWindow.cc.

00074 {
00075         
00076 }


Member Data Documentation

QGridLayout* VisCuTkLayerSlWindow::gridLayer

Definition at line 28 of file VisCuTkLayerSlWindow.h.

Referenced by VisCuTkLayerSlWindow().

QLabel* VisCuTkLayerSlWindow::labelinfo

Definition at line 29 of file VisCuTkLayerSlWindow.h.

Referenced by VisCuTkLayerSelection::mousePressEvent(), and VisCuTkLayerSlWindow().

VisCuTkLayer* VisCuTkLayerSlWindow::layer [private]

Definition at line 41 of file VisCuTkLayerSlWindow.h.

Referenced by closeWindow(), and VisCuTkLayerSlWindow().

VisCuTkLayerSelection* VisCuTkLayerSlWindow::layerSelection

Definition at line 31 of file VisCuTkLayerSlWindow.h.

Referenced by VisCuTkSlWindow::repaintAllBut3D(), and VisCuTkLayerSlWindow().

VisCuTkSelectionBar* VisCuTkLayerSlWindow::qw

Definition at line 30 of file VisCuTkLayerSlWindow.h.

Referenced by VisCuTkLayerSelection::mousePressEvent(), and VisCuTkLayerSlWindow().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:15 2009 for CMSSW by  doxygen 1.5.4