VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
objectConsoleInformationWidgetLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvUtil/signalslib.h>
12 
14 #include <vrfGuiObjectInformationQt/objectConsoleInfoPageUi.hpp>
15 
16 #include <vrvCore/DtStateView.h>
17 #include <vrvCore/DtEntityState.h>
18 #include <vrvUtil/DtUnicode.h>
20 
21 #include <QtCore/QString>
22 
23 namespace makVrv
24 {
25  class DtDe;
26 }
27 
28 class DtEntityIdentifier;
29 
30 namespace makVrf
31 {
32  class DtObjectConsoleMessageHandler;
33 
34  namespace makVrfGuiObjectInformationQt
35  {
36  class DtObjectConsoleInformationWidgetInterface;
37 
39  {
40  public:
41 
44  makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state, bool receiving = true);
45 
48 
49  virtual void clearMessages();
50  virtual void logToFile();
51  virtual void notifyLevelChanged();
52 
54  {
55  return myState;
56  }
57 
58  virtual void activate(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state);
59  virtual void deactivate();
60 
61  protected:
62  virtual void slot_consoleMessageReceived(const DtEntityIdentifier&, int notifyLevel, const makVrv::DtUnicode&,
63  bool force = false);
64 
65  void addAllMessagesFor(const std::string& entityId);
66 
67  virtual void formatMessageString(int, QString&);
68  virtual std::set<std::string> validEntityIdentifiers(const std::string& id) const;
69  virtual void slot_onStateViewAboutToBeRemoved(const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>& state);
70 
71  protected:
75  std::string myEntityId;
80  };
81  }
82 }

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)