~ubuntu-branches/ubuntu/maverick/codelite/maverick

« back to all changes in this revision

Viewing changes to LiteEditor/env_var_dlg_base.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2010-02-10 10:13:06 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20100210101306-nzt1b7es8mby1eyi
Tags: 2.2.0.3681+dfsg-0ubuntu1
* New upstream release.
* Refresh patches.
* Adjust Makefile to avoid the execution of uninstall target. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////
 
2
// C++ code generated with wxFormBuilder (version Aug 25 2009)
 
3
// http://www.wxformbuilder.org/
 
4
//
 
5
// PLEASE DO "NOT" EDIT THIS FILE!
 
6
///////////////////////////////////////////////////////////////////////////
 
7
 
 
8
#include "env_var_dlg_base.h"
 
9
 
 
10
///////////////////////////////////////////////////////////////////////////
 
11
 
 
12
EnvVarsTableDlgBase::EnvVarsTableDlgBase( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
 
13
{
 
14
        this->SetSizeHints( wxDefaultSize, wxDefaultSize );
 
15
        
 
16
        wxBoxSizer* bSizer1;
 
17
        bSizer1 = new wxBoxSizer( wxVERTICAL );
 
18
        
 
19
        wxStaticBoxSizer* sbSizer1;
 
20
        sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxEmptyString ), wxVERTICAL );
 
21
        
 
22
        m_staticText1 = new wxStaticText( this, wxID_ANY, wxT("Define here set of environment variables which will be applied by CodeLite before launching processes.\n\nVariables are defined in the format of NAME=VALUE"), wxDefaultPosition, wxDefaultSize, 0 );
 
23
        m_staticText1->Wrap( -1 );
 
24
        sbSizer1->Add( m_staticText1, 0, wxALL|wxEXPAND, 5 );
 
25
        
 
26
        bSizer1->Add( sbSizer1, 0, wxEXPAND|wxALL, 5 );
 
27
        
 
28
        m_staticText2 = new wxStaticText( this, wxID_ANY, wxT("Available environment sets:"), wxDefaultPosition, wxDefaultSize, 0 );
 
29
        m_staticText2->Wrap( -1 );
 
30
        m_staticText2->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), 70, 90, 90, false, wxEmptyString ) );
 
31
        
 
32
        bSizer1->Add( m_staticText2, 0, wxALL|wxEXPAND, 5 );
 
33
        
 
34
        wxBoxSizer* bSizer6;
 
35
        bSizer6 = new wxBoxSizer( wxHORIZONTAL );
 
36
        
 
37
        wxBoxSizer* bSizer2;
 
38
        bSizer2 = new wxBoxSizer( wxVERTICAL );
 
39
        
 
40
        m_notebook1 = new wxChoicebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxCHB_DEFAULT );
 
41
        m_panel1 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
 
42
        wxBoxSizer* bSizer5;
 
43
        bSizer5 = new wxBoxSizer( wxVERTICAL );
 
44
        
 
45
        m_textCtrlDefault = new wxScintilla(m_panel1);
 
46
        bSizer5->Add( m_textCtrlDefault, 1, wxEXPAND, 5 );
 
47
        
 
48
        m_panel1->SetSizer( bSizer5 );
 
49
        m_panel1->Layout();
 
50
        bSizer5->Fit( m_panel1 );
 
51
        m_notebook1->AddPage( m_panel1, wxT("Default"), false );
 
52
        bSizer2->Add( m_notebook1, 1, wxEXPAND|wxALL, 5 );
 
53
        
 
54
        bSizer6->Add( bSizer2, 1, wxEXPAND, 5 );
 
55
        
 
56
        wxBoxSizer* bSizer7;
 
57
        bSizer7 = new wxBoxSizer( wxVERTICAL );
 
58
        
 
59
        m_buttonNewSet = new wxButton( this, wxID_ANY, wxT("&New Set..."), wxDefaultPosition, wxDefaultSize, 0 );
 
60
        bSizer7->Add( m_buttonNewSet, 0, wxALL, 5 );
 
61
        
 
62
        m_buttonDeleteSet = new wxButton( this, wxID_ANY, wxT("Delete Set"), wxDefaultPosition, wxDefaultSize, 0 );
 
63
        bSizer7->Add( m_buttonDeleteSet, 0, wxALL, 5 );
 
64
        
 
65
        bSizer6->Add( bSizer7, 0, wxEXPAND, 5 );
 
66
        
 
67
        bSizer1->Add( bSizer6, 1, wxEXPAND, 5 );
 
68
        
 
69
        m_staticline4 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
 
70
        bSizer1->Add( m_staticline4, 0, wxEXPAND | wxALL, 5 );
 
71
        
 
72
        wxBoxSizer* bSizer3;
 
73
        bSizer3 = new wxBoxSizer( wxHORIZONTAL );
 
74
        
 
75
        m_buttonOk = new wxButton( this, wxID_OK, wxT("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
 
76
        m_buttonOk->SetDefault(); 
 
77
        bSizer3->Add( m_buttonOk, 0, wxALL, 5 );
 
78
        
 
79
        m_buttonCancel = new wxButton( this, wxID_CANCEL, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
 
80
        bSizer3->Add( m_buttonCancel, 0, wxALL, 5 );
 
81
        
 
82
        bSizer1->Add( bSizer3, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
 
83
        
 
84
        this->SetSizer( bSizer1 );
 
85
        this->Layout();
 
86
        bSizer1->Fit( this );
 
87
        
 
88
        this->Centre( wxBOTH );
 
89
        
 
90
        // Connect Events
 
91
        m_buttonNewSet->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EnvVarsTableDlgBase::OnNewSet ), NULL, this );
 
92
        m_buttonDeleteSet->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EnvVarsTableDlgBase::OnDeleteSet ), NULL, this );
 
93
        m_buttonDeleteSet->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( EnvVarsTableDlgBase::OnDeleteSetUI ), NULL, this );
 
94
        m_buttonOk->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EnvVarsTableDlgBase::OnButtonOk ), NULL, this );
 
95
}
 
96
 
 
97
EnvVarsTableDlgBase::~EnvVarsTableDlgBase()
 
98
{
 
99
        // Disconnect Events
 
100
        m_buttonNewSet->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EnvVarsTableDlgBase::OnNewSet ), NULL, this );
 
101
        m_buttonDeleteSet->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EnvVarsTableDlgBase::OnDeleteSet ), NULL, this );
 
102
        m_buttonDeleteSet->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( EnvVarsTableDlgBase::OnDeleteSetUI ), NULL, this );
 
103
        m_buttonOk->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EnvVarsTableDlgBase::OnButtonOk ), NULL, this );
 
104
}
 
105
 
 
106
EnvVarSetPage::EnvVarSetPage( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style ) : wxPanel( parent, id, pos, size, style )
 
107
{
 
108
        wxBoxSizer* bSizer6;
 
109
        bSizer6 = new wxBoxSizer( wxVERTICAL );
 
110
        
 
111
        m_textCtrl = new wxScintilla(this);
 
112
        bSizer6->Add( m_textCtrl, 1, wxEXPAND, 5 );
 
113
        
 
114
        this->SetSizer( bSizer6 );
 
115
        this->Layout();
 
116
}
 
117
 
 
118
EnvVarSetPage::~EnvVarSetPage()
 
119
{
 
120
}