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

#ifndef Alarm_FormH
#define Alarm_FormH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include "TntExtCtrls.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
class TAlarmForm : public TTntForm
{
__published:	// IDE-managed Components
	TTntPanel *Panel1;
	TTntStaticText *AlarmStaticText1;
	TTntStaticText *AlarmStaticText2;
	TTntStaticText *AlarmStaticText3;
	TTntStaticText *AlarmStaticText4;
	TTntStaticText *AlarmStaticText5;
	TTntStaticText *StaticText1;
	TTntPanel *WarningPanel;
	TTntStaticText *WarningStaticText1;
	TTntStaticText *WarningStaticText2;
	TTntStaticText *WarningStaticText3;
	TTntStaticText *WarningStaticText4;
	TTntStaticText *WarningStaticText5;
	TTntStaticText *StaticText7;
	TTntPanel *AlarmPanel;
	TTimer *CheckTimer;
	TTntButton *SoftResetButton;
	TTntPanel *Panel2;
	TTntButton *AlarmResetButton;
	TTntButton *OkButton;
	TTntPanel *HiddenPanel;
	TTntButton *BuzzerOffButton;
    TTntButton *WarningOff;
  TTntStaticText *AlarmStaticText6;
  TTntStaticText *WarningStaticText6;
  TTntStaticText *AlarmStaticText7;
  TTntStaticText *WarningStaticText7;
	void __fastcall FormActivate(TObject *Sender);
	void __fastcall FormClick(TObject *Sender);
	void __fastcall FormDestroy(TObject *Sender);
	void __fastcall FormHide(TObject *Sender);
	void __fastcall AlarmResetButtonClick(TObject *Sender);
	void __fastcall OkButtonClick(TObject *Sender);
	void __fastcall HiddenPanelDblClick(TObject *Sender);
	void __fastcall BuzzerOffButtonClick(TObject *Sender);
    void __fastcall WarningOffClick(TObject *Sender);
  void __fastcall SoftResetButtonClick(TObject *Sender);
  void __fastcall CheckTimerTimer(TObject *Sender);
private:	// User declarations
	TTntStringList *AlarmStringList, *WarningStringList;
    unsigned int LastHideTime;
  void __fastcall GetDefaultString();

    void __fastcall RefreshAlarm(void);
public:		// User declarations
    bool SleepMode;
    bool SpbDisconnect;
    bool WarningSleep;

    bool LaserPrinterAlarm;
    bool LaserPrinterEMRAlarm;

    WideString unInsReason;

	__fastcall TAlarmForm(TComponent* Owner);
    void __fastcall ShowAlarm(void);
};
//---------------------------------------------------------------------------
extern PACKAGE TAlarmForm *AlarmForm;
extern int alarm_reset_button_on;
//---------------------------------------------------------------------------
#endif
