~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/gui/progress/progresobase.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
ImportĀ upstreamĀ versionĀ 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////
 
2
// C++ code generated with wxFormBuilder (version May  4 2010)
 
3
// http://www.wxformbuilder.org/
 
4
//
 
5
// PLEASE DO "NOT" EDIT THIS FILE!
 
6
///////////////////////////////////////////////////////////////////////////
 
7
 
 
8
#include "wx/ginkgostyle/ginkgostyle.h"
 
9
 
 
10
#include "progresobase.h"
 
11
 
 
12
///////////////////////////////////////////////////////////////////////////
 
13
 
 
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 )
 
15
{
 
16
        this->SetSizeHints( wxSize( 366,177 ), wxDefaultSize );
 
17
        
 
18
        bsizer1 = new wxBoxSizer( wxVERTICAL );
 
19
        
 
20
        m_pPanelTareas = new TitledPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
21
        m_pPanelTareas->SetToolTip( _("Tasks") );
 
22
        
 
23
        m_pSizerTareas = new wxBoxSizer( wxVERTICAL );
 
24
        
 
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 );
 
28
        
 
29
        m_pPanelTareas->SetSizer( m_pSizerTareas );
 
30
        m_pPanelTareas->Layout();
 
31
        m_pSizerTareas->Fit( m_pPanelTareas );
 
32
        bsizer1->Add( m_pPanelTareas, 1, wxEXPAND, 5 );
 
33
        
 
34
        this->SetSizer( bsizer1 );
 
35
        this->Layout();
 
36
}
 
37
 
 
38
DialogoTareasBase::~DialogoTareasBase()
 
39
{
 
40
}
 
41
 
 
42
PanelTareasBase::PanelTareasBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
 
43
{
 
44
        m_pSizerTareas = new wxBoxSizer( wxVERTICAL );
 
45
        
 
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 );
 
49
        
 
50
        this->SetSizer( m_pSizerTareas );
 
51
        this->Layout();
 
52
        m_pSizerTareas->Fit( this );
 
53
}
 
54
 
 
55
PanelTareasBase::~PanelTareasBase()
 
56
{
 
57
}
 
58
 
 
59
PanelTareaBase::PanelTareaBase( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
 
60
{
 
61
        wxBoxSizer* bSizer3;
 
62
        bSizer3 = new wxBoxSizer( wxVERTICAL );
 
63
        
 
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 );
 
67
        
 
68
        
 
69
        bSizer3->Add( 0, 1, 0, wxEXPAND, 5 );
 
70
        
 
71
        wxBoxSizer* bSizer5;
 
72
        bSizer5 = new wxBoxSizer( wxHORIZONTAL );
 
73
        
 
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 );
 
76
        
 
77
        m_pTareaCancelar = new wxButton( this, wxID_ANY, _("X"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT|wxNO_BORDER );
 
78
        m_pTareaCancelar->SetToolTip( _("Cancels current task") );
 
79
        
 
80
        bSizer5->Add( m_pTareaCancelar, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5 );
 
81
        
 
82
        bSizer3->Add( bSizer5, 0, wxEXPAND, 5 );
 
83
        
 
84
        this->SetSizer( bSizer3 );
 
85
        this->Layout();
 
86
        bSizer3->Fit( this );
 
87
        
 
88
        // Connect Events
 
89
        m_pTareaCancelar->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelTareaBase::OnTareaCancelarClick ), NULL, this );
 
90
}
 
91
 
 
92
PanelTareaBase::~PanelTareaBase()
 
93
{
 
94
        // Disconnect Events
 
95
        m_pTareaCancelar->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PanelTareaBase::OnTareaCancelarClick ), NULL, this );
 
96
        
 
97
}