CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 public:
31  CSGContinuousAction(CSGActionSupervisor* sup, const char* name);
32  //virtual ~CSGContinuousAction();
33 
34  // ---------- const member functions ---------------------
35  bool isRunning() const { return m_isRunning; }
36 
37  // ---------- static member functions --------------------
38 
39  // ---------- member functions ---------------------------
40  void createCustomIconsButton(TGCompositeFrame* p,
41  const TGPicture* upPic,
42  const TGPicture* downPic,
43  const TGPicture* disabledPic,
44  const TGPicture* upRunningPic,
45  const TGPicture* downRunningPic,
46  TGLayoutHints* l = nullptr,
47  Int_t id = -1,
48  GContext_t norm = TGButton::GetDefaultGC()(),
49  UInt_t option = 0);
50  void stop();
51 
52  sigc::signal<void> started_;
53  sigc::signal<void> stopped_;
54 
55  //override
56  void globalEnable() override;
57  void globalDisable() override;
58 
59  void switchMode();
60 
61  CSGContinuousAction(const CSGContinuousAction&) = delete; // stop default
62 
63  const CSGContinuousAction& operator=(const CSGContinuousAction&) = delete; // stop default
64 
65 private:
66  // ---------- member data --------------------------------
69  //const TGPicture* m_runningImage;
70  const TGPicture* m_upPic;
71  const TGPicture* m_downPic;
72  const TGPicture* m_disabledPic;
73  const TGPicture* m_runningUpPic;
74  const TGPicture* m_runningDownPic;
75 
77 
79 };
80 
81 #endif
void globalEnable() override
FWCustomIconsButton * m_button
void createCustomIconsButton(TGCompositeFrame *p, const TGPicture *upPic, const TGPicture *downPic, const TGPicture *disabledPic, const TGPicture *upRunningPic, const TGPicture *downRunningPic, TGLayoutHints *l=nullptr, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=0)
const TGPicture * m_downPic
const TGPicture * m_upPic
sigc::signal< void > started_
CSGContinuousAction(CSGActionSupervisor *sup, const char *name)
std::string m_runningImageFileName
sigc::signal< void > stopped_
void globalDisable() override
const TGPicture * m_runningUpPic
const TGPicture * m_disabledPic
const TGPicture * m_runningDownPic
const CSGContinuousAction & operator=(const CSGContinuousAction &)=delete