//---------------------------------------------------------------------------
#ifndef TPropiedadesH
#define TPropiedadesH
#include <Buttons.hpp>
#include <Classes.hpp>
#include <ComCtrls.hpp>
#include <Controls.hpp>
#include <ExtCtrls.hpp>
#include <StdCtrls.hpp>
#include "DigitNum.h"
#include "LM2000.h"
#include "LEGO_COMM.h"
#include <Db.hpp>
#include <Mask.hpp>
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
class TPropiedades : public TForm
{
__published:	// IDE-managed Components
    TSpeedButton *BorrarHistorial;
    TPageControl *PageControl1;
    TTabSheet *TabSheet1;
    TTabSheet *TabSheet2;
    TTabSheet *TabSheet3;
    TStatusBar *StatusBar1;
    TBevel *Bevel4;
        TDigitNum *Ocupacion;
    TMemo *mHistorial;
    TCheckBox *Historial;
    TButton *bAceptar;
    TButton *bCancelar;
    TButton *bAplicar;
        TLabel *Label1;
/*
        TPageControl *PageControl2;
        TTabSheet *TabSheet4;
        TTabSheet *TabSheet5;
*/        

        TLabel *Label2;
        TComboBox *ComboBox1;
        TEdit *DireccionesE;
        TEdit *DireccionesS;
        TEdit *MsgCapacidad;
        TEdit *Capacidad;
        TLabel *Label3;
//        TLabel *Label5;
//        TComboBox *ComboBox2;
        TEdit *DB_host;
        TEdit *DB_login;
        TEdit *DB_pwd;
        TLabel *Label4;
        TButton *bDesBlock;
//        TCheckBox *CheckBox1;
/*        
        TCheckBox *verL;
        TCheckBox *verM;
        TCheckBox *verX;
        TCheckBox *verJ;
        TCheckBox *verV;
        TCheckBox *verS;
        TCheckBox *verD;
        TBevel *Bevel3;
        TBevel *Bevel5;
        TMaskEdit *desdeL;
        TMaskEdit *desdeM;
        TMaskEdit *desdeX;
        TMaskEdit *desdeS;
        TMaskEdit *desdeD;
        TMaskEdit *hastaL;
        TMaskEdit *hastaM;
        TMaskEdit *hastaX;
        TMaskEdit *hastaS;
        TMaskEdit *hastaD;
        TMaskEdit *desdeJ;
        TMaskEdit *hastaJ;
        TMaskEdit *desdeV;
        TMaskEdit *hastaV;
        TTimer *Timer1;
*/

    void __fastcall BorrarHistorialClick(TObject *Sender);
    void __fastcall FormDestroy(TObject *Sender);
    void __fastcall mHistorialChange(TObject *Sender);
        void __fastcall ActivarAplicar(TObject *Sender);
        void __fastcall bDesBlockClick(TObject *Sender);
        void __fastcall bAplicarClick(TObject *Sender);
//        void __fastcall Timer1Timer(TObject *Sender);
        void __fastcall Label1DblClick(TObject *Sender);
private:	// User declarations
        void __fastcall ObtenDirLEGOS(AnsiString cadena, int &nLEGOS, int **ID);
        void __fastcall StartEventRecorder(AnsiString opLOG);
public:		// User declarations
        bool __fastcall CheckHorario(void);
        bool __fastcall entreHora(AnsiString hLo, AnsiString hHi);
        CheckLEGOs *LEGO_COMM;
        int nLEGOSe, nLEGOSs;
        int *IDe, *IDs;
    __fastcall TPropiedades(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TPropiedades *Propiedades;
//---------------------------------------------------------------------------
#endif
