CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2_patch1/src/Fireworks/Core/interface/CSGContinuousAction.h

Go to the documentation of this file.
00001 #ifndef Fireworks_Core_CSGContinuousAction_h
00002 #define Fireworks_Core_CSGContinuousAction_h
00003 // -*- C++ -*-
00004 //
00005 // Package:     Core
00006 // Class  :     CSGContinuousAction
00007 //
00016 //
00017 // Original Author:  Chris Jones
00018 //         Created:  Tue Jul 29 10:19:42 EDT 2008
00019 // $Id: CSGContinuousAction.h,v 1.7 2009/08/26 18:59:20 amraktad Exp $
00020 //
00021 
00022 // system include files
00023 #include <string>
00024 
00025 // user include files
00026 #include "Fireworks/Core/interface/CSGAction.h"
00027 
00028 // forward declarations
00029 
00030 class CSGContinuousAction : public CSGAction {
00031 
00032 public:
00033    CSGContinuousAction(CSGActionSupervisor *sup, const char *name);
00034    //virtual ~CSGContinuousAction();
00035 
00036    // ---------- const member functions ---------------------
00037    bool isRunning() const { return m_isRunning; }
00038 
00039    // ---------- static member functions --------------------
00040 
00041    // ---------- member functions ---------------------------
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    //override
00058    virtual void globalEnable();
00059    virtual void globalDisable();
00060 
00061    void switchMode();
00062 
00063 private:
00064    CSGContinuousAction(const CSGContinuousAction&); // stop default
00065 
00066    const CSGContinuousAction& operator=(const CSGContinuousAction&); // stop default
00067 
00068    // ---------- member data --------------------------------
00069    std::string m_imageFileName;
00070    std::string m_runningImageFileName;
00071    //const TGPicture* m_runningImage;
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