summaryrefslogtreecommitdiff
path: root/core/launcher/launcherview.h
Unidiff
Diffstat (limited to 'core/launcher/launcherview.h') (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/launcherview.h29
1 files changed, 25 insertions, 4 deletions
diff --git a/core/launcher/launcherview.h b/core/launcher/launcherview.h
index 3aaef7e..2fb37b6 100644
--- a/core/launcher/launcherview.h
+++ b/core/launcher/launcherview.h
@@ -1,16 +1,16 @@
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
@@ -22,60 +22,81 @@
22 22
23#include <qpe/storage.h> 23#include <qpe/storage.h>
24 24
25#include <qvbox.h> 25#include <qvbox.h>
26 26
27class AppLnk; 27class AppLnk;
28class AppLnkSet; 28class AppLnkSet;
29class CategorySelect; 29class CategorySelect;
30class LauncherIconView; 30class LauncherIconView;
31class QIconView; 31class QIconView;
32class QIconViewItem; 32class QIconViewItem;
33class MenuButton; 33class MenuButton;
34class QComboBox;
34 35
35class LauncherView : public QVBox 36class LauncherView : public QVBox
36{ 37{
37 Q_OBJECT 38 Q_OBJECT
38 39
39public: 40public:
40 LauncherView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 41 LauncherView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
41 ~LauncherView(); 42 ~LauncherView();
42 43
43 bool removeLink(const QString& linkfile); 44 bool removeLink(const QString& linkfile);
44 void addItem(AppLnk* app, bool resort=TRUE); 45 void addItem(AppLnk* app, bool resort=TRUE);
45 void sort(); 46 void sort();
46 47
47 void setFileSystems(const QList<FileSystem> &); 48 void setFileSystems(const QList<FileSystem> &);
48 void setToolsEnabled(bool); 49 void setToolsEnabled(bool);
49 void updateTools(); 50 void updateTools();
50 51
51 void setBusy(bool); 52 void setBusy(bool);
52 53
54 QString getAllDocLinkInfo() const;
55 enum ViewMode { Icon, List };
56 void setViewMode( ViewMode m );
57 ViewMode viewMode() const { return vmode; }
58
59 enum BackgroundType { Ruled, SolidColor, Image };
60 void setBackgroundType( BackgroundType t, const QString & );
61 BackgroundType backgroundType() const { return bgType; }
62
63 void setTextColor( const QColor & );
64 QColor textColor() const { return textCol; }
65
66 void setViewFont( const QFont & );
67
53public slots: 68public slots:
54 void populate( AppLnkSet *folder, const QString& categoryfilter ); 69 void populate( AppLnkSet *folder, const QString& categoryfilter );
55 70
56signals: 71signals:
57 void clicked( const AppLnk * ); 72 void clicked( const AppLnk * );
58 void rightPressed( AppLnk * ); 73 void rightPressed( AppLnk * );
59 74
60protected slots: 75protected slots:
61 void selectionChanged(); 76 void selectionChanged();
62 void returnPressed( QIconViewItem *item ); 77 void returnPressed( QIconViewItem *item );
63 void itemClicked( int, QIconViewItem * ); 78 void itemClicked( int, QIconViewItem * );
64 void itemPressed( int, QIconViewItem * ); 79 void itemPressed( int, QIconViewItem * );
65 void sortBy(int); 80 void sortBy(int);
66 void showType(const QString&); 81 void showType(int);
67 void showCategory( int ); 82 void showCategory( int );
68 void resizeEvent(QResizeEvent *); 83 void resizeEvent(QResizeEvent *);
69 84
70protected: 85protected:
71 void internalPopulate( AppLnkSet *, const QString& categoryfilter ); 86 void internalPopulate( AppLnkSet *, const QString& categoryfilter );
87 void paletteChange( const QPalette & );
72 88
73private: 89private:
74 static bool bsy; 90 static bool bsy;
75 QWidget* tools; 91 QWidget* tools;
76 LauncherIconView* icons; 92 LauncherIconView* icons;
77 MenuButton *typemb; 93 QComboBox *typemb;
94 QStringList typelist;
78 CategorySelect *catmb; 95 CategorySelect *catmb;
96 ViewMode vmode;
97 BackgroundType bgType;
98 QString bgName;
99 QColor textCol;
79}; 100};
80 101
81#endif // LAUNCHERVIEW_H 102#endif // LAUNCHERVIEW_H