author | zecke <zecke> | 2002-03-30 23:26:49 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-03-30 23:26:49 (UTC) |
commit | 5d12c8fb75458262f6414073759b4c610f615525 (patch) (side-by-side diff) | |
tree | 45a3158271b748c6e5ff98afcf7014a25cd447d8 /libopie/ofileselector.h | |
parent | f3376cde32aa6a03070fb8f2d1428cedcbe49425 (diff) | |
download | opie-5d12c8fb75458262f6414073759b4c610f615525.zip opie-5d12c8fb75458262f6414073759b4c610f615525.tar.gz opie-5d12c8fb75458262f6414073759b4c610f615525.tar.bz2 |
This time thanks to tronical (Simon Hausmann) for reviewing the interface
the selector is almost done so better start porting to it
A dialog will come when beeing done with the real widget
-rw-r--r-- | libopie/ofileselector.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libopie/ofileselector.h b/libopie/ofileselector.h index 73674e2..6936773 100644 --- a/libopie/ofileselector.h +++ b/libopie/ofileselector.h @@ -68,7 +68,7 @@ class OFileSelectorItem : public QListViewItem { public: OFileSelectorItem(QListView *view, const QPixmap &pixmap, const QString &path, const QString &date, const QString &size, const QString &mDir, - bool isDir=false ): QListViewItem(view) { + bool isLocked=false, bool isDir=false ): QListViewItem(view) { setPixmap(0, pixmap ); setText(1, path ); setText(2, size ); @@ -76,6 +76,10 @@ class OFileSelectorItem : public QListViewItem { //setText(4, mDir ); m_dir = mDir; dir = isDir; + mLocked = isLocked; + } + bool locked() const{ + return mLocked; } QString directory()const{ return m_dir; @@ -104,6 +108,7 @@ class OFileSelectorItem : public QListViewItem { return ke; }; private: + bool mLocked:1; bool dir:1; QString m_dir; }; @@ -136,7 +141,7 @@ class OFileSelector : public QWidget { bool showDirs()const { return m_dir; } void setShowDirs(bool ); - const QListView* listview() { return m_View; }; + const QListView* listView() { return m_View; }; bool isCaseSensetive()const { return m_case; } void setCaseSensetive(bool caSe ); @@ -169,7 +174,7 @@ class OFileSelector : public QWidget { /* the user needs to delete it */ DocLnk selectedDocument()const; /* the user needs to delete it */ - QValueList<DocLnk> selectedDocuments(); + QValueList<DocLnk> selectedDocuments()const; signals: void fileSelected( const DocLnk & ); |