IPopupMenuManager.h
Go to the documentation of this file.
1 /*--------------------------------------------------------------------------------------+
2 |
3 | Supplied under applicable software license agreement.
4 |
5 | Copyright (c) 2018 Bentley Systems, Incorporated. All rights reserved.
6 |
7 +---------------------------------------------------------------------------------------*/
8 #pragma once
9 #include "IEvent.h"
10 #include "IEditAction.h"
11 
13 
14 /*=================================================================================**/
20 {
21 public:
22 /*---------------------------------------------------------------------------------**/
32 virtual void _PopulateMenu (DPoint3dCP point, int view, HitPathCP path, bvector<DgnPlatform::IEditActionPtr>& editActions) = 0;
33 }; // IPopupMenuProvider
34 
35 /*=================================================================================**/
40 {
41 private:
42  virtual void MakeClassAbstract() = 0;
43 public:
44 public:
46  MSCORE_EXPORT static IPopupMenuManagerR GetManager();
47 
49  MSCORE_EXPORT void AddViewPopUpMenuProvider(IPopupMenuProvider* menuItemProvider);
51  MSCORE_EXPORT void DropViewPopUpMenuProvider(IPopupMenuProvider* menuItemProvider);
52 
54  MSCORE_EXPORT void AddTentativePopUpMenuProvider(IPopupMenuProvider* menuItemProvider);
56  MSCORE_EXPORT void DropTentativePopUpMenuProvider(IPopupMenuProvider* menuItemProvider);
57 
59  MSCORE_EXPORT RawItemHdr* GetViewPopupMenu(int view, HitPathCP hitPath);
61  MSCORE_EXPORT RawItemHdr* GetTentativePopupMenu(int view, HitPathCP hitPath);
62 };
63 
Applications should implement this interface to become an EditActionSource for right mouse clicks in ...
Definition: IPopupMenuManager.h:19
#define END_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:30
struct DPoint3d const * DPoint3dCP
Definition: msgeomstructs_typedefs.h:79
#define bsiInterface
Definition: basedefs.h:31
#define BEGIN_BENTLEY_MSTNPLATFORM_NAMESPACE
Definition: DgnPlatform.h:29
RawItemHdr structure - contains info usually specified in item resources and other item type specific...
Definition: dlogitem.h:98
struct DgnPlatform::HitPath const * HitPathCP
Definition: DgnPlatform.h:274
IManager * GetManager()
Return a pointer to the one and only relationship manager.
Definition: IPopupMenuManager.h:39

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.