#ifndef TMCONFIGUREDATESIMPLE_H
#define TMCONFIGUREDATESIMPLE_H

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

class TGCheckButton;

class TMConfigureDateSimple : public TGTransientFrame {
    
  RQ_OBJECT("TMConfigureDateSimple")

    private :

  const TGWindow        *fSPD;
  TGGroupFrame          *fTop;
  TGButtonGroup         *fFormat;
  TGButtonGroup 	*fMultipleType;
  TGRadioButton         *fRadioMultType[2];
  TGCompositeFrame      *fOfflineS, *fOfflineListS, *fOnlineS, *fBottom;
  TGCompositeFrame      *fOfflineSL, *fOfflineListSL, *fOnlineSL, *fMultTypeFrame;
  TGCompositeFrame      *fRadioFrame[3];
  TGRadioButton         *fRadio[3];
  TGRadioButton         *fRadioFormat[2];
  TGLabel               *fOfflineSLabel, *fOfflineListSLabel, *fOnlineSLabel;
  TGTextEntry		*fTextSOnline, *fTextSOffline, *fTextSOfflineList;
  TGPictureButton	*fButtonFOffline, *fButtonFOfflineList, *fButtonFOnline;
  TGPictureButton       *fBSourceUp, *fBSourceDown;
  TGLayoutHints		*fLayout, *fLayout2, *fLayout3, *fLayout4, *fLayout5, *fLayout6, *fLayout7, *fLayout8, *fLayout9;
  TGTextButton          *fTextB[3];
  Bool_t                fLetUserCloseWindow;
  UInt_t                fLastRadioState;
  void IncrDataSource(Int_t amount);
  void CheckAndEnableText();

  public :

    enum EEvents {
      CONF_OFFLINE,
      CONF_OFFLINELIST,
      CONF_ONLINE,
      CONF_DATEFORMAT,
      CONF_ROOTFORMAT,
      CONF_SOURCEOFFLINE,
      CONF_SOURCEONLINE,
      CONF_MULTTYPE0,
      CONF_MULTTYPE1,
      BUTTON_FETCHOFFLINE,
      BUTTON_FETCHOFFLINELIST,
      BUTTON_FETCHONLINE,
      BUTTON_APPLY,
      BUTTON_CANCEL,
      BUTTON_HELP,
      B_SOURCE_UP,
      B_SOURCE_DOWN
    };
  TMConfigureDateSimple(const TGWindow* p, const TGWindow *main);
  virtual ~TMConfigureDateSimple();
  virtual void CloseWindow();
  virtual void MakeAssignment();
  virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);

  ClassDef(TMConfigureDateSimple, 1);
};

#endif
