summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 8eaafce..bd0014a 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -1,69 +1,74 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 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. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20// changes added by L. J. Potter Sun 02-17-2002 21:31:31 20// changes added by L. J. Potter Sun 02-17-2002 21:31:31
21 21/*
22 useAdvancedfeatures =
23 1) do not prompt on cancel, even if text is edited.
24 2) prompt user is .desktop file
25 3) prompt user for File Permissions on saveAs
26 */
22#include "textedit.h" 27#include "textedit.h"
23#include "filePermissions.h" 28#include "filePermissions.h"
24#include "fontDialog.h" 29#include "fontDialog.h"
25 30
26#include <opie/ofileselector.h> 31#include <opie/ofileselector.h>
27#include <opie/ofiledialog.h> 32#include <opie/ofiledialog.h>
28 33
29#include <qpe/fontdatabase.h> 34#include <qpe/fontdatabase.h>
30#include <qpe/global.h> 35#include <qpe/global.h>
31#include <qpe/fileselector.h> 36#include <qpe/fileselector.h>
32#include <qpe/applnk.h> 37#include <qpe/applnk.h>
33#include <qpe/resource.h> 38#include <qpe/resource.h>
34#include <qpe/config.h> 39#include <qpe/config.h>
35#include <qpe/qpeapplication.h> 40#include <qpe/qpeapplication.h>
36#include <qpe/qpemenubar.h> 41#include <qpe/qpemenubar.h>
37#include <qpe/qpetoolbar.h> 42#include <qpe/qpetoolbar.h>
38#include <qpe/qcopenvelope_qws.h> 43#include <qpe/qcopenvelope_qws.h>
39 44
40#include <qdatetime.h> 45#include <qdatetime.h>
41#include <qclipboard.h> 46#include <qclipboard.h>
42#include <qstringlist.h> 47#include <qstringlist.h>
43#include <qaction.h> 48#include <qaction.h>
44#include <qcolordialog.h> 49#include <qcolordialog.h>
45#include <qfileinfo.h> 50#include <qfileinfo.h>
46#include <qlineedit.h> 51#include <qlineedit.h>
47#include <qmessagebox.h> 52#include <qmessagebox.h>
48#include <qobjectlist.h> 53#include <qobjectlist.h>
49#include <qpopupmenu.h> 54#include <qpopupmenu.h>
50#include <qspinbox.h> 55#include <qspinbox.h>
51#include <qtoolbutton.h> 56#include <qtoolbutton.h>
52#include <qwidgetstack.h> 57#include <qwidgetstack.h>
53#include <qcheckbox.h> 58#include <qcheckbox.h>
54#include <qcombo.h> 59#include <qcombo.h>
55 60
56#include <unistd.h> 61#include <unistd.h>
57#include <sys/stat.h> 62#include <sys/stat.h>
58#include <stdlib.h> //getenv 63#include <stdlib.h> //getenv
59 64
60 65
61/* XPM */ 66/* XPM */
62static char * filesave_xpm[] = { 67static char * filesave_xpm[] = {
63"16 16 78 1", 68"16 16 78 1",
64" c None", 69" c None",
65". c #343434", 70". c #343434",
66"+ c #A0A0A0", 71"+ c #A0A0A0",
67"@ c #565656", 72"@ c #565656",
68"# c #9E9E9E", 73"# c #9E9E9E",
69"$ c #525252", 74"$ c #525252",