Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:11:32

0001 #ifndef Fireworks_Core_FWPartialConfig
0002 #define Fireworks_Core_FWPartialConfig
0003 #include <TGFrame.h>
0004 #include <vector>
0005 #include "Fireworks/Core/interface/FWConfiguration.h"
0006 
0007 class TGCheckButton;
0008 class FWConfigurationManager;
0009 class FWEventItemsManager;
0010 
0011 class FWPartialConfigGUI : public TGTransientFrame {
0012 public:
0013   FWPartialConfigGUI(const char* path, FWConfigurationManager*);
0014   ~FWPartialConfigGUI() override {}
0015   void Cancel();
0016 
0017 protected:
0018   std::vector<TGCheckButton*> m_entries;
0019   FWConfiguration m_origConfig;
0020   FWConfigurationManager* m_cfgMng;
0021 
0022   ClassDefOverride(FWPartialConfigGUI, 0);
0023 };
0024 
0025 //---------------------------------------------------------------------
0026 
0027 class FWPartialConfigLoadGUI : public FWPartialConfigGUI {
0028 public:
0029   FWPartialConfigLoadGUI(const char* path, FWConfigurationManager*, FWEventItemsManager*);
0030   ~FWPartialConfigLoadGUI() override;
0031 
0032   void Load();
0033 
0034 private:
0035   FWEventItemsManager* m_eiMng;
0036   const char* m_oldConfigName;
0037   ClassDefOverride(FWPartialConfigLoadGUI, 0);
0038 };
0039 
0040 //---------------------------------------------------------------------
0041 
0042 class FWPartialConfigSaveGUI : public FWPartialConfigGUI {
0043 public:
0044   FWPartialConfigSaveGUI(const char* path_out, const char* path_in, FWConfigurationManager*);
0045   ~FWPartialConfigSaveGUI() override {}
0046 
0047   void WriteConfig();
0048 
0049 private:
0050   std::string m_outFileName;
0051   std::string m_currFileName;
0052 
0053   ClassDefOverride(FWPartialConfigSaveGUI, 0);
0054 };
0055 
0056 #endif