VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
13 #include <QtWidgets/QFileDialog>
15 #include "objectConsoleInfoPageUi.hpp"
16 
17 #include <vrvCore/DtStateView.h>
18 #include <vrvCore/DtEntityState.h>
19 #include <vrvUtil/DtUnicode.h>
21 
22 #include <QtCore/QString>
23 
24 namespace makVrv
25 {
26  class DtDe;
27 }
28 
29 class DtEntityIdentifier;
30 
31 namespace makVrf
32 {
33  class DtObjectConsoleMessageHandler;
34 
35  namespace makVrfGuiObjectInformationQt
36  {
37  class DtObjectConsoleInformationWidgetInterface;
38 
40  {
41  public:
42 
45  makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state, bool receiving = true);
46 
49 
50  virtual void clearMessages();
51  virtual void logToFile();
52  virtual void notifyLevelChanged();
53 
55  {
56  return myState;
57  }
58 
59  virtual void activate(makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>* state);
60  virtual void deactivate();
61 
62  protected:
63  virtual void slot_consoleMessageReceived(const DtEntityIdentifier&, int notifyLevel, const makVrv::DtUnicode&,
64  bool force = false);
65 
66  void addAllMessagesFor(const std::string& entityId);
67 
68  virtual void formatMessageString(int, QString&);
69  virtual std::set<std::string> validEntityIdentifiers(const std::string& id) const;
70  virtual void slot_onStateViewAboutToBeRemoved(const makVrv::DtStateView<makVrv::DtVrlinkSimulatedBaseState>& state);
71 
72  protected:
76  std::string myEntityId;
81  };
82  }
83 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)