GfxCfg Class Reference

#include <GfxCfg.h>

Inheritance diagram for GfxCfg:
CfgConfigurable CfgConfigurable GfxDigitListCfg GfxDigitListCfg GfxMCVecListCfg GfxShowerListCfg GfxStripListCfg GfxStripListCfg GfxTrackListCfg GfxTrackListCfg

List of all members.

Public Member Functions

 GfxCfg ()
virtual ~GfxCfg ()
virtual void Config ()
virtual void GuiConfig ()
virtual const RegistryGetPossibles ()
void SetPossibles (const Registry &reg)
 GfxCfg ()
virtual ~GfxCfg ()
virtual void Config ()
virtual void GuiConfig ()
virtual const RegistryGetPossibles ()
void SetPossibles (const Registry &reg)

Public Attributes

SigC::Signal0< void > modified_signal

Private Member Functions

 GfxCfg (const GfxCfg &rhs)
GfxCfgoperator= (const GfxCfg &rhs)
 GfxCfg (const GfxCfg &rhs)
GfxCfgoperator= (const GfxCfg &rhs)

Private Attributes

Registry fPossibles

Detailed Description

Id
GfxCfg.h,v 1.1 2003/05/21 20:59:53 musser Exp
Id
GfxCfg.h,v 1.2 2005/07/21 20:26:36 bv Exp

Definition at line 25 of file EventDisplay/HEAD/GfxCfg.h.


Constructor & Destructor Documentation

GfxCfg::GfxCfg (  ) 

Definition at line 9 of file EventDisplay/HEAD/GfxCfg.cxx.

00010 {
00011 }

GfxCfg::~GfxCfg (  )  [virtual]

Definition at line 13 of file EventDisplay/HEAD/GfxCfg.cxx.

00014 {
00015 }

GfxCfg::GfxCfg ( const GfxCfg rhs  )  [private]
GfxCfg::GfxCfg (  ) 
virtual GfxCfg::~GfxCfg (  )  [virtual]
GfxCfg::GfxCfg ( const GfxCfg rhs  )  [private]

Member Function Documentation

virtual void GfxCfg::Config (  )  [virtual]

Implements CfgConfigurable.

void GfxCfg::Config ( void   )  [virtual]

Implements CfgConfigurable.

Definition at line 17 of file EventDisplay/HEAD/GfxCfg.cxx.

References modified_signal.

00018 {
00019 //    cerr << "GfxCfg::Config()\n";
00020     this->modified_signal.emit();
00021 }

virtual const Registry& GfxCfg::GetPossibles (  )  [virtual]
const Registry & GfxCfg::GetPossibles (  )  [virtual]

Definition at line 24 of file EventDisplay/HEAD/GfxCfg.cxx.

References fPossibles.

Referenced by GuiConfig().

00025 {
00026     return fPossibles;
00027 }

virtual void GfxCfg::GuiConfig (  )  [virtual]
void GfxCfg::GuiConfig (  )  [virtual]

Definition at line 41 of file EventDisplay/HEAD/GfxCfg.cxx.

References GuiCompositeFrameBase::Add(), apply_reg_gui(), GuiButtonBase::clicked, GuiMainWindow::ConnectClose(), CfgConfigurable::GetConfig(), GetPossibles(), GuiBase::SetLayoutHints(), RegistryGui::SetPossibles(), RegistryGui::SetRegistry(), and GuiMainWindow::ShowAll().

Referenced by GfxStrip::ConfigGui(), and GfxDigit::ConfigGui().

00042 {
00043     GuiMainWindow* mw = new GuiMainWindow(100,300);
00044 
00045     RegistryGui* rg = manage(new RegistryGui(*mw));
00046     mw->Add(*rg);
00047 
00048     GuiBox* box = manage(new GuiBox(*mw,kHorizontalFrame));
00049     box->SetLayoutHints(kLHintsExpandX);
00050     mw->Add(*box);
00051 
00052     GuiTextButton* apply = manage(new GuiTextButton(*box,"Apply"));
00053     box->Add(*apply);
00054     apply->clicked.connect(bind(slot(apply_reg_gui),this,rg));
00055 
00056     GuiTextButton* okay = manage(new GuiTextButton(*box,"Okay"));
00057     box->Add(*okay);
00058     okay->clicked.connect(bind(slot(apply_reg_gui),this,rg));
00059     okay->clicked.connect(slot(*mw,&GuiMainWindow::SendCloseMessage));
00060 
00061     GuiTextButton* cancel = manage(new GuiTextButton(*box,"Cancel"));
00062     box->Add(*cancel);
00063     cancel->clicked.connect(slot(*mw,&GuiMainWindow::SendCloseMessage));
00064 
00065     rg->SetRegistry(this->GetConfig());
00066     rg->SetPossibles(this->GetPossibles());
00067 
00068     mw->ShowAll();
00069     mw->ConnectClose(true);
00070     mw->Resize(mw->GetDefaultWidth(),mw->GetDefaultHeight());
00071     
00072 }

GfxCfg& GfxCfg::operator= ( const GfxCfg rhs  )  [private]
GfxCfg& GfxCfg::operator= ( const GfxCfg rhs  )  [private]
void GfxCfg::SetPossibles ( const Registry reg  ) 
void GfxCfg::SetPossibles ( const Registry reg  ) 

Definition at line 29 of file EventDisplay/HEAD/GfxCfg.cxx.

References fPossibles.

Referenced by GfxDigitListCfg::GfxDigitListCfg(), and GfxStripListCfg::GfxStripListCfg().

00030 {
00031     fPossibles = reg;
00032 }


Member Data Documentation

Definition at line 54 of file EventDisplay/HEAD/GfxCfg.h.

Referenced by GetPossibles(), and SetPossibles().

SigC::Signal0< void > GfxCfg::modified_signal

The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1