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

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

#ifndef IwmainHPP
#define IwmainHPP

#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 <Actnlist.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Comctrls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Clipbrd.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Iwhttpserver.hpp>	// Pascal unit
#include <Iwstandaloneserver.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Shellapi.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Syncobjs.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------
#pragma link "IWMain.obj"

namespace Iwmain
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TFormIWMain;
class PASCALIMPLEMENTATION TFormIWMain : public Forms::TForm 
{
	typedef Forms::TForm inherited;
	
private:
	Comctrls::TToolBar* tbarMain;
	Comctrls::TToolButton* butnExecute;
	Comctrls::TToolButton* butnCopyLink;
	Comctrls::TToolButton* butnResetSession;
	Comctrls::TToolButton* ToolButton4;
	Comctrls::TToolButton* butnDebugLog;
	Comctrls::TToolButton* butnUseSSL;
	Comctrls::TToolButton* ToolButton7;
	Comctrls::TToolButton* butnHelp;
	Comctrls::TPageControl* pctrlMain;
	Comctrls::TTabSheet* tabsServer;
	Stdctrls::TLabel* lablTextDevice;
	Extctrls::TImage* imgDevice;
	Stdctrls::TLabel* lablTextSpeed;
	Extctrls::TImage* imgSpeed;
	Stdctrls::TLabel* lablTextSent;
	Stdctrls::TLabel* lablTextSession;
	Stdctrls::TLabel* lablSessions;
	Stdctrls::TLabel* lablData;
	Stdctrls::TLabel* lablTextParams;
	Stdctrls::TComboBox* cboxSimulator;
	Stdctrls::TComboBox* cboxSpeed;
	Stdctrls::TEdit* editParams;
	Comctrls::TTabSheet* tabsLog;
	Stdctrls::TMemo* memoLog;
	Menus::TMainMenu* menuMain;
	Menus::TMenuItem* File1;
	Menus::TMenuItem* Run1;
	Menus::TMenuItem* N1;
	Menus::TMenuItem* Shutdown1;
	Menus::TMenuItem* Settings1;
	Menus::TMenuItem* View1;
	Menus::TMenuItem* SmallIcons1;
	Menus::TMenuItem* LargeIcons1;
	Menus::TMenuItem* N5;
	Menus::TMenuItem* Debug1;
	Menus::TMenuItem* UseSSL1;
	Menus::TMenuItem* N4;
	Menus::TMenuItem* RunMinimized1;
	Menus::TMenuItem* RuninTrayicon1;
	Menus::TMenuItem* N3;
	Menus::TMenuItem* Browser1;
	Menus::TMenuItem* Default1;
	Menus::TMenuItem* N7;
	Menus::TMenuItem* InternetExplorer1;
	Menus::TMenuItem* FireFox1;
	Menus::TMenuItem* Opera1;
	Menus::TMenuItem* Mozilla1;
	Menus::TMenuItem* Netscape1;
	Menus::TMenuItem* ools1;
	Menus::TMenuItem* CopyStartURL1;
	Menus::TMenuItem* N2;
	Menus::TMenuItem* ResetSessions1;
	Menus::TMenuItem* ResetSentdata1;
	Controls::TImageList* ilstLarge;
	Actnlist::TActionList* alstMain;
	Actnlist::TAction* actnExecute;
	Actnlist::TAction* actnCopyLink;
	Actnlist::TAction* actnResetSessions;
	Actnlist::TAction* actnShutdown;
	Actnlist::TAction* actnResetBytes;
	Actnlist::TAction* actnDebug;
	Actnlist::TAction* actnRunMinimized;
	Actnlist::TAction* actnRunTray;
	Actnlist::TAction* actnBrowserDefault;
	Actnlist::TAction* actnUseSSL;
	Actnlist::TAction* actnSmallIcons;
	Actnlist::TAction* actnLargeIcons;
	Actnlist::TAction* actnIE;
	Actnlist::TAction* actnFireFox;
	Actnlist::TAction* actnOpera;
	Actnlist::TAction* actnMozilla;
	Actnlist::TAction* actnNetscape;
	Controls::TImageList* ilstSmall;
	Menus::TPopupMenu* popupMain;
	Menus::TMenuItem* PopupTitle;
	Menus::TMenuItem* N6;
	Menus::TMenuItem* Restore1;
	Menus::TMenuItem* Shutdown2;
	Iwstandaloneserver::TIWStandAloneServer* FStandaloneServer;
	void __fastcall InitForm(void);
	void __fastcall actnSmallIconsExecute(System::TObject* Sender);
	void __fastcall actnLargeIconsExecute(System::TObject* Sender);
	void __fastcall cboxSimulatorChange(System::TObject* Sender);
	void __fastcall cboxSpeedChange(System::TObject* Sender);
	void __fastcall alstMainUpdate(Classes::TBasicAction* Action, bool &Handled);
	void __fastcall actnBrowserDefaultExecute(System::TObject* Sender);
	void __fastcall actnShutdownExecute(System::TObject* Sender);
	void __fastcall actnDebugExecute(System::TObject* Sender);
	void __fastcall actnRunMinimizedExecute(System::TObject* Sender);
	void __fastcall actnCopyLinkExecute(System::TObject* Sender);
	void __fastcall actnResetSessionsExecute(System::TObject* Sender);
	void __fastcall actnResetBytesExecute(System::TObject* Sender);
	void __fastcall actnUseSSLExecute(System::TObject* Sender);
	void __fastcall menuAboutClick(System::TObject* Sender);
	void __fastcall Restore1Click(System::TObject* Sender);
	void __fastcall actnIEExecute(System::TObject* Sender);
	void __fastcall actnFireFoxExecute(System::TObject* Sender);
	void __fastcall actnOperaExecute(System::TObject* Sender);
	void __fastcall actnMozillaExecute(System::TObject* Sender);
	void __fastcall actnNetscapeExecute(System::TObject* Sender);
	void __fastcall MinimizeApp(System::TObject* Sender);
	void __fastcall FormClose(System::TObject* Sender, Forms::TCloseAction &Action);
	void __fastcall OnDebugLog(System::TObject* ASender, AnsiString ALog);
	void __fastcall OnDebugLogBytes(System::TObject* ASender, int ABytes);
	void __fastcall OnUpdateTotalBytes(System::TObject* ASender, const int ABytes);
	void __fastcall SetConnectionSpeed(int AValue);
	void __fastcall SetTotalBytes(void);
	void __fastcall UpdateBrowserSelectionAction(void);
	void __fastcall DoOnCustomSpeedChange(System::TObject* Sender);
	void __fastcall actnExecuteOnExecute(System::TObject* Sender);
	void __fastcall actnRunTrayExecute(System::TObject* Sender);
	void __fastcall DoCreateSession(System::TObject* Sender);
	void __fastcall DoDestroySession(System::TObject* Sender);
	void __fastcall editParamsChange(System::TObject* Sender);
	void __fastcall AboutOnClick(System::TObject* Sender);
	
protected:
	Stdctrls::TEdit* FCustomSpeedEdit;
	Stdctrls::TLabel* FCustomSpeedLabel;
	int FBitsPerSec;
	int FSessionCount;
	void __fastcall OnFirstShow(System::TObject* Sender);
	
public:
	_NOTIFYICONDATAA FIconData;
	bool __fastcall MessageHook(Messages::TMessage &Msg);
	__fastcall virtual TFormIWMain(Classes::TComponent* AOwner);
	__fastcall virtual ~TFormIWMain(void);
	void __fastcall Log(const AnsiString AMsg);
	void __fastcall LogBytes(const int ABytes);
	void __fastcall CreateTrayIcon(void);
	void __fastcall FreeTrayIcon(void);
public:
	#pragma option push -w-inl
	/* TCustomForm.CreateNew */ inline __fastcall virtual TFormIWMain(Classes::TComponent* AOwner, int Dummy) : Forms::TForm(AOwner, Dummy) { }
	#pragma option pop
	
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TFormIWMain(HWND ParentWindow) : Forms::TForm(ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------
extern PACKAGE TFormIWMain* FormIWMain;

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

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