///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version May  4 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "wx/ginkgostyle/ginkgostyle.h"

#include "taskcontrolbase.h"

///////////////////////////////////////////////////////////////////////////
using namespace GNC::GUI;

TaskControlBase::TaskControlBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxSize( 600,250 ), wxDefaultSize );
	
	wxBoxSizer* bSizer5;
	bSizer5 = new wxBoxSizer( wxVERTICAL );
	
	m_treeListCtrlTasks = new wxTreeListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_FULL_ROW_HIGHLIGHT|wxTR_HIDE_ROOT|wxTR_NO_LINES|wxTR_ROW_LINES|wxTR_SINGLE );
	m_treeListCtrlTasks->AddColumn( _("Date"), 100, wxALIGN_LEFT, -1, true, false ); 
	m_treeListCtrlTasks->AddColumn( _("Description"), 100, wxALIGN_LEFT, -1, true, false ); 
	m_treeListCtrlTasks->AddColumn( _("Status"), 100, wxALIGN_LEFT, -1, true, false ); 
	m_treeListCtrlTasks->AddColumn( _("Error message"), 247, wxALIGN_LEFT, -1, true, false ); 
	m_treeListCtrlTasks->AddColumn( _("ID"), 0, wxALIGN_LEFT, -1, false, false ); 
	
	bSizer5->Add( m_treeListCtrlTasks, 1, wxEXPAND | wxALL, 0 );
	
	m_panel2 = new FooterPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer8;
	bSizer8 = new wxBoxSizer( wxHORIZONTAL );
	
	
	bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
	
	m_button4 = new wxButton( m_panel2, wxID_ANY, _("Refresh"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer8->Add( m_button4, 0, wxRIGHT, 5 );
	
	m_button5 = new wxButton( m_panel2, wxID_OK, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
	m_button5->SetDefault(); 
	bSizer8->Add( m_button5, 0, 0, 5 );
	
	m_panel2->SetSizer( bSizer8 );
	m_panel2->Layout();
	bSizer8->Fit( m_panel2 );
	bSizer5->Add( m_panel2, 0, wxEXPAND, 5 );
	
	this->SetSizer( bSizer5 );
	this->Layout();
	
	this->Centre( wxBOTH );
	
	// Connect Events
	m_button4->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TaskControlBase::OnRefreshClick ), NULL, this );
}

TaskControlBase::~TaskControlBase()
{
	// Disconnect Events
	m_button4->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( TaskControlBase::OnRefreshClick ), NULL, this );
	
}
