1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : attachdbgprocbasedlg.cpp
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
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.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
25
///////////////////////////////////////////////////////////////////////////
26
// C++ code generated with wxFormBuilder (version Sep 26 2007)
27
// http://www.wxformbuilder.org/
29
// PLEASE DO "NOT" EDIT THIS FILE!
30
///////////////////////////////////////////////////////////////////////////
32
#include "attachdbgprocbasedlg.h"
34
///////////////////////////////////////////////////////////////////////////
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 )
38
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
41
bSizer1 = new wxBoxSizer( wxVERTICAL );
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 );
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 );
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 );
57
bSizer1->Add( fgSizer1, 0, wxEXPAND, 5 );
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 );
63
m_listCtrlProcesses = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
64
bSizer1->Add( m_listCtrlProcesses, 1, wxALL|wxEXPAND, 5 );
66
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
67
bSizer1->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
70
bSizer2 = new wxBoxSizer( wxHORIZONTAL );
72
m_buttonOk = new wxButton( this, wxID_OK, wxT("&Attach"), wxDefaultPosition, wxDefaultSize, 0 );
73
bSizer2->Add( m_buttonOk, 0, wxALL, 5 );
75
m_button2 = new wxButton( this, wxID_CANCEL, wxT("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
76
bSizer2->Add( m_button2, 0, wxALL, 5 );
78
bSizer1->Add( bSizer2, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
80
this->SetSizer( bSizer1 );
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 );
1
//////////////////////////////////////////////////////////////////////////////
2
//////////////////////////////////////////////////////////////////////////////
4
// copyright : (C) 2008 by Eran Ifrah
5
// file name : attachdbgprocbasedlg.cpp
7
// -------------------------------------------------------------------------
10
// / __ \ | | | | (_) |
11
// | / \/ ___ __| | ___| | _| |_ ___
12
// | | / _ \ / _ |/ _ \ | | | __/ _ )
13
// | \__/\ (_) | (_| | __/ |___| | || __/
14
// \____/\___/ \__,_|\___\_____/_|\__\___|
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.
23
//////////////////////////////////////////////////////////////////////////////
24
//////////////////////////////////////////////////////////////////////////////
25
///////////////////////////////////////////////////////////////////////////
26
// C++ code generated with wxFormBuilder (version Apr 16 2008)
27
// http://www.wxformbuilder.org/
29
// PLEASE DO "NOT" EDIT THIS FILE!
30
///////////////////////////////////////////////////////////////////////////
32
#include "attachdbgprocbasedlg.h"
34
///////////////////////////////////////////////////////////////////////////
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 )
38
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
41
bSizer1 = new wxBoxSizer( wxVERTICAL );
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 );
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 );
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 );
58
bSizer1->Add( fgSizer1, 0, wxEXPAND, 5 );
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 );
64
m_listCtrlProcesses = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT );
65
bSizer1->Add( m_listCtrlProcesses, 1, wxALL|wxEXPAND, 5 );
67
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
68
bSizer1->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
71
bSizer2 = new wxBoxSizer( wxHORIZONTAL );
73
m_buttonOk = new wxButton( this, wxID_OK, wxT("&Attach"), wxDefaultPosition, wxDefaultSize, 0 );
74
bSizer2->Add( m_buttonOk, 0, wxALL, 5 );
76
m_button2 = new wxButton( this, wxID_CANCEL, wxT("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
77
bSizer2->Add( m_button2, 0, wxALL, 5 );
79
bSizer1->Add( bSizer2, 0, wxALIGN_CENTER_HORIZONTAL, 5 );
81
this->SetSizer( bSizer1 );
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 );
92
AttachDbgProcBaseDlg::~AttachDbgProcBaseDlg()
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 );