[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | List of all members
KLFLibBrowser Class Reference

#include <klflibbrowser.h>

Inheritance diagram for KLFLibBrowser:
Inheritance graph
[legend]
Collaboration diagram for KLFLibBrowser:
Collaboration graph
[legend]

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 &currentUrl)
 
void libEntriesSelected (const KLFLibEntryList &entries)
 

Public Member Functions

 KLFLibBrowser (QWidget *parent=NULL)
 
virtual ~KLFLibBrowser ()
 
virtual bool eventFilter (QObject *object, QEvent *event)
 
QList< QUrlopenUrls () const
 
QUrl currentUrl ()
 Returns the URL of the current tab page. More...
 
int currentUrlIndex ()
 Returns the index of currentUrl() in openUrls() More...
 
KLFLibResourceEnginegetOpenResource (const QUrl &url)
 
KLFAbstractLibViewgetView (const QUrl &url)
 
KLFAbstractLibViewgetView (KLFLibResourceEngine *resource)
 
QVariantMap saveGuiState ()
 
void loadGuiState (const QVariantMap &state, bool openURLs=true)
 
- Public Member Functions inherited from QWidget
 ContextMenuPolicy
 
 FocusPolicy
 
 LayoutDirection
 
 WindowFlags
 
 WindowModality
 
 QWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 actionEvent (QActionEvent *event)
 
 actions ()
 
 activateWindow ()
 
 addAction (QAction *action)
 
 addActions (QList< QAction * > actions)
 
 adjustSize ()
 
 ColorRole QWidget::backgroundRole()
 
 changeEvent (QEvent *event)
 
 childAt (int x, int y)
 
 childAt (const QPoint &p)
 
 clearFocus ()
 
 clearMask ()
 
 close ()
 
 closeEvent (QCloseEvent *event)
 
 contentsRect ()
 
 contextMenuEvent (QContextMenuEvent *event)
 
 create (WId window=0, bool initializeWindow=true, bool destroyOldWindow=true)
 
 customContextMenuRequested (const QPoint &pos)
 
 destroy (bool destroyWindow=true, bool destroySubWindows=true)
 
 dragEnterEvent (QDragEnterEvent *event)
 
 dragLeaveEvent (QDragLeaveEvent *event)
 
 dragMoveEvent (QDragMoveEvent *event)
 
 dropEvent (QDropEvent *event)
 
 ensurePolished ()
 
 enterEvent (QEvent *event)
 
 event (QEvent *event)
 
 find (WId id)
 
 focusInEvent (QFocusEvent *event)
 
 focusNextChild ()
 
 focusNextPrevChild (bool next)
 
 focusOutEvent (QFocusEvent *event)
 
 focusPreviousChild ()
 
 focusProxy ()
 
 focusWidget ()
 
 fontInfo ()
 
 fontMetrics ()
 
 ColorRole QWidget::foregroundRole()
 
 getContentsMargins (int *left, int *top, int *right, int *bottom)
 
 getDC ()
 
 grabKeyboard ()
 
 grabMouse ()
 
 grabMouse (const QCursor &cursor)
 
 grabShortcut (const QKeySequence &key, Qt::ShortcutContext context=Qt::WindowShortcut)
 
 hasEditFocus ()
 
 heightForWidth (int w)
 
 hide ()
 
 hideEvent (QHideEvent *event)
 
 inputContext ()
 
 inputMethodEvent (QInputMethodEvent *event)
 
 inputMethodQuery (Qt::InputMethodQuery query)
 
 insertAction (QAction *before, QAction *action)
 
 insertActions (QAction *before, QList< QAction * > actions)
 
 isAncestorOf (const QWidget *child)
 
 isEnabledTo (QWidget *ancestor)
 
 isHidden ()
 
 isVisibleTo (QWidget *ancestor)
 
 isWindow ()
 
 keyPressEvent (QKeyEvent *event)
 
 keyReleaseEvent (QKeyEvent *event)
 
 keyboardGrabber ()
 
 layout ()
 
 leaveEvent (QEvent *event)
 
 lower ()
 
 HANDLE QWidget::macCGHandle()
 
 macEvent (EventHandlerCallRef caller, EventRef event)
 
 HANDLE QWidget::macQDHandle()
 
 mapFrom (QWidget *parent, const QPoint &pos)
 
 mapFromGlobal (const QPoint &pos)
 
 mapFromParent (const QPoint &pos)
 
 mapTo (QWidget *parent, const QPoint &pos)
 
 mapToGlobal (const QPoint &pos)
 
 mapToParent (const QPoint &pos)
 
 mask ()
 
 metric (PaintDeviceMetric m)
 
 mouseDoubleClickEvent (QMouseEvent *event)
 
 mouseGrabber ()
 
 mouseMoveEvent (QMouseEvent *event)
 
 mousePressEvent (QMouseEvent *event)
 
 mouseReleaseEvent (QMouseEvent *event)
 
 moveEvent (QMoveEvent *event)
 
 nextInFocusChain ()
 
 overrideWindowFlags (Qt::WindowFlags flags)
 
 paintEngine ()
 
 paintEvent (QPaintEvent *event)
 
 parentWidget ()
 
 qwsEvent (QWSEvent *event)
 
 raise ()
 
 releaseDC (HDC hdc)
 
 releaseKeyboard ()
 
 releaseMouse ()
 
 releaseShortcut (int id)
 
 removeAction (QAction *action)
 
 render (QPaintDevice *target, const QPoint &targetOffset=QPoint()
 
 repaint ()
 
 repaint (int x, int y, int w, int h)
 
 repaint (const QRect &r)
 
 repaint (const QRegion &rgn)
 
 resetInputContext ()
 
 resizeEvent (QResizeEvent *event)
 
 restoreGeometry (const QByteArray &geometry)
 
 saveGeometry ()
 
 scroll (int dx, int dy)
 
 scroll (int dx, int dy, const QRect &r)
 
 setAttribute (Qt::WidgetAttribute attribute, bool on=true)
 
 setBackgroundRole (QPalette::ColorRole role)
 
 setContentsMargins (int left, int top, int right, int bottom)
 
 setDisabled (bool disable)
 
 setEditFocus (bool enable)
 
 setFixedHeight (int h)
 
 setFixedSize (const QSize &s)
 
 setFixedSize (int w, int h)
 
 setFixedWidth (int w)
 
 setFocus (Qt::FocusReason reason)
 
 setFocus ()
 
 setFocusProxy (QWidget *w)
 
 setForegroundRole (QPalette::ColorRole role)
 
 setHidden (bool hidden)
 
 setInputContext (QInputContext *context)
 
 setLayout (QLayout *layout)
 
 setMask (const QBitmap &bitmap)
 
 setMask (const QRegion &region)
 
 setParent (QWidget *parent)
 
 setParent (QWidget *parent, Qt::WindowFlags f)
 
 setShortcutAutoRepeat (int id, bool enable=true)
 
 setShortcutEnabled (int id, bool enable=true)
 
 setStyle (QStyle *style)
 
 setTabOrder (QWidget *first, QWidget *second)
 
 setWindowRole (const QString &role)
 
 setWindowState (Qt::WindowStates windowState)
 
 setWindowSurface (QWindowSurface *surface)
 
 show ()
 
 showEvent (QShowEvent *event)
 
 showFullScreen ()
 
 showMaximized ()
 
 showMinimized ()
 
 showNormal ()
 
 stackUnder (QWidget *w)
 
 style ()
 
 tabletEvent (QTabletEvent *event)
 
 testAttribute (Qt::WidgetAttribute attribute)
 
 underMouse ()
 
 update ()
 
 update (int x, int y, int w, int h)
 
 update (const QRect &r)
 
 update (const QRegion &rgn)
 
 updateGeometry ()
 
 updateMicroFocus ()
 
 visibleRegion ()
 
 wheelEvent (QWheelEvent *event)
 
 winEvent (MSG *message, long *result)
 
 winId ()
 
 window ()
 
 windowRole ()
 
 WindowStates QWidget::windowState()
 
 windowSurface ()
 
 WindowType QWidget::windowType()
 
 x11Event (XEvent *event)
 
 x11Info ()
 
 HANDLE QWidget::x11PictureHandle()
 
 QWidget (QWidget *parent, const char *name, Qt::WindowFlags f=0)
 
 BackgroundMode QWidget::backgroundMode()
 
 backgroundOffset ()
 
 backgroundOrigin ()
 
 caption ()
 
 childAt (int x, int y, bool includeThis)
 
 childAt (const QPoint &p, bool includeThis)
 
 close (bool alsoDelete)
 
 colorGroup ()
 
 constPolish ()
 
 drawText (const QPoint &p, const QString &s)
 
 drawText (int x, int y, const QString &s)
 
 erase ()
 
 erase (int x, int y, int w, int h)
 
 erase (const QRect &rect)
 
 erase (const QRegion &rgn)
 
 hasMouse ()
 
 icon ()
 
 iconText ()
 
 iconify ()
 
 isDesktop ()
 
 isDialog ()
 
 isInputMethodEnabled ()
 
 isPopup ()
 
 isShown ()
 
 isUpdatesEnabled ()
 
 isVisibleToTLW ()
 
 ownCursor ()
 
 ownFont ()
 
 ownPalette ()
 
 parentWidget (bool sameWindow)
 
 polish ()
 
 recreate (QWidget *parent, Qt::WindowFlags f, const QPoint &p, bool showIt=false)
 
 repaint (bool b)
 
 repaint (int x, int y, int w, int h, bool b)
 
 repaint (const QRect &r, bool b)
 
 repaint (const QRegion &rgn, bool b)
 
 reparent (QWidget *parent, Qt::WindowFlags f, const QPoint &p, bool showIt=false)
 
 reparent (QWidget *parent, const QPoint &p, bool showIt=false)
 
 setActiveWindow ()
 
 setBackgroundColor (const QColor &color)
 
 setBackgroundMode (Qt::BackgroundMode widgetBackground, Qt::BackgroundMode paletteBackground=Qt::PaletteBackground)
 
 setBackgroundOrigin (BackgroundOrigin background)
 
 setBackgroundPixmap (const QPixmap &pixmap)
 
 setCaption (const QString &c)
 
 setEraseColor (const QColor &color)
 
 setErasePixmap (const QPixmap &pixmap)
 
 setFont (const QFont &f, bool b)
 
 setIcon (const QPixmap &i)
 
 setIconText (const QString &it)
 
 setInputMethodEnabled (bool enabled)
 
 setKeyCompression (bool b)
 
 setPalette (const QPalette &p, bool b)
 
 setPaletteBackgroundColor (const QColor &color)
 
 setPaletteBackgroundPixmap (const QPixmap &pixmap)
 
 setPaletteForegroundColor (const QColor &color)
 
 setShown (bool shown)
 
 setSizePolicy (QSizePolicy::Policy hor, QSizePolicy::Policy ver, bool hfw)
 
 setStyle (const QString &style)
 
 unsetFont ()
 
 unsetPalette ()
 
 visibleRect ()
 
 wmapper ()
 

Static Public Member Functions

static QString displayTitle (KLFLibResourceEngine *resource)
 

Protected Slots

void slotRestoreWithStyle ()
 
void slotRestoreLatexOnly ()
 
void slotDeleteSelected ()
 
void slotRefreshResourceActionsEnabled ()
 
void slotTabResourceShown (int tabIndex)
 
void slotShowTabContextMenu (const QPoint &pos)
 
void slotResourceRename ()
 
void slotResourceRenameSubResource ()
 
void slotResourceRename (bool renameSubResource)
 
void slotResourceRenameFinished ()
 
bool slotResourceClose (KLFLibBrowserViewContainer *view=NULL, bool force=false)
 
void slotResourceProperties ()
 
bool slotResourceNewSubRes ()
 
bool slotResourceDelSubRes ()
 
bool slotResourceOpen ()
 
bool slotResourceNew ()
 
bool slotResourceSaveTo ()
 
void slotResourceDataChanged (const QList< KLFLib::entryId > &entryIdList)
 
void slotResourcePropertyChanged (int propId)
 
void slotUpdateForResourceProperty (KLFLibResourceEngine *resource, int propId)
 
void slotSubResourcePropertyChanged (const QString &subResource, int propId)
 
void slotDefaultSubResourceChanged (const QString &subResource)
 
void slotEntriesSelected (const KLFLibEntryList &entries)
 
void slotAddCategorySuggestions (const QStringList &catlist)
 
void slotShowContextMenu (const QPoint &pos)
 
void slotMetaInfoChanged (const QMap< int, QVariant > &props)
 
void slotCopyToResource ()
 
void slotMoveToResource ()
 
void slotCopyMoveToResource (QObject *sender, bool move)
 
void slotCopyMoveToResource (KLFAbstractLibView *dest, KLFAbstractLibView *source, bool move)
 
void slotCut ()
 
void slotCopy ()
 
void slotPaste ()
 
void slotOpenAll ()
 
bool slotExport ()
 
bool slotExportSelection ()
 
void slotStartProgress (KLFProgressReporter *progressReporter, const QString &text)
 

Protected Member Functions

KLFLibBrowserViewContainerfindOpenUrl (const QUrl &url)
 
KLFLibBrowserViewContainerfindOpenResource (KLFLibResourceEngine *resource)
 
KLFLibBrowserViewContainercurView ()
 
KLFAbstractLibViewcurLibView ()
 
KLFLibBrowserViewContainerviewForTabIndex (int tab)
 
QList
< KLFLibBrowserViewContainer * > 
findByRoleFlags (uint flags, uint mask)
 
KLFLibBrowserViewContainerfindSpecialResource (uint specialResourceRoleFlag)
 
bool event (QEvent *event)
 
void showEvent (QShowEvent *event)
 
void timerEvent (QTimerEvent *event)
 

Detailed Description

Definition at line 44 of file klflibbrowser.h.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

KLFLibBrowser::KLFLibBrowser ( QWidget parent = NULL)
KLFLibBrowser::~KLFLibBrowser ( )
virtual

Definition at line 175 of file klflibbrowser.cpp.

References KLF_DEBUG_BLOCK, KLF_FUNC_NAME, and QList::size().

Member Function Documentation

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
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
QString KLFLibBrowser::displayTitle ( KLFLibResourceEngine resource)
static
bool KLFLibBrowser::event ( QEvent event)
protected
bool KLFLibBrowser::eventFilter ( QObject object,
QEvent event 
)
virtual
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
KLFLibBrowserViewContainer * KLFLibBrowser::findOpenUrl ( const QUrl url)
protected
KLFLibBrowserViewContainer* KLFLibBrowser::findSpecialResource ( uint  specialResourceRoleFlag)
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.

Note
Mind that KLFLibBrowser deletes the views and their corresponding engines upon destruction.

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.

Note
the returned view belongs to this KLFLibBrowser object.

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.

Note
the returned view belongs to this KLFLibBrowser object.

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 
)
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::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.

Warning
this library browser takes ownership of the resource and will delete it when done using it.

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::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().

QList< QUrl > KLFLibBrowser::openUrls ( ) const

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 ( )
void KLFLibBrowser::showEvent ( QShowEvent event)
protected
void KLFLibBrowser::slotAddCategorySuggestions ( const QStringList catlist)
protectedslot

Definition at line 1228 of file klflibbrowser.cpp.

References klfDbg.

Referenced by openResource().

void KLFLibBrowser::slotCopy ( )
protectedslot
void KLFLibBrowser::slotCopyMoveToResource ( QObject sender,
bool  move 
)
protectedslot
void KLFLibBrowser::slotCopyMoveToResource ( KLFAbstractLibView dest,
KLFAbstractLibView source,
bool  move 
)
protectedslot
void KLFLibBrowser::slotCopyToResource ( )
protectedslot
Note
important data is defined in sender's custom properties (a QAction)

Definition at line 1394 of file klflibbrowser.cpp.

References slotCopyMoveToResource().

Referenced by slotShowContextMenu().

void KLFLibBrowser::slotCut ( )
protectedslot
void KLFLibBrowser::slotDefaultSubResourceChanged ( const QString subResource)
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().

void KLFLibBrowser::slotDeleteSelected ( )
protectedslot
void KLFLibBrowser::slotEntriesSelected ( const KLFLibEntryList entries)
protectedslot
bool KLFLibBrowser::slotExport ( )
protectedslot
bool KLFLibBrowser::slotExportSelection ( )
protectedslot
void KLFLibBrowser::slotMetaInfoChanged ( const QMap< int, QVariant > &  props)
protectedslot
void KLFLibBrowser::slotMoveToResource ( )
protectedslot
Note
important data is defined in sender's custom properties (a QAction)

Definition at line 1399 of file klflibbrowser.cpp.

References slotCopyMoveToResource().

Referenced by slotShowContextMenu().

void KLFLibBrowser::slotOpenAll ( )
protectedslot
void KLFLibBrowser::slotPaste ( )
protectedslot
void KLFLibBrowser::slotRefreshResourceActionsEnabled ( )
protectedslot
bool KLFLibBrowser::slotResourceClose ( KLFLibBrowserViewContainer view = NULL,
bool  force = false 
)
protectedslot
void KLFLibBrowser::slotResourceDataChanged ( const QList< KLFLib::entryId > &  entryIdList)
protectedslot
bool KLFLibBrowser::slotResourceDelSubRes ( )
protectedslot
bool KLFLibBrowser::slotResourceNew ( )
protectedslot
bool KLFLibBrowser::slotResourceNewSubRes ( )
protectedslot
bool KLFLibBrowser::slotResourceOpen ( )
protectedslot
void KLFLibBrowser::slotResourceProperties ( )
protectedslot
void KLFLibBrowser::slotResourcePropertyChanged ( int  propId)
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().

void KLFLibBrowser::slotResourceRename ( )
protectedslot

Definition at line 752 of file klflibbrowser.cpp.

Referenced by KLFLibBrowser(), and slotResourceRenameSubResource().

void KLFLibBrowser::slotResourceRename ( bool  renameSubResource)
protectedslot
void KLFLibBrowser::slotResourceRenameFinished ( )
protectedslot
void KLFLibBrowser::slotResourceRenameSubResource ( )
protectedslot

Definition at line 756 of file klflibbrowser.cpp.

References slotResourceRename().

Referenced by KLFLibBrowser().

bool KLFLibBrowser::slotResourceSaveTo ( )
protectedslot

Definition at line 1000 of file klflibbrowser.cpp.

Referenced by KLFLibBrowser().

void KLFLibBrowser::slotRestoreLatexOnly ( )
protectedslot
void KLFLibBrowser::slotRestoreWithStyle ( )
protectedslot
void KLFLibBrowser::slotShowContextMenu ( const QPoint pos)
protectedslot
void KLFLibBrowser::slotShowTabContextMenu ( const QPoint pos)
protectedslot

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 
)
protectedslot
void KLFLibBrowser::slotSubResourcePropertyChanged ( const QString subResource,
int  propId 
)
protectedslot

sender is used to find resource engine emitter.

Todo:
......... CHECK that subResource is our current sub-resource

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)
protectedslot
void KLFLibBrowser::slotUpdateForResourceProperty ( KLFLibResourceEngine resource,
int  propId 
)
protectedslot
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.


The documentation for this class was generated from the following files:

Generated by doxygen 1.8.8