MythTV  0.26-pre
Public Member Functions | Private Slots | Private Member Functions | Private Attributes
MythUIFileBrowser Class Reference

#include <mythuifilebrowser.h>

Inheritance diagram for MythUIFileBrowser:
MythScreenType MythUIType XMLParseBase

List of all members.

Public Member Functions

 MythUIFileBrowser (MythScreenStack *parent, const QString &startPath)
 Browse a local filesystem or remote Storage Group Returns the selected file.
 ~MythUIFileBrowser ()
void Init (const QString &startPath)
bool Create (void)
void SetReturnEvent (QObject *retobject, const QString &resultid)
void SetTypeFilter (QDir::Filters filter)
void SetNameFilter (QStringList filter)

Private Slots

void OKPressed (void)
void cancelPressed (void)
void backPressed (void)
void homePressed (void)
void editLostFocus (void)
void PathSelected (MythUIButtonListItem *item)
void PathClicked (MythUIButtonListItem *item)
void LoadPreview (void)

Private Member Functions

bool GetRemoteFileList (const QString &url, const QString &sgDir, QStringList &list)
void updateFileList (void)
void updateRemoteFileList (void)
void updateLocalFileList (void)
void updateSelectedList (void)
void updateWidgets (void)
bool IsImage (QString extension)
QString FormatSize (int size)

Private Attributes

bool m_isRemote
QTimer * m_previewTimer
QString m_baseDirectory
QString m_subDirectory
QString m_storageGroupDir
QString m_parentDir
QString m_parentSGDir
QDir::Filters m_typeFilter
QStringList m_nameFilter
MythUIButtonListm_fileList
MythUITextEditm_locationEdit
MythUIButtonm_okButton
MythUIButtonm_cancelButton
MythUIButtonm_backButton
MythUIButtonm_homeButton
MythUIImagem_previewImage
MythUITextm_infoText
MythUITextm_filenameText
MythUITextm_fullpathText
QObject * m_retObject
QString m_id

Detailed Description

Definition at line 75 of file mythuifilebrowser.h.


Constructor & Destructor Documentation

MythUIFileBrowser::MythUIFileBrowser ( MythScreenStack parent,
const QString &  startPath 
)

Browse a local filesystem or remote Storage Group Returns the selected file.

Includes previews of images and file metadata.

Definition at line 148 of file mythuifilebrowser.cpp.

Definition at line 166 of file mythuifilebrowser.cpp.


Member Function Documentation

void MythUIFileBrowser::Init ( const QString &  startPath)

Definition at line 170 of file mythuifilebrowser.cpp.

void MythUIFileBrowser::SetReturnEvent ( QObject *  retobject,
const QString &  resultid 
)
void MythUIFileBrowser::SetTypeFilter ( QDir::Filters  filter) [inline]
void MythUIFileBrowser::SetNameFilter ( QStringList  filter) [inline]
void MythUIFileBrowser::OKPressed ( void  ) [private, slot]

Definition at line 417 of file mythuifilebrowser.cpp.

Referenced by Create().

Definition at line 434 of file mythuifilebrowser.cpp.

Referenced by Create().

void MythUIFileBrowser::backPressed ( void  ) [private, slot]

Definition at line 371 of file mythuifilebrowser.cpp.

Referenced by Create(), and PathClicked().

void MythUIFileBrowser::homePressed ( void  ) [private, slot]

Definition at line 401 of file mythuifilebrowser.cpp.

Referenced by Create().

Definition at line 362 of file mythuifilebrowser.cpp.

Referenced by Create().

Definition at line 262 of file mythuifilebrowser.cpp.

Referenced by Create().

Definition at line 302 of file mythuifilebrowser.cpp.

Referenced by Create().

void MythUIFileBrowser::LoadPreview ( void  ) [private, slot]

Definition at line 256 of file mythuifilebrowser.cpp.

Referenced by MythUIFileBrowser().

bool MythUIFileBrowser::GetRemoteFileList ( const QString &  url,
const QString &  sgDir,
QStringList &  list 
) [private]

Definition at line 721 of file mythuifilebrowser.cpp.

Referenced by updateRemoteFileList().

Definition at line 439 of file mythuifilebrowser.cpp.

Referenced by backPressed(), Create(), editLostFocus(), homePressed(), and PathClicked().

Definition at line 449 of file mythuifilebrowser.cpp.

Referenced by updateFileList().

Definition at line 612 of file mythuifilebrowser.cpp.

Referenced by updateFileList().

bool MythUIFileBrowser::IsImage ( QString  extension) [private]

Definition at line 347 of file mythuifilebrowser.cpp.

Referenced by PathSelected(), updateLocalFileList(), and updateRemoteFileList().

QString MythUIFileBrowser::FormatSize ( int  size) [private]

Definition at line 707 of file mythuifilebrowser.cpp.

Referenced by PathSelected(), updateLocalFileList(), and updateRemoteFileList().


Member Data Documentation

Definition at line 113 of file mythuifilebrowser.h.

Referenced by backPressed(), homePressed(), Init(), and updateFileList().

Definition at line 115 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser(), and PathSelected().

Definition at line 117 of file mythuifilebrowser.h.

Referenced by backPressed(), Init(), and updateRemoteFileList().

QString MythUIFileBrowser::m_parentDir [private]

Definition at line 120 of file mythuifilebrowser.h.

Referenced by backPressed(), and updateRemoteFileList().

Definition at line 121 of file mythuifilebrowser.h.

Referenced by backPressed(), and updateRemoteFileList().

QDir::Filters MythUIFileBrowser::m_typeFilter [private]
QStringList MythUIFileBrowser::m_nameFilter [private]

Definition at line 124 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser(), and updateLocalFileList().

Definition at line 128 of file mythuifilebrowser.h.

Referenced by Create().

Definition at line 129 of file mythuifilebrowser.h.

Referenced by Create().

Definition at line 130 of file mythuifilebrowser.h.

Referenced by Create(), updateLocalFileList(), and updateRemoteFileList().

Definition at line 131 of file mythuifilebrowser.h.

Referenced by Create().

Definition at line 132 of file mythuifilebrowser.h.

Referenced by Create(), LoadPreview(), and PathSelected().

Definition at line 133 of file mythuifilebrowser.h.

Referenced by Create(), and PathSelected().

Definition at line 134 of file mythuifilebrowser.h.

Referenced by Create(), and PathSelected().

Definition at line 135 of file mythuifilebrowser.h.

Referenced by Create(), and PathSelected().

QObject* MythUIFileBrowser::m_retObject [private]

Definition at line 137 of file mythuifilebrowser.h.

Referenced by MythUIFileBrowser(), OKPressed(), PathClicked(), and SetReturnEvent().

QString MythUIFileBrowser::m_id [private]

Definition at line 138 of file mythuifilebrowser.h.

Referenced by OKPressed(), PathClicked(), and SetReturnEvent().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends