//---------------------------------------------------------------------------
//
// Name:        mod_code.h
// Author:      Standart
// Created:     14/04/07 09:40:58
// Description: mod_code class declaration
//
//---------------------------------------------------------------------------

#ifndef __MOD_CODE_h__
#define __MOD_CODE_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
	#include <wx/dialog.h>
#else
	#include <wx/wxprec.h>
#endif

//Do not add custom headers between 
//Header Include Start and Header Include End.
//wxDev-C++ designer will remove them. Add custom headers after the block.
////Header Include Start
#include <wx/msgdlg.h>
#include <wx/stattext.h>
#include <wx/button.h>
#include <wx/textctrl.h>
////Header Include End

////Dialog Style Start
#undef mod_code_STYLE
#define mod_code_STYLE wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxTHICK_FRAME | wxDIALOG_NO_PARENT | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxCLOSE_BOX
////Dialog Style End

class mod_code : public wxDialog
{
	private:
		DECLARE_EVENT_TABLE();
		
	public:
		mod_code(wxWindow *parent, wxWindowID id = 1, const wxString &title = wxT("mod_code"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = mod_code_STYLE);
		virtual ~mod_code();
		wxString code_m,nom_m;
		void WxButton1Click(wxCommandEvent& event);
		void mod_codeActivate(wxActivateEvent& event);
		void WxButton2Click(wxCommandEvent& event);
		void WxButton3Click(wxCommandEvent& event);
		void mod_codeActivateApp(wxActivateEvent& event);
		void mod_codeInitDialog(wxInitDialogEvent& event);
		void WxMemo1Updated(wxCommandEvent& event);
	
	private:
		//Do not add custom control declarations between 
                //GUI Control Declaration Start and GUI Control Declaration End.
		//wxDev-C++ will remove them. Add custom code after the block.
		////GUI Control Declaration Start
		wxMessageDialog *WxMessageDialog1;
		wxTextCtrl *WxEdit1;
		wxStaticText *WxStaticText1;
		wxButton *WxButton2;
		wxButton *WxButton1;
		wxTextCtrl *WxMemo1;
		////GUI Control Declaration End
		
	private:
		//Note: if you receive any error with these enum IDs, then you need to
		//change your old form code that are based on the #define control IDs.
		//#defines may replace a numeric value for the enum names.
		//Try copy and pasting the below block in your old form header files.
		enum
		{
			////GUI Enum Control ID Start
			ID_WXEDIT1 = 1006,
			ID_WXSTATICTEXT1 = 1004,
			ID_WXBUTTON2 = 1003,
			ID_WXBUTTON1 = 1002,
			ID_WXMEMO1 = 1001,
			////GUI Enum Control ID End
			ID_DUMMY_VALUE_ //don't remove this value unless you have other enum values
		};
	
	private:
		void OnClose(wxCloseEvent& event);
		void CreateGUIControls();
};

#endif