QCodeEdit
2.2
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
lib
widgets
qsearchreplacepanel.h
Go to the documentation of this file.
1
/****************************************************************************
2
**
3
** Copyright (C) 2006-2009 fullmetalcoder <fullmetalcoder@hotmail.fr>
4
**
5
** This file is part of the Edyuk project <http://edyuk.org>
6
**
7
** This file may be used under the terms of the GNU General Public License
8
** version 3 as published by the Free Software Foundation and appearing in the
9
** file GPL.txt included in the packaging of this file.
10
**
11
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13
**
14
****************************************************************************/
15
16
#ifndef _QSEARCH_REPLACE_PANEL_H_
17
#define _QSEARCH_REPLACE_PANEL_H_
18
19
#include "
qpanel.h
"
20
28
#include "ui_searchreplace.h"
29
30
class
QDocumentLine
;
31
class
QDocumentSearch
;
32
33
class
QCE_EXPORT
QSearchReplacePanel
:
public
QPanel
,
private
Ui::SearchReplace
34
{
35
Q_OBJECT
36
37
public
:
38
Q_PANEL(
QSearchReplacePanel
,
"Search Replace Panel"
)
39
40
QSearchReplacePanel
(
QWidget
*p = 0);
41
virtual
~
QSearchReplacePanel
();
42
43
virtual
QString type()
const
;
44
45
public
slots:
46
void
display(
int
mode,
bool
replace);
47
48
void
find(
int
backward = -1);
49
50
protected
:
51
virtual
bool
forward(QMouseEvent *e);
52
virtual
void
editorChange
(
QEditor
*e);
53
54
virtual
bool
eventFilter(
QObject
*o, QEvent *e);
55
56
virtual
void
hideEvent(QHideEvent *e);
57
58
private
slots:
59
void
on_leFind_textEdited(
const
QString& text);
60
void
on_leReplace_textEdited(
const
QString& text);
61
62
void
on_cbReplace_toggled(
bool
on);
63
64
void
on_cbCase_toggled(
bool
on);
65
void
on_cbWords_toggled(
bool
on);
66
void
on_cbRegExp_toggled(
bool
on);
67
void
on_cbCursor_toggled(
bool
on);
68
void
on_cbHighlight_toggled(
bool
on);
69
void
on_cbSelection_toggled(
bool
on);
70
void
on_cbPrompt_toggled(
bool
on);
71
void
on_cbEscapeSeq_toggled(
bool
on);
72
73
void
on_bRefresh_clicked();
74
75
void
on_bNext_clicked();
76
void
on_bPrevious_clicked();
77
78
void
cursorPositionChanged();
79
80
private
:
81
void
init();
82
void
on_leFind_returnPressed(
bool
backward);
83
84
int
lastDirection;
85
QDocumentSearch
*m_search;
86
};
87
88
#endif // _QSEARCH_REPLACE_PANEL_H_
Generated by
1.8.1.1