author | llornkcor <llornkcor> | 2002-07-02 12:46:18 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-07-02 12:46:18 (UTC) |
commit | d4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8 (patch) (unidiff) | |
tree | 36de80f384f0a6c51efef6bed184a77ece608eae | |
parent | dbcbad1d7252e877e485020966eb25e9f4a34f49 (diff) | |
download | opie-d4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8.zip opie-d4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8.tar.gz opie-d4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8.tar.bz2 |
use icon on opie-reader pics dir
-rw-r--r-- | noncore/apps/opie-reader/QTReaderApp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/QTReaderApp.cpp b/noncore/apps/opie-reader/QTReaderApp.cpp index 06a35f6..68c80c1 100644 --- a/noncore/apps/opie-reader/QTReaderApp.cpp +++ b/noncore/apps/opie-reader/QTReaderApp.cpp | |||
@@ -128,193 +128,193 @@ QTReaderApp::QTReaderApp( QWidget *parent, const char *name, WFlags f ) | |||
128 | editBar = bar; | 128 | editBar = bar; |
129 | 129 | ||
130 | /* | 130 | /* |
131 | QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), QString::null, 0, this, 0 ); | 131 | QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), QString::null, 0, this, 0 ); |
132 | connect( a, SIGNAL( activated() ), this, SLOT( fileNew() ) ); | 132 | connect( a, SIGNAL( activated() ), this, SLOT( fileNew() ) ); |
133 | a->addTo( bar ); | 133 | a->addTo( bar ); |
134 | a->addTo( file ); | 134 | a->addTo( file ); |
135 | */ | 135 | */ |
136 | 136 | ||
137 | editorStack = new QWidgetStack( this ); | 137 | editorStack = new QWidgetStack( this ); |
138 | setCentralWidget( editorStack ); | 138 | setCentralWidget( editorStack ); |
139 | 139 | ||
140 | searchVisible = FALSE; | 140 | searchVisible = FALSE; |
141 | regVisible = FALSE; | 141 | regVisible = FALSE; |
142 | m_fontVisible = false; | 142 | m_fontVisible = false; |
143 | 143 | ||
144 | pbar = new QProgressBar(this); | 144 | pbar = new QProgressBar(this); |
145 | pbar->hide(); | 145 | pbar->hide(); |
146 | 146 | ||
147 | m_infoWin = new infowin(editorStack); | 147 | m_infoWin = new infowin(editorStack); |
148 | editorStack->addWidget(m_infoWin, get_unique_id()); | 148 | editorStack->addWidget(m_infoWin, get_unique_id()); |
149 | connect( m_infoWin, SIGNAL( Close() ), this, SLOT( infoClose() ) ); | 149 | connect( m_infoWin, SIGNAL( Close() ), this, SLOT( infoClose() ) ); |
150 | 150 | ||
151 | // bkmkselector = new QListBox(editorStack, "Bookmarks"); | 151 | // bkmkselector = new QListBox(editorStack, "Bookmarks"); |
152 | bkmkselector = new CBkmkSelector(editorStack, "Bookmarks"); | 152 | bkmkselector = new CBkmkSelector(editorStack, "Bookmarks"); |
153 | // connect(bkmkselector, SIGNAL( selected(const QString&) ), this, SLOT( gotobkmk(const QString&) ) ); | 153 | // connect(bkmkselector, SIGNAL( selected(const QString&) ), this, SLOT( gotobkmk(const QString&) ) ); |
154 | connect(bkmkselector, SIGNAL( selected(int) ), this, SLOT( gotobkmk(int) ) ); | 154 | connect(bkmkselector, SIGNAL( selected(int) ), this, SLOT( gotobkmk(int) ) ); |
155 | connect(bkmkselector, SIGNAL( cancelled() ), this, SLOT( cancelbkmk() ) ); | 155 | connect(bkmkselector, SIGNAL( cancelled() ), this, SLOT( cancelbkmk() ) ); |
156 | editorStack->addWidget( bkmkselector, get_unique_id() ); | 156 | editorStack->addWidget( bkmkselector, get_unique_id() ); |
157 | 157 | ||
158 | /* | 158 | /* |
159 | importSelector = new FileSelector( "*", editorStack, "importselector", false ); | 159 | importSelector = new FileSelector( "*", editorStack, "importselector", false ); |
160 | connect( importSelector, SIGNAL( fileSelected( const DocLnk &) ), this, SLOT( importFile( const DocLnk & ) ) ); | 160 | connect( importSelector, SIGNAL( fileSelected( const DocLnk &) ), this, SLOT( importFile( const DocLnk & ) ) ); |
161 | 161 | ||
162 | editorStack->addWidget( importSelector, get_unique_id() ); | 162 | editorStack->addWidget( importSelector, get_unique_id() ); |
163 | 163 | ||
164 | // don't need the close visible, it is redundant... | 164 | // don't need the close visible, it is redundant... |
165 | importSelector->setCloseVisible( FALSE ); | 165 | importSelector->setCloseVisible( FALSE ); |
166 | */ | 166 | */ |
167 | 167 | ||
168 | reader = new QTReader( editorStack ); | 168 | reader = new QTReader( editorStack ); |
169 | Config config( "uqtreader" ); | 169 | Config config( "uqtreader" ); |
170 | config.setGroup( "View" ); | 170 | config.setGroup( "View" ); |
171 | 171 | ||
172 | reader->bstripcr = config.readBoolEntry( "StripCr", true ); | 172 | reader->bstripcr = config.readBoolEntry( "StripCr", true ); |
173 | reader->bstriphtml = config.readBoolEntry( "StripHtml", false ); | 173 | reader->bstriphtml = config.readBoolEntry( "StripHtml", false ); |
174 | reader->bdehyphen = config.readBoolEntry( "Dehyphen", false ); | 174 | reader->bdehyphen = config.readBoolEntry( "Dehyphen", false ); |
175 | reader->bunindent = config.readBoolEntry( "Unindent", false ); | 175 | reader->bunindent = config.readBoolEntry( "Unindent", false ); |
176 | reader->brepara = config.readBoolEntry( "Repara", false ); | 176 | reader->brepara = config.readBoolEntry( "Repara", false ); |
177 | reader->bdblspce = config.readBoolEntry( "DoubleSpace", false ); | 177 | reader->bdblspce = config.readBoolEntry( "DoubleSpace", false ); |
178 | reader->bindenter = config.readNumEntry( "Indent", 0 ); | 178 | reader->bindenter = config.readNumEntry( "Indent", 0 ); |
179 | reader->m_textsize = config.readNumEntry( "FontSize", 12 ); | 179 | reader->m_textsize = config.readNumEntry( "FontSize", 12 ); |
180 | reader->m_bBold = config.readBoolEntry( "Bold", false ); | 180 | reader->m_bBold = config.readBoolEntry( "Bold", false ); |
181 | reader->m_delay = config.readNumEntry( "ScrollDelay", 5184); | 181 | reader->m_delay = config.readNumEntry( "ScrollDelay", 5184); |
182 | reader->m_lastfile = config.readEntry( "LastFile", QString::null ); | 182 | reader->m_lastfile = config.readEntry( "LastFile", QString::null ); |
183 | reader->m_lastposn = config.readNumEntry( "LastPosn", 0 ); | 183 | reader->m_lastposn = config.readNumEntry( "LastPosn", 0 ); |
184 | reader->m_bpagemode = config.readBoolEntry( "PageMode", true ); | 184 | reader->m_bpagemode = config.readBoolEntry( "PageMode", true ); |
185 | reader->m_bMonoSpaced = config.readBoolEntry( "MonoSpaced", false); | 185 | reader->m_bMonoSpaced = config.readBoolEntry( "MonoSpaced", false); |
186 | reader->m_fontname = config.readEntry( "Fontname", "helvetica" ); | 186 | reader->m_fontname = config.readEntry( "Fontname", "helvetica" ); |
187 | reader->m_encd = config.readNumEntry( "Encoding", 0 ); | 187 | reader->m_encd = config.readNumEntry( "Encoding", 0 ); |
188 | reader->m_charpc = config.readNumEntry( "CharSpacing", 100 ); | 188 | reader->m_charpc = config.readNumEntry( "CharSpacing", 100 ); |
189 | reader->m_overlap = config.readNumEntry( "Overlap", 0 ); | 189 | reader->m_overlap = config.readNumEntry( "Overlap", 0 ); |
190 | reader->m_targetapp = config.readEntry( "TargetApp", QString::null ); | 190 | reader->m_targetapp = config.readEntry( "TargetApp", QString::null ); |
191 | reader->m_targetmsg = config.readEntry( "TargetMsg", QString::null ); | 191 | reader->m_targetmsg = config.readEntry( "TargetMsg", QString::null ); |
192 | reader->init(); | 192 | reader->init(); |
193 | editorStack->addWidget( reader, get_unique_id() ); | 193 | editorStack->addWidget( reader, get_unique_id() ); |
194 | 194 | ||
195 | QAction *a = new QAction( tr( "Open" ), Resource::loadPixmap( "fileopen" ), QString::null, 0, this, 0 ); | 195 | QAction *a = new QAction( tr( "Open" ), Resource::loadPixmap( "fileopen" ), QString::null, 0, this, 0 ); |
196 | connect( a, SIGNAL( activated() ), this, SLOT( fileOpen() ) ); | 196 | connect( a, SIGNAL( activated() ), this, SLOT( fileOpen() ) ); |
197 | a->addTo( bar ); | 197 | a->addTo( bar ); |
198 | a->addTo( file ); | 198 | a->addTo( file ); |
199 | 199 | ||
200 | /* | 200 | /* |
201 | a = new QAction( tr( "Revert" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); | 201 | a = new QAction( tr( "Revert" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); |
202 | connect( a, SIGNAL( activated() ), this, SLOT( fileRevert() ) ); | 202 | connect( a, SIGNAL( activated() ), this, SLOT( fileRevert() ) ); |
203 | a->addTo( file ); | 203 | a->addTo( file ); |
204 | 204 | ||
205 | a = new QAction( tr( "Cut" ), Resource::loadPixmap( "cut" ), QString::null, 0, this, 0 ); | 205 | a = new QAction( tr( "Cut" ), Resource::loadPixmap( "cut" ), QString::null, 0, this, 0 ); |
206 | connect( a, SIGNAL( activated() ), this, SLOT( editCut() ) ); | 206 | connect( a, SIGNAL( activated() ), this, SLOT( editCut() ) ); |
207 | a->addTo( editBar ); | 207 | a->addTo( editBar ); |
208 | a->addTo( edit ); | 208 | a->addTo( edit ); |
209 | */ | 209 | */ |
210 | 210 | ||
211 | a = new QAction( tr( "Info" ), QString::null, 0, this, NULL); | 211 | a = new QAction( tr( "Info" ), QString::null, 0, this, NULL); |
212 | connect( a, SIGNAL( activated() ), this, SLOT( showinfo() ) ); | 212 | connect( a, SIGNAL( activated() ), this, SLOT( showinfo() ) ); |
213 | a->addTo( file ); | 213 | a->addTo( file ); |
214 | 214 | ||
215 | a = new QAction( tr( "Start Block" ), QString::null, 0, this, NULL); | 215 | a = new QAction( tr( "Start Block" ), QString::null, 0, this, NULL); |
216 | connect( a, SIGNAL( activated() ), this, SLOT( editMark() ) ); | 216 | connect( a, SIGNAL( activated() ), this, SLOT( editMark() ) ); |
217 | file->insertSeparator(); | 217 | file->insertSeparator(); |
218 | a->addTo( file ); | 218 | a->addTo( file ); |
219 | 219 | ||
220 | a = new QAction( tr( "Copy Block" ), QString::null, 0, this, NULL); | 220 | a = new QAction( tr( "Copy Block" ), QString::null, 0, this, NULL); |
221 | connect( a, SIGNAL( activated() ), this, SLOT( editCopy() ) ); | 221 | connect( a, SIGNAL( activated() ), this, SLOT( editCopy() ) ); |
222 | a->addTo( file ); | 222 | a->addTo( file ); |
223 | 223 | ||
224 | a = m_scrollButton = new QAction( tr( "Scroll" ), Resource::loadPixmap( "panel-arrow-down" ), QString::null, 0, this, 0, true ); | 224 | a = m_scrollButton = new QAction( tr( "Scroll" ), Resource::loadPixmap( "opie-reader/panel-arrow-down" ), QString::null, 0, this, 0, true ); |
225 | // connect( a, SIGNAL( activated() ), this, SLOT( autoScroll() ) ); | 225 | // connect( a, SIGNAL( activated() ), this, SLOT( autoScroll() ) ); |
226 | a->setOn(false); | 226 | a->setOn(false); |
227 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( autoScroll(bool) ) ); | 227 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( autoScroll(bool) ) ); |
228 | file->insertSeparator(); | 228 | file->insertSeparator(); |
229 | a->addTo( bar ); | 229 | a->addTo( bar ); |
230 | a->addTo( file ); | 230 | a->addTo( file ); |
231 | 231 | ||
232 | /* | 232 | /* |
233 | a = new QAction( tr( "Find" ), QString::null, 0, this, NULL, true ); | 233 | a = new QAction( tr( "Find" ), QString::null, 0, this, NULL, true ); |
234 | // connect( a, SIGNAL( activated() ), this, SLOT( pagedn() ) ); | 234 | // connect( a, SIGNAL( activated() ), this, SLOT( pagedn() ) ); |
235 | a->addTo( file ); | 235 | a->addTo( file ); |
236 | 236 | ||
237 | a = new QAction( tr( "Find Again" ), QString::null, 0, this, NULL, true ); | 237 | a = new QAction( tr( "Find Again" ), QString::null, 0, this, NULL, true ); |
238 | // connect( a, SIGNAL( activated() ), this, SLOT( pagedn() ) ); | 238 | // connect( a, SIGNAL( activated() ), this, SLOT( pagedn() ) ); |
239 | a->addTo( file ); | 239 | a->addTo( file ); |
240 | */ | 240 | */ |
241 | a = new QAction( tr( "Jump" ), QString::null, 0, this, NULL); | 241 | a = new QAction( tr( "Jump" ), QString::null, 0, this, NULL); |
242 | connect( a, SIGNAL( activated() ), this, SLOT( jump() ) ); | 242 | connect( a, SIGNAL( activated() ), this, SLOT( jump() ) ); |
243 | a->addTo( file ); | 243 | a->addTo( file ); |
244 | 244 | ||
245 | a = new QAction( tr( "Page/Line scroll" ), QString::null, 0, this, NULL, true ); | 245 | a = new QAction( tr( "Page/Line scroll" ), QString::null, 0, this, NULL, true ); |
246 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( pagemode(bool) ) ); | 246 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( pagemode(bool) ) ); |
247 | a->setOn(reader->m_bpagemode); | 247 | a->setOn(reader->m_bpagemode); |
248 | a->addTo( file ); | 248 | a->addTo( file ); |
249 | 249 | ||
250 | a = new QAction( tr( "Set Overlap" ), QString::null, 0, this, NULL); | 250 | a = new QAction( tr( "Set Overlap" ), QString::null, 0, this, NULL); |
251 | connect( a, SIGNAL( activated() ), this, SLOT( setoverlap() ) ); | 251 | connect( a, SIGNAL( activated() ), this, SLOT( setoverlap() ) ); |
252 | a->addTo( file ); | 252 | a->addTo( file ); |
253 | 253 | ||
254 | a = new QAction( tr( "Set Dictionary" ), QString::null, 0, this, NULL); | 254 | a = new QAction( tr( "Set Dictionary" ), QString::null, 0, this, NULL); |
255 | connect( a, SIGNAL( activated() ), this, SLOT( settarget() ) ); | 255 | connect( a, SIGNAL( activated() ), this, SLOT( settarget() ) ); |
256 | a->addTo( file ); | 256 | a->addTo( file ); |
257 | 257 | ||
258 | /* | 258 | /* |
259 | a = new QAction( tr( "Import" ), QString::null, 0, this, NULL ); | 259 | a = new QAction( tr( "Import" ), QString::null, 0, this, NULL ); |
260 | connect( a, SIGNAL( activated() ), this, SLOT( importFiles() ) ); | 260 | connect( a, SIGNAL( activated() ), this, SLOT( importFiles() ) ); |
261 | a->addTo( file ); | 261 | a->addTo( file ); |
262 | */ | 262 | */ |
263 | 263 | ||
264 | a = new QAction( tr( "Up" ), Resource::loadPixmap( "up" ), QString::null, 0, this, 0 ); | 264 | a = new QAction( tr( "Up" ), Resource::loadPixmap( "up" ), QString::null, 0, this, 0 ); |
265 | connect( a, SIGNAL( activated() ), this, SLOT( pageup() ) ); | 265 | connect( a, SIGNAL( activated() ), this, SLOT( pageup() ) ); |
266 | a->addTo( editBar ); | 266 | a->addTo( editBar ); |
267 | 267 | ||
268 | a = new QAction( tr( "Down" ), Resource::loadPixmap( "down" ), QString::null, 0, this, 0 ); | 268 | a = new QAction( tr( "Down" ), Resource::loadPixmap( "down" ), QString::null, 0, this, 0 ); |
269 | connect( a, SIGNAL( activated() ), this, SLOT( pagedn() ) ); | 269 | connect( a, SIGNAL( activated() ), this, SLOT( pagedn() ) ); |
270 | a->addTo( editBar ); | 270 | a->addTo( editBar ); |
271 | 271 | ||
272 | /* | 272 | /* |
273 | a = new QAction( tr( "Paste" ), Resource::loadPixmap( "paste" ), QString::null, 0, this, 0 ); | 273 | a = new QAction( tr( "Paste" ), Resource::loadPixmap( "paste" ), QString::null, 0, this, 0 ); |
274 | connect( a, SIGNAL( activated() ), this, SLOT( editPaste() ) ); | 274 | connect( a, SIGNAL( activated() ), this, SLOT( editPaste() ) ); |
275 | a->addTo( editBar ); | 275 | a->addTo( editBar ); |
276 | a->addTo( edit ); | 276 | a->addTo( edit ); |
277 | */ | 277 | */ |
278 | 278 | ||
279 | a = new QAction( tr( "Find..." ), Resource::loadPixmap( "find" ), QString::null, 0, this, 0 ); | 279 | a = new QAction( tr( "Find..." ), Resource::loadPixmap( "find" ), QString::null, 0, this, 0 ); |
280 | connect( a, SIGNAL( activated() ), this, SLOT( editFind() ) ); | 280 | connect( a, SIGNAL( activated() ), this, SLOT( editFind() ) ); |
281 | file->insertSeparator(); | 281 | file->insertSeparator(); |
282 | a->addTo( bar ); | 282 | a->addTo( bar ); |
283 | a->addTo( file ); | 283 | a->addTo( file ); |
284 | 284 | ||
285 | 285 | ||
286 | a = new QAction( tr( "Strip CR" ), QString::null, 0, this, NULL, true ); | 286 | a = new QAction( tr( "Strip CR" ), QString::null, 0, this, NULL, true ); |
287 | a->setOn(reader->bstripcr); | 287 | a->setOn(reader->bstripcr); |
288 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( stripcr(bool) ) ); | 288 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( stripcr(bool) ) ); |
289 | a->addTo( format ); | 289 | a->addTo( format ); |
290 | // a->setOn(true); | 290 | // a->setOn(true); |
291 | 291 | ||
292 | a = new QAction( tr( "Strip HTML" ), QString::null, 0, this, NULL, true ); | 292 | a = new QAction( tr( "Strip HTML" ), QString::null, 0, this, NULL, true ); |
293 | a->setOn(reader->bstriphtml); | 293 | a->setOn(reader->bstriphtml); |
294 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( striphtml(bool) ) ); | 294 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( striphtml(bool) ) ); |
295 | a->addTo( format ); | 295 | a->addTo( format ); |
296 | 296 | ||
297 | a = new QAction( tr( "Dehyphen" ), QString::null, 0, this, NULL, true ); | 297 | a = new QAction( tr( "Dehyphen" ), QString::null, 0, this, NULL, true ); |
298 | a->setOn(reader->bdehyphen); | 298 | a->setOn(reader->bdehyphen); |
299 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( dehyphen(bool) ) ); | 299 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( dehyphen(bool) ) ); |
300 | a->addTo( format ); | 300 | a->addTo( format ); |
301 | 301 | ||
302 | a = new QAction( tr( "Unindent" ), QString::null, 0, this, NULL, true ); | 302 | a = new QAction( tr( "Unindent" ), QString::null, 0, this, NULL, true ); |
303 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( unindent(bool) ) ); | 303 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( unindent(bool) ) ); |
304 | a->setOn(reader->bunindent); | 304 | a->setOn(reader->bunindent); |
305 | a->addTo( format ); | 305 | a->addTo( format ); |
306 | 306 | ||
307 | a = new QAction( tr( "Re-paragraph" ), QString::null, 0, this, NULL, true ); | 307 | a = new QAction( tr( "Re-paragraph" ), QString::null, 0, this, NULL, true ); |
308 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( repara(bool) ) ); | 308 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( repara(bool) ) ); |
309 | a->setOn(reader->brepara); | 309 | a->setOn(reader->brepara); |
310 | a->addTo( format ); | 310 | a->addTo( format ); |
311 | 311 | ||
312 | a = new QAction( tr( "Double Space" ), QString::null, 0, this, NULL, true ); | 312 | a = new QAction( tr( "Double Space" ), QString::null, 0, this, NULL, true ); |
313 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( dblspce(bool) ) ); | 313 | connect( a, SIGNAL( toggled(bool) ), this, SLOT( dblspce(bool) ) ); |
314 | a->setOn(reader->bdblspce); | 314 | a->setOn(reader->bdblspce); |
315 | a->addTo( format ); | 315 | a->addTo( format ); |
316 | 316 | ||
317 | a = new QAction( tr( "Indent+" ), QString::null, 0, this, NULL ); | 317 | a = new QAction( tr( "Indent+" ), QString::null, 0, this, NULL ); |
318 | connect( a, SIGNAL( activated() ), this, SLOT( indentplus() ) ); | 318 | connect( a, SIGNAL( activated() ), this, SLOT( indentplus() ) ); |
319 | a->addTo( format ); | 319 | a->addTo( format ); |
320 | 320 | ||