summaryrefslogtreecommitdiff
path: root/core/launcher/launcherview.h
Side-by-side diff
Diffstat (limited to 'core/launcher/launcherview.h') (more/less context) (ignore 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 @@
/**********************************************************************
-** Copyright (C) 2000 Trolltech AS. All rights reserved.
+** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
**
-** This file is part of Qtopia Environment.
+** This file is part of the Qtopia Environment.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
@@ -28,12 +28,13 @@ class AppLnk;
class AppLnkSet;
class CategorySelect;
class LauncherIconView;
class QIconView;
class QIconViewItem;
class MenuButton;
+class QComboBox;
class LauncherView : public QVBox
{
Q_OBJECT
public:
@@ -47,12 +48,26 @@ public:
void setFileSystems(const QList<FileSystem> &);
void setToolsEnabled(bool);
void updateTools();
void setBusy(bool);
+ QString getAllDocLinkInfo() const;
+ enum ViewMode { Icon, List };
+ void setViewMode( ViewMode m );
+ ViewMode viewMode() const { return vmode; }
+
+ enum BackgroundType { Ruled, SolidColor, Image };
+ void setBackgroundType( BackgroundType t, const QString & );
+ BackgroundType backgroundType() const { return bgType; }
+
+ void setTextColor( const QColor & );
+ QColor textColor() const { return textCol; }
+
+ void setViewFont( const QFont & );
+
public slots:
void populate( AppLnkSet *folder, const QString& categoryfilter );
signals:
void clicked( const AppLnk * );
void rightPressed( AppLnk * );
@@ -60,22 +75,28 @@ signals:
protected slots:
void selectionChanged();
void returnPressed( QIconViewItem *item );
void itemClicked( int, QIconViewItem * );
void itemPressed( int, QIconViewItem * );
void sortBy(int);
- void showType(const QString&);
+ void showType(int);
void showCategory( int );
void resizeEvent(QResizeEvent *);
protected:
void internalPopulate( AppLnkSet *, const QString& categoryfilter );
+ void paletteChange( const QPalette & );
private:
static bool bsy;
QWidget* tools;
LauncherIconView* icons;
- MenuButton *typemb;
+ QComboBox *typemb;
+ QStringList typelist;
CategorySelect *catmb;
+ ViewMode vmode;
+ BackgroundType bgType;
+ QString bgName;
+ QColor textCol;
};
#endif // LAUNCHERVIEW_H