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,10 +1,10 @@
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**
@@ -28,12 +28,13 @@ class 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:
@@ -47,12 +48,26 @@ public:
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 * );
@@ -60,22 +75,28 @@ signals:
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