1
///////////////////////////////////////////////////////////////////////////
2
// C++ code generated with wxFormBuilder (version May 4 2010)
3
// http://www.wxformbuilder.org/
5
// PLEASE DO "NOT" EDIT THIS FILE!
6
///////////////////////////////////////////////////////////////////////////
8
#include "wx/ginkgostyle/ginkgostyle.h"
10
#include "progresobase.h"
12
///////////////////////////////////////////////////////////////////////////
14
DialogoTareasBase::DialogoTareasBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
16
this->SetSizeHints( wxSize( 366,177 ), wxDefaultSize );
18
bsizer1 = new wxBoxSizer( wxVERTICAL );
20
m_pPanelTareas = new TitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
21
m_pPanelTareas->SetToolTip( _("Tasks") );
23
m_pSizerTareas = new wxBoxSizer( wxVERTICAL );
25
m_pSinTareas = new wxStaticText( m_pPanelTareas, wxID_ANY, _("There is no running tasks"), wxDefaultPosition, wxDefaultSize, 0 );
26
m_pSinTareas->Wrap( -1 );
27
m_pSizerTareas->Add( m_pSinTareas, 0, wxALL, 5 );
29
m_pPanelTareas->SetSizer( m_pSizerTareas );
30
m_pPanelTareas->Layout();
31
m_pSizerTareas->Fit( m_pPanelTareas );
32
bsizer1->Add( m_pPanelTareas, 1, wxEXPAND, 5 );
34
this->SetSizer( bsizer1 );
38
DialogoTareasBase::~DialogoTareasBase()
42
PanelTareasBase::PanelTareasBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
44
m_pSizerTareas = new wxBoxSizer( wxVERTICAL );
46
m_pSinTareas = new wxStaticText( this, wxID_ANY, _("There is no running tasks"), wxDefaultPosition, wxDefaultSize, 0 );
47
m_pSinTareas->Wrap( -1 );
48
m_pSizerTareas->Add( m_pSinTareas, 0, wxALL, 5 );
50
this->SetSizer( m_pSizerTareas );
52
m_pSizerTareas->Fit( this );
55
PanelTareasBase::~PanelTareasBase()
59
PanelTareaBase::PanelTareaBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
62
bSizer3 = new wxBoxSizer( wxVERTICAL );
64
m_pTareaLabel = new wxStaticText( this, wxID_ANY, _("Breaking the world"), wxDefaultPosition, wxSize( 150,-1 ), 0 );
65
m_pTareaLabel->Wrap( -1 );
66
bSizer3->Add( m_pTareaLabel, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
69
bSizer3->Add( 0, 1, 0, wxEXPAND, 5 );
72
bSizer5 = new wxBoxSizer( wxHORIZONTAL );
74
m_pTareaProgreso = new wxGauge( this, wxID_ANY, 100, wxDefaultPosition, wxSize( -1,20 ), wxGA_HORIZONTAL|wxGA_SMOOTH );
75
bSizer5->Add( m_pTareaProgreso, 1, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND|wxRIGHT|wxLEFT, 5 );
77
m_pTareaCancelar = new wxButton( this, wxID_ANY, _("X"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT|wxNO_BORDER );
78
m_pTareaCancelar->SetToolTip( _("Cancels current task") );
80
bSizer5->Add( m_pTareaCancelar, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
82
bSizer3->Add( bSizer5, 0, wxEXPAND, 5 );
84
this->SetSizer( bSizer3 );
89
m_pTareaCancelar->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelTareaBase::OnTareaCancelarClick ), NULL, this );
92
PanelTareaBase::~PanelTareaBase()
95
m_pTareaCancelar->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelTareaBase::OnTareaCancelarClick ), NULL, this );