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

#ifndef Warning_FormH
#define Warning_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "Environment.h"
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
typedef enum {EFAS_HIDE, EFAS_ON_SHOW, EFAS_SHOW, EFAS_ON_HIDE} EFormAnimateState;
//---------------------------------------------------------------------------
class TWarningForm : public TTntForm
{
__published:	// IDE-managed Components
	TTntPanel *Panel1;
	TTntMemo *WarningMemo;
	TTimer *CheckTimer;
	void __fastcall CheckTimerTimer(TObject *Sender);
	void __fastcall WarningMemoClick(TObject *Sender);
	void __fastcall FormDeactivate(TObject *Sender);
private:	// User declarations
	int CheckTimerInterval;
    EFormAnimateState FormAnimateState;
    TMachineWarningState OldMachineWarningState, AlarmMachineWarningState;

    void __fastcall CheckWarningEvent(void);
public:		// User declarations
	__fastcall TWarningForm(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TWarningForm *WarningForm;
//---------------------------------------------------------------------------
#endif

