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 // $Id: FWCollectionSummaryWidget.h,v 1.8 2010/06/16 14:04:40 matevz Exp $
20 //
21 
22 // system include files
23 #include "TGFrame.h"
24 
25 // user include files
26 
27 // forward declarations
28 class TGPictureButton;
29 class TGCheckButton;
30 class TGLayoutHints;
31 class FWEventItem;
32 class FWColorSelect;
33 class FWBoxIconButton;
34 class FWBoxIconBase;
35 class FWCheckBoxIcon;
36 class FWColorBoxIcon;
38 class FWColorPopup;
40 class FWTableWidget;
41 class TGGC;
42 class TGTextButton;
43 
44 namespace fireworks {
45  class Context;
46 }
47 
49 
50 class FWCollectionSummaryWidget : public TGCompositeFrame
51 {
52 
53 public:
54  FWCollectionSummaryWidget(TGFrame* iParent, FWEventItem& iItem, TGLayoutHints*);
56 
57  // ---------- const member functions ---------------------
58 
59  // ---------- static member functions --------------------
60 
61  // ---------- member functions ---------------------------
62  void displayChanged();
63  void itemChanged();
64 
65  //pass true if white or false if black
66  void setBackgroundToWhite(bool);
67 
68  void colorChangeRequested(Color_t iColorIndex);
69  void toggleItemVisible();
70  void toggleShowHide();
71  void colorClicked();
72 
73  void requestForInfo(FWEventItem*); // *SIGNAL*
74  void requestForFilter(FWEventItem*); // *SIGNAL*
75  void requestForErrorInfo(FWEventItem*); // *SIGNAL*
76  void requestForController(FWEventItem*); // *SIGNAL*
77  void requestForModelContextMenu(Int_t,Int_t); // *SIGNAL*
78 
79  void infoClicked();
80  void stateClicked();
81  void labelClicked();
82 
84 
85  void itemColorClicked(int iIndex, Int_t iRootX, Int_t iRootY);
86  void modelSelected(Int_t iRow,Int_t iButton,Int_t iKeyMod, Int_t iGlobalX, Int_t iGlobalY);
87 
88 private:
90 
91  const FWCollectionSummaryWidget& operator=(const FWCollectionSummaryWidget&); // stop default
92 
93  void createColorPopup();
94  void colorTable();
95  // ---------- member data --------------------------------
97  TGLayoutHints* m_hints;
98  TGFrame* m_parent;
102  //FWColorSelect* m_colorSelectWidget;
107  TGTextButton* m_label;
108  TGFrame* m_holder;
114 
118 
120 };
121 
122 
123 #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)