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

Opie::Ui::Internal::OFileViewFileListView Class Reference

#include </home/clem/local/src/opie/libopie2/opieui/fileselector/ofileselector_p.h>

Collaboration diagram for Opie::Ui::Internal::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)
void slotFSpressed ()

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
QToolButton * m_fsButton
QListView * m_view

Constructor & Destructor Documentation

Opie::Ui::Internal::OFileViewFileListView::OFileViewFileListView QWidget *  parent,
const QString dir,
OFileSelector selector
 

Definition at line 315 of file ofileselector.cpp.

References cdDoc(), cdHome(), cdUP(), connectSlots(), StorageInfo::fileSystems(), QMap< Key, T >::insert(), Opie::Core::OResource::loadPixmap(), m_all, m_btnClose, m_btnNew, m_currentDir, m_dev, m_fsButton, m_fsPop, m_view, qApp, QPEApplication::RightOnHold, selector(), QPEApplication::setStylusOperation(), slotFSActivated(), slotFSpressed(), slotNew(), Opie::Core::OResource::SmallIcon, tr, and TRUE.

Opie::Ui::Internal::OFileViewFileListView::~OFileViewFileListView  ) 
 

Definition at line 420 of file ofileselector.cpp.


Member Function Documentation

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

Definition at line 652 of file ofileselector.cpp.

References Opie::Ui::Internal::createNewPath(), QFileInfo::dirPath(), QFileInfo::fileName(), QFileInfo::isReadable(), QFileInfo::isWritable(), QFileInfo::lastModified(), Opie::Core::OResource::loadPixmap(), m_view, name, QString::number(), Opie::Ui::OFileSelector::Open, pix, QFileInfo::readLink(), Opie::Ui::OFileSelector::Save, selector(), QFileInfo::size(), and true.

Referenced by reread().

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

Definition at line 624 of file ofileselector.cpp.

References compliesMime(), Opie::Ui::Internal::createNewPath(), MimeType::id(), Opie::Core::OResource::loadPixmap(), m_view, name, QString::number(), Opie::Ui::OFileSelector::Open, pix, MimeType::pixmap(), Opie::Ui::OFileSelector::Save, selector(), Opie::Core::OResource::SmallIcon, and type.

Referenced by reread().

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

Definition at line 679 of file ofileselector.cpp.

Referenced by reread().

void Opie::Ui::Internal::OFileViewFileListView::cdDoc  )  [private, slot]
 

Definition at line 704 of file ofileselector.cpp.

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

Referenced by OFileViewFileListView().

void Opie::Ui::Internal::OFileViewFileListView::cdHome  )  [private, slot]
 

Definition at line 697 of file ofileselector.cpp.

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

Referenced by OFileViewFileListView().

void Opie::Ui::Internal::OFileViewFileListView::cdUP  )  [private, slot]
 

Definition at line 683 of file ofileselector.cpp.

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

Referenced by OFileViewFileListView(), and reread().

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

Definition at line 711 of file ofileselector.cpp.

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

Referenced by slotFSActivated().

bool Opie::Ui::Internal::OFileViewFileListView::compliesMime const QString  )  [private]
 

Definition at line 743 of file ofileselector.cpp.

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

Referenced by addFile().

void Opie::Ui::Internal::OFileViewFileListView::connectSlots  )  [private]
 

Definition at line 564 of file ofileselector.cpp.

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

Referenced by OFileViewFileListView().

QString Opie::Ui::Internal::OFileViewFileListView::currentDir  )  const
 

Definition at line 540 of file ofileselector.cpp.

References m_currentDir.

Referenced by Opie::Ui::Internal::OFileViewFileSystem::selectedName().

OFileSelectorItem * Opie::Ui::Internal::OFileViewFileListView::currentItem  )  const
 

Definition at line 430 of file ofileselector.cpp.

References l, and m_view.

Referenced by Opie::Ui::Internal::OFileViewFileSystem::directory().

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

Definition at line 550 of file ofileselector.cpp.

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

int Opie::Ui::Internal::OFileViewFileListView::fileCount  )  const
 

Definition at line 535 of file ofileselector.cpp.

References m_view.

Referenced by Opie::Ui::Internal::OFileViewFileSystem::fileCount().

void Opie::Ui::Internal::OFileViewFileListView::reread bool  all = false  ) 
 

Definition at line 439 of file ofileselector.cpp.

References addDir(), addFile(), addSymlink(), QDir::All, cdUP(), Opie::Ui::Internal::createNewPath(), QPtrListIterator< type >::current(), Opie::Ui::OFileSelector::DIRECTORYSELECTOR, 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(), Opie::Ui::Internal::OFileViewFileSystem::reread(), and slotClicked().

OFileSelector * Opie::Ui::Internal::OFileViewFileListView::selector  )  [protected]
 

Definition at line 545 of file ofileselector.cpp.

References m_sel.

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

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

Definition at line 597 of file ofileselector.cpp.

References Opie::Ui::Internal::createNewPath(), Opie::Ui::Internal::OFileSelectorItem::directory(), Opie::Ui::Internal::OFileSelectorItem::isDir(), Opie::Ui::Internal::OFileSelectorItem::isLocked(), Qt::LeftButton, m_all, m_currentDir, odebug, oendl, reread(), selector(), QStringList::split(), and str.

Referenced by connectSlots(), and eventFilter().

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

Definition at line 572 of file ofileselector.cpp.

References Opie::Ui::Internal::createNewPath(), Opie::Ui::Internal::OFileSelectorItem::directory(), Opie::Ui::OFileSelector::FileSelector, Opie::Ui::Internal::OFileSelectorItem::isDir(), odebug, oendl, selector(), QStringList::split(), and str.

Referenced by connectSlots().

void Opie::Ui::Internal::OFileViewFileListView::slotFSActivated int   )  [private, slot]
 

Definition at line 718 of file ofileselector.cpp.

References changeDir(), m_dev, and m_fsPop.

Referenced by OFileViewFileListView().

void Opie::Ui::Internal::OFileViewFileListView::slotFSpressed  )  [private, slot]
 

Definition at line 414 of file ofileselector.cpp.

References m_fsButton, m_fsPop, pos, Opie::MM::x, and Opie::MM::y.

Referenced by OFileViewFileListView().

void Opie::Ui::Internal::OFileViewFileListView::slotNew  )  [private, slot]
 

Definition at line 424 of file ofileselector.cpp.

References selector().

Referenced by OFileViewFileListView().


Member Data Documentation

bool Opie::Ui::Internal::OFileViewFileListView::m_all [private]
 

Definition at line 174 of file ofileselector_p.h.

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

QToolButton * Opie::Ui::Internal::OFileViewFileListView::m_btnClose [private]
 

Definition at line 180 of file ofileselector_p.h.

Referenced by OFileViewFileListView(), and reread().

QToolButton* Opie::Ui::Internal::OFileViewFileListView::m_btnNew [private]
 

Definition at line 180 of file ofileselector_p.h.

Referenced by OFileViewFileListView(), and reread().

QString Opie::Ui::Internal::OFileViewFileListView::m_currentDir [private]
 

Definition at line 179 of file ofileselector_p.h.

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

QMap<QString, QString> Opie::Ui::Internal::OFileViewFileListView::m_dev [private]
 

Definition at line 173 of file ofileselector_p.h.

Referenced by OFileViewFileListView(), and slotFSActivated().

QToolButton* Opie::Ui::Internal::OFileViewFileListView::m_fsButton [private]
 

Definition at line 181 of file ofileselector_p.h.

Referenced by OFileViewFileListView(), and slotFSpressed().

QPopupMenu* Opie::Ui::Internal::OFileViewFileListView::m_fsPop [private]
 

Definition at line 176 of file ofileselector_p.h.

Referenced by OFileViewFileListView(), slotFSActivated(), and slotFSpressed().

QStringList Opie::Ui::Internal::OFileViewFileListView::m_mimes [private]
 

Definition at line 178 of file ofileselector_p.h.

Referenced by compliesMime(), and reread().

OFileSelector* Opie::Ui::Internal::OFileViewFileListView::m_sel [private]
 

Definition at line 175 of file ofileselector_p.h.

Referenced by selector().

QListView* Opie::Ui::Internal::OFileViewFileListView::m_view [private]
 

Definition at line 189 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 18:02:17 2005 for OPIE by  doxygen 1.4.2