VR-Forces 4.0.4 Class Documentation
include/vrvVrlQt/DtConnectionListWidget.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2011 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 /*****************************************************************************
00006  * $RCSfile: DtConnectionListWidget.h,v $ $Revision: 1.10 $ $State: Exp $
00007  *****************************************************************************/
00008 
00012 
00013 #pragma once
00014 
00015 #include <vrvVrlQt/vrvVrlQt.h>
00016 #include <vrvVrlQt/DtConnectionListInterface.h>
00017 
00018 #include <QtGui/QWidget>
00019 
00020 class QTreeWidget;
00021 class QTreeWidgetItem;
00022 class QPushButton;
00023 class QComboBox;
00024 
00025 namespace makVrv
00026 {
00027 
00028    class DtConnectionListLogic;
00029 
00032    class DT_DLL_VRVVRLQT DtConnectionListWidget
00033          : public QWidget, public DtConnectionListInterface
00034    {  Q_OBJECT;
00035    public:
00036 
00038       DtConnectionListWidget( DtDe& de, QWidget* parent );
00039 
00041       virtual ~DtConnectionListWidget();
00042 
00044       void activate();
00045 
00047       void deactivate();
00048 
00051 
00052       virtual void addDriver( const std::string& driverName,
00053          DtConnectionListInterface::DriverState state );
00054       virtual void removeDriver( const std::string& driverName );
00055 
00056       virtual void setCurrentDriver( const std::string& name );
00057       virtual void setDriverState( const std::string& driverName,
00058          DtConnectionListInterface::DriverState state );
00059       virtual void setAutoConnectDriver( const std::string& driverName );
00060       virtual void setCurrentDriverState(
00061          DtConnectionListInterface::DriverState state );
00062 
00064 
00065    protected slots:
00066 
00067       virtual void on_myConnections_itemSelectionChanged();
00068       virtual void on_myConnectButton_clicked();
00069       virtual void on_myAutoConnectButton_clicked();
00070       virtual void on_myAutoConnectComboBox_currentIndexChanged(
00071          const QString & text );
00072 
00073 
00074    protected:
00075 
00076       void setupGui();
00077 
00078       void setItemState( QTreeWidgetItem* item,
00079          DtConnectionListInterface::DriverState state );
00080 
00081       void setItemAutoConnect( QTreeWidgetItem* item, bool isAutoConnect );
00082 
00083    protected:
00084 
00085       DtDe& myDe;
00086       DtConnectionListLogic* myLogic;
00087 
00088       QTreeWidget* myConnections;
00089       QPushButton* myConnectButton;
00090       QPushButton* myAutoConnectButton;
00091       QComboBox* myAutoConnectComboBox;
00092 
00093    };
00094 }

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)