summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-07-02 12:46:18 (UTC)
committer llornkcor <llornkcor>2002-07-02 12:46:18 (UTC)
commitd4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8 (patch) (unidiff)
tree36de80f384f0a6c51efef6bed184a77ece608eae
parentdbcbad1d7252e877e485020966eb25e9f4a34f49 (diff)
downloadopie-d4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8.zip
opie-d4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8.tar.gz
opie-d4a5bcbba0e6f67ef9d41e08c7d5ae598caa61a8.tar.bz2
use icon on opie-reader pics dir
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/QTReaderApp.cpp2
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
@@ -176,97 +176,97 @@ QTReaderApp::QTReaderApp( QWidget *parent, const char *name, WFlags f )
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 /*