~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/ThreadSearch/ThreadSearchConfPanel.h

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
 * Created:   2007-10-08
 
8
 * Copyright: Jerome ANTOINE
 
9
 * License:   GPL
 
10
 **************************************************************/
 
11
 
 
12
#ifndef THREAD_SEARCH_CONF_PANEL_H
 
13
#define THREAD_SEARCH_CONF_PANEL_H
 
14
 
 
15
// begin wxGlade: ::dependencies
 
16
// end wxGlade
 
17
 
 
18
// begin wxGlade: ::extracode
 
19
 
 
20
// end wxGlade
 
21
 
 
22
#include <wx/string.h>
 
23
 
 
24
#include "configurationpanel.h"
 
25
 
 
26
 
 
27
class wxWindow;
 
28
class wxRadioBox;
 
29
class wxCheckBox;
 
30
class wxStaticBox;
 
31
class wxCommandEvent;
 
32
 
 
33
class ThreadSearch;
 
34
class SearchInPanel;
 
35
class DirectoryParamsPanel;
 
36
 
 
37
 
 
38
class ThreadSearchConfPanel: public cbConfigurationPanel {
 
39
public:
 
40
    // begin wxGlade: ThreadSearchConfPanel::ids
 
41
    // end wxGlade
 
42
 
 
43
    /** Constructor. */
 
44
    ThreadSearchConfPanel(ThreadSearch& threadSearchPlugin, wxWindow* parent = NULL, wxWindowID id = -1);
 
45
 
 
46
    /** Returns the title displayed in the left column of the "Settings/Environment" dialog. */
 
47
    wxString GetTitle()          const {return _("Thread search");}
 
48
 
 
49
    /** Returns string used to build active/inactive images path in the left column
 
50
      * of the "Settings/Environment" dialog.
 
51
      */
 
52
    wxString GetBitmapBaseName() const {return wxT("ThreadSearch");}
 
53
 
 
54
    /** Called automatically when user clicks on OK
 
55
      */
 
56
    void OnApply();
 
57
 
 
58
    /** Called automatically when user clicks on Cancel
 
59
      */
 
60
    void OnCancel() {}
 
61
 
 
62
private:
 
63
    // begin wxGlade: ThreadSearchConfPanel::methods
 
64
    void set_properties();
 
65
    void do_layout();
 
66
    // end wxGlade
 
67
 
 
68
    ThreadSearch& m_ThreadSearchPlugin;  // Reference on the ThreadSearch plugin we configure
 
69
 
 
70
protected:
 
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;
 
97
    // end wxGlade
 
98
 
 
99
    DECLARE_EVENT_TABLE();
 
100
 
 
101
public:
 
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.
 
106
      */
 
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>
 
113
 
 
114
}; // wxGlade: end class
 
115
 
 
116
 
 
117
#endif // THREAD_SEARCH_CONF_PANEL_H