test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSGContinuousAction.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CSGContinuousAction_h
2 #define Fireworks_Core_CSGContinuousAction_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : CSGContinuousAction
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Tue Jul 29 10:19:42 EDT 2008
19 //
20 
21 // system include files
22 #include <string>
23 
24 // user include files
26 
27 // forward declarations
28 
30 
31 public:
32  CSGContinuousAction(CSGActionSupervisor *sup, const char *name);
33  //virtual ~CSGContinuousAction();
34 
35  // ---------- const member functions ---------------------
36  bool isRunning() const { return m_isRunning; }
37 
38  // ---------- static member functions --------------------
39 
40  // ---------- member functions ---------------------------
41  void createCustomIconsButton(TGCompositeFrame* p,
42  const TGPicture* upPic,
43  const TGPicture* downPic,
44  const TGPicture* disabledPic,
45  const TGPicture* upRunningPic,
46  const TGPicture* downRunningPic,
47  TGLayoutHints* l = 0,
48  Int_t id = -1,
49  GContext_t norm = TGButton::GetDefaultGC() (),
50  UInt_t option = 0);
51  void stop();
52 
53  sigc::signal<void> started_;
54  sigc::signal<void> stopped_;
55 
56  //override
57  virtual void globalEnable();
58  virtual void globalDisable();
59 
60  void switchMode();
61 
62 private:
63  CSGContinuousAction(const CSGContinuousAction&); // stop default
64 
65  const CSGContinuousAction& operator=(const CSGContinuousAction&); // stop default
66 
67  // ---------- member data --------------------------------
70  //const TGPicture* m_runningImage;
71  const TGPicture* m_upPic;
72  const TGPicture* m_downPic;
73  const TGPicture* m_disabledPic;
74  const TGPicture* m_runningUpPic;
75  const TGPicture* m_runningDownPic;
76 
78 
80 
81 
82 };
83 
84 
85 #endif
FWCustomIconsButton * m_button
const TGPicture * m_downPic
const TGPicture * m_upPic
void createCustomIconsButton(TGCompositeFrame *p, const TGPicture *upPic, const TGPicture *downPic, const TGPicture *disabledPic, const TGPicture *upRunningPic, const TGPicture *downRunningPic, TGLayoutHints *l=0, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=0)
virtual void globalDisable()
sigc::signal< void > started_
CSGContinuousAction(CSGActionSupervisor *sup, const char *name)
std::string m_runningImageFileName
sigc::signal< void > stopped_
const TGPicture * m_runningUpPic
const TGPicture * m_disabledPic
const TGPicture * m_runningDownPic
const CSGContinuousAction & operator=(const CSGContinuousAction &)