Scribus
Open source desktop publishing at your fingertips
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
search.h
1
/*
2
For general Scribus (>=1.3.2) copyright and licensing information please refer
3
to the COPYING file provided with the program. Following this notice may exist
4
a copyright and/or license notice that predates the release of Scribus 1.3.2
5
for which a new license (GPL+exception) is in place.
6
*/
7
#ifndef SEARCHREPLACE_H
8
#define SEARCHREPLACE_H
9
10
#include <QDialog>
11
class
QVBoxLayout;
12
class
QHBoxLayout;
13
class
QGridLayout;
14
class
QCheckBox;
15
class
QComboBox;
16
class
QGroupBox;
17
class
QLineEdit;
18
class
QPushButton;
19
class
QLabel;
20
21
#include "scribusapi.h"
22
class
ScrSpinBox
;
23
class
FontCombo
;
24
class
StyleSelect
;
25
class
ShadeButton
;
26
class
PrefsContext
;
27
class
ColorCombo
;
28
class
ScribusDoc
;
29
class
PageItem
;
30
31
class
SCRIBUS_API
SearchReplace
:
public
QDialog
32
{
33
Q_OBJECT
34
35
public
:
36
SearchReplace
( QWidget* parent,
ScribusDoc
*doc,
PageItem
* ite,
bool
mode =
true
);
37
~
SearchReplace
() {};
38
virtual
void
slotDoSearch();
39
virtual
void
slotDoReplace();
40
41
QLabel* SText1;
42
QLabel* RText1;
43
QGroupBox* Search;
44
QCheckBox* SStroke;
45
QCheckBox* SFill;
46
QCheckBox* SStrokeS;
47
QCheckBox* SFillS;
48
QCheckBox* SSize;
49
QCheckBox* SFont;
50
QCheckBox* SStyle;
51
QCheckBox* SAlign;
52
QCheckBox* SText;
53
QCheckBox* SEffect;
54
QCheckBox* REffect;
55
QLineEdit* STextVal;
56
QComboBox* SStyleVal;
57
QComboBox* SAlignVal;
58
FontCombo
* SFontVal;
59
ScrSpinBox
* SSizeVal;
60
ColorCombo
* SFillVal;
61
ShadeButton
*SFillSVal;
62
ColorCombo
* SStrokeVal;
63
ShadeButton
*SStrokeSVal;
64
QGroupBox* Replace;
65
QCheckBox* RStroke;
66
QCheckBox* RStrokeS;
67
QCheckBox* RFill;
68
QCheckBox* RFillS;
69
QCheckBox* RSize;
70
QCheckBox* RFont;
71
QCheckBox* RStyle;
72
QCheckBox* RAlign;
73
QCheckBox* RText;
74
QLineEdit* RTextVal;
75
QComboBox* RStyleVal;
76
QComboBox* RAlignVal;
77
FontCombo
* RFontVal;
78
ScrSpinBox
* RSizeVal;
79
ColorCombo
* RFillVal;
80
ShadeButton
*RFillSVal;
81
ColorCombo
* RStrokeVal;
82
ShadeButton
*RStrokeSVal;
83
StyleSelect
* SEffVal;
84
StyleSelect
* REffVal;
85
QCheckBox* Word;
86
QCheckBox* CaseIgnore;
87
QPushButton* DoSearch;
88
QPushButton* DoReplace;
89
QPushButton* AllReplace;
90
QPushButton* clearButton;
91
QPushButton* Leave;
92
93
public
slots:
94
virtual
void
slotSearch();
95
virtual
void
slotReplace();
96
virtual
void
slotReplaceAll();
97
virtual
void
enableTxSearch();
98
virtual
void
enableStyleSearch();
99
virtual
void
enableAlignSearch();
100
virtual
void
enableFontSearch();
101
virtual
void
enableSizeSearch();
102
virtual
void
enableEffSearch();
103
virtual
void
enableFillSearch();
104
virtual
void
enableFillSSearch();
105
virtual
void
enableStrokeSearch();
106
virtual
void
enableStrokeSSearch();
107
virtual
void
enableTxReplace();
108
virtual
void
enableStyleReplace();
109
virtual
void
enableAlignReplace();
110
virtual
void
enableFontReplace();
111
virtual
void
enableSizeReplace();
112
virtual
void
enableEffReplace();
113
virtual
void
enableFillReplace();
114
virtual
void
enableFillSReplace();
115
virtual
void
enableStrokeReplace();
116
virtual
void
enableStrokeSReplace();
117
virtual
void
writePrefs();
118
virtual
void
clear();
119
120
signals:
121
void
NewFont(
const
QString&);
122
void
NewAbs(
int
);
123
124
protected
:
125
PageItem
* m_item;
126
ScribusDoc
* m_doc;
127
128
uint m_replStart;
129
PrefsContext
* m_prefs;
130
bool
m_notFound;
131
bool
m_itemMode;
132
133
QVBoxLayout* SearchReplaceLayout;
134
QHBoxLayout* SelLayout;
135
QGridLayout* SearchLayout;
136
QGridLayout* ReplaceLayout;
137
QHBoxLayout* OptsLayout;
138
QHBoxLayout* ButtonsLayout;
139
virtual
void
readPrefs();
140
142
int
matchesFound
;
143
144
};
145
146
#endif // SEARCHREPLACE_H
SearchReplace
Definition:
search.h:31
ColorCombo
The ColorCombo widget is a combo box for displaying list of colors.
Definition:
colorcombo.h:33
ShadeButton
Definition:
shadebutton.h:14
SearchReplace::matchesFound
int matchesFound
Number of matches found thus far in a search.
Definition:
search.h:142
ScribusDoc
the Document Class
Definition:
scribusdoc.h:90
ScrSpinBox
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition:
scrspinbox.h:21
PrefsContext
Definition:
prefscontext.h:40
StyleSelect
Definition:
styleselect.h:103
PageItem
Definition:
pageitem.h:92
FontCombo
Definition:
fontcombo.h:43
scribus
ui
search.h
Generated on Tue Sep 29 2015 09:15:24 for Scribus by
1.8.9.1