VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtObserverSelectionWidget.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2010 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtObserverSelectionWidget.h,v $ $Revision: 1.22 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00012 #pragma once
00013 #include <vrvCoreQt/vrvCoreQt.h>
00014 #include <vrvCoreQt/DtWidgetBuilder.h>
00015 #include <vrvCoreQt/DtStealthControlWidgetInterface.h>
00016 #include <QtGui/QWidget>
00017 
00018 class QComboBox;
00019 class QLabel;
00020 
00021 namespace makVrv
00022 {
00023    class DtStealthControlWidgetLogic;
00024 
00030    class DT_DLL_VRVCOREQT DtObserverSelectionWidget : public QWidget ,
00031       public DtStealthControlWidgetInterface
00032    {
00033       Q_OBJECT
00034 
00035    public:
00037       DtObserverSelectionWidget( DtDe& de, QWidget* parent = 0, Qt::WindowFlags flags = 0);
00038 
00040       virtual ~DtObserverSelectionWidget();
00041 
00042       virtual void setAutoHide(bool);
00043 
00046       virtual void setSelectionMode(bool);
00047 
00048    protected:
00050       virtual void addObserver( const std::string& displayName, 
00051          const DtUniqueID& id );
00052         
00054       virtual void removeObserver( const std::string& displayName, 
00055          const DtUniqueID& id );
00056       
00058       virtual void setCurrentObserver( const std::string& observerName );
00059 
00061       virtual void setWidgetVisible(bool b);
00062 
00064       virtual int numObservers() const;
00065 
00066    protected slots:
00067       virtual void observerChanged(int);
00068 
00069    public:
00070       QComboBox*  myObserversComboBox;
00071       QLabel*     myCurrentObserver;
00072 
00073    protected:
00074       DtStealthControlWidgetLogic*  myLogic;
00075    };
00076 
00079    class DT_DLL_VRVCOREQT DtObserverSelectionWidgetBuilder : public DtWidgetBuilder
00080    { 
00081 
00082    public:
00083 
00084       DtObserverSelectionWidgetBuilder();
00085 
00086       virtual ~DtObserverSelectionWidgetBuilder();
00087 
00088       virtual QWidget* create( DtDe& de, QWidget* parent, const Qt::WindowFlags& flags);
00089    };
00090 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)