#include <klflibbrowser.h>
Definition at line 44 of file klflibbrowser.h.
NoRoleFlag |
This resource has nothing special. |
NoCloseRoleFlag |
Resource 'Close' GUI button is disabled (grayed) |
HistoryRoleFlag |
This resource is the History resource. |
ArchiveRoleFlag |
This resource is the Archive resource. |
SpecialResourceRoleMask |
Mask to extract the 'special resource' type (eg. history) |
NoChangeFlag |
Instructs to not set new flags for already-open resources. |
OpenNoRaise |
Instructs not to raise the tab during this call of openResource() |
NowMask |
These flags are not stored, they act upon the openResource() call only. |
Definition at line 51 of file klflibbrowser.h.
KLFLibBrowser::KLFLibBrowser | ( | QWidget * | parent = NULL | ) |
Definition at line 48 of file klflibbrowser.cpp.
References QMenu::addAction(), QMenu::addSeparator(), KLFConfig::colorFound, KLFConfig::colorNotFound, QWidget::customContextMenuRequested(), KLF_DEBUG_ASSIGN_REF_INSTANCE, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfconfig, KLFConfig::LibraryBrowser, requestRestoreStyle(), retranslateUi(), QPushButton::setMenu(), slotCopy(), slotCut(), slotDeleteSelected(), slotEntriesSelected(), slotExport(), slotExportSelection(), slotMetaInfoChanged(), slotOpenAll(), slotPaste(), slotRefreshResourceActionsEnabled(), slotResourceClose(), slotResourceDelSubRes(), slotResourceNew(), slotResourceNewSubRes(), slotResourceOpen(), slotResourceProperties(), slotResourceRename(), slotResourceRenameSubResource(), slotResourceSaveTo(), slotRestoreLatexOnly(), slotRestoreWithStyle(), slotShowTabContextMenu(), and slotTabResourceShown().
KLFLibBrowser::~KLFLibBrowser | ( | ) | [virtual] |
Definition at line 175 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and QList::size().
bool KLFLibBrowser::closeResource | ( | const QUrl & | url | ) | [slot] |
Definition at line 631 of file klflibbrowser.cpp.
References findOpenUrl(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and slotResourceClose().
KLFAbstractLibView * KLFLibBrowser::curLibView | ( | ) | [protected] |
Definition at line 402 of file klflibbrowser.cpp.
References curView(), and KLFLibBrowserViewContainer::view().
Referenced by slotCopy(), slotCopyMoveToResource(), slotCut(), slotDeleteSelected(), slotEntriesSelected(), slotExportSelection(), slotPaste(), slotRestoreLatexOnly(), slotRestoreWithStyle(), and slotShowContextMenu().
QUrl KLFLibBrowser::currentUrl | ( | ) |
Returns the URL of the current tab page.
Definition at line 228 of file klflibbrowser.cpp.
References currentUrlIndex(), and QList::size().
Referenced by saveGuiState().
int KLFLibBrowser::currentUrlIndex | ( | ) |
Returns the index of currentUrl() in openUrls()
Definition at line 220 of file klflibbrowser.cpp.
References curView(), and QList::indexOf().
Referenced by currentUrl().
KLFLibBrowserViewContainer * KLFLibBrowser::curView | ( | ) | [protected] |
Definition at line 398 of file klflibbrowser.cpp.
Referenced by curLibView(), currentUrlIndex(), slotRefreshResourceActionsEnabled(), slotResourceClose(), slotResourceDelSubRes(), slotResourceNewSubRes(), slotResourceProperties(), and slotResourceRename().
QString KLFLibBrowser::displayTitle | ( | KLFLibResourceEngine * | resource | ) | [static] |
Definition at line 342 of file klflibbrowser.cpp.
References KLFLibResourceEngine::AllActionsData, QString::arg(), KLFLibResourceEngine::canModifyData(), KLFLibResourceEngine::defaultSubResource(), KLFLibResourceEngine::FeatureSubResourceProps, KLFLibResourceEngine::FeatureSubResources, KLF_ASSERT_NOT_NULL, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, KLFLibResourceEngine::subResourceProperty(), KLFLibResourceEngine::SubResPropTitle, KLFLibResourceEngine::supportedFeatureFlags(), and KLFLibResourceEngine::title().
Referenced by openResource(), slotResourceDelSubRes(), slotShowContextMenu(), and slotUpdateForResourceProperty().
bool KLFLibBrowser::event | ( | QEvent * | event | ) | [protected] |
Reimplemented from QWidget.
Definition at line 1737 of file klflibbrowser.cpp.
References QEvent::accept(), QWidget::hide(), QKeyEvent::key(), and QEvent::type().
Definition at line 190 of file klflibbrowser.cpp.
References QObject::deleteLater(), QKeyEvent::key(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, QObject::property(), and QEvent::type().
QList< KLFLibBrowserViewContainer * > KLFLibBrowser::findByRoleFlags | ( | uint | flags, |
uint | mask | ||
) | [protected] |
Definition at line 413 of file klflibbrowser.cpp.
References klfDbg, klfFmtCC, and QList::size().
KLFLibBrowserViewContainer * KLFLibBrowser::findOpenResource | ( | KLFLibResourceEngine * | resource | ) | [protected] |
Definition at line 387 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and QList::size().
Referenced by getView(), openResource(), and slotUpdateForResourceProperty().
KLFLibBrowserViewContainer * KLFLibBrowser::findOpenUrl | ( | const QUrl & | url | ) | [protected] |
Definition at line 366 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KlfUrlCompareEqual, KlfUrlCompareLessSpecific, and QList::size().
Referenced by closeResource(), getOpenResource(), getView(), loadGuiState(), openResource(), openResourceFromGuiState(), saveGuiState(), slotCopyMoveToResource(), and slotResourceRenameFinished().
KLFLibBrowserViewContainer* KLFLibBrowser::findSpecialResource | ( | uint | specialResourceRoleFlag | ) | [inline, protected] |
Definition at line 220 of file klflibbrowser.h.
References QList::isEmpty().
Referenced by slotMetaInfoChanged().
KLFLibResourceEngine * KLFLibBrowser::getOpenResource | ( | const QUrl & | url | ) |
Returns the KLFLibResourceEngine that is managing the display of the currently open URL url
. The url must currently be open.
Definition at line 247 of file klflibbrowser.cpp.
References findOpenUrl(), and KLFLibBrowserViewContainer::resourceEngine().
Referenced by KLFMainWin::loadLibrary(), and slotExport().
KLFAbstractLibView * KLFLibBrowser::getView | ( | const QUrl & | url | ) |
Returns the view that is used to display the resource with URL url
.
Definition at line 255 of file klflibbrowser.cpp.
References findOpenUrl(), and KLFLibBrowserViewContainer::view().
KLFAbstractLibView * KLFLibBrowser::getView | ( | KLFLibResourceEngine * | resource | ) |
Returns the view that is used to display the resource resource
.
Definition at line 263 of file klflibbrowser.cpp.
References findOpenResource(), and KLFLibBrowserViewContainer::view().
void KLFLibBrowser::libEntriesSelected | ( | const KLFLibEntryList & | entries | ) | [signal] |
Referenced by slotEntriesSelected().
void KLFLibBrowser::loadGuiState | ( | const QVariantMap & | state, |
bool | openURLs = true |
||
) |
Definition at line 303 of file klflibbrowser.cpp.
References findOpenUrl(), QSize::height(), klfDbg, openResourceFromGuiState(), QList::size(), QList::value(), and QSize::width().
Referenced by KLFMainWin::loadLibrarySavedState().
bool KLFLibBrowser::openResource | ( | const QString & | url, |
uint | resourceRoleFlags = NoChangeFlag , |
||
const QString & | viewTypeIdentifier = QString() |
||
) | [slot] |
Convenience function. Equivalent to
openResource(QUrl(url), ...)
Definition at line 429 of file klflibbrowser.cpp.
References KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, and openResource().
bool KLFLibBrowser::openResource | ( | KLFLibResourceEngine * | resource, |
uint | resourceRoleFlags = NoChangeFlag , |
||
const QString & | viewTypeIdentifier = QString() |
||
) | [slot] |
Overloaded member, provided for convenience.
Opens a previously (independently) open resource
and displays it in the library.
Definition at line 467 of file klflibbrowser.cpp.
References KLFLibResourceEngine::AllActionsData, QList::append(), KLFLibViewFactory::canCreateLibView(), KLFLibResourceEngine::canModifyData(), KLFLibResourceEngine::defaultSubResource(), KLFLibViewFactory::defaultViewTypeIdentifier(), displayTitle(), KLFLibResourceEngine::FeatureSubResourceProps, KLFLibResourceEngine::FeatureSubResources, KLFLibViewFactory::findFactoryFor(), findOpenResource(), KLF_ASSERT_NOT_NULL, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, klfDbgT, OpenNoRaise, openResource(), KLFLibBrowserViewContainer::openView(), requestRestore(), requestRestoreStyle(), QObject::setParent(), KLFLibResourceEngine::setViewType(), slotAddCategorySuggestions(), slotDefaultSubResourceChanged(), slotEntriesSelected(), slotResourceDataChanged(), slotResourcePropertyChanged(), slotShowContextMenu(), slotStartProgress(), slotSubResourcePropertyChanged(), KLFLibResourceEngine::subResourceProperty(), KLFLibResourceEngine::SubResPropViewType, KLFLibResourceEngine::suggestedViewTypeIdentifier(), KLFLibResourceEngine::supportedFeatureFlags(), QUrl::toString(), KLFLibResourceEngine::url(), KLFLibBrowserViewContainer::view(), KLFLibResourceEngine::viewType(), KLFAbstractLibView::wantMoreCategorySuggestions(), and KLFLibResourceEngine::WantUrlDefaultSubResource.
bool KLFLibBrowser::openResource | ( | const QUrl & | url, |
uint | resourceRoleFlags = NoChangeFlag , |
||
const QString & | viewTypeIdentifier = QString() |
||
) | [slot] |
If the url
is not already open, opens the given URL. An appropriate factory needs to be installed supporting that scheme. Then an appropriate view is created using the view factories.
If the url
is already open, then the appropriate tab is raised.
Resource flags are updated in both cases.
If an empty viewTypeIdentifier
is given, the view type identifier suggested by the resource itself is taken. If the latter is empty, then the default view type identifier (KLFLibViewFactory::defaultViewTypeIdentifier) is considered.
Definition at line 436 of file klflibbrowser.cpp.
References KLFLibEngineFactory::findFactoryFor(), findOpenUrl(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, OpenNoRaise, KLFLibEngineFactory::openResource(), QUrl::scheme(), and QUrl::toString().
Referenced by KLFMainWin::loadLibrary(), KLFMainWin::openLibFile(), openResource(), openResourceFromGuiState(), slotOpenAll(), slotResourceNew(), slotResourceNewSubRes(), and slotResourceOpen().
bool KLFLibBrowser::openResourceFromGuiState | ( | const QUrl & | url, |
const QVariantMap & | guiState | ||
) | [slot] |
[ADVANCED USAGE] Overloaded member, provided for conenience. This function should not be called directly normally, use it only if you want to play with the library browser's advanced functions. Use loadGuiState() to load saved GUI state instead.
[internal:] The guiState
is exactly in the format that can be given to KLFLibBrowserViewContainer::loadGuiState().
Definition at line 614 of file klflibbrowser.cpp.
References findOpenUrl(), KLF_ASSERT_NOT_NULL, KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLibBrowserViewContainer::loadGuiState(), NoChangeFlag, and openResource().
Referenced by loadGuiState().
Definition at line 237 of file klflibbrowser.cpp.
References QList::size().
Referenced by saveGuiState().
void KLFLibBrowser::requestRestore | ( | const KLFLibEntry & | entry, |
uint | restoreFlags | ||
) | [signal] |
Referenced by openResource().
void KLFLibBrowser::requestRestoreStyle | ( | const KLFStyle & | style | ) | [signal] |
Referenced by KLFLibBrowser(), and openResource().
void KLFLibBrowser::resourceTabChanged | ( | const QUrl & | currentUrl | ) | [signal] |
Referenced by slotTabResourceShown().
void KLFLibBrowser::retranslateUi | ( | bool | alsoBaseUi = true | ) | [slot] |
Definition at line 162 of file klflibbrowser.cpp.
Referenced by KLFLibBrowser().
QVariantMap KLFLibBrowser::saveGuiState | ( | ) |
Definition at line 273 of file klflibbrowser.cpp.
References currentUrl(), findOpenUrl(), openUrls(), KLFLibBrowserViewContainer::resourceRoleFlags(), KLFLibBrowserViewContainer::saveGuiState(), and QList::size().
Referenced by KLFMainWin::saveLibraryState().
void KLFLibBrowser::showEvent | ( | QShowEvent * | event | ) | [protected] |
Reimplemented from QWidget.
Definition at line 1756 of file klflibbrowser.cpp.
References KLFLibResourceEngine::AllActionsData, KLFLibResourceEngine::canModifyData(), KLFLibBrowserViewContainer::resourceEngine(), and QList::size().
void KLFLibBrowser::slotAddCategorySuggestions | ( | const QStringList & | catlist | ) | [protected, slot] |
void KLFLibBrowser::slotCopy | ( | ) | [protected, slot] |
Definition at line 1463 of file klflibbrowser.cpp.
References QApplication::clipboard(), KLFAbstractLibEntryMimeEncoder::createMimeData(), curLibView(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, KLFAbstractLibView::selectedEntries(), QList::size(), and KLFAbstractLibView::url().
Referenced by KLFLibBrowser(), slotCut(), and slotShowContextMenu().
void KLFLibBrowser::slotCopyMoveToResource | ( | QObject * | sender, |
bool | move | ||
) | [protected, slot] |
common code to slotCopyToResource() and slotMoveToResource()
Definition at line 1404 of file klflibbrowser.cpp.
References curLibView(), findOpenUrl(), QUrl::isEmpty(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, QObject::metaObject(), QObject::property(), and KLFLibBrowserViewContainer::view().
Referenced by slotCopyToResource(), and slotMoveToResource().
void KLFLibBrowser::slotCopyMoveToResource | ( | KLFAbstractLibView * | dest, |
KLFAbstractLibView * | source, | ||
bool | move | ||
) | [protected, slot] |
Definition at line 1429 of file klflibbrowser.cpp.
References QList::contains(), QMessageBox::critical(), KLFLibResourceEngine::deleteEntries(), KLFLibResourceEngine::insertEntries(), QList::isEmpty(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, KLFAbstractLibView::resourceEngine(), KLFAbstractLibView::selectedEntries(), and KLFAbstractLibView::selectedEntryIds().
void KLFLibBrowser::slotCopyToResource | ( | ) | [protected, slot] |
Definition at line 1394 of file klflibbrowser.cpp.
References slotCopyMoveToResource().
Referenced by slotShowContextMenu().
void KLFLibBrowser::slotCut | ( | ) | [protected, slot] |
Definition at line 1448 of file klflibbrowser.cpp.
References KLFLibResourceEngine::canModifyData(), curLibView(), KLFLibResourceEngine::DeleteData, KLFLibResourceEngine::deleteEntries(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, KLFAbstractLibView::resourceEngine(), KLFAbstractLibView::selectedEntries(), KLFAbstractLibView::selectedEntryIds(), QList::size(), and slotCopy().
Referenced by KLFLibBrowser(), and slotShowContextMenu().
void KLFLibBrowser::slotDefaultSubResourceChanged | ( | const QString & | subResource | ) | [protected, slot] |
sender is used to find resource engine emitter.
Definition at line 1096 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLibResourceEngine::PropLocked, KLFLibResourceEngine::PropTitle, and slotUpdateForResourceProperty().
Referenced by openResource().
void KLFLibBrowser::slotDeleteSelected | ( | ) | [protected, slot] |
Definition at line 1134 of file klflibbrowser.cpp.
References KLFLibResourceEngine::canModifyData(), curLibView(), KLFLibResourceEngine::DeleteData, KLFLibResourceEngine::deleteEntries(), QList::isEmpty(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, QMessageBox::question(), KLFAbstractLibView::resourceEngine(), KLFAbstractLibView::selectedEntryIds(), QList::size(), and KLFLibResourceEngine::title().
Referenced by KLFLibBrowser(), and slotShowContextMenu().
void KLFLibBrowser::slotEntriesSelected | ( | const KLFLibEntryList & | entries | ) | [protected, slot] |
Definition at line 1206 of file klflibbrowser.cpp.
References KLFLibResourceEngine::canModifyData(), KLFLibResourceEngine::ChangeData, curLibView(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, libEntriesSelected(), KLFAbstractLibView::resourceEngine(), QList::size(), and KLFLibEntry::Tags.
Referenced by KLFLibBrowser(), openResource(), slotMetaInfoChanged(), slotResourceDataChanged(), and slotTabResourceShown().
bool KLFLibBrowser::slotExport | ( | ) | [protected, slot] |
Definition at line 1561 of file klflibbrowser.cpp.
References KLFLibResourceEngine::allEntries(), QList::contains(), QStringList::contains(), KLFLibResourceEngine::createSubResource(), QMessageBox::critical(), QDateTime::currentDateTime(), KLFLibResourceEngine::deleteSubResource(), KLFLibResourceEngine::FeatureSubResourceProps, getOpenResource(), QUrl::hasQueryItem(), KLFLibResourceEngine::insertEntries(), QString::isEmpty(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, QString::number(), QUrl::path(), QUrl::queryItemValue(), QString::replace(), KLFLibResourceEngine::setSubResourceProperty(), KLFLibResourceEngine::setTitle(), KLFLibExportDialog::showExportDialogCreateResource(), QList::size(), KLFLibResourceEngine::subResourceProperty(), KLFLibResourceEngine::SubResPropTitle, KLFLibResourceEngine::supportedFeatureFlags(), KLFLibResourceEngine::title(), QVariant::toString(), QUrl::toString(), and KLFLibResourceEngine::url().
Referenced by KLFLibBrowser().
bool KLFLibBrowser::slotExportSelection | ( | ) | [protected, slot] |
Definition at line 1657 of file klflibbrowser.cpp.
References QList::contains(), KLFLibEngineFactory::createResource(), QMessageBox::critical(), curLibView(), QFile::exists(), KLFLibEngineFactory::findFactoryFor(), QFileDialog::getSaveFileName(), KLFLibResourceEngine::insertEntries(), QString::isEmpty(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfconfig, klfDbg, KLFConfig::lastFileDialogPath, KLFConfig::LibraryBrowser, QFile::remove(), KLFLibEngineFactory::schemeTitle(), KLFAbstractLibView::selectedEntries(), and QList::size().
Referenced by KLFLibBrowser().
Definition at line 1324 of file klflibbrowser.cpp.
References ArchiveRoleFlag, KLFLibResourceEngine::changeEntries(), QList::contains(), QMessageBox::critical(), findSpecialResource(), HistoryRoleFlag, KLFConfig::historyTagCopyToArchive, KLFLibResourceEngine::insertEntries(), QList::isEmpty(), QMap::isEmpty(), QMap::keys(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfconfig, klfDbg, KLFConfig::LibraryBrowser, KLFLibBrowserViewContainer::resourceEngine(), KLFAbstractLibView::resourceEngine(), KLFAbstractLibView::selectedEntries(), KLFAbstractLibView::selectedEntryIds(), KLFAbstractLibView::selectEntries(), QList::size(), slotEntriesSelected(), KLFLibBrowserViewContainer::view(), and QMessageBox::warning().
Referenced by KLFLibBrowser().
void KLFLibBrowser::slotMoveToResource | ( | ) | [protected, slot] |
Definition at line 1399 of file klflibbrowser.cpp.
References slotCopyMoveToResource().
Referenced by slotShowContextMenu().
void KLFLibBrowser::slotOpenAll | ( | ) | [protected, slot] |
Definition at line 1507 of file klflibbrowser.cpp.
References QFileInfo::absolutePath(), QUrl::addQueryItem(), QMessageBox::critical(), QUrl::fromLocalFile(), QFileDialog::getOpenFileName(), KLFLibBasicWidgetFactory::guessLocalFileScheme(), QStringList::indexOf(), QString::isEmpty(), QStringList::join(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfconfig, KLFConfig::lastFileDialogPath, KLFConfig::LibraryBrowser, KLFLibEngineFactory::listSubResources(), KLFLibBasicWidgetFactory::localFileTypes(), openResource(), QUrl::setScheme(), QList::size(), and QUrl::toString().
Referenced by KLFLibBrowser().
void KLFLibBrowser::slotPaste | ( | ) | [protected, slot] |
Definition at line 1480 of file klflibbrowser.cpp.
References QApplication::clipboard(), QList::contains(), QMessageBox::critical(), curLibView(), KLFAbstractLibEntryMimeEncoder::decodeMimeData(), KLFLibResourceEngine::insertEntries(), QList::isEmpty(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, and KLFAbstractLibView::resourceEngine().
Referenced by KLFLibBrowser(), and slotShowContextMenu().
void KLFLibBrowser::slotRefreshResourceActionsEnabled | ( | ) | [protected, slot] |
Definition at line 1162 of file klflibbrowser.cpp.
References KLFLibResourceEngine::canCreateSubResource(), KLFLibResourceEngine::canDeleteSubResource(), KLFLibResourceEngine::canModifyProp(), KLFLibResourceEngine::canModifySubResourceProperty(), curView(), KLFLibResourceEngine::defaultSubResource(), KLFLibResourceEngine::FeatureSaveTo, KLFLibResourceEngine::FeatureSubResourceProps, KLFLibResourceEngine::FeatureSubResources, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, NoCloseRoleFlag, KLFLibResourceEngine::PropTitle, KLFLibBrowserViewContainer::resourceEngine(), KLFLibBrowserViewContainer::resourceRoleFlags(), KLFLibResourceEngine::SubResPropTitle, and KLFLibResourceEngine::supportedFeatureFlags().
Referenced by KLFLibBrowser(), slotResourceDataChanged(), slotTabResourceShown(), and slotUpdateForResourceProperty().
bool KLFLibBrowser::slotResourceClose | ( | KLFLibBrowserViewContainer * | view = NULL , |
bool | force = false |
||
) | [protected, slot] |
Definition at line 833 of file klflibbrowser.cpp.
References KLFConfig::confirmClose, curView(), QList::indexOf(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfconfig, klfDbg, KLFConfig::LibraryBrowser, NoCloseRoleFlag, QMessageBox::question(), QList::removeAt(), KLFLibBrowserViewContainer::resourceEngine(), KLFLibBrowserViewContainer::resourceRoleFlags(), QUrl::toString(), and KLFLibBrowserViewContainer::url().
Referenced by closeResource(), KLFLibBrowser(), and slotResourceDelSubRes().
void KLFLibBrowser::slotResourceDataChanged | ( | const QList< KLFLib::entryId > & | entryIdList | ) | [protected, slot] |
sender is used to find resource engine emitter.
Definition at line 1011 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, KLFAbstractLibView::selectedEntries(), slotEntriesSelected(), slotRefreshResourceActionsEnabled(), and KLFLibBrowserViewContainer::view().
Referenced by openResource().
bool KLFLibBrowser::slotResourceDelSubRes | ( | ) | [protected, slot] |
Definition at line 916 of file klflibbrowser.cpp.
References QMessageBox::critical(), curView(), displayTitle(), KLFLibResourceEngine::FeatureSubResourceProps, KLFLibResourceEngine::FeatureSubResources, QString::isEmpty(), KLF_ASSERT_CONDITION, KLF_ASSERT_NOT_NULL, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, QMessageBox::question(), slotResourceClose(), KLFLibResourceEngine::SubResPropTitle, KLFLibBrowserViewContainer::view(), and QMessageBox::warning().
Referenced by KLFLibBrowser().
bool KLFLibBrowser::slotResourceNew | ( | ) | [protected, slot] |
Definition at line 989 of file klflibbrowser.cpp.
References KLFLibCreateResourceDlg::createResource(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and openResource().
Referenced by KLFLibBrowser().
bool KLFLibBrowser::slotResourceNewSubRes | ( | ) | [protected, slot] |
Definition at line 890 of file klflibbrowser.cpp.
References QUrl::addQueryItem(), KLFLibNewSubResDlg::createSubResourceIn(), curView(), QString::isEmpty(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, openResource(), QUrl::removeAllQueryItems(), KLFAbstractLibView::resourceEngine(), KLFLibResourceEngine::url(), and KLFLibBrowserViewContainer::view().
Referenced by KLFLibBrowser().
bool KLFLibBrowser::slotResourceOpen | ( | ) | [protected, slot] |
Definition at line 974 of file klflibbrowser.cpp.
References QMessageBox::critical(), QUrl::isEmpty(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, openResource(), KLFLibOpenResourceDlg::queryOpenResource(), and QUrl::toString().
Referenced by KLFLibBrowser().
void KLFLibBrowser::slotResourceProperties | ( | ) | [protected, slot] |
Definition at line 877 of file klflibbrowser.cpp.
References curView(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and KLFLibBrowserViewContainer::resourceEngine().
Referenced by KLFLibBrowser().
void KLFLibBrowser::slotResourcePropertyChanged | ( | int | propId | ) | [protected, slot] |
sender is used to find resource engine emitter.
Definition at line 1034 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and slotUpdateForResourceProperty().
Referenced by openResource().
void KLFLibBrowser::slotResourceRename | ( | bool | renameSubResource | ) | [protected, slot] |
implements both slotResourceRename() and slotResourceRenameSubResource(). If renameSubResource
is false, renames the resource. If true renames the sub-resource.
Definition at line 760 of file klflibbrowser.cpp.
References KLFLibResourceEngine::canModifyProp(), KLFLibResourceEngine::canModifySubResourceProperty(), curView(), KLFLibResourceEngine::defaultSubResource(), KLFLibResourceEngine::FeatureSubResourceProps, KLFLibResourceEngine::FeatureSubResources, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLibResourceEngine::PropTitle, KLFLibBrowserViewContainer::resourceEngine(), slotResourceRenameFinished(), KLFLibResourceEngine::subResourceProperty(), KLFLibResourceEngine::SubResPropTitle, KLFLibResourceEngine::supportedFeatureFlags(), KLFLibResourceEngine::title(), and KLFLibBrowserViewContainer::url().
void KLFLibBrowser::slotResourceRename | ( | ) | [protected, slot] |
Definition at line 752 of file klflibbrowser.cpp.
Referenced by KLFLibBrowser(), and slotResourceRenameSubResource().
void KLFLibBrowser::slotResourceRenameFinished | ( | ) | [protected, slot] |
Definition at line 806 of file klflibbrowser.cpp.
References KLFLibResourceEngine::defaultSubResource(), QObject::deleteLater(), findOpenUrl(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, QObject::property(), KLFLibBrowserViewContainer::resourceEngine(), KLFLibResourceEngine::setSubResourceProperty(), KLFLibResourceEngine::setTitle(), and KLFLibResourceEngine::SubResPropTitle.
Referenced by slotResourceRename().
void KLFLibBrowser::slotResourceRenameSubResource | ( | ) | [protected, slot] |
Definition at line 756 of file klflibbrowser.cpp.
References slotResourceRename().
Referenced by KLFLibBrowser().
bool KLFLibBrowser::slotResourceSaveTo | ( | ) | [protected, slot] |
Definition at line 1000 of file klflibbrowser.cpp.
Referenced by KLFLibBrowser().
void KLFLibBrowser::slotRestoreLatexOnly | ( | ) | [protected, slot] |
Definition at line 1124 of file klflibbrowser.cpp.
References curLibView(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and KLFAbstractLibView::restoreLatexOnly().
Referenced by KLFLibBrowser().
void KLFLibBrowser::slotRestoreWithStyle | ( | ) | [protected, slot] |
Definition at line 1114 of file klflibbrowser.cpp.
References curLibView(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and KLFAbstractLibView::restoreWithStyle().
Referenced by KLFLibBrowser().
void KLFLibBrowser::slotShowContextMenu | ( | const QPoint & | pos | ) | [protected, slot] |
Definition at line 1234 of file klflibbrowser.cpp.
References QMenu::addAction(), KLFAbstractLibView::addContextMenuActions(), QMenu::addMenu(), QMenu::addSeparator(), KLFAbstractLibEntryMimeEncoder::canDecodeMimeData(), KLFLibResourceEngine::canModifyData(), QApplication::clipboard(), curLibView(), KLFLibResourceEngine::DeleteData, displayTitle(), KLFLibResourceEngine::InsertData, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, QWidget::mapToGlobal(), QMenu::popup(), KLFAbstractLibView::resourceEngine(), KLFAbstractLibView::selectedEntries(), QList::size(), slotCopy(), slotCopyToResource(), slotCut(), slotDeleteSelected(), slotMoveToResource(), slotPaste(), and KLFAbstractLibView::url().
Referenced by openResource().
void KLFLibBrowser::slotShowTabContextMenu | ( | const QPoint & | pos | ) | [protected, slot] |
Definition at line 741 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and QMenu::popup().
Referenced by KLFLibBrowser().
void KLFLibBrowser::slotStartProgress | ( | KLFProgressReporter * | progressReporter, |
const QString & | text | ||
) | [protected, slot] |
Definition at line 1721 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFProgressReporter::max(), and KLFProgressReporter::min().
Referenced by openResource().
void KLFLibBrowser::slotSubResourcePropertyChanged | ( | const QString & | subResource, |
int | propId | ||
) | [protected, slot] |
sender is used to find resource engine emitter.
Definition at line 1072 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLibResourceEngine::PropLocked, KLFLibResourceEngine::PropTitle, slotUpdateForResourceProperty(), KLFLibResourceEngine::SubResPropLocked, and KLFLibResourceEngine::SubResPropTitle.
Referenced by openResource().
void KLFLibBrowser::slotTabResourceShown | ( | int | tabIndex | ) | [protected, slot] |
Definition at line 685 of file klflibbrowser.cpp.
References QWidget::actions(), QMenu::addAction(), QMenu::clear(), KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLibBrowserViewContainer::openSubResourceActions(), resourceTabChanged(), KLFAbstractLibView::selectedEntries(), QList::size(), slotEntriesSelected(), slotRefreshResourceActionsEnabled(), KLFLibBrowserViewContainer::url(), KLFLibBrowserViewContainer::view(), and KLFLibBrowserViewContainer::viewTypeActions().
Referenced by KLFLibBrowser().
void KLFLibBrowser::slotUpdateForResourceProperty | ( | KLFLibResourceEngine * | resource, |
int | propId | ||
) | [protected, slot] |
Definition at line 1046 of file klflibbrowser.cpp.
References KLFLibResourceEngine::AllActionsData, KLFLibResourceEngine::canModifyData(), KLFLibResourceEngine::ChangeData, displayTitle(), findOpenResource(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFLibResourceEngine::PropLocked, KLFLibResourceEngine::PropTitle, KLFAbstractLibView::selectedEntries(), slotRefreshResourceActionsEnabled(), KLFLibResourceEngine::url(), and KLFLibBrowserViewContainer::view().
Referenced by slotDefaultSubResourceChanged(), slotResourcePropertyChanged(), and slotSubResourcePropertyChanged().
void KLFLibBrowser::timerEvent | ( | QTimerEvent * | event | ) | [protected] |
Definition at line 1750 of file klflibbrowser.cpp.
KLFLibBrowserViewContainer * KLFLibBrowser::viewForTabIndex | ( | int | tab | ) | [protected] |
Definition at line 409 of file klflibbrowser.cpp.