author | llornkcor <llornkcor> | 2002-03-19 00:25:30 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-19 00:25:30 (UTC) |
commit | fbe272267851eeda20bf48aee9a01ac4dd1143c2 (patch) (unidiff) | |
tree | eb2aaea05277d12e66c712c7d109c99c1e3f8f7d /core/apps/textedit | |
parent | 342ac04976065864b351c6b36087a483a8932da7 (diff) | |
download | opie-fbe272267851eeda20bf48aee9a01ac4dd1143c2.zip opie-fbe272267851eeda20bf48aee9a01ac4dd1143c2.tar.gz opie-fbe272267851eeda20bf48aee9a01ac4dd1143c2.tar.bz2 |
added config entry
-rw-r--r-- | core/apps/textedit/textedit.cpp | 11 | ||||
-rw-r--r-- | core/apps/textedit/textedit.h | 3 | ||||
-rw-r--r-- | core/apps/textedit/textedit.pro | 4 |
3 files changed, 12 insertions, 6 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index d3f5fb4..f56d5d3 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -191,96 +191,97 @@ void QpeEditor::find ( const QString &txt, bool caseSensitive, | |||
191 | wrap = FALSE; | 191 | wrap = FALSE; |
192 | // emit searchWrapped(); | 192 | // emit searchWrapped(); |
193 | } else { | 193 | } else { |
194 | getCursorPosition( &line, &col ); | 194 | getCursorPosition( &line, &col ); |
195 | } | 195 | } |
196 | //ignore backwards for now.... | 196 | //ignore backwards for now.... |
197 | if ( !backwards ) { | 197 | if ( !backwards ) { |
198 | for ( ; ; ) { | 198 | for ( ; ; ) { |
199 | if ( line >= numLines() ) { | 199 | if ( line >= numLines() ) { |
200 | wrap = TRUE; | 200 | wrap = TRUE; |
201 | //emit notFound(); | 201 | //emit notFound(); |
202 | break; | 202 | break; |
203 | } | 203 | } |
204 | int findCol = getString( line )->find( txt, col, caseSensitive ); | 204 | int findCol = getString( line )->find( txt, col, caseSensitive ); |
205 | if ( findCol >= 0 ) { | 205 | if ( findCol >= 0 ) { |
206 | setCursorPosition( line, findCol, FALSE ); | 206 | setCursorPosition( line, findCol, FALSE ); |
207 | col = findCol + txt.length(); | 207 | col = findCol + txt.length(); |
208 | setCursorPosition( line, col, TRUE ); | 208 | setCursorPosition( line, col, TRUE ); |
209 | 209 | ||
210 | //found = TRUE; | 210 | //found = TRUE; |
211 | break; | 211 | break; |
212 | } | 212 | } |
213 | line++; | 213 | line++; |
214 | col = 0; | 214 | col = 0; |
215 | } | 215 | } |
216 | 216 | ||
217 | } | 217 | } |
218 | 218 | ||
219 | } | 219 | } |
220 | 220 | ||
221 | 221 | ||
222 | #else | 222 | #else |
223 | 223 | ||
224 | #error "Must make a QpeEditor that inherits QTextEdit" | 224 | #error "Must make a QpeEditor that inherits QTextEdit" |
225 | 225 | ||
226 | #endif | 226 | #endif |
227 | 227 | ||
228 | 228 | ||
229 | static const int nfontsizes = 6; | 229 | static const int nfontsizes = 6; |
230 | static const int fontsize[nfontsizes] = {8,10,12,14,18,24}; | 230 | static const int fontsize[nfontsizes] = {8,10,12,14,18,24}; |
231 | 231 | ||
232 | TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) | 232 | TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) |
233 | : QMainWindow( parent, name, f ), bFromDocView( FALSE ) | 233 | : QMainWindow( parent, name, f ), bFromDocView( FALSE ) |
234 | { | 234 | { |
235 | doc = 0; | 235 | doc = 0; |
236 | edited=FALSE; | 236 | edited=FALSE; |
237 | edited1=FALSE; | 237 | edited1=FALSE; |
238 | setToolBarsMovable( FALSE ); | 238 | setToolBarsMovable( FALSE ); |
239 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | ||
239 | 240 | ||
240 | setIcon( Resource::loadPixmap( "TextEditor" ) ); | 241 | setIcon( Resource::loadPixmap( "TextEditor" ) ); |
241 | 242 | ||
242 | QPEToolBar *bar = new QPEToolBar( this ); | 243 | QPEToolBar *bar = new QPEToolBar( this ); |
243 | bar->setHorizontalStretchable( TRUE ); | 244 | bar->setHorizontalStretchable( TRUE ); |
244 | menu = bar; | 245 | menu = bar; |
245 | 246 | ||
246 | QPEMenuBar *mb = new QPEMenuBar( bar ); | 247 | QPEMenuBar *mb = new QPEMenuBar( bar ); |
247 | QPopupMenu *file = new QPopupMenu( this ); | 248 | QPopupMenu *file = new QPopupMenu( this ); |
248 | QPopupMenu *edit = new QPopupMenu( this ); | 249 | QPopupMenu *edit = new QPopupMenu( this ); |
249 | font = new QPopupMenu( this ); | 250 | font = new QPopupMenu( this ); |
250 | 251 | ||
251 | bar = new QPEToolBar( this ); | 252 | bar = new QPEToolBar( this ); |
252 | editBar = bar; | 253 | editBar = bar; |
253 | 254 | ||
254 | QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), QString::null, 0, this, 0 ); | 255 | QAction *a = new QAction( tr( "New" ), Resource::loadPixmap( "new" ), QString::null, 0, this, 0 ); |
255 | connect( a, SIGNAL( activated() ), this, SLOT( fileNew() ) ); | 256 | connect( a, SIGNAL( activated() ), this, SLOT( fileNew() ) ); |
256 | a->addTo( bar ); | 257 | a->addTo( bar ); |
257 | a->addTo( file ); | 258 | a->addTo( file ); |
258 | 259 | ||
259 | a = new QAction( tr( "Open" ), Resource::loadPixmap( "fileopen" ), QString::null, 0, this, 0 ); | 260 | a = new QAction( tr( "Open" ), Resource::loadPixmap( "fileopen" ), QString::null, 0, this, 0 ); |
260 | connect( a, SIGNAL( activated() ), this, SLOT( fileOpen() ) ); | 261 | connect( a, SIGNAL( activated() ), this, SLOT( fileOpen() ) ); |
261 | a->addTo( bar ); | 262 | a->addTo( bar ); |
262 | a->addTo( file ); | 263 | a->addTo( file ); |
263 | 264 | ||
264 | a = new QAction( tr( "Save" ), QPixmap(( const char** ) filesave_xpm ) , QString::null, 0, this, 0 ); | 265 | a = new QAction( tr( "Save" ), QPixmap(( const char** ) filesave_xpm ) , QString::null, 0, this, 0 ); |
265 | connect( a, SIGNAL( activated() ), this, SLOT( save() ) ); | 266 | connect( a, SIGNAL( activated() ), this, SLOT( save() ) ); |
266 | file->insertSeparator(); | 267 | file->insertSeparator(); |
267 | a->addTo( file ); | 268 | a->addTo( file ); |
268 | 269 | ||
269 | a = new QAction( tr( "Save As" ), QPixmap(( const char** ) filesave_xpm ) , QString::null, 0, this, 0 ); | 270 | a = new QAction( tr( "Save As" ), QPixmap(( const char** ) filesave_xpm ) , QString::null, 0, this, 0 ); |
270 | connect( a, SIGNAL( activated() ), this, SLOT( saveAs() ) ); | 271 | connect( a, SIGNAL( activated() ), this, SLOT( saveAs() ) ); |
271 | a->addTo( file ); | 272 | a->addTo( file ); |
272 | 273 | ||
273 | a = new QAction( tr( "Cut" ), Resource::loadPixmap( "cut" ), QString::null, 0, this, 0 ); | 274 | a = new QAction( tr( "Cut" ), Resource::loadPixmap( "cut" ), QString::null, 0, this, 0 ); |
274 | connect( a, SIGNAL( activated() ), this, SLOT( editCut() ) ); | 275 | connect( a, SIGNAL( activated() ), this, SLOT( editCut() ) ); |
275 | a->addTo( editBar ); | 276 | a->addTo( editBar ); |
276 | a->addTo( edit ); | 277 | a->addTo( edit ); |
277 | 278 | ||
278 | a = new QAction( tr( "Copy" ), Resource::loadPixmap( "copy" ), QString::null, 0, this, 0 ); | 279 | a = new QAction( tr( "Copy" ), Resource::loadPixmap( "copy" ), QString::null, 0, this, 0 ); |
279 | connect( a, SIGNAL( activated() ), this, SLOT( editCopy() ) ); | 280 | connect( a, SIGNAL( activated() ), this, SLOT( editCopy() ) ); |
280 | a->addTo( editBar ); | 281 | a->addTo( editBar ); |
281 | a->addTo( edit ); | 282 | a->addTo( edit ); |
282 | 283 | ||
283 | a = new QAction( tr( "Paste" ), Resource::loadPixmap( "paste" ), QString::null, 0, this, 0 ); | 284 | a = new QAction( tr( "Paste" ), Resource::loadPixmap( "paste" ), QString::null, 0, this, 0 ); |
284 | connect( a, SIGNAL( activated() ), this, SLOT( editPaste() ) ); | 285 | connect( a, SIGNAL( activated() ), this, SLOT( editPaste() ) ); |
285 | a->addTo( editBar ); | 286 | a->addTo( editBar ); |
286 | a->addTo( edit ); | 287 | a->addTo( edit ); |
@@ -362,108 +363,112 @@ TextEdit::TextEdit( QWidget *parent, const char *name, WFlags f ) | |||
362 | a->addTo( edit ); | 363 | a->addTo( edit ); |
363 | 364 | ||
364 | a = new QAction( tr( "Close Find" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); | 365 | a = new QAction( tr( "Close Find" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); |
365 | connect( a, SIGNAL( activated() ), this, SLOT( findClose() ) ); | 366 | connect( a, SIGNAL( activated() ), this, SLOT( findClose() ) ); |
366 | a->addTo( searchBar ); | 367 | a->addTo( searchBar ); |
367 | 368 | ||
368 | edit->insertSeparator(); | 369 | edit->insertSeparator(); |
369 | a = new QAction( tr( "Delete" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); | 370 | a = new QAction( tr( "Delete" ), Resource::loadPixmap( "close" ), QString::null, 0, this, 0 ); |
370 | connect( a, SIGNAL( activated() ), this, SLOT( editDelete() ) ); | 371 | connect( a, SIGNAL( activated() ), this, SLOT( editDelete() ) ); |
371 | a->addTo( edit ); | 372 | a->addTo( edit ); |
372 | 373 | ||
373 | searchBar->hide(); | 374 | searchBar->hide(); |
374 | 375 | ||
375 | 376 | ||
376 | editor = new QpeEditor( this ); | 377 | editor = new QpeEditor( this ); |
377 | setCentralWidget( editor ); | 378 | setCentralWidget( editor ); |
378 | editor->setFrameStyle( QFrame::Panel | QFrame::Sunken ); | 379 | editor->setFrameStyle( QFrame::Panel | QFrame::Sunken ); |
379 | connect( editor, SIGNAL( textChanged() ), this, SLOT( editorChanged() ) ); | 380 | connect( editor, SIGNAL( textChanged() ), this, SLOT( editorChanged() ) ); |
380 | 381 | ||
381 | resize( 200, 300 ); | 382 | resize( 200, 300 ); |
382 | 383 | ||
383 | // setFontSize(defsize,TRUE); | 384 | // setFontSize(defsize,TRUE); |
384 | FontDatabase fdb; | 385 | FontDatabase fdb; |
385 | QFont defaultFont=editor->font(); | 386 | QFont defaultFont=editor->font(); |
386 | QFontInfo fontInfo(defaultFont); | 387 | QFontInfo fontInfo(defaultFont); |
387 | 388 | ||
388 | cfg.setGroup("Font"); | 389 | cfg.setGroup("Font"); |
389 | QString family = cfg.readEntry("Family", fontInfo.family()); | 390 | QString family = cfg.readEntry("Family", fontInfo.family()); |
390 | QString style = cfg.readEntry("Style", fdb.styleString(defaultFont)); | 391 | QString style = cfg.readEntry("Style", fdb.styleString(defaultFont)); |
391 | int i_size = cfg.readNumEntry("Size", fontInfo.pointSize()/10); | 392 | int i_size = cfg.readNumEntry("Size", fontInfo.pointSize()/10); |
392 | QString charSet = cfg.readEntry("CharSet", QFont::encodingName( fontInfo.charSet()) ); | 393 | QString charSet = cfg.readEntry("CharSet", QFont::encodingName( fontInfo.charSet()) ); |
393 | 394 | ||
394 | defaultFont = fdb.font(family,style,i_size,charSet); | 395 | defaultFont = fdb.font(family,style,i_size,charSet); |
395 | editor->setFont( defaultFont); | 396 | editor->setFont( defaultFont); |
396 | 397 | ||
397 | wa->setOn(wrap); | 398 | wa->setOn(wrap); |
398 | updateCaption(); | 399 | updateCaption(); |
399 | 400 | ||
400 | cfg.setGroup("View"); | 401 | cfg.setGroup("View"); |
401 | if(cfg.readEntry("startNew","TRUE") == "TRUE") { | 402 | if(cfg.readEntry("startNew","TRUE") == "TRUE") { |
402 | nStart->setOn(TRUE); | 403 | nStart->setOn(TRUE); |
403 | fileNew(); | 404 | fileNew(); |
404 | } else { | 405 | } else { |
405 | fileOpen(); | 406 | fileOpen(); |
406 | } | 407 | } |
407 | viewSelection = cfg.readNumEntry( "FileView", 0 ); | 408 | viewSelection = cfg.readNumEntry( "FileView", 0 ); |
408 | } | 409 | } |
409 | 410 | ||
410 | TextEdit::~TextEdit() | 411 | void TextEdit::cleanUp() |
411 | { | 412 | { |
412 | // save(); | 413 | // save(); |
413 | |||
414 | Config cfg("TextEdit"); | 414 | Config cfg("TextEdit"); |
415 | cfg.setGroup("View"); | 415 | cfg.setGroup("View"); |
416 | QFont f = editor->font(); | 416 | QFont f = editor->font(); |
417 | cfg.writeEntry("FontSize",f.pointSize()); | 417 | cfg.writeEntry("FontSize",f.pointSize()); |
418 | cfg.writeEntry("Bold",f.bold()); | 418 | cfg.writeEntry("Bold",f.bold()); |
419 | cfg.writeEntry("Italic",f.italic()); | 419 | cfg.writeEntry("Italic",f.italic()); |
420 | cfg.writeEntry("Wrap",editor->wordWrap() == QMultiLineEdit::WidgetWidth); | 420 | cfg.writeEntry("Wrap",editor->wordWrap() == QMultiLineEdit::WidgetWidth); |
421 | cfg.writeEntry( "FileView", viewSelection ); | 421 | cfg.writeEntry( "FileView", viewSelection ); |
422 | |||
423 | } | ||
424 | |||
425 | TextEdit::~TextEdit() | ||
426 | { | ||
422 | } | 427 | } |
423 | 428 | ||
424 | void TextEdit::zoomIn() | 429 | void TextEdit::zoomIn() |
425 | { | 430 | { |
426 | setFontSize(editor->font().pointSize()+1,FALSE); | 431 | setFontSize(editor->font().pointSize()+1,FALSE); |
427 | } | 432 | } |
428 | 433 | ||
429 | void TextEdit::zoomOut() | 434 | void TextEdit::zoomOut() |
430 | { | 435 | { |
431 | setFontSize(editor->font().pointSize()-1,TRUE); | 436 | setFontSize(editor->font().pointSize()-1,TRUE); |
432 | } | 437 | } |
433 | 438 | ||
434 | 439 | ||
435 | void TextEdit::setFontSize(int sz, bool round_down_not_up) | 440 | void TextEdit::setFontSize(int sz, bool round_down_not_up) |
436 | { | 441 | { |
437 | int s=10; | 442 | int s=10; |
438 | for (int i=0; i<nfontsizes; i++) { | 443 | for (int i=0; i<nfontsizes; i++) { |
439 | if ( fontsize[i] == sz ) { | 444 | if ( fontsize[i] == sz ) { |
440 | s = sz; | 445 | s = sz; |
441 | break; | 446 | break; |
442 | } else if ( round_down_not_up ) { | 447 | } else if ( round_down_not_up ) { |
443 | if ( fontsize[i] < sz ) | 448 | if ( fontsize[i] < sz ) |
444 | s = fontsize[i]; | 449 | s = fontsize[i]; |
445 | } else { | 450 | } else { |
446 | if ( fontsize[i] > sz ) { | 451 | if ( fontsize[i] > sz ) { |
447 | s = fontsize[i]; | 452 | s = fontsize[i]; |
448 | break; | 453 | break; |
449 | } | 454 | } |
450 | } | 455 | } |
451 | } | 456 | } |
452 | 457 | ||
453 | QFont f = editor->font(); | 458 | QFont f = editor->font(); |
454 | f.setPointSize(s); | 459 | f.setPointSize(s); |
455 | editor->setFont(f); | 460 | editor->setFont(f); |
456 | 461 | ||
457 | zin->setEnabled(s != fontsize[nfontsizes-1]); | 462 | zin->setEnabled(s != fontsize[nfontsizes-1]); |
458 | zout->setEnabled(s != fontsize[0]); | 463 | zout->setEnabled(s != fontsize[0]); |
459 | } | 464 | } |
460 | 465 | ||
461 | void TextEdit::setBold(bool y) | 466 | void TextEdit::setBold(bool y) |
462 | { | 467 | { |
463 | QFont f = editor->font(); | 468 | QFont f = editor->font(); |
464 | f.setBold(y); | 469 | f.setBold(y); |
465 | editor->setFont(f); | 470 | editor->setFont(f); |
466 | } | 471 | } |
467 | 472 | ||
468 | void TextEdit::setItalic(bool y) | 473 | void TextEdit::setItalic(bool y) |
469 | { | 474 | { |
diff --git a/core/apps/textedit/textedit.h b/core/apps/textedit/textedit.h index aca2933..a70b581 100644 --- a/core/apps/textedit/textedit.h +++ b/core/apps/textedit/textedit.h | |||
@@ -26,94 +26,95 @@ | |||
26 | 26 | ||
27 | #include "fileBrowser.h" | 27 | #include "fileBrowser.h" |
28 | #include "fileSaver.h" | 28 | #include "fileSaver.h" |
29 | 29 | ||
30 | #include <qpe/filemanager.h> | 30 | #include <qpe/filemanager.h> |
31 | 31 | ||
32 | #include <qmainwindow.h> | 32 | #include <qmainwindow.h> |
33 | #include <qmultilineedit.h> | 33 | #include <qmultilineedit.h> |
34 | #include <qlist.h> | 34 | #include <qlist.h> |
35 | #include <qmap.h> | 35 | #include <qmap.h> |
36 | 36 | ||
37 | class QAction; | 37 | class QAction; |
38 | class QWidgetStack; | 38 | class QWidgetStack; |
39 | class QToolButton; | 39 | class QToolButton; |
40 | class QPopupMenu; | 40 | class QPopupMenu; |
41 | class QToolBar; | 41 | class QToolBar; |
42 | class QLineEdit; | 42 | class QLineEdit; |
43 | class QAction; | 43 | class QAction; |
44 | class FileSelector; | 44 | class FileSelector; |
45 | class QpeEditor; | 45 | class QpeEditor; |
46 | class QPopupMenu; | 46 | class QPopupMenu; |
47 | 47 | ||
48 | class TextEdit : public QMainWindow | 48 | class TextEdit : public QMainWindow |
49 | { | 49 | { |
50 | Q_OBJECT | 50 | Q_OBJECT |
51 | 51 | ||
52 | public: | 52 | public: |
53 | TextEdit( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 53 | TextEdit( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
54 | ~TextEdit(); | 54 | ~TextEdit(); |
55 | QPopupMenu *font; | 55 | QPopupMenu *font; |
56 | QAction *nStart; | 56 | QAction *nStart; |
57 | bool edited, edited1; | 57 | bool edited, edited1; |
58 | void openFile( const QString & ); | 58 | void openFile( const QString & ); |
59 | public slots: | 59 | public slots: |
60 | void editorChanged(); | 60 | void editorChanged(); |
61 | 61 | ||
62 | protected: | 62 | protected: |
63 | void closeEvent( QCloseEvent *e ); | 63 | void closeEvent( QCloseEvent *e ); |
64 | 64 | ||
65 | private slots: | 65 | private slots: |
66 | void setDocument(const QString&); | 66 | void setDocument(const QString&); |
67 | void changeFont(); | 67 | void changeFont(); |
68 | void fileNew(); | 68 | void fileNew(); |
69 | void fileRevert(); | 69 | void fileRevert(); |
70 | void fileOpen(); | 70 | void fileOpen(); |
71 | void changeStartConfig(bool); | 71 | void changeStartConfig(bool); |
72 | bool save(); | 72 | bool save(); |
73 | bool saveAs(); | 73 | bool saveAs(); |
74 | void cleanUp(); | ||
74 | 75 | ||
75 | 76 | ||
76 | void editCut(); | 77 | void editCut(); |
77 | void editCopy(); | 78 | void editCopy(); |
78 | void editPaste(); | 79 | void editPaste(); |
79 | void editFind(); | 80 | void editFind(); |
80 | void editDelete(); | 81 | void editDelete(); |
81 | 82 | ||
82 | void findNext(); | 83 | void findNext(); |
83 | void findClose(); | 84 | void findClose(); |
84 | 85 | ||
85 | void search(); | 86 | void search(); |
86 | void accept(); | 87 | void accept(); |
87 | 88 | ||
88 | void newFile( const DocLnk & ); | 89 | void newFile( const DocLnk & ); |
89 | void openFile( const DocLnk & ); | 90 | void openFile( const DocLnk & ); |
90 | void showEditTools(); | 91 | void showEditTools(); |
91 | 92 | ||
92 | void zoomIn(); | 93 | void zoomIn(); |
93 | void zoomOut(); | 94 | void zoomOut(); |
94 | void setBold(bool y); | 95 | void setBold(bool y); |
95 | void setItalic(bool y); | 96 | void setItalic(bool y); |
96 | void setWordWrap(bool y); | 97 | void setWordWrap(bool y); |
97 | 98 | ||
98 | private: | 99 | private: |
99 | void colorChanged( const QColor &c ); | 100 | void colorChanged( const QColor &c ); |
100 | void clear(); | 101 | void clear(); |
101 | void updateCaption( const QString &name=QString::null ); | 102 | void updateCaption( const QString &name=QString::null ); |
102 | void setFontSize(int sz, bool round_down_not_up); | 103 | void setFontSize(int sz, bool round_down_not_up); |
103 | 104 | ||
104 | private: | 105 | private: |
105 | fileSaver *fileSaveDlg; | 106 | fileSaver *fileSaveDlg; |
106 | fileBrowser *browseForFiles; | 107 | fileBrowser *browseForFiles; |
107 | 108 | ||
108 | QpeEditor* editor; | 109 | QpeEditor* editor; |
109 | QToolBar *menu, *editBar, *searchBar; | 110 | QToolBar *menu, *editBar, *searchBar; |
110 | QLineEdit *searchEdit; | 111 | QLineEdit *searchEdit; |
111 | DocLnk *doc; | 112 | DocLnk *doc; |
112 | bool searchVisible; | 113 | bool searchVisible; |
113 | bool bFromDocView; | 114 | bool bFromDocView; |
114 | int viewSelection; | 115 | int viewSelection; |
115 | QAction *zin, *zout; | 116 | QAction *zin, *zout; |
116 | QString currentFileName; | 117 | QString currentFileName; |
117 | }; | 118 | }; |
118 | 119 | ||
119 | #endif | 120 | #endif |
diff --git a/core/apps/textedit/textedit.pro b/core/apps/textedit/textedit.pro index 1301aed..37ddf15 100644 --- a/core/apps/textedit/textedit.pro +++ b/core/apps/textedit/textedit.pro | |||
@@ -1,15 +1,15 @@ | |||
1 | TEMPLATE = app | 1 | TEMPLATE = app |
2 | CONFIG += qt warn_on release | 2 | CONFIG += qt warn_on release |
3 | 3 | ||
4 | DESTDIR = $(OPIEDIR)/bin | 4 | DESTDIR = $(OPIEDIR)/bin |
5 | HEADERS = textedit.h fileBrowser.h fontDialog.h fileSaver.h filePermissions.h inputDialog.h | 5 | HEADERS = textedit.h fileBrowser.h fontDialog.h fileSaver.h filePermissions.h inputDialog.h |
6 | SOURCES = main.cpp textedit.cpp fileBrowser.cpp fontDialog.cpp fileSaver.cpp filePermissions.cpp inputDialog.cpp | 6 | SOURCES = main.cpp textedit.cpp fileBrowser.cpp fontDialog.cpp fileSaver.cpp filePermissions.cpp inputDialog.cpp |
7 | 7 | ||
8 | INCLUDEPATH += $(OPIEDIR)/include | 8 | INCLUDEPATH += $(OPIEDIR)/include |
9 | DEPENDPATH += $(OPIEDIR)/include | 9 | DEPENDPATH += $(OPIEDIR)/include |
10 | LIBS += -lqpe | 10 | LIBS += -lqpe |
11 | 11 | ||
12 | TARGET = textedit | 12 | TARGET = textedit |
13 | 13 | ||
14 | TRANSLATIONS = ../i18n/de/textedit.ts | 14 | TRANSLATIONS += ../i18n/de/textedit.ts |
15 | TRANSLATIONS = ../i18n/pt_BR/textedit.ts | 15 | TRANSLATIONS += ../i18n/pt_BR/textedit.ts |