author | sandman <sandman> | 2002-09-26 17:37:50 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-09-26 17:37:50 (UTC) |
commit | df3a5b9afa34fa45d06e211f415f74c38017a917 (patch) (unidiff) | |
tree | 3a5f5825badd598ba82227645cb2f00941265a07 /core/launcher/launcherview.h | |
parent | e7c2c104d59ef090fbc2f7dbcb052e22e0f5d591 (diff) | |
download | opie-df3a5b9afa34fa45d06e211f415f74c38017a917.zip opie-df3a5b9afa34fa45d06e211f415f74c38017a917.tar.gz opie-df3a5b9afa34fa45d06e211f415f74c38017a917.tar.bz2 |
Qtopia 1.6 merge:
Launcher tabs can now each have their own background, icon-size and font.
Diffstat (limited to 'core/launcher/launcherview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/launcher/launcherview.h | 29 |
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,7 +1,7 @@ | |||
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 |
@@ -31,6 +31,7 @@ class LauncherIconView; | |||
31 | class QIconView; | 31 | class QIconView; |
32 | class QIconViewItem; | 32 | class QIconViewItem; |
33 | class MenuButton; | 33 | class MenuButton; |
34 | class QComboBox; | ||
34 | 35 | ||
35 | class LauncherView : public QVBox | 36 | class LauncherView : public QVBox |
36 | { | 37 | { |
@@ -50,6 +51,20 @@ public: | |||
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 | |||
53 | public slots: | 68 | public slots: |
54 | void populate( AppLnkSet *folder, const QString& categoryfilter ); | 69 | void populate( AppLnkSet *folder, const QString& categoryfilter ); |
55 | 70 | ||
@@ -63,19 +78,25 @@ protected slots: | |||
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 | ||
70 | protected: | 85 | protected: |
71 | void internalPopulate( AppLnkSet *, const QString& categoryfilter ); | 86 | void internalPopulate( AppLnkSet *, const QString& categoryfilter ); |
87 | void paletteChange( const QPalette & ); | ||
72 | 88 | ||
73 | private: | 89 | private: |
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 |