summaryrefslogtreecommitdiff
path: root/core/launcher/launcher.h
Unidiff
Diffstat (limited to 'core/launcher/launcher.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/launcher.h31
1 files changed, 25 insertions, 6 deletions
diff --git a/core/launcher/launcher.h b/core/launcher/launcher.h
index c92ef5d..0616734 100644
--- a/core/launcher/launcher.h
+++ b/core/launcher/launcher.h
@@ -1,8 +1,7 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. 2** Copyright (C) 2000-2002 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of the Qtopia Environment. 4** This file is part of the Qtopia Environment.**
5**
6** This file may be distributed and/or modified under the terms of the 5** 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 6** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 7** Foundation and appearing in the file LICENSE.GPL included in the
@@ -21,6 +20,10 @@
21#define LAUNCHER_H 20#define LAUNCHER_H
22 21
23#include <qpe/config.h> 22#include <qpe/config.h>
23#include <qpe/applnk.h>
24
25#include <opie/ofileselector.h>
26
24#include <qmainwindow.h> 27#include <qmainwindow.h>
25#include <qtabbar.h> 28#include <qtabbar.h>
26#include <qstringlist.h> 29#include <qstringlist.h>
@@ -36,6 +39,17 @@ class QWidgetStack;
36class StorageInfo; 39class StorageInfo;
37class SyncDialog; 40class SyncDialog;
38 41
42
43class DocumentTab : public OFileSelector
44{
45 Q_OBJECT
46public:
47 DocumentTab( QWidget *parent, int mode, int selector, const QString &dirName, const QString &fileName);//, 4,0, "/","");
48~DocumentTab();
49private:
50
51};
52
39class CategoryTabBar : public QTabBar 53class CategoryTabBar : public QTabBar
40{ 54{
41 Q_OBJECT 55 Q_OBJECT
@@ -43,12 +57,15 @@ public:
43 CategoryTabBar( QWidget *parent=0, const char *name=0 ); 57 CategoryTabBar( QWidget *parent=0, const char *name=0 );
44 ~CategoryTabBar(); 58 ~CategoryTabBar();
45 59
60signals:
61
46protected slots: 62protected slots:
47 virtual void layoutTabs(); 63 virtual void layoutTabs();
48 64
49protected: 65protected:
50 void paint ( QPainter *p, QTab *t, bool f ) const; 66 void paint ( QPainter *p, QTab *t, bool f ) const;
51 void paintLabel( QPainter* p, const QRect& br, QTab* t, bool has_focus ) const; 67 void paintLabel( QPainter* p, const QRect& br, QTab* t, bool has_focus ) const;
68
52}; 69};
53 70
54class CategoryTabWidget : public QVBox { 71class CategoryTabWidget : public QVBox {
@@ -57,23 +74,25 @@ class CategoryTabWidget : public QVBox {
57public: 74public:
58 CategoryTabWidget( QWidget* parent ); 75 CategoryTabWidget( QWidget* parent );
59 void initializeCategories(AppLnkSet* rootFolder, AppLnkSet* docFolder, 76 void initializeCategories(AppLnkSet* rootFolder, AppLnkSet* docFolder,
60 const QList<FileSystem> &); 77 const QList<FileSystem> &);
61 void updateDocs(AppLnkSet* docFolder, const QList<FileSystem> &fs); 78// void updateDocs(AppLnkSet* docFolder, const QList<FileSystem> &fs);
62 void updateLink(const QString& linkfile); 79 void updateLink(const QString& linkfile);
63 void setBusy(bool on); 80 void setBusy(bool on);
64 QString getAllDocLinkInfo() const; 81 QString getAllDocLinkInfo() const;
65 LauncherView *view( const QString &id ); 82 LauncherView *view( const QString &id );
66 void setBusyIndicatorType ( const QString &type ); 83 void setBusyIndicatorType ( const QString &type );
84 DocumentTab *fileSel;
67signals: 85signals:
68 void selected(const QString&); 86 void selected(const QString&);
69 void clicked(const AppLnk*); 87 void clicked(const AppLnk*);
70 void rightPressed(AppLnk*); 88 void rightPressed(AppLnk*);
71 89 void ofileSel(const DocLnk &);
72public slots: 90public slots:
73 void nextTab(); 91 void nextTab();
74 void prevTab(); 92 void prevTab();
75 void showTab(const QString&); 93 void showTab(const QString&);
76 94 void clickie(const DocLnk&);
95 void clickie(const QString &);
77protected slots: 96protected slots:
78 void tabProperties(); 97 void tabProperties();
79 98