VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtStartupDialogLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtStartupDialogLogic.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #pragma once
13 
14 #include <vrvCoreQt/vrvCoreQt.h>
17 
18 #include <QtNetwork/QNetworkReply>
19 #include <QtNetwork/QNetworkAccessManager>
20 #include <QtCore/QUrl>
21 
22 
23 namespace makVrv
24 {
25  class DtStartupDialogInterface;
26  class DtServerAvailable;
27 
31  {
32  public:
33 
36 
38  virtual ~DtStartupDialogLogic();
39 
40  protected:
42  virtual void slot_neverShowAgain(bool neverShow);
43 
45  virtual void slot_loadTerrain(const std::string& terrain, const int recentlyUsedIdx);
46 
48  virtual void slot_selectedTerrainChanged(const std::string& terrain, const int recentlyUsedIdx);
49 
52  bool processRecentTerrains();
53 
56  bool processTerrain();
57 
60  bool processScenes();
61 
63  const std::string makeKey(const std::string& terrain, int idx);
64 
66  const std::string findDescription(const std::string& key);
67 
69  void loadTerrainOrScene(const std::string& key);
70 
71  protected:
72 
76  std::map<std::string, std::string> myTerrainNameToPathMap;
77  std::map<std::string, std::string> mySceneNameToPathMap;
78  std::map<std::string, std::string> myTerrainNameToDescription;
79  std::map<std::string, std::string> mySceneNameToDescription;
80  };
81 
85  {
86  public:
87 
89  static DtStartupDialogLogicCreator& instance(DtDe&);
90 
92  static void registerInstance(DtDe& de, DtStartupDialogLogicCreator* instance);
93 
96 
98  virtual ~DtStartupDialogLogicCreator();
99 
101  virtual DtVirtualBaseClass* create(DtDe& de, DtStartupDialogInterface& iFace );
102  };
103 }
104 

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)