summaryrefslogtreecommitdiff
path: root/core/launcher/launcherview.h
Unidiff
Diffstat (limited to 'core/launcher/launcherview.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcherview.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/core/launcher/launcherview.h b/core/launcher/launcherview.h
new file mode 100644
index 0000000..3aaef7e
--- a/dev/null
+++ b/core/launcher/launcherview.h
@@ -0,0 +1,81 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
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
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
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.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20#ifndef LAUNCHERVIEW_H
21#define LAUNCHERVIEW_H
22
23#include <qpe/storage.h>
24
25#include <qvbox.h>
26
27class AppLnk;
28class AppLnkSet;
29class CategorySelect;
30class LauncherIconView;
31class QIconView;
32class QIconViewItem;
33class MenuButton;
34
35class LauncherView : public QVBox
36{
37 Q_OBJECT
38
39public:
40 LauncherView( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
41 ~LauncherView();
42
43 bool removeLink(const QString& linkfile);
44 void addItem(AppLnk* app, bool resort=TRUE);
45 void sort();
46
47 void setFileSystems(const QList<FileSystem> &);
48 void setToolsEnabled(bool);
49 void updateTools();
50
51 void setBusy(bool);
52
53public slots:
54 void populate( AppLnkSet *folder, const QString& categoryfilter );
55
56signals:
57 void clicked( const AppLnk * );
58 void rightPressed( AppLnk * );
59
60protected slots:
61 void selectionChanged();
62 void returnPressed( QIconViewItem *item );
63 void itemClicked( int, QIconViewItem * );
64 void itemPressed( int, QIconViewItem * );
65 void sortBy(int);
66 void showType(const QString&);
67 void showCategory( int );
68 void resizeEvent(QResizeEvent *);
69
70protected:
71 void internalPopulate( AppLnkSet *, const QString& categoryfilter );
72
73private:
74 static bool bsy;
75 QWidget* tools;
76 LauncherIconView* icons;
77 MenuButton *typemb;
78 CategorySelect *catmb;
79};
80
81#endif // LAUNCHERVIEW_H