VR-Forces 4.0.4 Class Documentation
include/vrfGuiObjectInformationQt/DtInformationDialog.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtInformationDialog.h,v $ $Revision: 1.2 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvUtil/signalslib.h>
00015 
00016 #include <vrfGuiObjectInformationQt/vrfGuiObjectInformationQt.h>
00017 
00018 #include <vrvCore/DtStateView.h>
00019 #include <vrvCore/DtEntityState.h>
00020 #include <vrvCoreQt/DtQtPageDialog.h>
00021 
00022 class QCloseEvent;
00023 
00024 namespace makVrf
00025 {
00026    namespace makVrfGuiObjectInformationQt
00027    {
00028       class DtObjectConsoleInformationWidget;
00029       class DtInformationDialogPage;
00030       class DtInformationDialogPageLogic;
00031 
00032       class DT_DLL_VRFGUIOBJECTINFORMATIONQT DtInformationDialog : public makVrv::DtQtPageDialog
00033       {
00034          Q_OBJECT
00035 
00036       public:
00037 
00039          DtInformationDialog(makVrv::DtDe& de,const std::string& pageName,QWidget* parent,bool showConsole);
00040 
00042          virtual ~DtInformationDialog();
00043 
00044          virtual void activate(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state);
00045 
00046          const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state() const
00047          {
00048             return myState;
00049          }
00050 
00051          virtual bool stateViewRemoved(const makVrv::DtUniqueID&);
00052 
00053          boost::signal<void (DtInformationDialog*, const makVrv::DtUniqueID&)> signal_destroyed;
00054 
00055       protected:
00056 
00057          virtual void deactivate();
00058 
00059          virtual void closeEvent(QCloseEvent*);
00060 
00061          virtual void setupWindowTitle(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state);
00062          virtual void slot_onStateViewUpdated();
00063 
00064          virtual void activatePage( makVrv::DtPage* page);
00065 
00066          virtual void slot_onStateViewAboutToBeRemoved(const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>& state);
00067          virtual void slot_stateViewAdded(const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>& state);
00068 
00069       protected:
00070          makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* myState;
00071          makVrv::DtUniqueID   myStateId;
00072          DtObjectConsoleInformationWidget*   myConsoleInformation;
00073          bool myShowConsole;
00074       };
00075    }
00076 }

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)