VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
vrfSimulationMenuItem.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
14 #include <vrvCore/DtDe.h>
15 #include <vrvCoreQt/DtMenuItem.h>
17 
18 #include <QtGui/QAction>
19 
20 namespace makVrf
21 {
22  class DtVrfBackendState;
23 
25  {
26  Q_OBJECT
27 
28  public:
30  {
31  DtAlwaysEnabled = 0,
32  DtAnyBackendsPresent = 1,
33  DtAnyBackendsLoaded = 2,
34  DtAnyBackendsPlaying = 3,
35  DtAllBackendsCanSimulate = 4,
36  DtSelectedBackendLoaded = 5,
37  DtTerrainLoadedOnly = 6,
38  DtLocalCreateValid = 7,
39  DtLocalSaveValid = 8,
40  DtAnyBackendsLoadedAndNotLoading = 9,
41  DtAnyBackendsPresentAndNotLoading = 10,
42  DtAnyBackendsLoadedOrLoading = 11,
43  DtAllBackendsCanSimulateAndPlaying = 12,
44  DtAllBackendsCanSimulateAndLoaded = 13,
45  DtCustomValidation = 100
46  };
47 
48  public:
49  //CTOR
50  DtVrfSimulationMenuItem(makVrv::DtDe& de, QWidget* parent, DtVrfSimMenuItemValidations = DtVrfSimulationMenuItem::DtAlwaysEnabled);
51 
52  //DTOR
53  virtual ~DtVrfSimulationMenuItem();
54 
55  virtual void setCheckTerrainLoaded(bool);
56  bool checkTerrainLoaded() const
57  {
58  return myCheckTerrainLoaded;
59  }
60 
62  virtual void evaluate();
63 
64  protected:
66  virtual void setFlags(DtVrfSimMenuItemValidations);
67  const DtVrfSimMenuItemValidations& flags() const
68  {
69  return myFlags;
70  }
71 
72  virtual void slot_terrainPatchToBeDeleted();
73 
74  virtual bool terrainLoaded(int terrainCountOffset = 0) const;
75 
76  protected:
77  virtual void validate(int terrainPatchOffset = 0);
78 
79  virtual void slot_backendUpdated(const DtVrfBackendState&, int);
80 
81  virtual void customValidation(int terrainPatchOffset = 0);
82 
83  protected:
89  };
90 }

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)