#ifndef TMCONFIGUREDATE_H
#define TMCONFIGUREDATE_H

#include <RQ_OBJECT.h>
#include <TGFrame.h>
#include <TGButtonGroup.h>
#include <TGButton.h>
#include <TGTextEntry.h>
#include <TGLabel.h>


class TGCheckButton;

class TMConfigureDate : public TGTransientFrame {
    
  RQ_OBJECT("TMConfigureDate")
	
    private :
    
  const TGWindow        *fSPD;
  TGButtonGroup 	*fF0[2];
  TGButtonGroup 	*fMultiple;
  TGButtonGroup 	*fMultipleType;
  TGCompositeFrame	*fF[11];
  TGCompositeFrame	*fFpart[2]; 
  TGGroupFrame          *fTop;
  TGRadioButton         *fRadio[4];
  TGRadioButton         *fRadioMult[2];
  TGRadioButton         *fRadioMultType[2];
  TGCheckButton		*fCheck[4];
  TGTextEntry		*fText[2];
  TGPictureButton	*fButton, *fButtonInfo;
  TGPictureButton       *fBSourceUp, *fBSourceDown;
  TGLayoutHints		*fLayout, *fLayout2, *fLayout3, *fLayout4, *fLayout5;
  TGLabel		*fLabel;
  TGTextButton          *fTextB[3];
  Bool_t                fLetUserCloseWindow;
  void IncrDataSource(Int_t amount);

  public :
    
    enum EEvents {
      CONF_PHYS,
      CONF_CALIB,
      CONF_ALL,
      CONF_YES,
      CONF_DECLARE,
      CONF_SWAP16,
      CONF_SWAP32,
      CONF_NOWAIT,
      CONF_SOURCE,
      CONF_TEXT0,
      CONF_TEXT1,
      CONF_MULT0,
      CONF_MULT1,
      CONF_MULTTYPE0,
      CONF_MULTTYPE1,
      BUTTON_LOG,
      BUTTON_APPLY,
      BUTTON_CANCEL,
      BUTTON_HELP,
      BUTTON_CONF,
      BUTTON_INFO,
      B_SOURCE_UP,
      B_SOURCE_DOWN
    };
  TMConfigureDate(const TGWindow* p, const TGWindow *main);
  virtual ~TMConfigureDate();
  virtual void CloseWindow();
  virtual void MakeAssignment();
  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
		
  ClassDef(TMConfigureDate, 1); // DATE Parameter Setter Class
};

#endif
