author | zecke <zecke> | 2002-03-24 19:31:32 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-03-24 19:31:32 (UTC) |
commit | eb813af4c1e301c8ba015627a1da04f8199a3be2 (patch) (unidiff) | |
tree | 7f23f61c2d8c58655fc98798b7f1b4aec75b5ff3 /library/global.h | |
parent | 4802684dd785274be50b472c87e315da0e325449 (diff) | |
download | opie-eb813af4c1e301c8ba015627a1da04f8199a3be2.zip opie-eb813af4c1e301c8ba015627a1da04f8199a3be2.tar.gz opie-eb813af4c1e301c8ba015627a1da04f8199a3be2.tar.bz2 |
Here is the second chunk of bits to make things a bit more fast
-rw-r--r-- | library/global.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/library/global.h b/library/global.h index d9ff8f8..fdf8754 100644 --- a/library/global.h +++ b/library/global.h | |||
@@ -1,17 +1,18 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2002 Holger 'zecke' Freyther <freyther@kde.org> | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 3 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 4 | ** |
4 | ** This file is part of Qtopia Environment. | 5 | ** This file is part of Qtopia Environment. |
5 | ** | 6 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 7 | ** 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 | 8 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 9 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 10 | ** packaging of this file. |
10 | ** | 11 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 12 | ** 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. | 13 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 14 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 15 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 16 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 17 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 18 | ** not clear to you. |
@@ -32,54 +33,61 @@ class Global | |||
32 | { | 33 | { |
33 | public: | 34 | public: |
34 | Global(); | 35 | Global(); |
35 | 36 | ||
36 | // Dictionaries | 37 | // Dictionaries |
37 | static const QDawg& fixedDawg(); | 38 | static const QDawg& fixedDawg(); |
38 | static const QDawg& addedDawg(); | 39 | static const QDawg& addedDawg(); |
39 | static const QDawg& dawg(const QString& name); | 40 | static const QDawg& dawg(const QString& name); |
40 | 41 | ||
41 | static void addWords(const QStringList& word); | 42 | static void addWords(const QStringList& word); |
42 | static void addWords(const QString& dictname, const QStringList& word); | 43 | static void addWords(const QString& dictname, const QStringList& word); |
43 | // static void removeWords(const QStringList& word); -- if someone wants it | 44 | // static void removeWords(const QStringList& word); -- if someone wants it |
44 | 45 | ||
45 | static void createDocDir(); | 46 | static void createDocDir(); |
46 | 47 | ||
47 | static void findDocuments(DocLnkSet* folder, const QString &mimefilter=QString::null); | 48 | 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 ); | ||
48 | 51 | ||
49 | static QString applicationFileName(const QString& appname, const QString& filename); | 52 | static QString applicationFileName(const QString& appname, const QString& filename); |
50 | 53 | ||
51 | struct Command { | 54 | struct Command { |
52 | const char *file; | 55 | const char *file; |
53 | QWidget *(*func)( bool ); | 56 | QWidget *(*func)( bool ); |
54 | bool maximized; | 57 | bool maximized; |
55 | bool documentary; | 58 | bool documentary; |
56 | }; | 59 | }; |
57 | static void setBuiltinCommands( Command* ); | 60 | static void setBuiltinCommands( Command* ); |
58 | 61 | ||
59 | static void invoke( const QString &exec); | 62 | static void invoke( const QString &exec); |
60 | static void execute( const QString &exec, const QString &document=QString::null ); | 63 | static void execute( const QString &exec, const QString &document=QString::null ); |
61 | static void setDocument( QWidget* receiver, const QString& document ); | 64 | static void setDocument( QWidget* receiver, const QString& document ); |
62 | static bool terminateBuiltin( const QString& ); | 65 | static bool terminateBuiltin( const QString& ); |
63 | static void terminate( const AppLnk* ); | 66 | static void terminate( const AppLnk* ); |
64 | 67 | ||
65 | static bool isBuiltinCommand( const QString &name ); | 68 | static bool isBuiltinCommand( const QString &name ); |
66 | 69 | ||
67 | // system messaging | 70 | // system messaging |
68 | static void applyStyle(); | 71 | static void applyStyle(); |
69 | static void statusMessage(const QString&); | 72 | static void statusMessage(const QString&); |
70 | static QWidget *shutdown( bool = FALSE ); | 73 | static QWidget *shutdown( bool = FALSE ); |
71 | static QWidget *restart( bool = FALSE ); | 74 | static QWidget *restart( bool = FALSE ); |
72 | static void hideInputMethod(); | 75 | static void hideInputMethod(); |
73 | static void showInputMethod(); | 76 | static void showInputMethod(); |
74 | 77 | ||
75 | static void writeHWClock(); | 78 | static void writeHWClock(); |
76 | 79 | ||
77 | static QString shellQuote(const QString& s); | 80 | static QString shellQuote(const QString& s); |
78 | static QString stringQuote(const QString& s); | 81 | static QString stringQuote(const QString& s); |
79 | 82 | ||
83 | #ifdef QTOPIA_INTERNAL_LANGLIST | ||
84 | static QStringList languageList(); | ||
85 | static QStringList helpPath(); | ||
86 | #endif | ||
87 | |||
80 | private: | 88 | private: |
81 | static Command* builtin; | 89 | static Command* builtin; |
82 | static QGuardedPtr<QWidget> *running; | 90 | static QGuardedPtr<QWidget> *running; |
83 | }; | 91 | }; |
84 | 92 | ||
85 | #endif | 93 | #endif |