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

#include <klflibentryeditor.h>

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

Public Slots

void displayEntry (const KLFLibEntry &entry)
 
void displayEntries (const QList< KLFLibEntry > &entries)
 
void setInputEnabled (bool enabled)
 
void retranslateUi (bool alsoBaseUi=true)
 

Signals

void metaInfoChanged (const QMap< int, QVariant > &props)
 
void restoreStyle (const KLFStyle &style)
 

Public Member Functions

 KLFLibEntryEditor (QWidget *parent=NULL)
 
virtual ~KLFLibEntryEditor ()
 
void addCategorySuggestions (const QStringList &categorylist)
 
virtual bool eventFilter (QObject *object, QEvent *event)
 
bool metaInfoModified () const
 
- 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 ()
 

Protected Slots

void slotUpdateFromCbx (QComboBox *cbx)
 
void on_btnApplyChanges_clicked ()
 
void on_btnRestoreStyle_clicked ()
 
void slotApplyChanges ()
 
void slotApplyChanges (bool category, bool tags)
 
void slotModified (bool modif=true)
 
void slotCbxSaveCurrentCompletion (QComboBox *cbx)
 
void slotCbxCleanUpCompletions (QComboBox *cbx)
 

Detailed Description

Definition at line 36 of file klflibentryeditor.h.

Constructor & Destructor Documentation

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

Definition at line 89 of file klflibentryeditor.cpp.

Member Function Documentation

void KLFLibEntryEditor::addCategorySuggestions ( const QStringList categorylist)

Definition at line 110 of file klflibentryeditor.cpp.

References slotCbxCleanUpCompletions().

void KLFLibEntryEditor::displayEntries ( const QList< KLFLibEntry > &  entries)
slot

Handles the selection of multiple items properly by displaying [Multiple items selected] whenever needed.

Bug:
.... find a better way to synchronize config values like this. .......

Definition at line 122 of file klflibentryeditor.cpp.

References KLFLibEntry::category(), KLFConfig::glowEffect, KLFConfig::glowEffectColor, KLFConfig::glowEffectRadius, QString::isEmpty(), klfconfig, KLFLibEntry::latex(), KLFLibEntry::preview(), QList::size(), slotModified(), QWidget::style(), KLFLibEntry::style(), KLFLibEntry::tags(), and KLFConfig::UI.

Referenced by displayEntry().

void KLFLibEntryEditor::displayEntry ( const KLFLibEntry entry)
slot

Definition at line 117 of file klflibentryeditor.cpp.

References displayEntries().

bool KLFLibEntryEditor::eventFilter ( QObject object,
QEvent event 
)
virtual

Definition at line 94 of file klflibentryeditor.cpp.

References QKeyEvent::key(), slotUpdateFromCbx(), and QEvent::type().

void KLFLibEntryEditor::metaInfoChanged ( const QMap< int, QVariant > &  props)
signal

Emitted when user clicks the "Apply" button after having edited category/tags, or hits return. The props are given as a map of KLFLibEntry-property IDs with their corresponding new values.

Referenced by slotApplyChanges().

bool KLFLibEntryEditor::metaInfoModified ( ) const
inline

Definition at line 47 of file klflibentryeditor.h.

void KLFLibEntryEditor::on_btnApplyChanges_clicked ( )
protectedslot

Definition at line 266 of file klflibentryeditor.cpp.

References slotApplyChanges().

void KLFLibEntryEditor::on_btnRestoreStyle_clicked ( )
protectedslot

Definition at line 289 of file klflibentryeditor.cpp.

References restoreStyle().

void KLFLibEntryEditor::restoreStyle ( const KLFStyle style)
signal
void KLFLibEntryEditor::retranslateUi ( bool  alsoBaseUi = true)
slot

Definition at line 84 of file klflibentryeditor.cpp.

void KLFLibEntryEditor::setInputEnabled ( bool  enabled)
slot

Globally enable or disable input. Individual fields may still be disabled for example if more than one entry is selected.

Warning
Changes take effect upon next call of displayEntries() or displayEntry()

Definition at line 240 of file klflibentryeditor.cpp.

void KLFLibEntryEditor::slotApplyChanges ( )
inlineprotectedslot

Updates the changes done to category and tags, for which the corresponding argument is true. eg. slotApplyChanges(true,false) will update category but not tags.

Definition at line 84 of file klflibentryeditor.h.

References slotApplyChanges().

Referenced by on_btnApplyChanges_clicked(), slotApplyChanges(), and slotUpdateFromCbx().

void KLFLibEntryEditor::slotApplyChanges ( bool  category,
bool  tags 
)
protectedslot
void KLFLibEntryEditor::slotCbxCleanUpCompletions ( QComboBox cbx)
protectedslot
void KLFLibEntryEditor::slotCbxSaveCurrentCompletion ( QComboBox cbx)
protectedslot

Definition at line 294 of file klflibentryeditor.cpp.

References QComboBox::addItem(), and slotCbxCleanUpCompletions().

Referenced by slotApplyChanges().

void KLFLibEntryEditor::slotModified ( bool  modif = true)
protectedslot

Definition at line 245 of file klflibentryeditor.cpp.

Referenced by displayEntries(), and KLFLibEntryEditor().

void KLFLibEntryEditor::slotUpdateFromCbx ( QComboBox cbx)
protectedslot

Definition at line 252 of file klflibentryeditor.cpp.

References slotApplyChanges().

Referenced by eventFilter().


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

Generated by doxygen 1.8.5