#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 814 of file klflibview_p.h.
Definition at line 820 of file klflibview_p.h.
enum KLFLibLocalFileOpenWidget::BrowseType [protected] |
Definition at line 911 of file klflibview_p.h.
| KLFLibLocalFileOpenWidget::KLFLibLocalFileOpenWidget | ( | QWidget * | parent, |
| const QList< LocalFileType > & | fileTypes | ||
| ) | [inline] |
Definition at line 822 of file klflibview_p.h.
References pFileTypes, pReadyToOpen, pReadyToOpenUrl, QCompleter::setModel(), setUrl(), and QList::size().
| virtual KLFLibLocalFileOpenWidget::~KLFLibLocalFileOpenWidget | ( | ) | [inline, virtual] |
Definition at line 845 of file klflibview_p.h.
| virtual bool KLFLibLocalFileOpenWidget::browseFileName | ( | BrowseType | bt | ) | [inline, protected, virtual, slot] |
Definition at line 921 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 913 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 862 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 847 of file klflibview_p.h.
References pReadyToOpen.
| virtual void KLFLibLocalFileOpenWidget::on_btnBrowse_clicked | ( | ) | [inline, protected, virtual, slot] |
Reimplemented in KLFLibLocalFileCreateWidget.
Definition at line 981 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 985 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 849 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 852 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 898 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 877 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 883 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 908 of file klflibview_p.h.
Referenced by browseFileName(), fileTypeForFileName(), and KLFLibLocalFileOpenWidget().
bool KLFLibLocalFileOpenWidget::pReadyToOpen [protected] |
Definition at line 909 of file klflibview_p.h.
Referenced by isReadyToOpen(), KLFLibLocalFileOpenWidget(), and setReadyToOpen().
QUrl KLFLibLocalFileOpenWidget::pReadyToOpenUrl [protected] |
Definition at line 910 of file klflibview_p.h.
Referenced by KLFLibLocalFileOpenWidget(), and setReadyToOpen().
bool KLFLibLocalFileOpenWidget::readyToOpen [read] |
Definition at line 818 of file klflibview_p.h.
Referenced by setReadyToOpen().