VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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  };
79 
83  {
84  public:
85 
87  static DtStartupDialogLogicCreator& instance(DtDe&);
88 
90  static void registerInstance(DtDe& de, DtStartupDialogLogicCreator* instance);
91 
94 
96  virtual ~DtStartupDialogLogicCreator();
97 
99  virtual DtVirtualBaseClass* create(DtDe& de, DtStartupDialogInterface& iFace );
100  };
101 }
102 

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)