ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
VP1CustomTourFrameWidget::Imp Class Reference
Collaboration diagram for VP1CustomTourFrameWidget::Imp:

Public Member Functions

 Imp (VP1CustomTourFrameWidget *theclass)
 
void init ()
 

Public Attributes

VP1CustomTourFrameWidgettheclass
 
Ui::VP1CustomTourFrameWidgetForm ui
 
QPoint dragStartPosition
 
bool camPerspective
 
QByteArray camState
 

Detailed Description

Definition at line 30 of file VP1CustomTourFrameWidget.cxx.

Constructor & Destructor Documentation

◆ Imp()

VP1CustomTourFrameWidget::Imp::Imp ( VP1CustomTourFrameWidget theclass)

Definition at line 43 of file VP1CustomTourFrameWidget.cxx.

44  : theclass(tc), camPerspective(true)
45 {
46  ui.setupUi(theclass);
47  ui.label_snapshot->setText("");
48 
49  int maxheight = static_cast<int>(0.5+QFontMetricsF(ui.pushButton_remove->font()).height()*1.05+2);
50  ui.pushButton_remove->setMaximumHeight(maxheight);
51  ui.pushButton_show->setMaximumHeight(maxheight);
52  ui.checkBox_frameEnabled->setMaximumHeight(maxheight);
53  ui.label_snapshot->setMinimumSize(QSize(snapShotWidth(),snapShotHeight()));
54  ui.label_snapshot->setMaximumSize(QSize(snapShotWidth(),snapShotHeight()));
55 
56  connect(ui.pushButton_moveEarlier,SIGNAL(clicked()),theclass,SLOT(buttonClicked()));
57  connect(ui.pushButton_moveLater,SIGNAL(clicked()),theclass,SLOT(buttonClicked()));
58  connect(ui.pushButton_remove,SIGNAL(clicked()),theclass,SLOT(buttonClicked()));
59  connect(ui.pushButton_show,SIGNAL(clicked()),theclass,SLOT(buttonClicked()));
60  connect(ui.checkBox_frameEnabled,SIGNAL(toggled(bool)),theclass,SLOT(frameEnabledToggled()));
61 
62  theclass->setAcceptDrops(true);
63  ui.label_camtypeicon->setText("");
64 }

Member Function Documentation

◆ init()

void VP1CustomTourFrameWidget::Imp::init ( )

Definition at line 67 of file VP1CustomTourFrameWidget.cxx.

68 {
69  ui.label_camtypeicon->setPixmap(QPixmap( camPerspective
70  ?":/icons/icons/perspective.png"
71  :":/icons/icons/ortho.png") );
72 
74 }

Member Data Documentation

◆ camPerspective

bool VP1CustomTourFrameWidget::Imp::camPerspective

Definition at line 37 of file VP1CustomTourFrameWidget.cxx.

◆ camState

QByteArray VP1CustomTourFrameWidget::Imp::camState

Definition at line 38 of file VP1CustomTourFrameWidget.cxx.

◆ dragStartPosition

QPoint VP1CustomTourFrameWidget::Imp::dragStartPosition

Definition at line 36 of file VP1CustomTourFrameWidget.cxx.

◆ theclass

VP1CustomTourFrameWidget* VP1CustomTourFrameWidget::Imp::theclass

Definition at line 33 of file VP1CustomTourFrameWidget.cxx.

◆ ui

Ui::VP1CustomTourFrameWidgetForm VP1CustomTourFrameWidget::Imp::ui

Definition at line 35 of file VP1CustomTourFrameWidget.cxx.


The documentation for this class was generated from the following file:
VP1CustomTourFrameWidget::Imp::theclass
VP1CustomTourFrameWidget * theclass
Definition: VP1CustomTourFrameWidget.cxx:33
fillPileUpNoiseLumi.connect
string connect
Definition: fillPileUpNoiseLumi.py:70
VP1CustomTourFrameWidget::snapShotWidth
static int snapShotWidth()
Definition: VP1CustomTourFrameWidget.h:48
VP1CustomTourFrameWidget::frameEnabledToggled
void frameEnabledToggled()
Definition: VP1CustomTourFrameWidget.cxx:263
VP1CustomTourFrameWidget::Imp::camPerspective
bool camPerspective
Definition: VP1CustomTourFrameWidget.cxx:37
VP1CustomTourFrameWidget::buttonClicked
void buttonClicked()
Definition: VP1CustomTourFrameWidget.cxx:136
VP1CustomTourFrameWidget::snapShotHeight
static int snapShotHeight()
Definition: VP1CustomTourFrameWidget.h:49
VP1CustomTourFrameWidget::Imp::ui
Ui::VP1CustomTourFrameWidgetForm ui
Definition: VP1CustomTourFrameWidget.cxx:35