[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Classes | Functions | Variables
klflibview.cpp File Reference
#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"
Include dependency graph for klflibview.cpp:

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"
 

Function Documentation

static QImage autocrop_image ( const QImage img,
int  alpha_threshold = 0 
)
static

Definition at line 84 of file klflibview.cpp.

References QImage::copy(), QImage::height(), QImage::pixel(), and QImage::width().

Referenced by KLFLibModel::dragImage().

static float color_distinguishable_distance ( QRgb  a,
QRgb  b,
bool  aPremultiplied = false 
)
static

Definition at line 105 of file klflibview.cpp.

Referenced by image_is_distinguishable().

static bool image_is_distinguishable ( const QImage imgsrc,
QColor  background,
float  threshold 
)
static
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 
)

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.

static QImage transparentify_image ( const QImage img,
qreal  factor 
)
static

Variable Documentation

QStringList defaultViewTypeIds = QStringList()<<"default"<<"default+list"<<"default+icons"
static

Definition at line 3942 of file klflibview.cpp.


Generated by doxygen 1.8.11