Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OFileViewFileListView Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/ofileselector_p.h>

Collaboration diagram for OFileViewFileListView:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OFileViewFileListView (QWidget *parent, const QString &dir, OFileSelector *selector)
 ~OFileViewFileListView ()
OFileSelectorItemcurrentItem () const
void reread (bool all=false)
int fileCount () const
QString currentDir () const

Protected Member Functions

bool eventFilter (QObject *o, QEvent *e)
OFileSelectorselector ()

Private Slots

void slotNew ()
void cdUP ()
void cdHome ()
void cdDoc ()
void changeDir (const QString &)
void slotCurrentChanged (QListViewItem *)
void slotClicked (int, QListViewItem *, const QPoint &, int)
void slotFSActivated (int)

Private Member Functions

bool compliesMime (const QString &)
void connectSlots ()
void addFile (QFileInfo *info, bool symlink=FALSE)
void addDir (QFileInfo *info, bool symlink=FALSE)
void addSymlink (QFileInfo *info, bool=FALSE)

Private Attributes

QMap< QString, QStringm_dev
bool m_all: 1
OFileSelectorm_sel
QPopupMenu * m_fsPop
QStringList m_mimes
QString m_currentDir
QToolButton * m_btnNew
QToolButton * m_btnClose
QListView * m_view

Constructor & Destructor Documentation

OFileViewFileListView::OFileViewFileListView QWidget *  parent,
const QString dir,
OFileSelector selector
 

Definition at line 187 of file ofileselector.cpp.

References cdDoc(), cdHome(), cdUP(), connectSlots(), StorageInfo::fileSystems(), QMap< Key, T >::insert(), Resource::loadIconSet(), m_all, m_btnClose, m_btnNew, m_currentDir, m_dev, m_fsPop, m_view, QPEApplication::RightOnHold, selector(), QPEApplication::setStylusOperation(), slotFSActivated(), slotNew(), tr, and TRUE.

OFileViewFileListView::~OFileViewFileListView  ) 
 

Definition at line 277 of file ofileselector.cpp.


Member Function Documentation

void OFileViewFileListView::addDir QFileInfo info,
bool  symlink = FALSE
[private]
 

Definition at line 464 of file ofileselector.cpp.

References QFileInfo::dirPath(), QFileInfo::fileName(), QFileInfo::isReadable(), QFileInfo::isWritable(), QFileInfo::lastModified(), Resource::loadPixmap(), m_view, name, QString::number(), OFileSelector::Open, pix, QFileInfo::readLink(), OFileSelector::Save, selector(), QFileInfo::size(), and true.

Referenced by reread().

void OFileViewFileListView::addFile QFileInfo info,
bool  symlink = FALSE
[private]
 

Definition at line 436 of file ofileselector.cpp.

References compliesMime(), MimeType::id(), Resource::loadPixmap(), m_view, name, QString::number(), OFileSelector::Open, pix, MimeType::pixmap(), OFileSelector::Save, selector(), and type.

Referenced by reread().

void OFileViewFileListView::addSymlink QFileInfo info,
bool  = FALSE
[private]
 

Definition at line 487 of file ofileselector.cpp.

Referenced by reread().

void OFileViewFileListView::cdDoc  )  [private, slot]
 

Definition at line 507 of file ofileselector.cpp.

References QPEApplication::documentDir(), m_all, m_currentDir, reread(), and selector().

Referenced by OFileViewFileListView().

void OFileViewFileListView::cdHome  )  [private, slot]
 

Definition at line 502 of file ofileselector.cpp.

References QDir::homeDirPath(), m_all, m_currentDir, reread(), and selector().

Referenced by OFileViewFileListView().

void OFileViewFileListView::cdUP  )  [private, slot]
 

Definition at line 490 of file ofileselector.cpp.

References QDir::absPath(), QDir::cdUp(), QDir::exists(), m_all, m_currentDir, reread(), and selector().

Referenced by OFileViewFileListView(), and reread().

void OFileViewFileListView::changeDir const QString  )  [private, slot]
 

Definition at line 512 of file ofileselector.cpp.

References m_all, m_currentDir, reread(), and selector().

Referenced by slotFSActivated().

bool OFileViewFileListView::compliesMime const QString  )  [private]
 

Definition at line 540 of file ofileselector.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), QValueList< T >::isEmpty(), m_mimes, and QRegExp::setWildcard().

Referenced by addFile().

void OFileViewFileListView::connectSlots  )  [private]
 

Definition at line 388 of file ofileselector.cpp.

References m_view, slotClicked(), and slotCurrentChanged().

Referenced by OFileViewFileListView().

QString OFileViewFileListView::currentDir  )  const
 

Definition at line 369 of file ofileselector.cpp.

References m_currentDir.

Referenced by OFileViewFileSystem::selectedName().

OFileSelectorItem * OFileViewFileListView::currentItem  )  const
 

Definition at line 283 of file ofileselector.cpp.

References l, and m_view.

Referenced by OFileViewFileSystem::directory().

bool OFileViewFileListView::eventFilter QObject *  o,
QEvent *  e
[protected]
 

Definition at line 376 of file ofileselector.cpp.

References KeyPress, Qt::LeftButton, m_view, and slotClicked().

int OFileViewFileListView::fileCount  )  const
 

Definition at line 366 of file ofileselector.cpp.

References m_view.

Referenced by OFileViewFileSystem::fileCount().

void OFileViewFileListView::reread bool  all = false  ) 
 

Definition at line 290 of file ofileselector.cpp.

References addDir(), addFile(), addSymlink(), QDir::All, cdUP(), QPtrListIterator< type >::current(), QFileInfo::dirPath(), QDir::Dirs, QDir::DirsFirst, QDir::entryInfoList(), QFileInfo::exists(), QDir::exists(), QFileInfo::fileName(), QDir::Files, QString::fromLatin1(), QDir::Hidden, i, QFileInfo::isDir(), QFileInfo::isFile(), QFileInfo::isSymLink(), list, m_all, m_btnClose, m_btnNew, m_currentDir, m_mimes, m_view, QDir::Name, QFileInfo::readLink(), QDir::Reversed, selector(), QDir::setFilter(), QDir::setSorting(), and TRUE.

Referenced by cdDoc(), cdHome(), cdUP(), changeDir(), OFileViewFileSystem::reread(), and slotClicked().

OFileSelector * OFileViewFileListView::selector  )  [protected]
 

Definition at line 372 of file ofileselector.cpp.

References m_sel.

Referenced by addDir(), addFile(), cdDoc(), cdHome(), cdUP(), changeDir(), OFileViewFileListView(), reread(), slotClicked(), slotCurrentChanged(), and slotNew().

void OFileViewFileListView::slotClicked int  ,
QListViewItem *  ,
const QPoint &  ,
int 
[private, slot]
 

Definition at line 415 of file ofileselector.cpp.

References OFileSelectorItem::directory(), OFileSelectorItem::isDir(), OFileSelectorItem::isLocked(), Qt::LeftButton, m_all, m_currentDir, qWarning(), reread(), selector(), QStringList::split(), and str.

Referenced by connectSlots(), and eventFilter().

void OFileViewFileListView::slotCurrentChanged QListViewItem *   )  [private, slot]
 

Definition at line 394 of file ofileselector.cpp.

References OFileSelectorItem::directory(), OFileSelector::FileSelector, OFileSelectorItem::isDir(), qWarning(), selector(), QStringList::split(), and str.

Referenced by connectSlots().

void OFileViewFileListView::slotFSActivated int   )  [private, slot]
 

Definition at line 517 of file ofileselector.cpp.

References changeDir(), m_dev, and m_fsPop.

Referenced by OFileViewFileListView().

void OFileViewFileListView::slotNew  )  [private, slot]
 

Definition at line 279 of file ofileselector.cpp.

References selector().

Referenced by OFileViewFileListView().


Member Data Documentation

bool OFileViewFileListView::m_all [private]
 

Definition at line 134 of file ofileselector_p.h.

Referenced by cdDoc(), cdHome(), cdUP(), changeDir(), OFileViewFileListView(), reread(), and slotClicked().

QToolButton * OFileViewFileListView::m_btnClose [private]
 

Definition at line 140 of file ofileselector_p.h.

Referenced by OFileViewFileListView(), and reread().

QToolButton* OFileViewFileListView::m_btnNew [private]
 

Definition at line 140 of file ofileselector_p.h.

Referenced by OFileViewFileListView(), and reread().

QString OFileViewFileListView::m_currentDir [private]
 

Definition at line 139 of file ofileselector_p.h.

Referenced by cdDoc(), cdHome(), cdUP(), changeDir(), currentDir(), OFileViewFileListView(), reread(), and slotClicked().

QMap<QString, QString> OFileViewFileListView::m_dev [private]
 

Definition at line 133 of file ofileselector_p.h.

Referenced by OFileViewFileListView(), and slotFSActivated().

QPopupMenu* OFileViewFileListView::m_fsPop [private]
 

Definition at line 136 of file ofileselector_p.h.

Referenced by OFileViewFileListView(), and slotFSActivated().

QStringList OFileViewFileListView::m_mimes [private]
 

Definition at line 138 of file ofileselector_p.h.

Referenced by compliesMime(), and reread().

OFileSelector* OFileViewFileListView::m_sel [private]
 

Definition at line 135 of file ofileselector_p.h.

Referenced by selector().

QListView* OFileViewFileListView::m_view [private]
 

Definition at line 148 of file ofileselector_p.h.

Referenced by addDir(), addFile(), connectSlots(), currentItem(), eventFilter(), fileCount(), OFileViewFileListView(), and reread().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:42:33 2005 for OPIE by  doxygen 1.4.2