Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:04

0001 #ifndef Fireworks_Core_FWViewEnergyScaleEditor_h
0002 #define Fireworks_Core_FWViewEnergyScaleEditor_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     Core
0006 // Class  :     FWViewEnergyScaleEditor
0007 //
0008 /**\class FWViewEnergyScaleEditor FWViewEnergyScaleEditor.h Fireworks/Core/interface/FWViewEnergyScaleEditor.h
0009 
0010  Description: [one line class summary]
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Alja Mrak-Tadel
0018 //         Created:  Fri Sep 24 18:52:28 CEST 2010
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #ifndef __CINT__
0025 #include <memory>
0026 #endif
0027 #include "TGFrame.h"
0028 #include "Fireworks/Core/interface/FWParameterSetterEditorBase.h"
0029 
0030 class FWViewEnergyScale;
0031 class FWParameterSetterBase;
0032 class FWParameterBase;
0033 class TGCheckButton;
0034 
0035 // forward declarations
0036 
0037 class FWViewEnergyScaleEditor : public TGVerticalFrame, public FWParameterSetterEditorBase {
0038 public:
0039   FWViewEnergyScaleEditor(FWViewEnergyScale* s, TGCompositeFrame* w, bool addAutoScaleControll = true);
0040   ~FWViewEnergyScaleEditor() override;
0041 
0042   // ---------- const member functions ---------------------
0043 
0044   // ---------- static member functions --------------------
0045 
0046   // ---------- member functions ---------------------------
0047   void setEnabled(bool);
0048 
0049   ClassDefOverride(FWViewEnergyScaleEditor, 0);
0050 
0051 private:
0052   FWViewEnergyScaleEditor(const FWViewEnergyScaleEditor&);                   // stop default
0053   const FWViewEnergyScaleEditor& operator=(const FWViewEnergyScaleEditor&);  // stop default
0054 
0055   void addParam(FWParameterBase*, const char* title = nullptr);
0056 
0057   // ---------- member data --------------------------------
0058 
0059   FWViewEnergyScale* m_scale;
0060   bool m_enabled;
0061 
0062 #ifndef __CINT__
0063   std::vector<std::shared_ptr<FWParameterSetterBase> > m_setters;
0064 #endif
0065 };
0066 
0067 #endif