~ubuntu-branches/ubuntu/karmic/codelite/karmic

« back to all changes in this revision

Viewing changes to LiteEditor/attachdbgprocbasedlg.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-08-15 17:42:43 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090815174243-nlb9ikgigbiybz12
Tags: 1.0.2893+dfsg-0ubuntu1
* debian/rules:
  + Tidy up get-orig-source rule
* debian/control:
  + Bump Standards-Version
  + Change Maintainer email address to @ubuntu.com
  + Drop cdbs build-dependency
* debian/copyright:
  + Update to DEP-5 format
* debian/patches/00_add-fPIC.patch:
  + Dropped, fix upstream
* Closes LP: #413992

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//////////////////////////////////////////////////////////////////////////////
2
 
//////////////////////////////////////////////////////////////////////////////
3
 
//
4
 
// copyright            : (C) 2008 by Eran Ifrah                            
5
 
// file name            : attachdbgprocbasedlg.cpp              
6
 
//                                                                          
7
 
// -------------------------------------------------------------------------
8
 
// A                                                                        
9
 
//              _____           _      _     _ _                            
10
 
//             /  __ \         | |    | |   (_) |                           
11
 
//             | /  \/ ___   __| | ___| |    _| |_ ___                      
12
 
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )                     
13
 
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/                     
14
 
//              \____/\___/ \__,_|\___\_____/_|\__\___|                     
15
 
//                                                                          
16
 
//                                                  F i l e                 
17
 
//                                                                          
18
 
//    This program is free software; you can redistribute it and/or modify  
19
 
//    it under the terms of the GNU General Public License as published by  
20
 
//    the Free Software Foundation; either version 2 of the License, or     
21
 
//    (at your option) any later version.                                   
22
 
//                                                                          
23
 
//////////////////////////////////////////////////////////////////////////////
24
 
//////////////////////////////////////////////////////////////////////////////
25
 
 ///////////////////////////////////////////////////////////////////////////
26
 
// C++ code generated with wxFormBuilder (version Sep 26 2007)
27
 
// http://www.wxformbuilder.org/
28
 
//
29
 
// PLEASE DO "NOT" EDIT THIS FILE!
30
 
///////////////////////////////////////////////////////////////////////////
31
 
 
32
 
#include "attachdbgprocbasedlg.h"
33
 
 
34
 
///////////////////////////////////////////////////////////////////////////
35
 
 
36
 
AttachDbgProcBaseDlg::AttachDbgProcBaseDlg( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
37
 
{
38
 
        this->SetSizeHints( wxDefaultSize, wxDefaultSize );
39
 
        
40
 
        wxBoxSizer* bSizer1;
41
 
        bSizer1 = new wxBoxSizer( wxVERTICAL );
42
 
        
43
 
        wxFlexGridSizer* fgSizer1;
44
 
        fgSizer1 = new wxFlexGridSizer( 2, 2, 0, 0 );
45
 
        fgSizer1->AddGrowableCol( 1 );
46
 
        fgSizer1->SetFlexibleDirection( wxBOTH );
47
 
        fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
48
 
        
49
 
        m_staticText3 = new wxStaticText( this, wxID_ANY, wxT("Debugger to use:"), wxDefaultPosition, wxDefaultSize, 0 );
50
 
        m_staticText3->Wrap( -1 );
51
 
        fgSizer1->Add( m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
52
 
        
53
 
        wxArrayString m_choiceDebuggerChoices;
54
 
        m_choiceDebugger = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceDebuggerChoices, 0 );
55
 
        fgSizer1->Add( m_choiceDebugger, 0, wxALL|wxEXPAND, 5 );
56
 
        
57
 
        bSizer1->Add( fgSizer1, 0, wxEXPAND, 5 );
58
 
        
59
 
        m_staticText4 = new wxStaticText( this, wxID_ANY, wxT("Processes:"), wxDefaultPosition, wxDefaultSize, 0 );
60
 
        m_staticText4->Wrap( -1 );
61
 
        bSizer1->Add( m_staticText4, 0, wxALL, 5 );
62
 
        
63
 
        m_listCtrlProcesses = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
64
 
        bSizer1->Add( m_listCtrlProcesses, 1, wxALL|wxEXPAND, 5 );
65
 
        
66
 
        m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
67
 
        bSizer1->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
68
 
        
69
 
        wxBoxSizer* bSizer2;
70
 
        bSizer2 = new wxBoxSizer( wxHORIZONTAL );
71
 
        
72
 
        m_buttonOk = new wxButton( this, wxID_OK, wxT("&Attach"), wxDefaultPosition, wxDefaultSize, 0 );
73
 
        bSizer2->Add( m_buttonOk, 0, wxALL, 5 );
74
 
        
75
 
        m_button2 = new wxButton( this, wxID_CANCEL, wxT("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
76
 
        bSizer2->Add( m_button2, 0, wxALL, 5 );
77
 
        
78
 
        bSizer1->Add( bSizer2, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
79
 
        
80
 
        this->SetSizer( bSizer1 );
81
 
        this->Layout();
82
 
        
83
 
        // Connect Events
84
 
        m_listCtrlProcesses->Connect( wxEVT_COMMAND_LIST_COL_CLICK, wxListEventHandler( AttachDbgProcBaseDlg::OnSortColumn ), NULL, this );
85
 
        m_listCtrlProcesses->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( AttachDbgProcBaseDlg::OnItemActivated ), NULL, this );
86
 
        m_listCtrlProcesses->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( AttachDbgProcBaseDlg::OnItemDeselected ), NULL, this );
87
 
        m_listCtrlProcesses->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( AttachDbgProcBaseDlg::OnItemSelected ), NULL, this );
88
 
        m_buttonOk->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( AttachDbgProcBaseDlg::OnBtnAttachUI ), NULL, this );
89
 
}
 
1
//////////////////////////////////////////////////////////////////////////////
 
2
//////////////////////////////////////////////////////////////////////////////
 
3
//
 
4
// copyright            : (C) 2008 by Eran Ifrah                            
 
5
// file name            : attachdbgprocbasedlg.cpp              
 
6
//                                                                          
 
7
// -------------------------------------------------------------------------
 
8
// A                                                                        
 
9
//              _____           _      _     _ _                            
 
10
//             /  __ \         | |    | |   (_) |                           
 
11
//             | /  \/ ___   __| | ___| |    _| |_ ___                      
 
12
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )                     
 
13
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/                     
 
14
//              \____/\___/ \__,_|\___\_____/_|\__\___|                     
 
15
//                                                                          
 
16
//                                                  F i l e                 
 
17
//                                                                          
 
18
//    This program is free software; you can redistribute it and/or modify  
 
19
//    it under the terms of the GNU General Public License as published by  
 
20
//    the Free Software Foundation; either version 2 of the License, or     
 
21
//    (at your option) any later version.                                   
 
22
//                                                                          
 
23
//////////////////////////////////////////////////////////////////////////////
 
24
//////////////////////////////////////////////////////////////////////////////
 
25
///////////////////////////////////////////////////////////////////////////
 
26
// C++ code generated with wxFormBuilder (version Apr 16 2008)
 
27
// http://www.wxformbuilder.org/
 
28
//
 
29
// PLEASE DO "NOT" EDIT THIS FILE!
 
30
///////////////////////////////////////////////////////////////////////////
 
31
 
 
32
#include "attachdbgprocbasedlg.h"
 
33
 
 
34
///////////////////////////////////////////////////////////////////////////
 
35
 
 
36
AttachDbgProcBaseDlg::AttachDbgProcBaseDlg( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
 
37
{
 
38
        this->SetSizeHints( wxDefaultSize, wxDefaultSize );
 
39
        
 
40
        wxBoxSizer* bSizer1;
 
41
        bSizer1 = new wxBoxSizer( wxVERTICAL );
 
42
        
 
43
        wxFlexGridSizer* fgSizer1;
 
44
        fgSizer1 = new wxFlexGridSizer( 2, 2, 0, 0 );
 
45
        fgSizer1->AddGrowableCol( 1 );
 
46
        fgSizer1->SetFlexibleDirection( wxBOTH );
 
47
        fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
 
48
        
 
49
        m_staticText3 = new wxStaticText( this, wxID_ANY, wxT("Debugger to use:"), wxDefaultPosition, wxDefaultSize, 0 );
 
50
        m_staticText3->Wrap( -1 );
 
51
        fgSizer1->Add( m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
 
52
        
 
53
        wxArrayString m_choiceDebuggerChoices;
 
54
        m_choiceDebugger = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceDebuggerChoices, 0 );
 
55
        m_choiceDebugger->SetSelection( 0 );
 
56
        fgSizer1->Add( m_choiceDebugger, 0, wxALL|wxEXPAND, 5 );
 
57
        
 
58
        bSizer1->Add( fgSizer1, 0, wxEXPAND, 5 );
 
59
        
 
60
        m_staticText4 = new wxStaticText( this, wxID_ANY, wxT("Processes:"), wxDefaultPosition, wxDefaultSize, 0 );
 
61
        m_staticText4->Wrap( -1 );
 
62
        bSizer1->Add( m_staticText4, 0, wxALL, 5 );
 
63
        
 
64
        m_listCtrlProcesses = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
 
65
        bSizer1->Add( m_listCtrlProcesses, 1, wxALL|wxEXPAND, 5 );
 
66
        
 
67
        m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
 
68
        bSizer1->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
 
69
        
 
70
        wxBoxSizer* bSizer2;
 
71
        bSizer2 = new wxBoxSizer( wxHORIZONTAL );
 
72
        
 
73
        m_buttonOk = new wxButton( this, wxID_OK, wxT("&Attach"), wxDefaultPosition, wxDefaultSize, 0 );
 
74
        bSizer2->Add( m_buttonOk, 0, wxALL, 5 );
 
75
        
 
76
        m_button2 = new wxButton( this, wxID_CANCEL, wxT("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
 
77
        bSizer2->Add( m_button2, 0, wxALL, 5 );
 
78
        
 
79
        bSizer1->Add( bSizer2, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
 
80
        
 
81
        this->SetSizer( bSizer1 );
 
82
        this->Layout();
 
83
        
 
84
        // Connect Events
 
85
        m_listCtrlProcesses->Connect( wxEVT_COMMAND_LIST_COL_CLICK, wxListEventHandler( AttachDbgProcBaseDlg::OnSortColumn ), NULL, this );
 
86
        m_listCtrlProcesses->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( AttachDbgProcBaseDlg::OnItemActivated ), NULL, this );
 
87
        m_listCtrlProcesses->Connect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( AttachDbgProcBaseDlg::OnItemDeselected ), NULL, this );
 
88
        m_listCtrlProcesses->Connect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( AttachDbgProcBaseDlg::OnItemSelected ), NULL, this );
 
89
        m_buttonOk->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( AttachDbgProcBaseDlg::OnBtnAttachUI ), NULL, this );
 
90
}
 
91
 
 
92
AttachDbgProcBaseDlg::~AttachDbgProcBaseDlg()
 
93
{
 
94
        // Disconnect Events
 
95
        m_listCtrlProcesses->Disconnect( wxEVT_COMMAND_LIST_COL_CLICK, wxListEventHandler( AttachDbgProcBaseDlg::OnSortColumn ), NULL, this );
 
96
        m_listCtrlProcesses->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( AttachDbgProcBaseDlg::OnItemActivated ), NULL, this );
 
97
        m_listCtrlProcesses->Disconnect( wxEVT_COMMAND_LIST_ITEM_DESELECTED, wxListEventHandler( AttachDbgProcBaseDlg::OnItemDeselected ), NULL, this );
 
98
        m_listCtrlProcesses->Disconnect( wxEVT_COMMAND_LIST_ITEM_SELECTED, wxListEventHandler( AttachDbgProcBaseDlg::OnItemSelected ), NULL, this );
 
99
        m_buttonOk->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( AttachDbgProcBaseDlg::OnBtnAttachUI ), NULL, this );
 
100
}