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
|
/***************************************************************
* Name: ThreadSearchConfPanel
* Purpose: This class implements the configuration panel used
* in modal dialog called on "Options" button click
* and by C::B on "Environment" settings window.
* Author: Jerome ANTOINE
* Created: 2007-10-08
* Copyright: Jerome ANTOINE
* License: GPL
**************************************************************/
#ifndef THREAD_SEARCH_CONF_PANEL_H
#define THREAD_SEARCH_CONF_PANEL_H
// begin wxGlade: ::dependencies
// end wxGlade
// begin wxGlade: ::extracode
// end wxGlade
#include <wx/string.h>
#include "configurationpanel.h"
class wxWindow;
class wxRadioBox;
class wxCheckBox;
class wxStaticBox;
class wxCommandEvent;
class ThreadSearch;
class SearchInPanel;
class DirectoryParamsPanel;
class ThreadSearchConfPanel: public cbConfigurationPanel {
public:
// begin wxGlade: ThreadSearchConfPanel::ids
// end wxGlade
/** Constructor. */
ThreadSearchConfPanel(ThreadSearch& threadSearchPlugin, wxWindow* parent = NULL, wxWindowID id = -1);
/** Returns the title displayed in the left column of the "Settings/Environment" dialog. */
wxString GetTitle() const {return wxT("Snippets search");}
/** Returns string used to build active/inactive images path in the left column
* of the "Settings/Environment" dialog.
*/
wxString GetBitmapBaseName() const {return wxT("SnippetsSearch");}
/** Called automatically when user clicks on OK
*/
void OnApply();
/** Called automatically when user clicks on Cancel
*/
void OnCancel() {}
private:
// begin wxGlade: ThreadSearchConfPanel::methods
void set_properties();
void do_layout();
// end wxGlade
ThreadSearch& m_ThreadSearchPlugin; // Reference on the ThreadSearch plugin we configure
protected:
// begin wxGlade: ThreadSearchConfPanel::attributes
wxStaticBox* SizerThreadSearchLayout_staticbox;
wxStaticBox* SizerListControlOptions_staticbox;
wxStaticBox* SizerThreadSearchLayoutGlobal_staticbox;
wxStaticBox* SizerThreadSearchOptions_staticbox;
wxStaticBox* SizerOptions_staticbox;
wxStaticBox* SizerSearchIn_staticbox;
SearchInPanel* m_pPnlSearchIn;
DirectoryParamsPanel* m_pPnlDirParams;
wxCheckBox* m_pChkWholeWord;
wxCheckBox* m_pChkStartWord;
wxCheckBox* m_pChkMatchCase;
wxCheckBox* m_pChkRegExp;
wxCheckBox* m_pChkThreadSearchEnable;
wxCheckBox* m_pChkUseDefaultOptionsForThreadSearch;
wxCheckBox* m_pChkShowThreadSearchToolBar;
wxCheckBox* m_pChkShowThreadSearchWidgets;
wxCheckBox* m_pChkShowCodePreview;
wxCheckBox* m_pChkDisplayLogHeaders;
wxCheckBox* m_pChkDrawLogLines;
wxRadioBox* m_pRadPanelManagement;
wxRadioBox* m_pRadLoggerType;
wxRadioBox* m_pRadSplitterWndMode;
wxRadioBox* m_pRadSortBy;
// end wxGlade
DECLARE_EVENT_TABLE();
public:
/** The m_pChkThreadSearchEnable checkbox is used to enable/disable 'Find occurrences'
* contextual menu integration.
* This method disables the m_pChkUseDefaultOptionsForThreadSearch checkbox if
* 'Find occurrences' is not present in the contextual menu.
*/
void OnThreadSearchEnable(wxCommandEvent &event); // wxGlade: <event_handler>
void OnChkShowThreadSearchToolBarClick(wxCommandEvent &event); // wxGlade: <event_handler>
void OnChkCodePreview(wxCommandEvent &event); // wxGlade: <event_handler>
void OnChkShowThreadSearchWidgetsClick(wxCommandEvent &event); // wxGlade: <event_handler>
}; // wxGlade: end class
#endif // THREAD_SEARCH_CONF_PANEL_H
|