![]() |
![]() |
#include <VisReco/VisCustomTracker/interface/VisCuTkLayerSlWindow.h>
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 |
VisCuTkLayerSelection * | layerSelection |
VisCuTkSelectionBar * | qw |
Private Slots | |
void | closeWindow () |
Private Attributes | |
VisCuTkLayer * | layer |
Definition at line 20 of file VisCuTkLayerSlWindow.h.
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 | ( | ) |
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] |
QGridLayout* VisCuTkLayerSlWindow::gridLayer |
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().
Definition at line 31 of file VisCuTkLayerSlWindow.h.
Referenced by VisCuTkSlWindow::repaintAllBut3D(), and VisCuTkLayerSlWindow().
Definition at line 30 of file VisCuTkLayerSlWindow.h.
Referenced by VisCuTkLayerSelection::mousePressEvent(), and VisCuTkLayerSlWindow().