File indexing completed on 2024-04-06 12:11:43
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "Fireworks/Core/interface/FWViewContextMenuHandlerBase.h"
0017 #include "Fireworks/Core/src/FWModelContextMenuHandler.h"
0018
0019
0020
0021
0022
0023
0024
0025
0026 FWViewContextMenuHandlerBase::MenuEntryAdder::MenuEntryAdder(FWModelContextMenuHandler& iHandler)
0027 : m_handler(&iHandler) {}
0028
0029 int FWViewContextMenuHandlerBase::MenuEntryAdder::addEntry(const char* iEntryName, int idx, bool enabled) {
0030 m_handler->addViewEntry(iEntryName, idx, enabled);
0031 return idx;
0032 }
0033
0034
0035
0036
0037 FWViewContextMenuHandlerBase::FWViewContextMenuHandlerBase() {}
0038
0039
0040
0041
0042
0043
0044 FWViewContextMenuHandlerBase::~FWViewContextMenuHandlerBase() {}
0045
0046
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061 void FWViewContextMenuHandlerBase::addTo(FWModelContextMenuHandler& iHandle, const FWModelId& id) {
0062 MenuEntryAdder adder(iHandle);
0063 init(adder, id);
0064 }