1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
//
// copyright : (C) 2008 by Eran Ifrah
// file name : debuggersettingsdlg.h
//
// -------------------------------------------------------------------------
// A
// _____ _ _ _ _
// / __ \ | | | | (_) |
// | / \/ ___ __| | ___| | _| |_ ___
// | | / _ \ / _ |/ _ \ | | | __/ _ )
// | \__/\ (_) | (_| | __/ |___| | || __/
// \____/\___/ \__,_|\___\_____/_|\__\___|
//
// F i l e
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
#ifndef __debuggersettingsdlg__
#define __debuggersettingsdlg__
#include "debuggersettings.h"
#include "debuggersettingsbasedlg.h"
#include "filepicker.h"
#include <vector>
class DebuggerSettingsDlg;
class wxCheckBox;
class DebuggerPageBase;
///////////////////////////////////////////////////
// General Page
///////////////////////////////////////////////////
class DebuggerPage : public DbgPageGeneralBase
{
friend class DebuggerSettingsDlg;
wxString m_title;
protected:
virtual void OnSuperuserUI(wxUpdateUIEvent& event);
void OnBrowse(wxCommandEvent& e);
void OnDebugAssert(wxCommandEvent& e);
virtual void OnWindowsUI(wxUpdateUIEvent& event);
public:
DebuggerPage(wxWindow* parent, wxString title);
virtual ~DebuggerPage();
};
///////////////////////////////////////////////////
// Misc Page
///////////////////////////////////////////////////
class DebuggerPageMisc : public DbgPageMiscBase
{
friend class DebuggerSettingsDlg;
wxString m_title;
public:
virtual void OnDebugAssert(wxCommandEvent& event);
virtual void OnWindowsUI(wxUpdateUIEvent& event);
DebuggerPageMisc(wxWindow* parent, const wxString& title);
virtual ~DebuggerPageMisc();
};
///////////////////////////////////////////////////
// Startup Commands Page
///////////////////////////////////////////////////
class DebuggerPageStartupCmds : public DbgPageStartupCmdsBase
{
friend class DebuggerSettingsDlg;
wxString m_title;
public:
DebuggerPageStartupCmds(wxWindow* parent, const wxString& title);
virtual ~DebuggerPageStartupCmds();
};
///////////////////////////////////////////////////
// PreDefined types Page
///////////////////////////////////////////////////
class DbgPagePreDefTypes : public DbgPagePreDefTypesBase
{
friend class DebuggerSettingsDlg;
public:
DbgPagePreDefTypes(wxWindow* parent);
virtual ~DbgPagePreDefTypes();
virtual void OnDeleteSet(wxCommandEvent& event);
virtual void OnDeleteSetUI(wxUpdateUIEvent& event);
virtual void OnNewSet(wxCommandEvent& event);
void Save();
};
/** Implementing DebuggerSettingsBaseDlg */
class DebuggerSettingsDlg : public DebuggerSettingsBaseDlg
{
std::vector<wxWindow*> m_pages;
protected:
void Initialize();
void OnOk(wxCommandEvent& e);
void OnButtonCancel(wxCommandEvent& e);
public:
/** Constructor */
DebuggerSettingsDlg(wxWindow* parent);
virtual ~DebuggerSettingsDlg();
};
class NewPreDefinedSetDlg : public NewPreDefinedSetBaseDlg
{
protected:
public:
NewPreDefinedSetDlg(wxWindow* parent)
: NewPreDefinedSetBaseDlg(parent)
{
}
virtual ~NewPreDefinedSetDlg() {}
wxTextCtrl* GetNameTextctl() { return m_textCtrlName; }
wxChoice* GetChoiceCopyFrom() { return m_choiceCopyFrom; }
wxCheckBox* GetCheckBoxMakeActive() { return m_checkBoxMakeActive; }
};
#endif // __debuggersettingsdlg__
|