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
|
/*
* This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
* http://www.gnu.org/licenses/lgpl-3.0.html
*/
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif
//(*Headers(Configuration)
#include <wx/sizer.h>
#include <wx/button.h>
#include <wx/panel.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include <wx/listbox.h>
//*)
#include <wx/event.h>
#include <wx/string.h>
#include <configurationpanel.h>
#include "bindings.h"
class wxWindow;
class Configuration: public cbConfigurationPanel
{
public:
Configuration(wxWindow* parent);
virtual ~Configuration();
//(*Identifiers(Configuration)
static const long ID_LST_GROUPS;
static const long ID_BTN_ADD_GROUP;
static const long ID_BTN_DELETE_GROUP;
static const long ID_BTN_RENAME_GROUP;
static const long ID_BTN_DEFAULTS;
static const long ID_LST_IDENTIFIERS;
static const long ID_BTN_ADD_IDENTIFIER;
static const long ID_BTN_DELETE_IDENTIFIERS;
static const long ID_BTN_CHANGE_IDENTIFIER;
static const long ID_TXT_HEADERS;
//*)
protected:
//(*Handlers(Configuration)
void OnBtnAddGroupClick(wxCommandEvent& event);
void OnBtnDeleteGroupClick(wxCommandEvent& event);
void OnRenameGroup(wxCommandEvent& event);
void OnGroupsSelect(wxCommandEvent& event);
void OnBtnAddIdentifierClick(wxCommandEvent& event);
void OnBtnDeleteIdentifierClick(wxCommandEvent& event);
void OnChangeIdentifier(wxCommandEvent& event);
void OnIdentifiersSelect(wxCommandEvent& event);
void OnHeadersText(wxCommandEvent& event);
void OnBtnDefaultsClick(wxCommandEvent& event);
//*)
//(*Declarations(Configuration)
wxButton* m_AddGroup;
wxButton* m_DeleteIdentifier;
wxListBox* m_Identifiers;
wxButton* m_ChangeIdentifier;
wxButton* m_RenameGroup;
wxButton* m_Defaults;
wxTextCtrl* m_Headers;
wxButton* m_DeleteGroup;
wxButton* m_AddIdentifier;
wxListBox* m_Groups;
//*)
private:
bool IdentifierOK(const wxString& Identifier);
void ShowGroups();
void SelectGroup(int Number);
void SelectIdentifier(int Number);
virtual wxString GetTitle() const
{ return _("HeaderFixup configuration"); }
virtual wxString GetBitmapBaseName() const
{ return _T("generic-plugin"); }
virtual void OnApply();
virtual void OnCancel()
{ ; }
Bindings m_Bindings;
bool m_BlockHeadersText;
bool m_Dirty;
DECLARE_EVENT_TABLE()
};
#endif
|