~ubuntu-branches/ubuntu/lucid/codelite/lucid

« back to all changes in this revision

Viewing changes to LiteEditor/options_base_dlg2.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-01-12 15:46:55 UTC
  • Revision ID: james.westby@ubuntu.com-20090112154655-sdynrljcb6u167yw
Tags: upstream-1.0.2674+dfsg
ImportĀ upstreamĀ versionĀ 1.0.2674+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
///////////////////////////////////////////////////////////////////////////
 
2
// C++ code generated with wxFormBuilder (version Mar 19 2008)
 
3
// http://www.wxformbuilder.org/
 
4
//
 
5
// PLEASE DO "NOT" EDIT THIS FILE!
 
6
///////////////////////////////////////////////////////////////////////////
 
7
 
 
8
#ifdef WX_PRECOMP
 
9
 
 
10
#include "wx/wxprec.h"
 
11
 
 
12
#ifdef __BORLANDC__
 
13
#pragma hdrstop
 
14
#endif //__BORLANDC__
 
15
 
 
16
#else
 
17
#include <wx/wx.h>
 
18
#endif //WX_PRECOMP
 
19
 
 
20
#include "options_base_dlg2.h"
 
21
 
 
22
///////////////////////////////////////////////////////////////////////////
 
23
 
 
24
OptionsBaseDlg2::OptionsBaseDlg2( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
 
25
{
 
26
        this->SetSizeHints( wxDefaultSize, wxDefaultSize );
 
27
        
 
28
        wxBoxSizer* mainSizer;
 
29
        mainSizer = new wxBoxSizer( wxVERTICAL );
 
30
        
 
31
        wxBoxSizer* innerSizer;
 
32
        innerSizer = new wxBoxSizer( wxHORIZONTAL );
 
33
        
 
34
        m_treeBook = new wxTreebook(this, wxID_ANY);
 
35
        innerSizer->Add( m_treeBook, 1, wxALL|wxEXPAND, 5 );
 
36
        
 
37
        mainSizer->Add( innerSizer, 1, wxEXPAND, 5 );
 
38
        
 
39
        m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
 
40
        mainSizer->Add( m_staticline1, 0, wxALL|wxEXPAND, 5 );
 
41
        
 
42
        wxBoxSizer* btnSizer;
 
43
        btnSizer = new wxBoxSizer( wxHORIZONTAL );
 
44
        
 
45
        m_okButton = new wxButton( this, wxID_OK, wxT("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
 
46
        m_okButton->SetDefault(); 
 
47
        btnSizer->Add( m_okButton, 0, wxALIGN_RIGHT|wxALL, 5 );
 
48
        
 
49
        m_cancelButton = new wxButton( this, wxID_CANCEL, wxT("Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
 
50
        btnSizer->Add( m_cancelButton, 0, wxALIGN_RIGHT|wxALL, 5 );
 
51
        
 
52
        m_applyButton = new wxButton( this, wxID_APPLY, wxT("Apply"), wxDefaultPosition, wxDefaultSize, 0 );
 
53
        btnSizer->Add( m_applyButton, 0, wxALIGN_RIGHT|wxALL, 5 );
 
54
        
 
55
        mainSizer->Add( btnSizer, 0, wxALIGN_CENTER, 5 );
 
56
        
 
57
        this->SetSizer( mainSizer );
 
58
        this->Layout();
 
59
        
 
60
        this->Centre( wxBOTH );
 
61
        
 
62
        // Connect Events
 
63
        this->Connect( wxEVT_ACTIVATE, wxActivateEventHandler( OptionsBaseDlg2::OnActivate ) );
 
64
        this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( OptionsBaseDlg2::OnInitDialog ) );
 
65
        m_okButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( OptionsBaseDlg2::OnButtonOK ), NULL, this );
 
66
        m_cancelButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( OptionsBaseDlg2::OnButtonCancel ), NULL, this );
 
67
        m_applyButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( OptionsBaseDlg2::OnButtonApply ), NULL, this );
 
68
}
 
69
 
 
70
OptionsBaseDlg2::~OptionsBaseDlg2()
 
71
{
 
72
        // Disconnect Events
 
73
        this->Disconnect( wxEVT_ACTIVATE, wxActivateEventHandler( OptionsBaseDlg2::OnActivate ) );
 
74
        this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( OptionsBaseDlg2::OnInitDialog ) );
 
75
        m_okButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( OptionsBaseDlg2::OnButtonOK ), NULL, this );
 
76
        m_cancelButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( OptionsBaseDlg2::OnButtonCancel ), NULL, this );
 
77
        m_applyButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( OptionsBaseDlg2::OnButtonApply ), NULL, this );
 
78
}