VR-Forces 4.0.4 Class Documentation
include/vrfGuiObjectInformationQt/DtObjectConsoleInformationWidgetLogic.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: DtObjectConsoleInformationWidgetLogic.h,v $ $Revision: 1.1 $ $State: Exp $
00007 ******************************************************************************/
00008 
00012 
00013 #pragma once
00014 #include <vrvUtil/signalslib.h>
00015 
00016 #include <vrfGuiObjectInformationQt/vrfGuiObjectInformationQt.h>
00017 #include <vrfGuiObjectInformationQt/objectConsoleInfoPageUi.hpp>
00018 
00019 #include <vrvCore/DtStateView.h>
00020 #include <vrvCore/DtEntityState.h>
00021 
00022 #include <QtCore/QString>
00023 
00024 namespace makVrv
00025 {
00026    class DtDe;
00027 }
00028 
00029 class DtEntityIdentifier;
00030 
00031 namespace makVrf
00032 {
00033    class DtObjectConsoleMessageHandler;
00034 
00035    namespace makVrfGuiObjectInformationQt
00036    {
00037       class DtObjectConsoleInformationWidgetInterface;
00038 
00039       class DT_DLL_VRFGUIOBJECTINFORMATIONQT DtObjectConsoleInformationWidgetLogic
00040       {
00041       public:
00042 
00044          DtObjectConsoleInformationWidgetLogic(makVrv::DtDe& de, DtObjectConsoleInformationWidgetInterface* iface,
00045             makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state);
00046 
00048          virtual ~DtObjectConsoleInformationWidgetLogic();
00049 
00050          virtual void clearMessages();
00051          virtual void logToFile();
00052          virtual void notifyLevelChanged();
00053 
00054       protected:
00055          virtual void slot_consoleMessageReceived(const DtEntityIdentifier&, int notifyLevel, const std::string&);
00056 
00057          void addAllMessagesFor(const std::string& entityId);
00058 
00059          virtual void formatMessageString(int, QString&);
00060 
00061       protected:
00062          makVrv::DtDe&                                myDe;
00063          DtObjectConsoleInformationWidgetInterface*   myInterface;
00064          DtObjectConsoleMessageHandler&               myHandler;
00065          std::string                                  myEntityId;
00066          makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* myState;
00067          makVrv::DtElementID                          myElementID;
00068       };
00069    }
00070 }

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)