1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
#ifndef Fireworks_Core_FWModelContextMenuHandler_h
#define Fireworks_Core_FWModelContextMenuHandler_h
// -*- C++ -*-
//
// Package: Core
// Class : FWModelContextMenuHandler
//
/**\class FWModelContextMenuHandler FWModelContextMenuHandler.h Fireworks/Core/interface/FWModelContextMenuHandler.h
Description: Controls the context menus
Usage:
This file is used internally by the system
*/
//
// Original Author: Chris Jones
// Created: Tue Sep 22 13:26:02 CDT 2009
//
// system include files
#include "Rtypes.h"
#include "GuiTypes.h"
// user include files
// forward declarations
class TGPopupMenu;
class TGMenuEntry;
class FWSelectionManager;
class FWDetailViewManager;
class FWColorManager;
class FWColorPopup;
class FWGUIManager;
class FWViewContextMenuHandlerBase;
class FWModelContextMenuHandler {
public:
FWModelContextMenuHandler(FWSelectionManager*, FWDetailViewManager*, FWColorManager*, FWGUIManager*);
virtual ~FWModelContextMenuHandler();
// ---------- const member functions ---------------------
///NOTE: iX and iY are in global coordinates
void showSelectedModelContext(Int_t iX, Int_t iY, FWViewContextMenuHandlerBase*) const;
// ---------- static member functions --------------------
// ---------- member functions ---------------------------
void chosenItem(Int_t);
void colorChangeRequested(Color_t);
void addViewEntry(const char*, int, bool enabled = true);
ClassDef(FWModelContextMenuHandler, 0);
private:
FWModelContextMenuHandler(const FWModelContextMenuHandler&); // stop default
const FWModelContextMenuHandler& operator=(const FWModelContextMenuHandler&); // stop default
void createModelContext() const;
void createColorPopup() const;
// ---------- member data --------------------------------
mutable TGPopupMenu* m_modelPopup;
mutable FWColorPopup* m_colorPopup;
FWSelectionManager* m_selectionManager;
FWDetailViewManager* m_detailViewManager;
FWColorManager* m_colorManager;
FWGUIManager* m_guiManager;
mutable TGMenuEntry* m_seperator;
mutable TGMenuEntry* m_viewSeperator;
mutable TGMenuEntry* m_afterViewSeperator;
mutable Int_t m_x;
mutable Int_t m_y;
mutable unsigned int m_nDetailViewEntries;
mutable unsigned int m_nViewEntries;
mutable FWViewContextMenuHandlerBase* m_viewHander;
};
#endif
|