VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
designerEditor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #if !defined(Q_MOC_RUN)
14 
18 #endif
19 
20 #include <boost/signals2.hpp>
21 
22 namespace makVrv
23 {
24  class DtDe;
25 }
26 
27 class DtSimMessage;
28 
29 namespace makVrf
30 {
34  {
35  Q_OBJECT
36 
37  public:
40 
42  virtual ~DtDesignerEditor();
43 
47  virtual bool editUi(const std::string& scriptId, const std::string& uiLayout, const std::string& defaultUi = "", bool adding = false);
48 
50  static DtDesignerEditor& instance(makVrv::DtDe&);
51 
53  static void registerInstance(makVrv::DtDe&, DtDesignerEditor*);
54 
55  boost::signals2::signal<void (const std::string&, const std::string&, const std::vector<DtScriptedTaskVariable>&)> signal_layoutModified;
56 
57  protected:
58  virtual void receivedScript(DtSimMessage* msg);
59  virtual void scriptBeingRemoved();
60 
61  virtual void editLayout(const std::string& scriptId, const std::string& uiLayout,bool readOnly = false, bool adding = false);
62  virtual void checkNeedsUpdate(const std::string& file);
63  };
64 }
#define DT_DLL_VRFGUICOREQT
Definition: vrfGuiCoreQt.h:26
This class will edit a temporary .ui file associated with the given script. When the ui file is saved...
Definition: designerEditor.h:33
File: simMsg.h.
Definition: simMessage.h:35
Class that will request and spawn an editor that will allow the editing of the given scripted task...
Definition: scriptEditor.h:41
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)