-rw-r--r-- | library/global.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/library/global.h b/library/global.h index fdf8754..1136b12 100644 --- a/library/global.h +++ b/library/global.h | |||
@@ -1,13 +1,12 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Holger 'zecke' Freyther <freyther@kde.org> | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
4 | ** | 3 | ** |
5 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
6 | ** | 5 | ** |
7 | ** 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 |
8 | ** 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 |
9 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
10 | ** packaging of this file. | 9 | ** packaging of this file. |
11 | ** | 10 | ** |
12 | ** 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 |
13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
@@ -41,30 +40,27 @@ public: | |||
41 | 40 | ||
42 | static void addWords(const QStringList& word); | 41 | static void addWords(const QStringList& word); |
43 | static void addWords(const QString& dictname, const QStringList& word); | 42 | static void addWords(const QString& dictname, const QStringList& word); |
44 | // static void removeWords(const QStringList& word); -- if someone wants it | 43 | // static void removeWords(const QStringList& word); -- if someone wants it |
45 | 44 | ||
46 | static void createDocDir(); | 45 | static void createDocDir(); |
47 | 46 | ||
48 | static void findDocuments(DocLnkSet* folder, const QString &mimefilter=QString::null); | 47 | static void findDocuments(DocLnkSet* folder, const QString &mimefilter=QString::null); |
49 | // we don't need a mimefilter. Same as above but this is fast as light speed or not ;) | ||
50 | //static void findNewDocuments( DocLnkSet* folder ); | ||
51 | 48 | ||
52 | static QString applicationFileName(const QString& appname, const QString& filename); | 49 | static QString applicationFileName(const QString& appname, const QString& filename); |
53 | 50 | ||
54 | struct Command { | 51 | struct Command { |
55 | const char *file; | 52 | const char *file; |
56 | QWidget *(*func)( bool ); | 53 | QWidget *(*func)( bool ); |
57 | bool maximized; | 54 | bool maximized; |
58 | bool documentary; | 55 | bool documentary; |
59 | }; | 56 | }; |
60 | static void setBuiltinCommands( Command* ); | 57 | static void setBuiltinCommands( Command* ); |
61 | 58 | ||
62 | static void invoke( const QString &exec); | ||
63 | static void execute( const QString &exec, const QString &document=QString::null ); | 59 | static void execute( const QString &exec, const QString &document=QString::null ); |
64 | static void setDocument( QWidget* receiver, const QString& document ); | 60 | static void setDocument( QWidget* receiver, const QString& document ); |
65 | static bool terminateBuiltin( const QString& ); | 61 | static bool terminateBuiltin( const QString& ); |
66 | static void terminate( const AppLnk* ); | 62 | static void terminate( const AppLnk* ); |
67 | 63 | ||
68 | static bool isBuiltinCommand( const QString &name ); | 64 | static bool isBuiltinCommand( const QString &name ); |
69 | 65 | ||
70 | // system messaging | 66 | // system messaging |
@@ -81,13 +77,14 @@ public: | |||
81 | static QString stringQuote(const QString& s); | 77 | static QString stringQuote(const QString& s); |
82 | 78 | ||
83 | #ifdef QTOPIA_INTERNAL_LANGLIST | 79 | #ifdef QTOPIA_INTERNAL_LANGLIST |
84 | static QStringList languageList(); | 80 | static QStringList languageList(); |
85 | static QStringList helpPath(); | 81 | static QStringList helpPath(); |
86 | #endif | 82 | #endif |
87 | 83 | ||
88 | private: | 84 | private: |
85 | static void invoke( const QString &exec); | ||
89 | static Command* builtin; | 86 | static Command* builtin; |
90 | static QGuardedPtr<QWidget> *running; | 87 | static QGuardedPtr<QWidget> *running; |
91 | }; | 88 | }; |
92 | 89 | ||
93 | #endif | 90 | #endif |