summaryrefslogtreecommitdiff
path: root/core/launcher/launcher.h
Unidiff
Diffstat (limited to 'core/launcher/launcher.h') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/launcher.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/core/launcher/launcher.h b/core/launcher/launcher.h
index d2efa58..e3881ea 100644
--- a/core/launcher/launcher.h
+++ b/core/launcher/launcher.h
@@ -1,34 +1,35 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of the 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#ifndef LAUNCHER_H 20#ifndef LAUNCHER_H
21#define LAUNCHER_H 21#define LAUNCHER_H
22 22
23#include <qpe/config.h>
23#include <qmainwindow.h> 24#include <qmainwindow.h>
24#include <qtabbar.h> 25#include <qtabbar.h>
25#include <qstringlist.h> 26#include <qstringlist.h>
26#include <qvbox.h> 27#include <qvbox.h>
27#include <qlist.h> 28#include <qlist.h>
28#include <qpe/palmtopuidgen.h> 29#include <qpe/palmtopuidgen.h>
29#include "launcherview.h" 30#include "launcherview.h"
30 31
31class AppLnk; 32class AppLnk;
32class AppLnkSet; 33class AppLnkSet;
33class DocLnkSet; 34class DocLnkSet;
34class QWidgetStack; 35class QWidgetStack;
@@ -51,35 +52,41 @@ protected:
51}; 52};
52 53
53class CategoryTabWidget : public QVBox { 54class CategoryTabWidget : public QVBox {
54 // can't use a QTabWidget, since it won't let us set the frame style. 55 // can't use a QTabWidget, since it won't let us set the frame style.
55 Q_OBJECT 56 Q_OBJECT
56public: 57public:
57 CategoryTabWidget( QWidget* parent ); 58 CategoryTabWidget( QWidget* parent );
58 void initializeCategories(AppLnkSet* rootFolder, AppLnkSet* docFolder, 59 void initializeCategories(AppLnkSet* rootFolder, AppLnkSet* docFolder,
59 const QList<FileSystem> &); 60 const QList<FileSystem> &);
60 void updateDocs(AppLnkSet* docFolder, const QList<FileSystem> &fs); 61 void updateDocs(AppLnkSet* docFolder, const QList<FileSystem> &fs);
61 void updateLink(const QString& linkfile); 62 void updateLink(const QString& linkfile);
62 void setBusy(bool on); 63 void setBusy(bool on);
64 QString getAllDocLinkInfo() const;
65 LauncherView *view( const QString &id );
63 66
64signals: 67signals:
65 void selected(const QString&); 68 void selected(const QString&);
66 void clicked(const AppLnk*); 69 void clicked(const AppLnk*);
67 void rightPressed(AppLnk*); 70 void rightPressed(AppLnk*);
68 71
69public slots: 72public slots:
70 void nextTab(); 73 void nextTab();
71 void prevTab(); 74 void prevTab();
72 75
76protected slots:
77 void tabProperties();
78
73protected: 79protected:
80 void setTabAppearance( const QString &id, Config &cfg );
74 void paletteChange( const QPalette &p ); 81 void paletteChange( const QPalette &p );
75 82
76private: 83private:
77 CategoryTabBar* categoryBar; 84 CategoryTabBar* categoryBar;
78 QWidgetStack* stack; 85 QWidgetStack* stack;
79 LauncherView* docview; 86 LauncherView* docview;
80 QStringList ids; 87 QStringList ids;
81 int tabs; 88 int tabs;
82 LauncherView* newView( const QString&, const QPixmap& pm, const QString& label ); 89 LauncherView* newView( const QString&, const QPixmap& pm, const QString& label );
83 void addItem( const QString& ); 90 void addItem( const QString& );
84}; 91};
85 92
@@ -102,39 +109,41 @@ public slots:
102 void externalSelected( const AppLnk *); 109 void externalSelected( const AppLnk *);
103 void properties( AppLnk * ); 110 void properties( AppLnk * );
104 void nextView(); 111 void nextView();
105 112
106signals: 113signals:
107 void executing( const AppLnk * ); 114 void executing( const AppLnk * );
108 void busy(); 115 void busy();
109 void notBusy(const QString&); 116 void notBusy(const QString&);
110 117
111private slots: 118private slots:
112 void doMaximize(); 119 void doMaximize();
113 void systemMessage( const QCString &, const QByteArray &); 120 void systemMessage( const QCString &, const QByteArray &);
121 void launcherMessage( const QCString &, const QByteArray &);
114 void storageChanged(); 122 void storageChanged();
115 void cancelSync(); 123 void cancelSync();
116 124
117private: 125private:
118 void updateApps(); 126 void updateApps();
119 void loadDocs(); 127 void loadDocs();
120 void updateDocs(); 128 void updateDocs();
121 void updateTabs(); 129 void updateTabs();
122 void updateMimeTypes(); 130 void updateMimeTypes();
123 void updateMimeTypes(AppLnkSet*); 131 void updateMimeTypes(AppLnkSet*);
124 void preloadApps(); 132 void preloadApps();
125 AppLnkSet *rootFolder; 133 AppLnkSet *rootFolder;
126 DocLnkSet *docsFolder; 134 DocLnkSet *docsFolder;
127 CategoryTabWidget *tabs; 135 CategoryTabWidget *tabs;
128 StorageInfo *storage; 136 StorageInfo *storage;
129 SyncDialog *syncDialog; 137 SyncDialog *syncDialog;
130 138
131 void updateLink(const QString& link); 139 void updateLink(const QString& link);
132 bool in_lnk_props; 140 bool in_lnk_props;
133 bool got_lnk_change; 141 bool got_lnk_change;
134 QString lnk_change; 142 QString lnk_change;
143
135 QString m_timeStamp; 144 QString m_timeStamp;
136 Qtopia::UidGen uidgen; 145 Qtopia::UidGen uidgen;
137}; 146};
138 147
139#endif // LAUNCHERVIEW_H 148#endif // LAUNCHERVIEW_H
140 149