1
/***************************************************************
2
* Name: ThreadSearchConfPanel
3
* Purpose: This class implements the configuration panel used
4
* in modal dialog called on "Options" button click
5
* and by C::B on "Environment" settings window.
6
* Author: Jerome ANTOINE
8
* Copyright: Jerome ANTOINE
10
**************************************************************/
12
#ifndef THREAD_SEARCH_CONF_PANEL_H
13
#define THREAD_SEARCH_CONF_PANEL_H
15
// begin wxGlade: ::dependencies
18
// begin wxGlade: ::extracode
22
#include <wx/string.h>
24
#include "configurationpanel.h"
35
class DirectoryParamsPanel;
38
class ThreadSearchConfPanel: public cbConfigurationPanel {
40
// begin wxGlade: ThreadSearchConfPanel::ids
44
ThreadSearchConfPanel(ThreadSearch& threadSearchPlugin, wxWindow* parent = NULL, wxWindowID id = -1);
46
/** Returns the title displayed in the left column of the "Settings/Environment" dialog. */
47
wxString GetTitle() const {return _("Thread search");}
49
/** Returns string used to build active/inactive images path in the left column
50
* of the "Settings/Environment" dialog.
52
wxString GetBitmapBaseName() const {return wxT("ThreadSearch");}
54
/** Called automatically when user clicks on OK
58
/** Called automatically when user clicks on Cancel
63
// begin wxGlade: ThreadSearchConfPanel::methods
64
void set_properties();
68
ThreadSearch& m_ThreadSearchPlugin; // Reference on the ThreadSearch plugin we configure
71
// begin wxGlade: ThreadSearchConfPanel::attributes
72
wxStaticBox* SizerThreadSearchLayout_staticbox;
73
wxStaticBox* SizerListControlOptions_staticbox;
74
wxStaticBox* SizerThreadSearchLayoutGlobal_staticbox;
75
wxStaticBox* SizerThreadSearchOptions_staticbox;
76
wxStaticBox* SizerSearchIn_staticbox;
77
SearchInPanel* m_pPnlSearchIn;
78
DirectoryParamsPanel* m_pPnlDirParams;
79
wxCheckBox* m_pChkWholeWord;
80
wxCheckBox* m_pChkStartWord;
81
wxCheckBox* m_pChkMatchCase;
82
wxCheckBox* m_pChkRegExp;
83
wxCheckBox* m_pChkThreadSearchEnable;
84
wxCheckBox* m_pChkUseDefaultOptionsForThreadSearch;
85
wxCheckBox* m_pChkShowMissingFilesError;
86
wxCheckBox* m_pChkShowCantOpenFileError;
87
wxCheckBox* m_pChkDeletePreviousResults;
88
wxCheckBox* m_pChkShowThreadSearchToolBar;
89
wxCheckBox* m_pChkShowThreadSearchWidgets;
90
wxCheckBox* m_pChkShowCodePreview;
91
wxCheckBox* m_pChkDisplayLogHeaders;
92
wxCheckBox* m_pChkDrawLogLines;
93
wxRadioBox* m_pRadPanelManagement;
94
wxRadioBox* m_pRadLoggerType;
95
wxRadioBox* m_pRadSplitterWndMode;
96
wxRadioBox* m_pRadSortBy;
99
DECLARE_EVENT_TABLE();
102
/** The m_pChkThreadSearchEnable checkbox is used to enable/disable 'Find occurrences'
103
* contextual menu integration.
104
* This method disables the m_pChkUseDefaultOptionsForThreadSearch checkbox if
105
* 'Find occurrences' is not present in the contextual menu.
107
void OnThreadSearchEnable(wxCommandEvent &event); // wxGlade: <event_handler>
108
void OnChkShowThreadSearchToolBarClick(wxCommandEvent &event); // wxGlade: <event_handler>
109
void OnChkCodePreview(wxCommandEvent &event); // wxGlade: <event_handler>
110
void OnChkShowThreadSearchWidgetsClick(wxCommandEvent &event); // wxGlade: <event_handler>
111
void OnChkShowMissingFilesErrorClick(wxCommandEvent &event); // wxGlade: <event_handler>
112
void OnChkShowCantOpenFileErrorClick(wxCommandEvent &event); // wxGlade: <event_handler>
114
}; // wxGlade: end class
117
#endif // THREAD_SEARCH_CONF_PANEL_H