CMS 3D CMS Logo

Public Member Functions | Public Attributes | Private Member Functions | Private Attributes

CSGContinuousAction Class Reference

#include <Fireworks/Core/interface/CSGContinuousAction.h>

Inheritance diagram for CSGContinuousAction:
CSGAction

List of all members.

Public Member Functions

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)
 CSGContinuousAction (CSGActionSupervisor *sup, const char *name)
virtual void globalDisable ()
virtual void globalEnable ()
bool isRunning () const
void stop ()
void switchMode ()

Public Attributes

sigc::signal< void > started_
sigc::signal< void > stopped_

Private Member Functions

 CSGContinuousAction (const CSGContinuousAction &)
const CSGContinuousActionoperator= (const CSGContinuousAction &)

Private Attributes

FWCustomIconsButtonm_button
const TGPicture * m_disabledPic
const TGPicture * m_downPic
std::string m_imageFileName
bool m_isRunning
const TGPicture * m_runningDownPic
std::string m_runningImageFileName
const TGPicture * m_runningUpPic
const TGPicture * m_upPic

Detailed Description

Description: An action which continues over time (e.g. playing events)

Usage: <usage>

Definition at line 30 of file CSGContinuousAction.h.


Constructor & Destructor Documentation

CSGContinuousAction::CSGContinuousAction ( CSGActionSupervisor sup,
const char *  name 
)

Definition at line 33 of file CSGContinuousAction.cc.

References CSGAction::activated, and switchMode().

                                                                                            :
   CSGAction(iSupervisor,iName),
   m_upPic(0),
   m_downPic(0),
   m_disabledPic(0),
   m_runningUpPic(0),
   m_runningDownPic(0),
   m_button(0),
   m_isRunning(false)
{
   activated.connect(boost::bind(&CSGContinuousAction::switchMode, this));
}
CSGContinuousAction::CSGContinuousAction ( const CSGContinuousAction ) [private]

Member Function Documentation

void CSGContinuousAction::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 
)

Definition at line 47 of file CSGContinuousAction.cc.

References m_button, m_disabledPic, m_downPic, m_runningDownPic, m_runningUpPic, and m_upPic.

Referenced by CmsShowMainFrame::CmsShowMainFrame().

{
   m_upPic=upPic;
   m_downPic=downPic;
   m_disabledPic=disabledPic;
   m_runningUpPic=upRunningPic;
   m_runningDownPic=downRunningPic;
   m_button =
      CSGAction::createCustomIconsButton(p,upPic,downPic,disabledPic,l,id,norm,option);
}
void CSGContinuousAction::globalDisable ( ) [virtual]

Reimplemented from CSGAction.

Definition at line 118 of file CSGContinuousAction.cc.

References m_isRunning.

void CSGContinuousAction::globalEnable ( ) [virtual]

Reimplemented from CSGAction.

Definition at line 112 of file CSGContinuousAction.cc.

Referenced by switchMode().

bool CSGContinuousAction::isRunning ( ) const [inline]

Definition at line 37 of file CSGContinuousAction.h.

References m_isRunning.

{ return m_isRunning; }
const CSGContinuousAction& CSGContinuousAction::operator= ( const CSGContinuousAction ) [private]
void CSGContinuousAction::stop ( )
void CSGContinuousAction::switchMode ( )

Member Data Documentation

Definition at line 78 of file CSGContinuousAction.h.

Referenced by createCustomIconsButton(), stop(), and switchMode().

const TGPicture* CSGContinuousAction::m_disabledPic [private]

Definition at line 74 of file CSGContinuousAction.h.

Referenced by createCustomIconsButton(), stop(), and switchMode().

const TGPicture* CSGContinuousAction::m_downPic [private]

Definition at line 73 of file CSGContinuousAction.h.

Referenced by createCustomIconsButton(), and stop().

std::string CSGContinuousAction::m_imageFileName [private]

Definition at line 69 of file CSGContinuousAction.h.

Referenced by stop().

Definition at line 80 of file CSGContinuousAction.h.

Referenced by globalDisable(), isRunning(), stop(), and switchMode().

const TGPicture* CSGContinuousAction::m_runningDownPic [private]

Definition at line 76 of file CSGContinuousAction.h.

Referenced by createCustomIconsButton(), and switchMode().

Definition at line 70 of file CSGContinuousAction.h.

Referenced by switchMode().

const TGPicture* CSGContinuousAction::m_runningUpPic [private]

Definition at line 75 of file CSGContinuousAction.h.

Referenced by createCustomIconsButton(), and switchMode().

const TGPicture* CSGContinuousAction::m_upPic [private]

Definition at line 72 of file CSGContinuousAction.h.

Referenced by createCustomIconsButton(), and stop().

sigc::signal<void> CSGContinuousAction::started_

Definition at line 54 of file CSGContinuousAction.h.

Referenced by switchMode().

sigc::signal<void> CSGContinuousAction::stopped_

Definition at line 55 of file CSGContinuousAction.h.

Referenced by switchMode().