/////////////////////////////////////////////////////////////////////////////
// Name:        dbcard.h (generated and maintained by wxWorkshop's RAD)
// Purpose:     
// Author:      
// Modified by:
// Created:     02/18/01 10:36:22
// RCS-ID:      $ Id$
// Copyright:   (c) 
// Licence:   	
/////////////////////////////////////////////////////////////////////////////

#ifndef __DBCARD_G__
#define __DBCARD_G__

#include "wx/wx.h"
#include "wx/wspp/all.h"

// %%INFO-{
// { TEMPL = "wxCardCtrl for C++ (requires WSPP)" WND_RES = "DbCard" MENU_RES = "" IMP_FILE = "dbcard.cpp" DECL_FILE = "dbcard.h" CLASS = "DbCard" RES_FILE = "demo.xrc" }
// %%INFO-}

class DbCard : public wxCardCtrl
{
public:
	DbCard();
	~DbCard();

	// %%EVT_DECLS-{
	void OnButtonRun( wxCommandEvent& event );
	void OnButtonClear( wxCommandEvent& event );
	void OnButtonBack( wxCommandEvent& event );
	void OnInitDialog( wxInitDialogEvent& event );
	void OnButtonResults( wxCommandEvent& event );
	// %%EVT_DECLS-}	

	// %%GETTER_DECLS-{
	// %%GETTER_DECLS-}

	// %%SETTER_DECLS-{
	// %%SETTER_DECLS-}
	
	DECLARE_EVENT_TABLE()
	DECLARE_DYNAMIC_CLASS( DbCard )	

protected:
	void ExchangeValues( bool toControls );
	void DoInit();	

protected:
	// %%MEMBER_DECLS-{
	wxString m_Dsn; // { "dsn" wxString m_Dsn "" }
	wxString m_User; // { "user" wxString m_User "" }
	wxString m_Password; // { "password" wxString m_Password "" }
	wxString m_Query; // { "query" wxString m_Query "" }
	wxString m_Sortcol; // { "sortcol" wxString m_Sortcol "" }
	bool m_Descending; // { "descending" bool m_Descending "FALSE" }
	// %%MEMBER_DECLS-}

	// %%CTL_MEMBER_DECLS-{
	wxTextCtrl* m_pDsn; // { dsn m_pDsn }
	wxTextCtrl* m_pUser; // { user m_pUser }
	wxTextCtrl* m_pPassword; // { password m_pPassword }
	wxTextCtrl* m_pQuery; // { query m_pQuery }
	wxTextCtrl* m_pSortcol; // { sortcol m_pSortcol }
	wxCheckBox* m_pDescending; // { descending m_pDescending }
	wxDbListCtrl* m_pDblist; // { dblist m_pDblist }
	// %%CTL_MEMBER_DECLS-}
};

#endif // __DBCARD_G__
