Diffstat (limited to 'libopie/ofileselector/ofileview.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofileview.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/libopie/ofileselector/ofileview.h b/libopie/ofileselector/ofileview.h index a4b1748..d7ea4a2 100644 --- a/libopie/ofileselector/ofileview.h +++ b/libopie/ofileselector/ofileview.h | |||
@@ -50,28 +50,36 @@ class OFileView { | |||
50 | public: | 50 | public: |
51 | OFileView( OFileSelector* ); | 51 | OFileView( OFileSelector* ); |
52 | OFileView(); | 52 | OFileView(); |
53 | virtual ~OFileView(); | 53 | virtual ~OFileView(); |
54 | 54 | ||
55 | virtual void clear() = 0; | 55 | virtual void clear() = 0; |
56 | virtual void addFile(const QString &mine, | 56 | virtual void addFile(const QPixmap&, |
57 | const QString &mine, | ||
57 | QFileInfo *info, | 58 | QFileInfo *info, |
58 | bool isSymlink = FALSE ) = 0; | 59 | bool isSymlink = FALSE ) = 0; |
59 | virtual void addFile(const QString& mine, const QString& dir, | 60 | |
61 | virtual void addFile(const QPixmap&, | ||
62 | const QString& mine, const QString& dir, | ||
60 | const QString& file, bool = FALSE ) = 0; | 63 | const QString& file, bool = FALSE ) = 0; |
61 | 64 | ||
62 | virtual void addDir (const QString &mine, | 65 | virtual void addDir (const QPixmap&, |
66 | const QString &mine, | ||
63 | QFileInfo *info, | 67 | QFileInfo *info, |
64 | bool isSymlink = FALSE ) = 0; | 68 | bool isSymlink = FALSE ) = 0; |
65 | virtual void addDir (const QString& mine, const QString& dir, | 69 | virtual void addDir (const QPixmap&, |
70 | const QString& mine, const QString& dir, | ||
66 | const QString& file, bool = FALSE) = 0; | 71 | const QString& file, bool = FALSE) = 0; |
67 | 72 | ||
68 | virtual void addSymlink(const QString &mime, | 73 | virtual void addSymlink(const QPixmap&, |
74 | const QString &mime, | ||
69 | QFileInfo *info, | 75 | QFileInfo *info, |
70 | bool isSymlink = FALSE ) = 0; | 76 | bool isSymlink = FALSE ) = 0; |
71 | virtual void addSymlink(const QString& mine, | 77 | |
78 | virtual void addSymlink(const QPixmap&, | ||
79 | const QString& mine, | ||
72 | const QString& path, | 80 | const QString& path, |
73 | const QString& file, | 81 | const QString& file, |
74 | bool isSymlink = FALSE ) = 0; | 82 | bool isSymlink = FALSE ) = 0; |
75 | 83 | ||
76 | virtual void cd(const QString &path ) = 0; | 84 | virtual void cd(const QString &path ) = 0; |
77 | virtual QWidget* widget() = 0; | 85 | virtual QWidget* widget() = 0; |
@@ -88,12 +96,14 @@ protected: | |||
88 | 96 | ||
89 | void fileSelected(const QString &); | 97 | void fileSelected(const QString &); |
90 | void fileSelected(const DocLnk & ); | 98 | void fileSelected(const DocLnk & ); |
91 | void contextMenu(); | 99 | void contextMenu(); |
92 | void changedDir(const QString &); | 100 | void changedDir(const QString &); |
93 | void changedDir(const QDir & ); | 101 | void changedDir(const QDir & ); |
102 | |||
103 | /* updates the file name line of the FileSelector */ | ||
94 | void updateLine( const QString& ); | 104 | void updateLine( const QString& ); |
95 | OFileSelector* selector()const; | 105 | OFileSelector* selector()const; |
96 | 106 | ||
97 | private: | 107 | private: |
98 | OFileSelector* m_sel; | 108 | OFileSelector* m_sel; |
99 | }; | 109 | }; |