summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libslcompat/slfileselector.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libslcompat/slfileselector.h b/libslcompat/slfileselector.h
index 35fd11b..94ed3b7 100644
--- a/libslcompat/slfileselector.h
+++ b/libslcompat/slfileselector.h
@@ -1,40 +1,39 @@
/*
* Copyright (C) 2002 SHARP CORPORATION All rights reserved.
*/
#ifndef _SLFILESELECTOR_H_INCLUDED
#define _SLFILESELECTOR_H_INCLUDED
#include <opie2/ofileselector.h>
-using namespace Opie;
#include <qhbox.h>
#include <qvbox.h>
#include <qlistview.h>
#include <qiconview.h>
#include <qtoolbutton.h>
#include <qfileinfo.h>
#include <qtableview.h>
#include <qwidgetstack.h>
#include <qvaluelist.h>
#include <qpe/applnk.h>
#include <qpe/mimetype.h>
#include <sl/slmisc.h>
class QComboBox;
class SlFileItemType;
class QCopChannel;
struct SlFileListItemPrivate;
class SlFileListItem
{
public:
SlFileListItem(const QFileInfo&,const MimeType&);
~SlFileListItem();
const QFileInfo &file() const;
const MimeType &mimeType() const;
const QString getItemIconFilePath() const;
const QString name() const;
void setName(const QString&);
const QString sortKey() const;
void setSortKey(const QString&);
QPixmap pixmap() const;
@@ -124,65 +123,65 @@ public:
void setColumnConf(SlFileListColumnConf&);
//virtual void takeItem( SlFileIconViewItem * );
protected:
//void keyPressEvent( QKeyEvent *e );
protected slots:
signals:
void keyPressed(QKeyEvent *e,bool &isAccepted);
private:
friend class SlFileSelector;
SlFileIconViewPrivate *p;
SlFileIconView(const SlFileIconView&);
};
class SlFileSelectorFilter : public QObject
{
public:
SlFileSelectorFilter(QWidget *parent,const char *name=0);
~SlFileSelectorFilter();
virtual bool isAddToList(QFileInfo&) const = 0;
private:
SlFileSelectorFilter(const SlFileSelectorFilter&);
};
typedef QList<MimeType> SlFileMimeTypeList;
struct SlFileSelectorPrivate;
-class SlFileSelector : public OFileSelector /*QVBox*/
+class SlFileSelector : public Opie::Ui::OFileSelector /*QVBox*/
{
Q_OBJECT
public:
enum SlFileSelectorViewType {
ListView = 1,
IconView
};
enum SlFileOverwirteMode {
Overwrite = 1,
NewName,
Error
};
SlFileSelector(const QString &dirPath,
const QString &mimefilter,
QWidget *parent,
const char *name);
SlFileSelector(const QString &currentFileName,
SlFileSelectorViewType type,
const QString &mimeFilter,
SlFileListColumnConf &items,
int sortColumn,bool sortAscending,
SlFileSelectorFilter *filter=NULL,