/* $Id: cameracontrol.h 2154 2010-09-01 00:21:33Z ryan $ */

/*
	Skyscraper 1.8 Alpha - Camera Control Form
	Copyright (C)2004-2010 Ryan Thoryk
	http://www.skyscrapersim.com
	http://sourceforge.net/projects/skyscraper
	Contact - ryan@tliquest.net

	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation; either version 2
	of the License, or (at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

#ifndef CAMERACONTROL_H
#define CAMERACONTROL_H

//(*Headers(CameraControl)
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/checkbox.h>
#include <wx/statline.h>
#include <wx/radiobut.h>
#include <wx/button.h>
#include <wx/dialog.h>
//*)

class CameraControl: public wxDialog
{
	public:

		CameraControl(wxWindow* parent,wxWindowID id = -1);
		virtual ~CameraControl();

		//(*Identifiers(CameraControl)
		static const long ID_STATICTEXT3;
		static const long ID_txtDirectionFront;
		static const long ID_STATICTEXT15;
		static const long ID_txtDirectionTop;
		static const long ID_STATICTEXT4;
		static const long ID_txtCurrentFloor;
		static const long ID_STATICTEXT5;
		static const long ID_txtLastMesh;
		static const long ID_STATICTEXT6;
		static const long ID_txtDesiredVel;
		static const long ID_STATICTEXT7;
		static const long ID_txtVelocity;
		static const long ID_STATICTEXT8;
		static const long ID_txtDesiredAngle;
		static const long ID_STATICTEXT9;
		static const long ID_txtAngle;
		static const long ID_STATICTEXT10;
		static const long ID_txtSpeed;
		static const long ID_STATICTEXT11;
		static const long ID_txtMouseDown;
		static const long ID_STATICTEXT12;
		static const long ID_txtStartFloor;
		static const long ID_STATICTEXT13;
		static const long ID_txtStartPosition;
		static const long ID_STATICTEXT29;
		static const long ID_txtFOV;
		static const long ID_STATICTEXT14;
		static const long ID_txtGravity;
		static const long ID_bGravity;
		static const long ID_lblGravityEnabled;
		static const long ID_txtGravityEnabled;
		static const long ID_bGravityEnabled;
		static const long ID_STATICTEXT17;
		static const long ID_txtCollisions;
		static const long ID_bCollisions;
		static const long ID_STATICTEXT18;
		static const long ID_txtReportCollisions;
		static const long ID_bReportCollisions;
		static const long ID_STATICTEXT19;
		static const long ID_txtFreelook;
		static const long ID_bFreelook;
		static const long ID_STATICTEXT20;
		static const long ID_txtFreelookSpeed;
		static const long ID_bFreelookSpeed;
		static const long ID_STATICTEXT1;
		static const long ID_STATICTEXT2;
		static const long ID_lblPosition;
		static const long ID_lblRotation;
		static const long ID_STATICLINE2;
		static const long ID_rPosition;
		static const long ID_rRotation;
		static const long ID_STATICTEXT28;
		static const long ID_txtMoveSpeed;
		static const long ID_bZPlus;
		static const long ID_bYPlus;
		static const long ID_bXNeg;
		static const long ID_chkHold;
		static const long ID_bXPlus;
		static const long ID_bZNeg;
		static const long ID_bYNeg;
		static const long ID_bStartPosition;
		static const long ID_bStartRotation;
		static const long ID_bStartDirection;
		static const long ID_STATICTEXT16;
		static const long ID_STATICTEXT21;
		static const long ID_txtPositionX;
		static const long ID_bPositionX;
		static const long ID_STATICTEXT22;
		static const long ID_txtPositionY;
		static const long ID_bPositionY;
		static const long ID_STATICTEXT23;
		static const long ID_txtPositionZ;
		static const long ID_bPositionZ;
		static const long ID_STATICLINE1;
		static const long ID_STATICTEXT27;
		static const long ID_STATICTEXT24;
		static const long ID_txtRotationX;
		static const long ID_bRotationX;
		static const long ID_STATICTEXT25;
		static const long ID_txtRotationY;
		static const long ID_bRotationY;
		static const long ID_STATICTEXT26;
		static const long ID_txtRotationZ;
		static const long ID_bRotationZ;
		static const long ID_STATICLINE3;
		static const long ID_STATICTEXT30;
		static const long ID_txtSetFOV;
		static const long ID_bSetFOV;
		static const long ID_bResetFOV;
		//*)
		void Loop();

	protected:

		//(*Handlers(CameraControl)
		void OnInit(wxInitDialogEvent& event);
		void On_rPosition_Select(wxCommandEvent& event);
		void On_rRotation_Select(wxCommandEvent& event);
		void On_bZPlus_Click(wxCommandEvent& event);
		void On_bYPlus_Click(wxCommandEvent& event);
		void On_bXNeg_Click(wxCommandEvent& event);
		void On_bXPlus_Click(wxCommandEvent& event);
		void On_bZNeg_Click(wxCommandEvent& event);
		void On_bYNeg_Click(wxCommandEvent& event);
		void On_bStartPosition_Click(wxCommandEvent& event);
		void On_bStartRotation_Click(wxCommandEvent& event);
		void On_bStartDirection_Click(wxCommandEvent& event);
		void On_bGravity_Click(wxCommandEvent& event);
		void On_bGravityEnabled_Click(wxCommandEvent& event);
		void On_bCollisions_Click(wxCommandEvent& event);
		void On_bReportCollisions_Click(wxCommandEvent& event);
		void On_bFreelook_Click(wxCommandEvent& event);
		void On_bFreelookSpeed_Click(wxCommandEvent& event);
		void On_bPositionX_Click(wxCommandEvent& event);
		void On_bPositionY_Click(wxCommandEvent& event);
		void On_bPositionZ_Click(wxCommandEvent& event);
		void On_bRotationX_Click(wxCommandEvent& event);
		void On_bRotationY_Click(wxCommandEvent& event);
		void On_bRotationZ_Click(wxCommandEvent& event);
		void On_chkHold_Click(wxCommandEvent& event);
		void On_bSetFOV_Click(wxCommandEvent& event);
		void On_bResetFOV_Click(wxCommandEvent& event);
		//*)
		void OnInit();

		//(*Declarations(CameraControl)
		wxStaticText* StaticText10;
		wxTextCtrl* txtRotationZ;
		wxStaticText* StaticText22;
		wxStaticText* StaticText9;
		wxStaticText* StaticText20;
		wxTextCtrl* txtStartFloor;
		wxButton* bResetFOV;
		wxButton* bYNeg;
		wxTextCtrl* txtAngle;
		wxStaticText* StaticText29;
		wxTextCtrl* txtFreelookSpeed;
		wxStaticText* StaticText13;
		wxStaticText* StaticText2;
		wxTextCtrl* txtGravityEnabled;
		wxTextCtrl* txtDesiredVel;
		wxTextCtrl* txtGravity;
		wxStaticText* StaticText30;
		wxStaticText* StaticText14;
		wxTextCtrl* txtReportCollisions;
		wxRadioButton* rRotation;
		wxButton* bXPlus;
		wxStaticText* StaticText26;
		wxTextCtrl* txtFOV;
		wxStaticText* StaticText6;
		wxTextCtrl* txtCollisions;
		wxButton* bReportCollisions;
		wxButton* bYPlus;
		wxButton* bFreelook;
		wxStaticText* StaticText19;
		wxTextCtrl* txtDirectionFront;
		wxTextCtrl* txtRotationY;
		wxStaticText* lblRotation;
		wxStaticText* StaticText8;
		wxStaticText* StaticText11;
		wxStaticText* StaticText18;
		wxButton* bPositionY;
		wxButton* bStartRotation;
		wxStaticText* StaticText1;
		wxStaticText* StaticText27;
		wxButton* bStartDirection;
		wxStaticText* StaticText3;
		wxButton* bXNeg;
		wxButton* bPositionX;
		wxTextCtrl* txtPositionX;
		wxTextCtrl* txtVelocity;
		wxButton* bRotationX;
		wxButton* bZPlus;
		wxStaticText* StaticText21;
		wxStaticLine* StaticLine2;
		wxStaticText* StaticText23;
		wxTextCtrl* txtStartPosition;
		wxStaticText* StaticText24;
		wxButton* bRotationY;
		wxTextCtrl* txtPositionY;
		wxStaticText* lblPosition;
		wxButton* bSetFOV;
		wxButton* bCollisions;
		wxStaticText* StaticText5;
		wxStaticText* StaticText7;
		wxTextCtrl* txtPositionZ;
		wxStaticText* lblGravityEnabled;
		wxButton* bFreelookSpeed;
		wxStaticLine* StaticLine3;
		wxStaticLine* StaticLine1;
		wxButton* bPositionZ;
		wxButton* bGravity;
		wxStaticText* StaticText28;
		wxButton* bRotationZ;
		wxStaticText* StaticText15;
		wxStaticText* StaticText12;
		wxTextCtrl* txtMoveSpeed;
		wxTextCtrl* txtRotationX;
		wxCheckBox* chkHold;
		wxTextCtrl* txtSetFOV;
		wxStaticText* StaticText25;
		wxButton* bZNeg;
		wxButton* bStartPosition;
		wxButton* bGravityEnabled;
		wxStaticText* StaticText17;
		wxStaticText* StaticText4;
		wxTextCtrl* txtDirectionTop;
		wxRadioButton* rPosition;
		wxTextCtrl* txtFreelook;
		wxTextCtrl* txtLastMesh;
		wxTextCtrl* txtDesiredAngle;
		wxTextCtrl* txtCurrentFloor;
		wxStaticText* StaticText16;
		wxTextCtrl* txtMouseDown;
		wxTextCtrl* txtSpeed;
		//*)
		csVector3 hold_vector;

	private:

		DECLARE_EVENT_TABLE()
};

#endif
