/////////////////////////////////////////////////////////////////////////////
// Name:        logdlg.h
// Purpose:     wxPackageLogDlg definition
// Author:      Francesco Montorsi
// Modified by:
// Created:     18/07/2006 23:08:19
// RCS-ID:      $Id: logdlg.h,v 1.2 2007/01/01 20:06:20 frm Exp $
// Copyright:   (c) 2006 Francesco Montorsi
// Licence:     wxWidgets license
/////////////////////////////////////////////////////////////////////////////

#ifndef _PMLOGDIALOG_H_
#define _PMLOGDIALOG_H_


/*!
 * Includes
 */


/*!
 * Control identifiers
 */

////@begin control identifiers
#define SYMBOL_WXPACKAGELOGDLG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
#define SYMBOL_WXPACKAGELOGDLG_TITLE _("Log")
#define SYMBOL_WXPACKAGELOGDLG_IDNAME wxID_ANY
#define SYMBOL_WXPACKAGELOGDLG_SIZE wxSize(400, 300)
#define SYMBOL_WXPACKAGELOGDLG_POSITION wxDefaultPosition
#define ID_LOG_TEXT 10047
////@end control identifiers



// ----------------------------------------------------------------------------
// wxPackageLogDlg
// ----------------------------------------------------------------------------

class wxPackageLogDlg : public wxDialog
{
    DECLARE_DYNAMIC_CLASS( wxPackageLogDlg )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    wxPackageLogDlg( );
    wxPackageLogDlg( wxWindow* parent, wxWindowID id = SYMBOL_WXPACKAGELOGDLG_IDNAME, const wxString& caption = SYMBOL_WXPACKAGELOGDLG_TITLE, const wxPoint& pos = SYMBOL_WXPACKAGELOGDLG_POSITION, const wxSize& size = SYMBOL_WXPACKAGELOGDLG_SIZE, long style = SYMBOL_WXPACKAGELOGDLG_STYLE );

    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WXPACKAGELOGDLG_IDNAME, const wxString& caption = SYMBOL_WXPACKAGELOGDLG_TITLE, const wxPoint& pos = SYMBOL_WXPACKAGELOGDLG_POSITION, const wxSize& size = SYMBOL_WXPACKAGELOGDLG_SIZE, long style = SYMBOL_WXPACKAGELOGDLG_STYLE );

    /// Creates the controls and sizers
    void CreateControls();

    /// Should we show tooltips?
    static bool ShowToolTips();

public:

    void SetLog(const wxString &log)
        { m_pLog->SetValue(log); }
    void SetLabel(const wxString &label)
        { m_pLabel->SetLabel(label); }

protected:
    wxStaticText* m_pLabel;
    wxTextCtrl* m_pLog;
};

#endif
    // _PMLOGDIALOG_H_
