#include <klflibbrowser.h>
Public Types | |
enum | ResourceRoleFlag { NoRoleFlag = 0x00000000, NoCloseRoleFlag = 0x00000001, HistoryRoleFlag = 0x00010000, ArchiveRoleFlag = 0x00020000, SpecialResourceRoleMask = 0x00ff0000, NoChangeFlag = 0x01000000, OpenNoRaise = 0x02000000, NowMask = 0xff000000 } |
Public Slots | |
bool | openResource (const QUrl &url, uint resourceRoleFlags=NoChangeFlag, const QString &viewTypeIdentifier=QString()) |
bool | openResource (const QString &url, uint resourceRoleFlags=NoChangeFlag, const QString &viewTypeIdentifier=QString()) |
bool | openResource (KLFLibResourceEngine *resource, uint resourceRoleFlags=NoChangeFlag, const QString &viewTypeIdentifier=QString()) |
bool | openResourceFromGuiState (const QUrl &url, const QVariantMap &guiState) |
bool | closeResource (const QUrl &url) |
void | retranslateUi (bool alsoBaseUi=true) |
Signals | |
void | requestRestore (const KLFLibEntry &entry, uint restoreFlags) |
void | requestRestoreStyle (const KLFStyle &style) |
void | resourceTabChanged (const QUrl ¤tUrl) |
void | libEntriesSelected (const KLFLibEntryList &entries) |
Static Public Member Functions | |
static QString | displayTitle (KLFLibResourceEngine *resource) |
Protected Member Functions | |
KLFLibBrowserViewContainer * | findOpenUrl (const QUrl &url) |
KLFLibBrowserViewContainer * | findOpenResource (KLFLibResourceEngine *resource) |
KLFLibBrowserViewContainer * | curView () |
KLFAbstractLibView * | curLibView () |
KLFLibBrowserViewContainer * | viewForTabIndex (int tab) |
QList< KLFLibBrowserViewContainer * > | findByRoleFlags (uint flags, uint mask) |
KLFLibBrowserViewContainer * | findSpecialResource (uint specialResourceRoleFlag) |
bool | event (QEvent *event) |
void | showEvent (QShowEvent *event) |
void | timerEvent (QTimerEvent *event) |
Definition at line 44 of file klflibbrowser.h.
Enumerator | |
---|---|
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().
|
virtual |
Definition at line 175 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and QList::size().
|
slot |
Definition at line 631 of file klflibbrowser.cpp.
References ArchiveRoleFlag, findOpenUrl(), HistoryRoleFlag, KLF_ASSERT_NOT_NULL, KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, klfFmtCC, NoChangeFlag, NowMask, KLFLibBrowserViewContainer::setResourceRoleFlags(), QList::size(), slotResourceClose(), and KLFLibBrowserViewContainer::url().
|
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().
|
protected |
Definition at line 398 of file klflibbrowser.cpp.
Referenced by curLibView(), currentUrlIndex(), slotRefreshResourceActionsEnabled(), slotResourceClose(), slotResourceDelSubRes(), slotResourceNewSubRes(), slotResourceProperties(), and slotResourceRename().
|
static |
Definition at line 342 of file klflibbrowser.cpp.
References KLFLibResourceEngine::AllActionsData, 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().
|
protected |
Definition at line 1737 of file klflibbrowser.cpp.
References QEvent::accept(), QWidget::event(), 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().
|
protected |
Definition at line 413 of file klflibbrowser.cpp.
References klfDbg, klfFmtCC, and QList::size().
|
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().
|
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().
|
inlineprotected |
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(), slotExport(), and KLFLibExportDialog::unselectAll().
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().
|
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().
|
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(), KLFMainWin::saveLibraryState(), slotOpenAll(), slotResourceNew(), slotResourceNewSubRes(), and slotResourceOpen().
|
slot |
Convenience function. Equivalent to
Definition at line 429 of file klflibbrowser.cpp.
References KLF_DEBUG_TIME_BLOCK, KLF_FUNC_NAME, and openResource().
|
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.
|
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(), and KLFLibExportDialog::unselectAll().
|
signal |
Referenced by openResource().
|
signal |
Referenced by KLFLibBrowser(), and openResource().
|
signal |
Referenced by slotTabResourceShown().
|
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().
|
protected |
Definition at line 1756 of file klflibbrowser.cpp.
References KLFLibResourceEngine::AllActionsData, KLFLibResourceEngine::canModifyData(), KLFLibBrowserViewContainer::resourceEngine(), QWidget::showEvent(), and QList::size().
|
protectedslot |
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
Definition at line 1394 of file klflibbrowser.cpp.
References slotCopyMoveToResource().
Referenced by slotShowContextMenu().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
Definition at line 1561 of file klflibbrowser.cpp.
References KLFLibResourceEngine::allEntries(), QStringList::contains(), QList::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().
|
protectedslot |
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(), QMap::isEmpty(), QList::isEmpty(), QMap::keys(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfconfig, klfDbg, KLFConfig::LibraryBrowser, KLFAbstractLibView::resourceEngine(), KLFLibBrowserViewContainer::resourceEngine(), KLFAbstractLibView::selectedEntries(), KLFAbstractLibView::selectedEntryIds(), KLFAbstractLibView::selectEntries(), QList::size(), slotEntriesSelected(), KLFLibBrowserViewContainer::view(), and QMessageBox::warning().
Referenced by KLFLibBrowser().
|
protectedslot |
Definition at line 1399 of file klflibbrowser.cpp.
References slotCopyMoveToResource().
Referenced by slotShowContextMenu().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
Definition at line 989 of file klflibbrowser.cpp.
References KLFLibCreateResourceDlg::createResource(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and openResource().
Referenced by KLFLibBrowser().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
Definition at line 877 of file klflibbrowser.cpp.
References curView(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and KLFLibBrowserViewContainer::resourceEngine().
Referenced by KLFLibBrowser().
|
protectedslot |
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().
|
protectedslot |
Definition at line 752 of file klflibbrowser.cpp.
Referenced by KLFLibBrowser(), and slotResourceRenameSubResource().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
Definition at line 756 of file klflibbrowser.cpp.
References slotResourceRename().
Referenced by KLFLibBrowser().
|
protectedslot |
Definition at line 1000 of file klflibbrowser.cpp.
Referenced by KLFLibBrowser().
|
protectedslot |
Definition at line 1124 of file klflibbrowser.cpp.
References curLibView(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and KLFAbstractLibView::restoreLatexOnly().
Referenced by KLFLibBrowser().
|
protectedslot |
Definition at line 1114 of file klflibbrowser.cpp.
References curLibView(), KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and KLFAbstractLibView::restoreWithStyle().
Referenced by KLFLibBrowser().
|
protectedslot |
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().
|
protectedslot |
Definition at line 741 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and QMenu::popup().
Referenced by KLFLibBrowser().
|
protectedslot |
Definition at line 1721 of file klflibbrowser.cpp.
References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, klfDbg, KLFProgressReporter::max(), and KLFProgressReporter::min().
Referenced by openResource().
|
protectedslot |
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().
|
protectedslot |
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().
|
protectedslot |
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().
|
protected |
Definition at line 1750 of file klflibbrowser.cpp.
|
protected |
Definition at line 409 of file klflibbrowser.cpp.