Go to the documentation of this file.00001 #ifndef Fireworks_Core_CSGContinuousAction_h
00002 #define Fireworks_Core_CSGContinuousAction_h
00003
00004
00005
00006
00007
00016
00017
00018
00019
00020
00021
00022
00023 #include <string>
00024
00025
00026 #include "Fireworks/Core/interface/CSGAction.h"
00027
00028
00029
00030 class CSGContinuousAction : public CSGAction {
00031
00032 public:
00033 CSGContinuousAction(CSGActionSupervisor *sup, const char *name);
00034
00035
00036
00037 bool isRunning() const { return m_isRunning; }
00038
00039
00040
00041
00042 void createCustomIconsButton(TGCompositeFrame* p,
00043 const TGPicture* upPic,
00044 const TGPicture* downPic,
00045 const TGPicture* disabledPic,
00046 const TGPicture* upRunningPic,
00047 const TGPicture* downRunningPic,
00048 TGLayoutHints* l = 0,
00049 Int_t id = -1,
00050 GContext_t norm = TGButton::GetDefaultGC() (),
00051 UInt_t option = 0);
00052 void stop();
00053
00054 sigc::signal<void> started_;
00055 sigc::signal<void> stopped_;
00056
00057
00058 virtual void globalEnable();
00059 virtual void globalDisable();
00060
00061 void switchMode();
00062
00063 private:
00064 CSGContinuousAction(const CSGContinuousAction&);
00065
00066 const CSGContinuousAction& operator=(const CSGContinuousAction&);
00067
00068
00069 std::string m_imageFileName;
00070 std::string m_runningImageFileName;
00071
00072 const TGPicture* m_upPic;
00073 const TGPicture* m_downPic;
00074 const TGPicture* m_disabledPic;
00075 const TGPicture* m_runningUpPic;
00076 const TGPicture* m_runningDownPic;
00077
00078 FWCustomIconsButton* m_button;
00079
00080 bool m_isRunning;
00081
00082
00083 };
00084
00085
00086 #endif