VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtDriverWidget.h
Go to the documentation of this file.
00001 /****************************************************************************** 
00002 ** Copyright (c) 2007 MAK Technologies, Inc. 
00003 ** All rights reserved. 
00004 ******************************************************************************/ 
00005 /****************************************************************************** 
00006 ** $RCSfile: DtDriverWidget.h,v $ $Revision: 1.16 $ $State: Exp $ 
00007 ******************************************************************************/ 
00008  
00012  
00013 #pragma once
00014 
00015 #include <vrvCoreQt/vrvCoreQt.h> 
00016 #include <vrvCoreQt/DtPage.h>
00017 #include <QtGui/QWidget>
00018 #include <vrvCoreQt/DtDriverWidgetInterface.h>
00019 #include <vrvCoreQt/DtDriverWidgetUI.hpp>
00020 
00021 namespace makVrv 
00022 { 
00023    class DtDe;
00024    class DtDriverWidgetLogic;
00025 
00028    class DT_DLL_VRVCOREQT DtDriverWidget :
00029       public DtPage,
00030       public DtDriverWidgetInterface,
00031       public Ui::DtDriverWidgetUI      
00032    { 
00033       Q_OBJECT;
00034 
00035    public:
00036 
00037       virtual ~DtDriverWidget();     
00038 
00040       virtual QIcon icon();
00041 
00043       virtual QString title();
00044 
00046       virtual const std::string& pageClassName() const;
00047 
00048       virtual void addDriver(const std::string& driverName);
00049       virtual void removeDriver(const std::string& driverName);
00050       virtual void changeDriverState(const std::string& driverName,bool running);
00051 
00052       virtual std::string queryUserForNewDriver(const std::list<std::string>& driverNames);
00053 
00054    protected slots:
00055 
00056       virtual void on_myNewButton_clicked();
00057       virtual void on_myConfigureButton_clicked();
00058       virtual void on_myDeleteButton_clicked();
00059       virtual void on_myStartButton_clicked();
00060       virtual void on_myStopButton_clicked();
00061       virtual void on_mySelectAllButton_clicked();
00062       virtual void on_myDriverTreeWidget_itemSelectionChanged();
00063 
00064    protected:
00065 
00067       friend class DtDriverWidgetCreator;
00068 
00070       DtDriverWidget(DtDe& de, QWidget* parent = 0, Qt::WindowFlags f = 0);
00071       
00073       virtual void activate();
00074 
00076       virtual void deactivate();
00077 
00078    protected:
00079       std::string myClassName;
00080       DtDriverWidgetLogic* myLogic;
00081    }; 
00082 
00085    class DT_DLL_VRVCOREQT DtDriverWidgetCreator : public DtPageCreator
00086    {
00087    public:
00088 
00090       DtDriverWidgetCreator(DtDe& de);
00091 
00093       virtual ~DtDriverWidgetCreator();
00094 
00098       virtual std::string pageClassName() const;
00099 
00101       virtual DtPage* create(QWidget* parent = 0, Qt::WindowFlags f = 0);
00102    };
00103 
00104 } 

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)