Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Related Pages  

SrcWidget.h

00001 /* SrcWidget.h
00002  * Last modified: 
00003  * Authors: Daniel Venkitachalam <venki-d@ee.uwa.edu.au>
00004  *          Leon Koch <leon@redfishsoftware.com.au>
00005  */
00012 #ifndef SRCWIDGET_H
00013 #define SRCWIDGET_H
00014 
00015 #ifdef HAVE_CONFIG_H
00016 #include <config.h>
00017 #endif
00018 
00019 #include <dirent.h>
00020 
00021 // QT includes
00022 #include <qwidget.h>
00023 #include <qpixmap.h>
00024 #include <qlistbox.h>
00025 #include <qpushbutton.h>
00026 #include <qimage.h>
00027 #include <qvbox.h>
00028 #include <qlabel.h>
00029 #include <qmessagebox.h>
00030 
00031 #include "PixWidget.h"
00032 
00033 #include "FW/labImage.h"
00034 #include "imageSeq.h"
00035 
00036 #define CAMERASTRING "Camera"
00037 
00038 class SrcWidget : public QWidget
00039 {
00040         Q_OBJECT
00041         public:
00043                 SrcWidget( QWidget *parent, const char *name, int id, int sourceId);
00045                 ~SrcWidget(void);
00047                 void tick(int numFrames=1);
00048 
00050                 Picture* getCurrent(void);
00052                 bool isReady(void);
00053 
00055                 int getId(void);
00057                 int getSourceId(void);
00058                 
00060                 void setSrcEnabled(bool value);
00061         
00063                 void reload(bool sequencesAsWell);
00065                 imageSeq *getImageSeq(void);
00067                 void seq_select(int item);
00068 
00069         public slots:
00071                 void seq_select(const QString&);
00072         
00073         protected:
00075                 static int file_select(const struct dirent *entry);
00076 
00077         private:
00079                 int id;
00081                 int sourceId;
00083                 PixWidget *pixWidget;
00085                 QPushButton *popupButton;
00087                 QListBox *listBox;
00089                 QBoxLayout *layout;
00091                 imageSeq *imageSequence;
00092 
00093 };
00094 
00095 #endif
00096 

Generated on Tue Apr 1 11:01:16 2003 for ImprovQT by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002