VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfContextMenuManagerSignaler.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 
14 
15 #include <vrfGuiCore/vrfGuiCore.h>
16 
19 
20 namespace makVrv
21 {
22  class DtDe;
23  class DtMenuConfiguration;
24  class DtQtMenuAssembler;
25 }
26 
27 class QMenu;
28 
29 namespace makVrf
30 {
40  {
41  public:
44 
47 
48  static DtVrfContextMenuManagerSignaler& instance(makVrv::DtDe& de);
49 
50  public:
54  boost::signals2::signal<void (makVrv::DtQtMenuAssembler& menuAssembler,
57  int selectionType, makVrv::DtDe&, std::string)> signal_contextMenuAboutToBeCreated;
58 
60  boost::signals2::signal<void (QMenu* menu, const makVrv::DtSelectionManager::IdSet& idSet,
61  int selectionType, makVrv::DtDe&, std::string)> signal_contextMenuAboutToBeShown;
62 
63  //Signal sent when a right click happens on a VRF object that does not account for the object type. Connect to this
64  //to create right click context menus for your specialized VRF object types
65  boost::signals2::signal<void (makVrv::DtQtMenuAssembler& menuAssembler,
68 
74  boost::signals2::signal<void (makVrv::DtUniqueID, int&)> signal_objectToBeDeleted;
75 
76  protected:
78  };
79 }
This class is used by the right click context menu to send signals for various states of context menu...
Definition: vrfContextMenuManagerSignaler.h:39
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
boost::signals2::signal< void(makVrv::DtQtMenuAssembler &menuAssembler, makVrv::DtMenuConfiguration &menus, const makVrv::DtSelectionManager::IdSet &idSet, int selectionType, makVrv::DtDe &, std::string)> signal_contextMenuAboutToBeCreated
Sent before the menu is created. Modify the menu configuration (menus) in order to change what is dis...
Definition: vrfContextMenuManagerSignaler.h:57
Contains makVrv:DtSelectionManager class.
A Qt implementation of a DtMenuAssembler.
Definition: DtQtMenuAssembler.h:26
#define DT_DLL_VRFGUICORE
Contains DLL export macros.
Definition: vrfGuiCore.h:25
boost::signals2::signal< void(makVrv::DtUniqueID, int &)> signal_objectToBeDeleted
Connect to this signal to implement your own delete. Set the bool flag to true if you handle the dele...
Definition: vrfContextMenuManagerSignaler.h:74
Contains makVrv::DtVirtualBaseClass class.
boost::signals2::signal< void(makVrv::DtQtMenuAssembler &menuAssembler, makVrv::DtMenuConfiguration &menus, const makVrv::DtSelectionManager::IdSet &idSet)> signal_unhandledRightClick
Definition: vrfContextMenuManagerSignaler.h:67
A configuration of a menu layout. A menu configuration manages an ordered collection of menu paths th...
Definition: DtMenuConfiguration.h:43
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:70
boost::signals2::signal< void(QMenu *menu, const makVrv::DtSelectionManager::IdSet &idSet, int selectionType, makVrv::DtDe &, std::string)> signal_contextMenuAboutToBeShown
Sent after the menu is created but before it is to be shown. You can effect the Qt QMenu for display ...
Definition: vrfContextMenuManagerSignaler.h:61
makVrv::DtDe & myDe
Definition: vrfContextMenuManagerSignaler.h:77
std::set< DtUniqueID > IdSet
Definition: DtSelectionManager.h:32

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)