FWGUIEventDataAdder

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
#ifndef Fireworks_Core_FWGUIEventDataAdder_h
#define Fireworks_Core_FWGUIEventDataAdder_h
// -*- C++ -*-
//
// Package:     Core
// Class  :     FWGUIEventDataAdder
//
/**\class FWGUIEventDataAdder FWGUIEventDataAdder.h Fireworks/Core/interface/FWGUIEventDataAdder.h

   Description: <one line class summary>

   Usage:
    <usage>

 */
//
// Original Author:  Chris Jones
//         Created:  Fri Jun 13 09:12:36 EDT 2008
//

// system include files
#include <set>
#include <vector>
#include <string>
#include <RQ_OBJECT.h>

// user include files

// forward declarations
class FWEventItemsManager;
class FWJobMetadataManager;
class TGTransientFrame;
class TGTextEntry;
class TGTextButton;
class TGCheckButton;
class TFile;
class FWTableWidget;
class DataAdderTableManager;
class TGFrame;

class FWGUIEventDataAdder {
  RQ_OBJECT("FWGUIEventDataAdder")

public:
  FWGUIEventDataAdder(UInt_t w, UInt_t, FWEventItemsManager*, TGFrame*, FWJobMetadataManager*);
  virtual ~FWGUIEventDataAdder();

  // ---------- const member functions ---------------------

  // ---------- static member functions --------------------

  // ---------- member functions ---------------------------
  void addNewItem();
  void addNewItemAndClose();
  void show();

  void windowIsClosing();
  void updateFilterString(const char* str);
  void rowClicked(Int_t iRow, Int_t iButton, Int_t iKeyMod, Int_t, Int_t);

  void metadataUpdatedSlot(void);

  void resetNameEntry();

  FWGUIEventDataAdder(const FWGUIEventDataAdder&) = delete;                   // stop default
  const FWGUIEventDataAdder& operator=(const FWGUIEventDataAdder&) = delete;  // stop default

private:
  void createWindow();
  void newIndexSelected(int);

  // ---------- member data --------------------------------
  FWEventItemsManager* m_manager;
  FWJobMetadataManager* m_metadataManager;

  TGFrame* m_parentFrame;
  TGTransientFrame* m_frame;
  TGTextEntry* m_name;
  TGCheckButton* m_doNotUseProcessName;
  TGTextButton* m_apply;
  TGTextButton* m_applyAndClose;
  TGTextEntry* m_search;

  std::string m_purpose;

  std::string m_type;
  std::string m_moduleLabel;
  std::string m_productInstanceLabel;
  std::string m_processName;

  std::string m_expr;  // this the search term for use in searchData()

  DataAdderTableManager* m_tableManager;
  FWTableWidget* m_tableWidget;
};

#endif