00001 /******************************************************************************* 00002 * ImageSourceSelector.h 00003 * 00004 * (C) 2007 AG Aktives Sehen <agas@uni-koblenz.de> 00005 * Universitaet Koblenz-Landau 00006 * 00007 * Additional information: 00008 * $Id: $ 00009 *******************************************************************************/ 00010 00011 #ifndef ImageSourceSelector_H 00012 #define ImageSourceSelector_H 00013 00014 #include <QComboBox> 00015 #include <map> 00016 #include "../../Workers/ImageSources/ImageSources.h" 00017 00023 class ImageSourceSelector: public QComboBox 00024 { 00025 00026 Q_OBJECT 00027 00028 public: 00029 00031 ImageSourceSelector( ImageSources::SourceId sourceId=ImageSources::None, QWidget* parent=0, ImageSources::SourceId firstSource=ImageSources::TopCamera, ImageSources::SourceId lastSource=ImageSources::None ); 00032 00034 ~ImageSourceSelector(); 00035 00036 signals: 00037 00038 void sourceSelected( ImageSources::SourceId ); 00039 00040 public slots: 00041 00042 void selectSource( int index ); 00043 00044 private: 00045 00046 std::map< int, ImageSources::SourceId > m_SelectorSourceIds; 00047 00048 }; 00049 00050 #endif