VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 
38  {
39  public:
42  const std::string& definitionSchema,
43  DtEntityMappingEditorInterface& editorInterface,
44  DtEntityTypeMapEditorInterface& entityTypeMapInterface,
45  DtMultiMapEditorInterface& mapInterface,
46  DtPersistenceControlsInterface& toolbarInterface);
47 
48  virtual ~DtCockpitMappingEditorLogic();
49 
50  virtual void rebuildDefinitions();
51 
53  const DtEntityTypeMapper& currentMapper( const DtReadSettingsLock<DtSharedCockpitSettings>& settings) const;
54 
55  virtual void on_modelDefinitionAdded( const DtModelDefinition& definition );
56  virtual void on_modelDefinitionToBeDestroyed( const DtModelDefinition& definition );
57  virtual void modelDefinitionChanged(const DtSettingsChangeObject*);
58 
59  protected:
60 
61  void updatePossibleValues();
62  void updateSettings();
63 
64  void refreshPage();
65 
66  void buildFiltersFromDefinitions();
67 
68  virtual void on_addValue(const std::string& name,
69  const std::string& value, int index);
70  virtual void on_changeValue(const std::string& name,
71  const std::string& oldValue,const std::string& value, int index);
72  virtual void on_deleteValue(const std::string& name,
73  const std::string& value);
74  virtual void on_renameValue(const std::string& oldName,
75  const std::string& value,const std::string& newName);
76 
77  virtual void on_import();
78  virtual void on_export();
79  virtual void on_importFilePathChosen(const std::string& filePath);
80  virtual void on_exportFilePathChosen(const std::string& filePath);
81  virtual void on_filterChanged(const DtUnicode& filter);
82  virtual void on_lookupChanged(const std::string& filter);
83  virtual void on_selectMatch();
84 
85  void entityTypeMappingsRestored(const DtSettingsBackup* s);
86 
87  void askForNewElementDefinitionForEntityType(std::string entType);
88 
89 
90 
91  protected:
99  QStringList myDefinitions;
100  std::string myDefinitionSchema;
101  DtEntityType myLookupType;
102  DtSharedCockpitTypeMapper* myMapperObject;
103  };
104 } //makVrv::

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)