-rw-r--r-- | core/launcher/launcher.h | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/core/launcher/launcher.h b/core/launcher/launcher.h index c92ef5d..0616734 100644 --- a/core/launcher/launcher.h +++ b/core/launcher/launcher.h | |||
@@ -1,11 +1,10 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment.** |
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | 5 | ** 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 | 6 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 7 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 8 | ** packaging of this file. |
10 | ** | 9 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 10 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
@@ -18,12 +17,16 @@ | |||
18 | ** | 17 | ** |
19 | **********************************************************************/ | 18 | **********************************************************************/ |
20 | #ifndef LAUNCHER_H | 19 | #ifndef LAUNCHER_H |
21 | #define LAUNCHER_H | 20 | #define LAUNCHER_H |
22 | 21 | ||
23 | #include <qpe/config.h> | 22 | #include <qpe/config.h> |
23 | #include <qpe/applnk.h> | ||
24 | |||
25 | #include <opie/ofileselector.h> | ||
26 | |||
24 | #include <qmainwindow.h> | 27 | #include <qmainwindow.h> |
25 | #include <qtabbar.h> | 28 | #include <qtabbar.h> |
26 | #include <qstringlist.h> | 29 | #include <qstringlist.h> |
27 | #include <qvbox.h> | 30 | #include <qvbox.h> |
28 | #include <qlist.h> | 31 | #include <qlist.h> |
29 | #include <qpe/palmtopuidgen.h> | 32 | #include <qpe/palmtopuidgen.h> |
@@ -33,50 +36,66 @@ class AppLnk; | |||
33 | class AppLnkSet; | 36 | class AppLnkSet; |
34 | class DocLnkSet; | 37 | class DocLnkSet; |
35 | class QWidgetStack; | 38 | class QWidgetStack; |
36 | class StorageInfo; | 39 | class StorageInfo; |
37 | class SyncDialog; | 40 | class SyncDialog; |
38 | 41 | ||
42 | |||
43 | class DocumentTab : public OFileSelector | ||
44 | { | ||
45 | Q_OBJECT | ||
46 | public: | ||
47 | DocumentTab( QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName);//, 4,0, "/",""); | ||
48 | ~DocumentTab(); | ||
49 | private: | ||
50 | |||
51 | }; | ||
52 | |||
39 | class CategoryTabBar : public QTabBar | 53 | class CategoryTabBar : public QTabBar |
40 | { | 54 | { |
41 | Q_OBJECT | 55 | Q_OBJECT |
42 | public: | 56 | public: |
43 | CategoryTabBar( QWidget *parent=0, const char *name=0 ); | 57 | CategoryTabBar( QWidget *parent=0, const char *name=0 ); |
44 | ~CategoryTabBar(); | 58 | ~CategoryTabBar(); |
45 | 59 | ||
60 | signals: | ||
61 | |||
46 | protected slots: | 62 | protected slots: |
47 | virtual void layoutTabs(); | 63 | virtual void layoutTabs(); |
48 | 64 | ||
49 | protected: | 65 | protected: |
50 | void paint ( QPainter *p, QTab *t, bool f ) const; | 66 | void paint ( QPainter *p, QTab *t, bool f ) const; |
51 | void paintLabel( QPainter* p, const QRect& br, QTab* t, bool has_focus ) const; | 67 | void paintLabel( QPainter* p, const QRect& br, QTab* t, bool has_focus ) const; |
68 | |||
52 | }; | 69 | }; |
53 | 70 | ||
54 | class CategoryTabWidget : public QVBox { | 71 | class CategoryTabWidget : public QVBox { |
55 | // can't use a QTabWidget, since it won't let us set the frame style. | 72 | // can't use a QTabWidget, since it won't let us set the frame style. |
56 | Q_OBJECT | 73 | Q_OBJECT |
57 | public: | 74 | public: |
58 | CategoryTabWidget( QWidget* parent ); | 75 | CategoryTabWidget( QWidget* parent ); |
59 | void initializeCategories(AppLnkSet* rootFolder, AppLnkSet* docFolder, | 76 | void initializeCategories(AppLnkSet* rootFolder, AppLnkSet* docFolder, |
60 | const QList<FileSystem> &); | 77 | const QList<FileSystem> &); |
61 | void updateDocs(AppLnkSet* docFolder, const QList<FileSystem> &fs); | 78 | // void updateDocs(AppLnkSet* docFolder, const QList<FileSystem> &fs); |
62 | void updateLink(const QString& linkfile); | 79 | void updateLink(const QString& linkfile); |
63 | void setBusy(bool on); | 80 | void setBusy(bool on); |
64 | QString getAllDocLinkInfo() const; | 81 | QString getAllDocLinkInfo() const; |
65 | LauncherView *view( const QString &id ); | 82 | LauncherView *view( const QString &id ); |
66 | void setBusyIndicatorType ( const QString &type ); | 83 | void setBusyIndicatorType ( const QString &type ); |
84 | DocumentTab *fileSel; | ||
67 | signals: | 85 | signals: |
68 | void selected(const QString&); | 86 | void selected(const QString&); |
69 | void clicked(const AppLnk*); | 87 | void clicked(const AppLnk*); |
70 | void rightPressed(AppLnk*); | 88 | void rightPressed(AppLnk*); |
71 | 89 | void ofileSel(const DocLnk &); | |
72 | public slots: | 90 | public slots: |
73 | void nextTab(); | 91 | void nextTab(); |
74 | void prevTab(); | 92 | void prevTab(); |
75 | void showTab(const QString&); | 93 | void showTab(const QString&); |
76 | 94 | void clickie(const DocLnk&); | |
95 | void clickie(const QString &); | ||
77 | protected slots: | 96 | protected slots: |
78 | void tabProperties(); | 97 | void tabProperties(); |
79 | 98 | ||
80 | protected: | 99 | protected: |
81 | void setTabAppearance( const QString &id, Config &cfg ); | 100 | void setTabAppearance( const QString &id, Config &cfg ); |
82 | void paletteChange( const QPalette &p ); | 101 | void paletteChange( const QPalette &p ); |