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 // $Id: CSGContinuousAction.h,v 1.7 2009/08/26 18:59:20 amraktad Exp $
20 //
21 
22 // system include files
23 #include <string>
24 
25 // user include files
27 
28 // forward declarations
29 
31 
32 public:
33  CSGContinuousAction(CSGActionSupervisor *sup, const char *name);
34  //virtual ~CSGContinuousAction();
35 
36  // ---------- const member functions ---------------------
37  bool isRunning() const { return m_isRunning; }
38 
39  // ---------- static member functions --------------------
40 
41  // ---------- member functions ---------------------------
42  void createCustomIconsButton(TGCompositeFrame* p,
43  const TGPicture* upPic,
44  const TGPicture* downPic,
45  const TGPicture* disabledPic,
46  const TGPicture* upRunningPic,
47  const TGPicture* downRunningPic,
48  TGLayoutHints* l = 0,
49  Int_t id = -1,
50  GContext_t norm = TGButton::GetDefaultGC() (),
51  UInt_t option = 0);
52  void stop();
53 
54  sigc::signal<void> started_;
55  sigc::signal<void> stopped_;
56 
57  //override
58  virtual void globalEnable();
59  virtual void globalDisable();
60 
61  void switchMode();
62 
63 private:
64  CSGContinuousAction(const CSGContinuousAction&); // stop default
65 
66  const CSGContinuousAction& operator=(const CSGContinuousAction&); // stop default
67 
68  // ---------- member data --------------------------------
69  std::string m_imageFileName;
71  //const TGPicture* m_runningImage;
72  const TGPicture* m_upPic;
73  const TGPicture* m_downPic;
74  const TGPicture* m_disabledPic;
75  const TGPicture* m_runningUpPic;
76  const TGPicture* m_runningDownPic;
77 
79 
81 
82 
83 };
84 
85 
86 #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
unsigned int UInt_t
Definition: FUTypes.h:12
const CSGContinuousAction & operator=(const CSGContinuousAction &)