#include <klflibview_p.h>


Public Types | |
| typedef KLFLibBasicWidgetFactory::LocalFileType | LocalFileType |
Public Slots | |
| void | setReadyToOpen (bool ready, const QUrl &url) |
Signals | |
| void | readyToOpen (bool ready) |
Public Member Functions | |
| KLFLibLocalFileOpenWidget (QWidget *parent, const QList< LocalFileType > &fileTypes) | |
| virtual | ~KLFLibLocalFileOpenWidget () |
| virtual bool | isReadyToOpen () const |
| virtual QString | selectedFName () const |
| virtual QString | selectedScheme () const |
| LocalFileType | fileTypeForFileName (const QString &filename) const |
| virtual void | setUrl (const QUrl &url) |
| virtual QUrl | url () const |
Protected Types | |
| enum | BrowseType { BrowseOpen, BrowseSave } |
Protected Slots | |
| virtual bool | browseFileName (BrowseType bt) |
| virtual void | on_btnBrowse_clicked () |
| virtual void | on_txtFile_textChanged (const QString &text) |
Protected Member Functions | |
| virtual bool | checkIsReadyToOpen (const QString &text=QString()) const |
Protected Attributes | |
| QList< LocalFileType > | pFileTypes |
| bool | pReadyToOpen |
| QUrl | pReadyToOpenUrl |
Properties | |
| bool | readyToOpen |
Definition at line 828 of file klflibview_p.h.
Definition at line 834 of file klflibview_p.h.
enum KLFLibLocalFileOpenWidget::BrowseType [protected] |
Definition at line 925 of file klflibview_p.h.
| KLFLibLocalFileOpenWidget::KLFLibLocalFileOpenWidget | ( | QWidget * | parent, |
| const QList< LocalFileType > & | fileTypes | ||
| ) | [inline] |
Definition at line 836 of file klflibview_p.h.
References pFileTypes, pReadyToOpen, pReadyToOpenUrl, QCompleter::setModel(), setUrl(), and QList::size().
| virtual KLFLibLocalFileOpenWidget::~KLFLibLocalFileOpenWidget | ( | ) | [inline, virtual] |
Definition at line 859 of file klflibview_p.h.
| virtual bool KLFLibLocalFileOpenWidget::browseFileName | ( | BrowseType | bt | ) | [inline, protected, virtual, slot] |
Definition at line 935 of file klflibview_p.h.
References QFileInfo::absolutePath(), BrowseOpen, BrowseSave, fileTypeForFileName(), KLFLibBasicWidgetFactory::LocalFileType::filter, QFileDialog::getOpenFileName(), QFileDialog::getSaveFileName(), QFileInfo::isDir(), QString::isEmpty(), QStringList::join(), klfconfig, KLFConfig::lastFileDialogPath, KLFConfig::LibraryBrowser, pFileTypes, and QList::size().
Referenced by KLFLibLocalFileCreateWidget::on_btnBrowse_clicked(), and on_btnBrowse_clicked().
| virtual bool KLFLibLocalFileOpenWidget::checkIsReadyToOpen | ( | const QString & | text = QString() | ) | const [inline, protected, virtual] |
Definition at line 927 of file klflibview_p.h.
References QFileInfo::isFile(), and QString::isNull().
Referenced by on_txtFile_textChanged().
| LocalFileType KLFLibLocalFileOpenWidget::fileTypeForFileName | ( | const QString & | filename | ) | const [inline] |
Definition at line 876 of file klflibview_p.h.
References QRegExp::exactMatch(), QFileInfo::fileName(), pFileTypes, and QList::size().
Referenced by browseFileName(), and selectedScheme().
| virtual bool KLFLibLocalFileOpenWidget::isReadyToOpen | ( | ) | const [inline, virtual] |
Definition at line 861 of file klflibview_p.h.
References pReadyToOpen.
| virtual void KLFLibLocalFileOpenWidget::on_btnBrowse_clicked | ( | ) | [inline, protected, virtual, slot] |
Reimplemented in KLFLibLocalFileCreateWidget.
Definition at line 995 of file klflibview_p.h.
References browseFileName(), and BrowseOpen.
| virtual void KLFLibLocalFileOpenWidget::on_txtFile_textChanged | ( | const QString & | text | ) | [inline, protected, virtual, slot] |
Reimplemented in KLFLibLocalFileCreateWidget.
Definition at line 999 of file klflibview_p.h.
References checkIsReadyToOpen(), setReadyToOpen(), and url().
| void KLFLibLocalFileOpenWidget::readyToOpen | ( | bool | ready | ) | [signal] |
| virtual QString KLFLibLocalFileOpenWidget::selectedFName | ( | ) | const [inline, virtual] |
Definition at line 863 of file klflibview_p.h.
References QDir::fromNativeSeparators().
Referenced by KLFLibBasicWidgetFactory::retrieveCreateParametersFromWidget(), selectedScheme(), and url().
| virtual QString KLFLibLocalFileOpenWidget::selectedScheme | ( | ) | const [inline, virtual] |
Definition at line 866 of file klflibview_p.h.
References fileTypeForFileName(), KLFLibBasicWidgetFactory::guessLocalFileScheme(), QString::isEmpty(), KLFLibBasicWidgetFactory::LocalFileType::scheme, and selectedFName().
Referenced by KLFLibBasicWidgetFactory::retrieveCreateParametersFromWidget(), and url().
| void KLFLibLocalFileOpenWidget::setReadyToOpen | ( | bool | ready, |
| const QUrl & | url | ||
| ) | [inline, slot] |
Definition at line 912 of file klflibview_p.h.
References pReadyToOpen, pReadyToOpenUrl, readyToOpen, and url().
Referenced by on_txtFile_textChanged().
| virtual void KLFLibLocalFileOpenWidget::setUrl | ( | const QUrl & | url | ) | [inline, virtual] |
Definition at line 891 of file klflibview_p.h.
References QUrl::isValid(), klfconfig, KLFConfig::lastFileDialogPath, KLFConfig::LibraryBrowser, QUrl::path(), and QDir::toNativeSeparators().
Referenced by KLFLibBasicWidgetFactory::createPromptCreateParametersWidget(), KLFLibBasicWidgetFactory::createPromptUrlWidget(), and KLFLibLocalFileOpenWidget().
| virtual QUrl KLFLibLocalFileOpenWidget::url | ( | ) | const [inline, virtual] |
Definition at line 897 of file klflibview_p.h.
References QUrl::fromLocalFile(), QString::isEmpty(), selectedFName(), selectedScheme(), and QUrl::setScheme().
Referenced by on_txtFile_textChanged(), and setReadyToOpen().
QList<LocalFileType> KLFLibLocalFileOpenWidget::pFileTypes [protected] |
Definition at line 922 of file klflibview_p.h.
Referenced by browseFileName(), fileTypeForFileName(), and KLFLibLocalFileOpenWidget().
bool KLFLibLocalFileOpenWidget::pReadyToOpen [protected] |
Definition at line 923 of file klflibview_p.h.
Referenced by isReadyToOpen(), KLFLibLocalFileOpenWidget(), and setReadyToOpen().
QUrl KLFLibLocalFileOpenWidget::pReadyToOpenUrl [protected] |
Definition at line 924 of file klflibview_p.h.
Referenced by KLFLibLocalFileOpenWidget(), and setReadyToOpen().
bool KLFLibLocalFileOpenWidget::readyToOpen [read] |
Definition at line 832 of file klflibview_p.h.
Referenced by setReadyToOpen().