VR-Forces 4.2 Class Documentation
DtVrfSimulationMenuItem.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrfSimulationMenuItem.h,v $ $Revision: 1.2 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
17 #include <vrvCore/DtDe.h>
18 #include <vrvCoreQt/DtMenuItem.h>
19 
20 #include <QtGui/QAction>
21 
22 namespace makVrf
23 {
24  class DtVrfBackendState;
25 
27  {
28  Q_OBJECT
29 
30  public:
32  {
33  DtAlwaysEnabled = 0,
34  DtAnyBackendsPresent = 1,
35  DtAnyBackendsLoaded = 2,
36  DtAnyBackendsPlaying = 3,
37  DtAllBackendsCanSimulate = 4,
38  DtSelectedBackendLoaded = 5,
39  DtTerrainLoadedOnly = 6,
40  DtLocalCreateValid = 7,
41  DtLocalSaveValid = 8,
42  DtCustomValidation = 100
43  };
44 
45  public:
46  //CTOR
47  DtVrfSimulationMenuItem(makVrv::DtDe& de, QWidget* parent, DtVrfSimMenuItemValidations = DtVrfSimulationMenuItem::DtAlwaysEnabled);
48 
49  //DTOR
50  virtual ~DtVrfSimulationMenuItem();
51 
52  virtual void setCheckTerrainLoaded(bool);
53  bool checkTerrainLoaded() const
54  {
55  return myCheckTerrainLoaded;
56  }
57 
59  virtual void evaluate();
60 
61  protected:
63  virtual void setFlags(DtVrfSimMenuItemValidations);
64  const DtVrfSimMenuItemValidations& flags() const
65  {
66  return myFlags;
67  }
68 
69  virtual void slot_terrainPatchToBeDeleted();
70 
71  virtual bool terrainLoaded(int terrainCountOffset = 0) const;
72 
73  protected:
74  virtual void validate(int terrainPatchOffset = 0);
75 
76  virtual void slot_backendUpdated(const DtVrfBackendState&, int);
77 
78  virtual void customValidation(int terrainPatchOffset = 0);
79 
80  protected:
81  makVrv::DtDe& myDe;
85  };
86 }

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)