CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWCollectionSummaryWidget.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWCollectionSummaryWidget_h
2 #define Fireworks_Core_FWCollectionSummaryWidget_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWCollectionSummaryWidget
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Sat Feb 14 10:02:30 CST 2009
19 //
20 
21 // system include files
22 #include "TGFrame.h"
23 
24 // user include files
25 
26 // forward declarations
27 class TGPictureButton;
28 class TGCheckButton;
29 class TGLayoutHints;
30 class FWEventItem;
31 class FWColorSelect;
32 class FWBoxIconButton;
33 class FWBoxIconBase;
34 class FWCheckBoxIcon;
35 class FWColorBoxIcon;
37 class FWColorPopup;
39 class FWTableWidget;
40 class TGGC;
41 class TGTextButton;
42 
43 namespace fireworks {
44  class Context;
45 }
46 
48 
49 class FWCollectionSummaryWidget : public TGCompositeFrame
50 {
51 
52 public:
53  FWCollectionSummaryWidget(TGFrame* iParent, FWEventItem& iItem, TGLayoutHints*);
55 
56  // ---------- const member functions ---------------------
57 
58  // ---------- static member functions --------------------
59 
60  // ---------- member functions ---------------------------
61  void displayChanged();
62  void itemChanged();
63 
64  //pass true if white or false if black
65  void setBackgroundToWhite(bool);
66 
67  void colorChangeRequested(Color_t iColorIndex);
68  void toggleItemVisible();
69  void toggleShowHide();
70  void colorClicked();
71 
72  void requestForInfo(FWEventItem*); // *SIGNAL*
73  void requestForFilter(FWEventItem*); // *SIGNAL*
74  void requestForErrorInfo(FWEventItem*); // *SIGNAL*
75  void requestForController(FWEventItem*); // *SIGNAL*
76  void requestForModelContextMenu(Int_t,Int_t); // *SIGNAL*
77 
78  void infoClicked();
79  void stateClicked();
80  void labelClicked();
81 
83 
84  void itemColorClicked(int iIndex, Int_t iRootX, Int_t iRootY);
85  void modelSelected(Int_t iRow,Int_t iButton,Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY);
86 
87 private:
89 
90  const FWCollectionSummaryWidget& operator=(const FWCollectionSummaryWidget&); // stop default
91 
92  void createColorPopup();
93  void colorTable();
94  // ---------- member data --------------------------------
96  TGLayoutHints* m_hints;
97  TGFrame* m_parent;
101  //FWColorSelect* m_colorSelectWidget;
106  TGTextButton* m_label;
107  TGFrame* m_holder;
113 
117 
119 };
120 
121 
122 #endif
FWCollectionSummaryWidget(TGFrame *iParent, FWEventItem &iItem, TGLayoutHints *)
ClassDef(FWCollectionSummaryWidget, 0)
void itemColorClicked(int iIndex, Int_t iRootX, Int_t iRootY)
FWCustomIconsButton * m_showHideButton
FWCollectionSummaryWidgetConnectionHolder * m_connectionHolder
const FWCollectionSummaryWidget & operator=(const FWCollectionSummaryWidget &)
void modelSelected(Int_t iRow, Int_t iButton, Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY)
void colorChangeRequested(Color_t iColorIndex)
FWCollectionSummaryTableManager * m_tableManager
void requestForModelContextMenu(Int_t, Int_t)