CMS 3D CMS Logo

List of all members | Public Member Functions
FWPSetCellEditor Class Reference

#include <Fireworks/FWInterface/interface/FWPSetCellEditor.h>

Inheritance diagram for FWPSetCellEditor:

Public Member Functions

bool apply (FWPSetTableManager::PSetData &data, FWPSetTableManager::PSetData &parent)
 
 FWPSetCellEditor (const TGWindow *w, const char *txt)
 
bool HandleKey (Event_t *event) override
 
 ~FWPSetCellEditor () override
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 24 of file FWPSetCellEditor.h.

Constructor & Destructor Documentation

FWPSetCellEditor::FWPSetCellEditor ( const TGWindow *  w,
const char *  txt 
)
inline

Definition at line 26 of file FWPSetCellEditor.h.

26 : TGTextEntry(w, txt){};
const double w
Definition: UKUtility.cc:23
FWPSetCellEditor::~FWPSetCellEditor ( )
inlineoverride

Definition at line 27 of file FWPSetCellEditor.h.

References apply(), data, HandleKey(), and class-composition::parent.

27 {};

Member Function Documentation

bool FWPSetCellEditor::apply ( FWPSetTableManager::PSetData data,
FWPSetTableManager::PSetData parent 
)

Definition at line 219 of file FWPSetCellEditor.cc.

References editBoolParameter(), editESInputTag(), editFileInPath(), editInputTag(), editStringParameter(), editVInputTag(), fwLog, fwlog::kError, FWPSetTableManager::PSetData::label, FWPSetTableManager::PSetData::pset, FWPSetTableManager::PSetData::tracked, and FWPSetTableManager::PSetData::type.

Referenced by heavyIonTools.ConfigureHeavyIons::__call__(), editorTools.UserCodeTool::__call__(), HiCoreTools.RestrictInputToAOD::__call__(), coreTools.RunOnData::__call__(), trackTools.MakeAODTrackCandidates::__call__(), runJetUncertainties.RunJetUncertainties::__call__(), metTools.AddMETCollection::__call__(), heavyIonTools.ProductionDefaults::__call__(), editorTools.ChangeSource::__call__(), HiCoreTools.RemoveMCMatching::__call__(), cmsswVersionTools.PickRelValInputFiles::__call__(), coreTools.RemoveMCMatching::__call__(), trackTools.MakePATTrackCandidates::__call__(), trigTools.SwitchOnTrigger::__call__(), runMETCorrectionsAndUncertainties.RunMETCorrectionsAndUncertainties::__call__(), heavyIonTools.SelectionDefaults::__call__(), HiCoreTools.RemoveAllPATObjectsBut::__call__(), heavyIonTools.DisbaleMonteCarloDeps::__call__(), HiCoreTools.RemoveSpecificPATObjects::__call__(), trigTools.SwitchOnTriggerStandAlone::__call__(), tauTools.AddTauCollection::__call__(), trackTools.MakeTrackCandidates::__call__(), trigTools.SwitchOnTriggerMatching::__call__(), HiCoreTools.RemoveCleaning::__call__(), HiCoreTools.AddCleaning::__call__(), trigTools.SwitchOnTriggerMatchingStandAlone::__call__(), trigTools.SwitchOnTriggerMatchEmbedding::__call__(), jetTools.AddJetCollection::__call__(), jetTools.SwitchJetCollection::__call__(), jetTools.UpdateJetCollection::__call__(), jetTools.AddJetID::__call__(), jetTools.SetTagInfos::__call__(), FWPSetTableManager::applyEditor(), and ~FWPSetCellEditor().

219  {
220  switch (data.type) {
221  case 'I':
222  editNumericParameter<int32_t>(*parent.pset, data.tracked, data.label, GetText());
223  break;
224  case 'B':
225  editBoolParameter(*parent.pset, data.tracked, data.label, GetText());
226  break;
227  case 'U':
228  editNumericParameter<uint32_t>(*parent.pset, data.tracked, data.label, GetText());
229  break;
230  case 'D':
231  editNumericParameter<double>(*parent.pset, data.tracked, data.label, GetText());
232  break;
233  case 'L':
234  editNumericParameter<long long>(*parent.pset, data.tracked, data.label, GetText());
235  break;
236  case 'X':
237  editNumericParameter<unsigned long long>(*parent.pset, data.tracked, data.label, GetText());
238  break;
239  case 'S':
240  editStringParameter(*parent.pset, data.tracked, data.label, GetText());
241  break;
242  case 'i':
243  editVectorParameter<int32_t>(*parent.pset, data.tracked, data.label, GetText());
244  break;
245  case 'u':
246  editVectorParameter<uint32_t>(*parent.pset, data.tracked, data.label, GetText());
247  break;
248  case 'l':
249  editVectorParameter<long long>(*parent.pset, data.tracked, data.label, GetText());
250  break;
251  case 'x':
252  editVectorParameter<unsigned long long>(*parent.pset, data.tracked, data.label, GetText());
253  break;
254  case 'd':
255  editVectorParameter<double>(*parent.pset, data.tracked, data.label, GetText());
256  break;
257  case 's':
258  editVectorParameter<std::string>(*parent.pset, data.tracked, data.label, GetText());
259  break;
260  case 't':
261  editInputTag(*parent.pset, data.tracked, data.label, GetText());
262  break;
263  case 'g':
264  editESInputTag(*parent.pset, data.tracked, data.label, GetText());
265  break;
266  case 'v':
267  editVInputTag(*parent.pset, data.tracked, data.label, GetText());
268  break;
269  case 'F':
270  editFileInPath(*parent.pset, data.tracked, data.label, GetText());
271  break;
272  default:
273  fwLog(fwlog::kError) << "unsupported parameter" << std::endl;
274  UnmapWindow();
275  return false;
276  }
277  return true;
278 }
bool editESInputTag(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
void editStringParameter(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
bool editVInputTag(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
void editBoolParameter(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
#define fwLog(_level_)
Definition: fwLog.h:45
void editFileInPath(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
bool editInputTag(edm::ParameterSet &ps, bool tracked, const std::string &label, const std::string &value)
bool FWPSetCellEditor::HandleKey ( Event_t *  event)
override

Definition at line 282 of file FWPSetCellEditor.cc.

References AlCaHLTBitMon_ParallelJobs::p.

Referenced by ~FWPSetCellEditor().

282  {
283  UInt_t keysym = event->fCode;
284 
285  if (keysym == (UInt_t)gVirtualX->KeysymToKeycode(kKey_Escape)) {
286  TGFrame *p = dynamic_cast<TGFrame *>(const_cast<TGWindow *>(GetParent()));
287  while (p) {
288  TGMainFrame *mp = dynamic_cast<TGMainFrame *>(p);
289  // printf("editor find parent %p, %s, %p\n", p, p->ClassName(), mp);
290  if (mp) {
291  return mp->HandleKey(event);
292  }
293  p = dynamic_cast<TGFrame *>(const_cast<TGWindow *>(p->GetParent()));
294  }
295  }
296 
297  return TGTextEntry::HandleKey(event);
298 }
Definition: event.py:1