// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Iwcomptimeedit.pas' rev: 10.00

#ifndef IwcomptimeeditHPP
#define IwcomptimeeditHPP

#pragma delphiheader begin
#pragma option push
#pragma option -w-      // All warnings off
#pragma option -Vx      // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp>	// Pascal unit
#include <Sysinit.hpp>	// Pascal unit
#include <Iwvclclasses.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Iwbaseinterfaces.hpp>	// Pascal unit
#include <Iwcompedit.hpp>	// Pascal unit
#include <Iwrendercontext.hpp>	// Pascal unit
#include <Iwhtmltag.hpp>	// Pascal unit
#include <Iwcontrol.hpp>	// Pascal unit
#include <Iwbasehtmlcontrol.hpp>	// Pascal unit
#include <Iwbasecontrol.hpp>	// Pascal unit
#include <Iwvclbasecontrol.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Iwcomptimeedit
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TIWTimeDisplayFormat { dfAuto, dfMinutes, dfHours, dfDays, dfWeeks };
#pragma option pop

class DELPHICLASS TIWTimeEdit;
class PASCALIMPLEMENTATION TIWTimeEdit : public Iwcompedit::TIWCustomEdit 
{
	typedef Iwcompedit::TIWCustomEdit inherited;
	
private:
	int FMinutes;
	int FHoursPerDay;
	int FDaysPerWeek;
	TIWTimeDisplayFormat FDisplayFormat;
	AnsiString __fastcall GetWeeks();
	AnsiString __fastcall GetDays();
	AnsiString __fastcall GetHours();
	void __fastcall SetMinutes(const int Value);
	AnsiString __fastcall GetFormattedText();
	
protected:
	virtual void __fastcall InitControl(void);
	virtual void __fastcall SetValue(const AnsiString AValue);
	
public:
	virtual Iwhtmltag::TIWHTMLTag* __fastcall RenderHTML(Iwrendercontext::TIWBaseHTMLComponentContext* AContext);
	__property AnsiString Hours = {read=GetHours};
	__property AnsiString Days = {read=GetDays};
	__property AnsiString Weeks = {read=GetWeeks};
	__property AnsiString Value = {read=GetFormattedText};
	
__published:
	__property int DaysPerWeek = {read=FDaysPerWeek, write=FDaysPerWeek, nodefault};
	__property int HoursPerDay = {read=FHoursPerDay, write=FHoursPerDay, nodefault};
	__property int Minutes = {read=FMinutes, write=SetMinutes, nodefault};
	__property TIWTimeDisplayFormat DisplayFormat = {read=FDisplayFormat, write=FDisplayFormat, nodefault};
public:
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Create */ inline __fastcall virtual TIWTimeEdit(Classes::TComponent* AOwner) : Iwcompedit::TIWCustomEdit(AOwner) { }
	#pragma option pop
	#pragma option push -w-inl
	/* TIWVCLBaseControl.Destroy */ inline __fastcall virtual ~TIWTimeEdit(void) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Iwcomptimeedit */
using namespace Iwcomptimeedit;
#pragma pack(pop)
#pragma option pop

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// Iwcomptimeedit
