#include <QApplication>#include <QDebug>#include <QImage>#include <QString>#include <QDataStream>#include <QMessageBox>#include <QAbstractItemModel>#include <QModelIndex>#include <QPainter>#include <QStyle>#include <QVBoxLayout>#include <QStackedWidget>#include <QComboBox>#include <QHeaderView>#include <QTextDocument>#include <QTextCursor>#include <QTextCharFormat>#include <QListView>#include <QMenu>#include <QAction>#include <QEvent>#include <QDropEvent>#include <QDragEnterEvent>#include <QDragMoveEvent>#include <QStandardItemModel>#include <QItemDelegate>#include <QShortcut>#include <ui_klflibopenresourcedlg.h>#include <ui_klflibrespropeditor.h>#include <ui_klflibnewsubresdlg.h>#include <klfguiutil.h>#include "klfconfig.h"#include "klflibview.h"#include "klflibview_p.h"
Go to the source code of this file.
Classes | |
| class | _klf_block_progress_blocker |
| class | __klf_guarded_bool |
Functions | |
| static QImage | transparentify_image (const QImage &img, qreal factor) |
| static QImage | autocrop_image (const QImage &img, int alpha_threshold=0) |
| static float | color_distinguishable_distance (QRgb a, QRgb b, bool aPremultiplied=false) |
| static bool | image_is_distinguishable (const QImage &imgsrc, QColor background, float threshold) |
| KLF_EXPORT QDebug & | operator<< (QDebug &dbg, const KLFLibModelCache::NodeId &n) |
| KLF_EXPORT QDebug & | operator<< (QDebug &dbg, const KLFLibModelCache::Node &n) |
| KLF_EXPORT QDebug & | operator<< (QDebug &dbg, const KLFLibModelCache::EntryNode &en) |
| KLF_EXPORT QDebug & | operator<< (QDebug &dbg, const KLFLibModelCache::CategoryLabelNode &cn) |
| KLF_EXPORT QDebug & | operator<< (QDebug &dbg, const KLFLibModel::PersistentId &n) |
| KLF_EXPORT QDebug & | operator<< (QDebug &d, const KLFLibViewDelegate::ColorRegion &c) |
Variables | |
| static QStringList | defaultViewTypeIds = QStringList()<<"default"<<"default+list"<<"default+icons" |
Definition at line 84 of file klflibview.cpp.
References QImage::copy(), QImage::height(), QImage::pixel(), and QImage::width().
Referenced by KLFLibModel::dragImage().
|
static |
Definition at line 105 of file klflibview.cpp.
Referenced by image_is_distinguishable().
|
static |
Definition at line 137 of file klflibview.cpp.
References color_distinguishable_distance(), QImage::convertToFormat(), QImage::format(), QImage::height(), QImage::pixel(), QColor::rgb(), and QImage::width().
Referenced by KLFLibViewDelegate::paintEntry().
| KLF_EXPORT QDebug& operator<< | ( | QDebug & | dbg, |
| const KLFLibModelCache::NodeId & | n | ||
| ) |
Definition at line 346 of file klflibview.cpp.
References KLFLibModelCache::CategoryLabelKind, KLFLibModelCache::EntryKind, KLFLibModelCache::NodeId::index, and KLFLibModelCache::NodeId::kind.
| KLF_EXPORT QDebug& operator<< | ( | QDebug & | dbg, |
| const KLFLibModelCache::Node & | n | ||
| ) |
Definition at line 354 of file klflibview.cpp.
References KLFLibModelCache::Node::allChildrenFetched, KLFLibModelCache::Node::children, and KLFLibModelCache::Node::kind.
| KLF_EXPORT QDebug& operator<< | ( | QDebug & | dbg, |
| const KLFLibModelCache::EntryNode & | en | ||
| ) |
Definition at line 359 of file klflibview.cpp.
References KLFLibModelCache::EntryNode::entry, KLFLibModelCache::EntryNode::entryid, KLFLibEntry::latex(), and KLFLibModelCache::Node::parent.
| KLF_EXPORT QDebug& operator<< | ( | QDebug & | dbg, |
| const KLFLibModelCache::CategoryLabelNode & | cn | ||
| ) |
Definition at line 364 of file klflibview.cpp.
References KLFLibModelCache::CategoryLabelNode::categoryLabel, KLFLibModelCache::CategoryLabelNode::fullCategoryPath, and KLFLibModelCache::Node::parent.
| KLF_EXPORT QDebug& operator<< | ( | QDebug & | dbg, |
| const KLFLibModel::PersistentId & | n | ||
| ) |
Definition at line 369 of file klflibview.cpp.
| KLF_EXPORT QDebug& operator<< | ( | QDebug & | d, |
| const KLFLibViewDelegate::ColorRegion & | c | ||
| ) |
Definition at line 373 of file klflibview.cpp.
Definition at line 68 of file klflibview.cpp.
References QImage::convertToFormat(), QImage::height(), QImage::pixel(), QImage::setPixel(), and QImage::width().
Referenced by KLFLibModel::dragImage(), and KLFLibViewDelegate::paintEntry().
|
static |
Definition at line 3942 of file klflibview.cpp.