~ubuntu-branches/ubuntu/hardy/codeblocks/hardy-backports

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

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 wxT("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* SizerOptions_staticbox;
 
77
    wxStaticBox* SizerSearchIn_staticbox;
 
78
    SearchInPanel* m_pPnlSearchIn;
 
79
    DirectoryParamsPanel* m_pPnlDirParams;
 
80
    wxCheckBox* m_pChkWholeWord;
 
81
    wxCheckBox* m_pChkStartWord;
 
82
    wxCheckBox* m_pChkMatchCase;
 
83
    wxCheckBox* m_pChkRegExp;
 
84
    wxCheckBox* m_pChkThreadSearchEnable;
 
85
    wxCheckBox* m_pChkUseDefaultOptionsForThreadSearch;
 
86
    wxCheckBox* m_pChkShowThreadSearchToolBar;
 
87
    wxCheckBox* m_pChkShowThreadSearchWidgets;
 
88
    wxCheckBox* m_pChkShowCodePreview;
 
89
    wxCheckBox* m_pChkDisplayLogHeaders;
 
90
    wxCheckBox* m_pChkDrawLogLines;
 
91
    wxRadioBox* m_pRadPanelManagement;
 
92
    wxRadioBox* m_pRadLoggerType;
 
93
    wxRadioBox* m_pRadSplitterWndMode;
 
94
    wxRadioBox* m_pRadSortBy;
 
95
    // end wxGlade
 
96
 
 
97
    DECLARE_EVENT_TABLE();
 
98
 
 
99
public:
 
100
        /** The m_pChkThreadSearchEnable checkbox is used to enable/disable 'Find occurrences'
 
101
          * contextual menu integration.
 
102
          * This method disables the m_pChkUseDefaultOptionsForThreadSearch checkbox if
 
103
          * 'Find occurrences' is not present in the contextual menu.
 
104
          */
 
105
    void OnThreadSearchEnable(wxCommandEvent &event); // wxGlade: <event_handler>
 
106
    void OnChkShowThreadSearchToolBarClick(wxCommandEvent &event); // wxGlade: <event_handler>
 
107
    void OnChkCodePreview(wxCommandEvent &event); // wxGlade: <event_handler>
 
108
    void OnChkShowThreadSearchWidgetsClick(wxCommandEvent &event); // wxGlade: <event_handler>
 
109
}; // wxGlade: end class
 
110
 
 
111
 
 
112
#endif // THREAD_SEARCH_CONF_PANEL_H