00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include "cameradialog.h"
00023 #include <qvcore/qvcamera.h>
00024
00025
00026 CameraDialog::CameraDialog(QVCamera* camera, QWidget *parent): QDialog(parent), inspector(camera, this), interface(camera)
00027 {
00028 setWindowTitle(camera->getName());
00029
00030 vboxlayout = new QVBoxLayout();
00031 vboxlayout->addWidget(&inspector);
00032 vboxlayout->addWidget(&interface);
00033 vboxlayout->setAlignment(&interface, Qt::AlignHCenter);
00034
00035 connect(camera, SIGNAL(camOpened()), this, SLOT(disableInspector()));
00036 connect(camera, SIGNAL(camClosed()), this, SLOT(enableInspector()));
00037
00038 setLayout(vboxlayout);
00039 }
00040
00041 void CameraDialog::enableInspector()
00042 {
00043 inspector.setEnabled(TRUE);
00044 }
00045
00046 void CameraDialog::disableInspector()
00047 {
00048 inspector.setEnabled(FALSE);
00049 }
00050