//---------------------------------------------------------------------------

#ifndef UserAuthoritySetting_FormH
#define UserAuthoritySetting_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include "TntGrids.hpp"
#include <Forms.hpp>
#include "Environment.h"
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
//---------------------------------------------------------------------------
class TUserAuthoritySettingForm : public TForm
{
__published:	// IDE-managed Components
  TPanel *Panel1;
  TButton *OKBtn;
  TButton *CancelBtn;
  TStringGrid *UserIDStringGrid;
        TTntRadioGroup *AuthorityListRadioBox;
  void __fastcall OKBtnClick(TObject *Sender);
  void __fastcall CancelBtnClick(TObject *Sender);
  void __fastcall FormDestroy(TObject *Sender);
  void __fastcall FormActivate(TObject *Sender);
  void __fastcall UserIDStringGridSelectCell(TObject *Sender, int ACol,
          int ARow, bool &CanSelect);
        void __fastcall AuthorityListRadioBoxClick(TObject *Sender);
private:	// User declarations
  void __fastcall SetIDList(bool init);

  TStringList *userIDList;
  TStringList *accessLevelList;
  int activeUserNum;

public:		// User declarations
  __fastcall TUserAuthoritySettingForm(TComponent* Owner);

  TProgramAccessAuthorityData tempProgramAccessAuthorityData;
};
//---------------------------------------------------------------------------
extern PACKAGE TUserAuthoritySettingForm *UserAuthoritySettingForm;
//---------------------------------------------------------------------------
#endif
