/////////////////////////////////////////////////////////////////////////////
// Name:        TiPerformanceDialog.cpp
// Purpose:     
// Author:      Vince Harron
// Modified by: 
// Created:     10/18/05 15:36:04
// RCS-ID:      
// Copyright:   2005 Sony Online Entertainment
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#if defined(__GNUG__) && !defined(__APPLE__)
#pragma implementation "TiPerformanceDialog.h"
#endif

// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif

#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif

////@begin includes
////@end includes

#include "TiPerformanceDialog.h"

////@begin XPM images

////@end XPM images

/*!
 * PerformanceDialog type definition
 */

IMPLEMENT_DYNAMIC_CLASS( PerformanceDialog, wxDialog )

/*!
 * PerformanceDialog event table definition
 */

BEGIN_EVENT_TABLE( PerformanceDialog, wxDialog )

////@begin PerformanceDialog event table entries
////@end PerformanceDialog event table entries

END_EVENT_TABLE()

/*!
 * PerformanceDialog constructors
 */

PerformanceDialog::PerformanceDialog( )
{
}

PerformanceDialog::PerformanceDialog( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
    Create(parent, id, caption, pos, size, style);
}

/*!
 * PerformanceDialog creator
 */

bool PerformanceDialog::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
{
////@begin PerformanceDialog member initialisation
    mpOutput = NULL;
////@end PerformanceDialog member initialisation

////@begin PerformanceDialog creation
    SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
    wxDialog::Create( parent, id, caption, pos, size, style );

    CreateControls();
    Centre();
////@end PerformanceDialog creation
    return true;
}

/*!
 * Control creation for PerformanceDialog
 */

void PerformanceDialog::CreateControls()
{    
////@begin PerformanceDialog content construction
    PerformanceDialog* itemDialog1 = this;

    wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxVERTICAL);
    itemDialog1->SetSizer(itemBoxSizer2);

    mpOutput = new wxTextCtrl( itemDialog1, ID_OUTPUTTEXT, _T(""), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
    itemBoxSizer2->Add(mpOutput, 1, wxGROW|wxALL, 5);

////@end PerformanceDialog content construction
}

/*!
 * Should we show tooltips?
 */

bool PerformanceDialog::ShowToolTips()
{
    return true;
}

/*!
 * Get bitmap resources
 */

wxBitmap PerformanceDialog::GetBitmapResource( const wxString& name )
{
    // Bitmap retrieval
////@begin PerformanceDialog bitmap retrieval
    wxUnusedVar(name);
    return wxNullBitmap;
////@end PerformanceDialog bitmap retrieval
}

/*!
 * Get icon resources
 */

wxIcon PerformanceDialog::GetIconResource( const wxString& name )
{
    // Icon retrieval
////@begin PerformanceDialog icon retrieval
    wxUnusedVar(name);
    return wxNullIcon;
////@end PerformanceDialog icon retrieval
}
