VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
selectionEnabledMenu.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <vrvUtil/signalslib.h>
17 
18 #include <QtWidgets/QMenu>
19 
20 namespace makVrv
21 {
22  class DtDe;
23 };
24 
25 namespace makVrf
26 {
29  {
30  public:
31 
33  DtAssembledMenu(const QString& title, QWidget* parent, makVrv::DtDe&);
34 
36  virtual ~DtAssembledMenu();
37 
38  const DtConfigurableMenuAssembler& assembler() const
39  {
40  return myAssembler;
41  }
42 
43  boost::signal<void (DtAssembledMenu*)> signal_preAssembleMenu;
44  boost::signal<void (DtAssembledMenu*)> signal_postAssembleMenu;
45 
46  protected:
49 
51  };
52 
55  {
56  public:
57 
59  DtSelectionEnabledMenu(const QString& title, QWidget* parent, makVrv::DtDe&);
60 
62  virtual ~DtSelectionEnabledMenu();
63 
64  virtual void slot_validateMenuItems();
65 
66  virtual void setBlockSelectionChange(bool b) { myBlockSelectionChange = b; };
67  bool blockSelectionChange() const { return myBlockSelectionChange; };
68 
69  protected:
70  virtual void initValidationConnections();
71  virtual void slot_terrainPatchToBeDeleted();
72 
73  virtual void slot_selectionChanged();
74 
75  protected:
76  virtual void validateMenuItems(int terrainPatchOffset) = 0;
77  virtual bool terrainLoaded(int terrainCountOffset) const;
78 
79  protected:
82  };
83 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)