VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtCockpitMappingEditorLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtCockpitMappingEditorLogic.h,v $ $Revision: 1.3 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
17 #include <QtCore/QStringList>
18 #include <vlpi/entityType.h>
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtEntityMappingEditorInterface;
24  class DtEntityTypeMapEditorInterface;
25  class DtEntityTypeMapper;
26  class DtModelDefinition;
27  class DtMultiMapEditorInterface;
28  class DtPersistenceControlsInterface;
29  class DtSettingsChangeObject;
30  class DtSharedSimulationSettingsManager;
31  class DtSharedCockpitSettings;
32  class DtSharedCockpitTypeMapper;
33  class DtUnicode;
34  class DtPage;
35 
39  {
40  public:
43  const std::string& definitionSchema,
44  DtEntityMappingEditorInterface& editorInterface,
45  DtEntityTypeMapEditorInterface& entityTypeMapInterface,
46  DtMultiMapEditorInterface& mapInterface,
47  DtPersistenceControlsInterface& toolbarInterface,
48  DtPage* page = 0);
49 
50  virtual ~DtCockpitMappingEditorLogic();
51 
52  virtual void rebuildDefinitions();
53 
55  const DtEntityTypeMapper& currentMapper( const DtReadSettingsLock<DtSharedCockpitSettings>& settings) const;
56 
57  virtual void on_modelDefinitionAdded( const DtModelDefinition& definition );
58  virtual void on_modelDefinitionToBeDestroyed( const DtModelDefinition& definition );
59  virtual void modelDefinitionChanged(const DtSettingsChangeObject*);
60 
62  virtual void checkIfModified();
63 
64  protected:
65 
66  void updatePossibleValues();
67  void updateSettings();
68 
69  void refreshPage();
70 
71  void buildFiltersFromDefinitions();
72 
73  virtual void on_addValue(const std::string& name,
74  const std::string& value, int index);
75  virtual void on_changeValue(const std::string& name,
76  const std::string& oldValue,const std::string& value, int index);
77  virtual void on_deleteValue(const std::vector<std::string>& name,
78  const std::vector<std::string>& value);
79  virtual void on_renameValue(const std::string& oldName,
80  const std::string& value,const std::string& newName);
81  virtual void on_itemSelected(const std::string& itemName);
82 
83  virtual void on_import();
84  virtual void on_merge();
85  virtual void on_export();
86  virtual void on_exportSelected();
87  virtual void on_importFilePathChosen(const std::string& filePath);
88  virtual void on_mergeFilePathChosen(const std::string& filePath);
89  virtual void on_exportFilePathChosen(const std::string& filePath);
90  virtual void on_exportSelectedFilePathChosen(const std::string& filePath);
91  virtual void on_filterChanged(const DtUnicode& filter);
92  virtual void on_lookupChanged(const std::string& filter);
93  virtual void on_selectMatch();
94 
95  void entityTypeMappingsRestored(const DtSettingsBackup* s);
96 
97  void askForNewElementDefinitionForEntityType(std::string entType);
98 
99  protected:
107  QStringList myDefinitions;
108  std::string myDefinitionSchema;
109  DtEntityType myLookupType;
110  DtSharedCockpitTypeMapper* myMapperObject;
112  };
113 } //makVrv::

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)