VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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>
18 
19 #include <QtWidgets/QMenu>
20 
21 namespace makVrv
22 {
23  class DtDe;
24 };
25 
26 namespace makVrf
27 {
30  {
31  public:
32 
34  DtAssembledMenu(const QString& title, QWidget* parent, makVrv::DtDe&);
35 
37  virtual ~DtAssembledMenu();
38 
39  const DtConfigurableMenuAssembler& assembler() const
40  {
41  return myAssembler;
42  }
43 
44  boost::signal<void (DtAssembledMenu*)> signal_preAssembleMenu;
45  boost::signal<void (DtAssembledMenu*)> signal_postAssembleMenu;
46 
47  protected:
50 
52  };
53 
56  {
57  public:
58 
60  DtSelectionEnabledMenu(const QString& title, QWidget* parent, makVrv::DtDe&);
61 
63  virtual ~DtSelectionEnabledMenu();
64 
65  virtual void slot_validateMenuItems();
66 
67  virtual void setBlockSelectionChange(bool b) { myBlockSelectionChange = b; };
68  bool blockSelectionChange() const { return myBlockSelectionChange; };
69 
70  virtual bool needsValidation() const;
71 
73  const makVrv::DtSelectionManager::IdSet& validatingFor() const
74  {
75  return myValidatedFor;
76  }
77 
78  protected:
79  virtual void initValidationConnections();
80  virtual void slot_terrainPatchToBeDeleted();
81 
82  virtual void slot_selectionChanged();
83 
84  protected:
85  virtual void validateMenuItems(int terrainPatchOffset) = 0;
86  virtual bool terrainLoaded(int terrainCountOffset) const;
87 
88  protected:
92  };
93 }

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)