Kate
kateviewhelpers.cpp
Go to the documentation of this file.
134 connect(m_view, SIGNAL(selectionChanged(KTextEditor::View*)), &m_updateTimer, SLOT(start()), Qt::UniqueConnection);
135 connect(m_doc, SIGNAL(textChanged(KTextEditor::Document*)), &m_updateTimer, SLOT(start()), Qt::UniqueConnection);
136 connect(m_view, SIGNAL(delayedUpdateOfView()), &m_updateTimer, SLOT(start()), Qt::UniqueConnection);
138 connect(&(m_view->textFolding()), SIGNAL(foldingRangesChanged()), &m_updateTimer, SLOT(start()), Qt::UniqueConnection);
208 QToolTip::showText(m_toolTipPos, i18nc("from line - to line", "<center>%1<br/>—<br/>%2</center>", fromLine, lastLine), this);
256 QToolTip::showText(m_toolTipPos, i18nc("from line - to line", "<center>%1<br/>—<br/>%2</center>", fromLine, lastLine), this);
274 const QColor KateScrollBar::charColor(const QVector<Kate::TextLineData::Attribute> &attributes, int &attributeIndex,
308 if ((attributeIndex < attributes.size()) && (x < attributes[attributeIndex].offset + attributes[attributeIndex].length)) {
309 color = m_view->renderer()->attribute(attributes[attributeIndex].attributeValue)->foreground().color();
359 //kDebug(13040) << "pixmap" << pixmapLineCount << pixmapLineWidth << "docLines" << m_view->textFolding().visibleLines() << "height" << m_grooveHeight;
364 backgroundColor = m_doc->defaultStyle(KTextEditor::HighlightInterface::dsNormal)->background().color();
365 defaultTextColor = m_doc->defaultStyle(KTextEditor::HighlightInterface::dsNormal)->foreground().color();
406 QList< QTextLayout::FormatRange > decorations = m_view->renderer()->decorationsForLine(kateline, realLineNumber);
429 painter.setPen(charColor(attributes, attributeIndex, decorations, defaultTextColor, x, lineText[x]));
500 QRect grooveRect = style()->subControlRect(QStyle::CC_ScrollBar, &opt, QStyle::SC_ScrollBarGroove, this);
502 if (style()->subControlRect(QStyle::CC_ScrollBar, &opt, QStyle::SC_ScrollBarSubLine, this).height() == 0) {
507 if (style()->subControlRect(QStyle::CC_ScrollBar, &opt, QStyle::SC_ScrollBarAddLine, this).height() == 0) {
513 QRect sliderRect = style()->subControlRect(QStyle::CC_ScrollBar, &opt, QStyle::SC_ScrollBarSlider, this);
522 int yoffset = 1; // top-aligned in stead of center-aligned (grooveRect.height() - docHeight) / 2;
523 QRect docRect(QPoint(grooveRect.left()+docXMargin, yoffset+grooveRect.top()), QSize(grooveRect.width()-2*docXMargin, docHeight));
538 // TODO KDE5: If HighlightInterface is a View interface, use HighlightInterface::defaultStyle() again.
540 backgroundColor = m_doc->defaultStyle(KTextEditor::HighlightInterface::dsNormal)->background().color();
541 foregroundColor = m_doc->defaultStyle(KTextEditor::HighlightInterface::dsNormal)->foreground().color();
580 if ((docHeight+2*docXMargin >= grooveRect.height()) && (sliderRect.height() > visibleRect.height()+2)) {
622 QRect pixmapRect(QPoint(s_pixelMargin, 0), QSize(m_pixmap.width() - s_pixelMargin, m_pixmap.height()));
623 QRect docPixmapRect(QPoint(s_pixelMargin, docRect.top()), QSize(docRect.width()-s_pixelMargin, docRect.height()));
674 QRect rect = style()->subControlRect(QStyle::CC_ScrollBar, &opt, QStyle::SC_ScrollBarSlider, this);
728 QToolTip::showText(m_toolTipPos, i18nc("from line - to line", "<center>%1<br/>—<br/>%2</center>", fromLine, lastLine), this);
749 QRect grooveRect = style()->subControlRect(QStyle::CC_ScrollBar, &opt, QStyle::SC_ScrollBarGroove, this);
768 for (QHash<int, KTextEditor::Mark*>::const_iterator i = marks.constBegin(); i != marks.constEnd(); ++i)
774 KateRendererConfig::global()->lineMarkerColor((KTextEditor::MarkInterface::MarkTypes)mark->type));
837 // inserts the given string in the command line edit and (if selected = true) selects it so the user
871 // make sure the timer is stopped when the user switches views. if not, focus will be given to the
886 QString beg = "<qt background=\"white\"><div><table width=\"100%\"><tr><td bgcolor=\"brown\"><font color=\"white\"><b>Help: <big>";
977 // Parse any leading range expression, and strip it (and maybe do some other transforms on the command).
979 KTextEditor::Range range = CommandRangeExpressionParser::parseRangeExpression(cmd, m_view, leadingRangeExpression, cmd);
1000 // the following commands changes the focus themselves, so bar should be hidden before execution.
1001 if (QRegExp("buffer|b|new|vnew|bp|bprev|bn|bnext|bf|bfirst|bl|blast|edit|e").exactMatch(cmd.split(" ").at(0))) {
1007 if ( ( !ce && range.isValid() && p ) || ( range.isValid() && ce && !ce->supportsRange(cmd) ) ) {
1065 if (!QRegExp("buffer|b|new|vnew|bp|bprev|bn|bnext|bf|bfirst|bl|blast|edit|e").exactMatch(cmd.split(" ").at(0))) {
1131 //kDebug(13025)<<"keypress in commandline: We have a command! "<<m_command<<". text is '"<<text()<<"'";
1450 if (m_cachedLNWidth != width || m_oldBackgroundColor != m_view->renderer()->config()->iconBarColor()) {
1455 if ((m_arrow.size() != newSize || m_oldBackgroundColor != m_view->renderer()->config()->iconBarColor()) && !newSize.isEmpty()) {
1489 static void paintTriangle (QPainter &painter, QColor c, int xOffset, int yOffset, int width, int height, bool open)
1517 QPointF points[3] = { middle+QPointF(-halfSize, -halfSizeP), middle+QPointF(halfSize, -halfSizeP), middle+QPointF(0, halfSizeP) };
1522 QPointF points[3] = { middle+QPointF(-halfSizeP, -halfSize), middle+QPointF(-halfSizeP, halfSize), middle+QPointF(halfSizeP, 0) };
1543 if ( m_lineNumbersOn || (m_view->dynWordWrap() && m_dynWrapIndicatorsOn) ) // avoid calculating unless needed ;-)
1546 if ( lnWidth != m_cachedLNWidth || m_oldBackgroundColor != m_view->renderer()->config()->iconBarColor() )
1653 // Draw a border around all adjacent entries that have the same text as the currently hovered one
1654 const QVariant identifier = model->data( realLine, (Qt::ItemDataRole) KTextEditor::AnnotationModel::GroupIdentifierRole );
1674 && m_viewInternal->cache()->viewLine(z).viewLine() == m_viewInternal->cache()->viewLineCount(realLine)-1)
1687 if( text.isValid() && text.canConvert<QString>() && (m_viewInternal->cache()->viewLine(z).startCol() == 0) )
1758 m_viewInternal->cache()->viewLine(z).viewLine() == m_viewInternal->cache()->viewLineCount(realLine)-1)
1769 QVector<QPair<qint64, Kate::TextFolding::FoldingRangeFlags> > startingRanges = m_view->textFolding().foldingRangesStartingOnLine (realLine);
1781 paintTriangle (p, m_view->renderer()->config()->foldingColor(), lnX, y, iconPaneWidth, h, false);
1785 paintTriangle (p, m_view->renderer()->config()->foldingColor(), lnX, y, iconPaneWidth, h, true);
1851 if ( positionToArea( e->pos() ) != IconBorder && positionToArea( e->pos() ) != AnnotationBorder )
2030 QVector<QPair<qint64, Kate::TextFolding::FoldingRangeFlags> > startingRanges = m_view->textFolding().foldingRangesStartingOnLine (cursorOnLine);
2039 actionDone = (anyFolded ? m_view->textFolding().unfoldRange (startingRanges[i].first) : m_view->textFolding().foldRange (startingRanges[i].first)) || actionDone;
2044 KTextEditor::Range foldingRange = m_view->doc()->buffer().computeFoldingRangeForStartLine (cursorOnLine);
2232 void KateIconBorder::annotationModelChanged( KTextEditor::AnnotationModel * oldmodel, KTextEditor::AnnotationModel * newmodel )
2313 KateViewEncodingAction::KateViewEncodingAction(KateDocument *_doc, KateView *_view, const QString& text, QObject *parent)
2399 if (codec==KGlobal::charsets()->codecForName(actions().at(i)->menu()->actions().at(j)->text()))
2465 KateViewBar::KateViewBar (bool external,KTextEditor::ViewBarContainer::Position pos,QWidget *parent, KateView *view)
2589 KTextEditor::ViewBarContainer *viewBarContainer=qobject_cast<KTextEditor::ViewBarContainer*>( KateGlobal::self()->container() );
QLayout * layout() const
text
void annotationActivated(KTextEditor::View *view, int line)
bool canConvert(Type t) const
void setInterval(int msec)
Definition: kateviewhelpers.h:182
void showText(const QPoint &pos, const QString &text, QWidget *w)
QSize size() const
void triggered(bool checked)
Qt::KeyboardModifiers modifiers() const
QString cap(int nth) const
virtual QSize sizeHint() const
Type type() const
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
const QPalette & palette() const
iterator insert(const Key &key, const T &value)
void addBarWidget(KateViewBarWidget *newBarWidget)
Adds a widget to this viewbar.
Definition: kateviewhelpers.cpp:2478
void hideRequested()
virtual KTextEditor::MovingRange * newMovingRange(const KTextEditor::Range &range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors=KTextEditor::MovingRange::DoNotExpand, KTextEditor::MovingRange::EmptyBehavior emptyBehavior=KTextEditor::MovingRange::AllowEmpty)
Create a new moving range for this document.
Definition: katedocument.cpp:4741
int width() const
KateViewEncodingAction(KateDocument *_doc, KateView *_view, const QString &text, QObject *parent)
Definition: kateviewhelpers.cpp:2313
void fillRect(const QRectF &rectangle, const QBrush &brush)
void setRenderHint(RenderHint hint, bool on)
QWidget * currentWidget() const
void ensureHighlighted(int line, int lookAhead=64)
Update highlighting of given line line, if needed.
Definition: katebuffer.cpp:284
void updateGeometry()
virtual void mouseDoubleClickEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2641
bool exactMatch(const QString &candidate, const QString &wildcard, int candidatePosFromRight, int wildcardPosFromRight, bool caseSensitive=true)
Definition: katewildcardmatcher.cpp:29
void fill(const QColor &color)
bool lessThanAction(KSelectAction *a, KSelectAction *b)
Definition: kateviewhelpers.cpp:2270
void setAnnotationBorderOn(bool enable)
Definition: kateviewhelpers.cpp:1303
const Key & key() const
void slotReturnPressed(const QString &cmd)
Parse the text as a command.
Definition: kateviewhelpers.cpp:964
KTextEditor::Range computeFoldingRangeForStartLine(int startLine)
For a given line, compute the folding range that starts there to be used to fold e.g.
Definition: katebuffer.cpp:522
QScriptValue i18nc(QScriptContext *context, QScriptEngine *engine)
i18nc("context", "text", arguments [optional])
Definition: katescripthelpers.cpp:210
void initStyleOption(QStyleOptionSlider *option) const
bool isEmpty() const
bool handleMarkClick(int line)
Returns true if the click on the mark should not be further processed.
Definition: katedocument.cpp:1762
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
void setChecked(bool)
int value() const
bool hasNext() const
QVariant data() const
QStyle * style() const
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
void setText(const QString &text, bool selected=true)
Definition: kateviewhelpers.cpp:839
int size() const
int y() const
Definition: kateviewhelpers.h:182
KateViewBar(bool external, KTextEditor::ViewBarContainer::Position pos, QWidget *parent, KateView *view)
Definition: kateviewhelpers.cpp:2465
int visibleLineToLine(int visibleLine) const
Convert a visible line number to a line number in the text buffer.
Definition: katetextfolding.cpp:422
const QColor & color(ColorGroup group, ColorRole role) const
const T & at(int i) const
KTextEditor::Attribute::Ptr attribute(uint pos) const
This takes an in index, and returns all the attributes for it.
Definition: katerenderer.cpp:79
int size() const
void removePermanentBarWidget(KateViewBarWidget *barWidget)
Removes permanent bar widget from viewbar.
Definition: kateviewhelpers.cpp:2518
int y() const
virtual void mouseReleaseEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2736
bool isVisible() const
virtual void mousePressEvent(QMouseEvent *e)
virtual KTextEditor::Attribute::Ptr defaultStyle(const KTextEditor::HighlightInterface::DefaultStyle ds) const
Definition: katedocument.cpp:5348
virtual KTextEditor::AnnotationModel * annotationModel() const
Definition: katedocument.cpp:4799
void setAttribute(Qt::WidgetAttribute attribute, bool on)
T value() const
QRect visibleRect() const
KatePasteMenu(const QString &text, KateView *view)
Definition: kateviewhelpers.cpp:2621
int mibForName(const QString &codecName, bool *ok=0) const
Definition: kateviewhelpers.cpp:2339
void setJoinStyle(Qt::PenJoinStyle style)
void setAlpha(int alpha)
void moveTo(const QPointF &point)
int height() const
KateCmdLineEdit(KateCommandLineBar *bar, KateView *view)
Definition: kateviewhelpers.cpp:852
int x() const
int y() const
virtual QRect subControlRect(ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget) const =0
int pageStep() const
void userSetEncodingForNextReload()
User did set encoding for next reload => enforce it!
Definition: katedocument.h:960
QString join(const QString &separator) const
Qt::MouseButtons buttons() const
KTextEditor::AnnotationModel * annotationModel() const
Definition: kateview.cpp:3068
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void showText(const QPoint &pos, const QString &text, QWidget *w)
Kate::TextLine plainKateTextLine(uint i)
Definition: katedocument.cpp:4712
int hue() const
void setIcon(const QIcon &icon)
virtual void paintEvent(QPaintEvent *)
virtual void mouseReleaseEvent(QMouseEvent *e)
qreal width(const QString &text) const
void getHsl(int *h, int *s, int *l, int *a) const
void update()
QTextCodec * codecForLocale()
int x() const
int y() const
KateViInputModeManager * getViInputModeManager()
Definition: kateview.cpp:1587
int size() const
static KTextEditor::Range parseRangeExpression(const QString &command, KateView *view, QString &destRangeExpression, QString &destTransformedCommand)
Attempt to parse any leading range expression (e.g.
Definition: katevicommandrangeexpressionparser.cpp:68
bool isNull() const
bool unfoldRange(qint64 id, bool remove=false)
Unfold the given range.
Definition: katetextfolding.cpp:191
const QColor & lineNumberColor() const
Definition: kateconfig.cpp:2582
virtual void styleChange(QStyle &oldStyle)
Definition: kateviewhelpers.cpp:704
int lightness() const
void clear()
KateTextLayout yToKateTextLayout(int y) const
Definition: kateviewinternal.cpp:312
KateViewBarWidget(bool addCloseButton, QWidget *parent=0)
Definition: kateviewhelpers.cpp:2437
int width() const
virtual const KTextEditor::Range & selectionRange() const
Definition: kateview.cpp:2815
const QColor & modifiedLineColor() const
Definition: kateconfig.cpp:2645
const QRect & rect() const
Definition: kateviewhelpers.h:294
int indexIn(const QString &str, int offset, CaretMode caretMode) const
void drawRect(const QRectF &rectangle)
void removeWidget(QWidget *widget)
virtual void resizeEvent(QResizeEvent *)
Definition: kateviewhelpers.cpp:696
virtual void keyPressEvent(QKeyEvent *event)
Definition: kateviewhelpers.cpp:2602
void updateAnnotationLine(int line)
Definition: kateviewhelpers.cpp:2184
void setIconBorderOn(bool enable)
Definition: kateviewhelpers.cpp:1291
void setFoldingMarkersOn(bool enable)
Definition: kateviewhelpers.cpp:1377
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
const QPoint & globalPos() const
QVector< QPair< qint64, FoldingRangeFlags > > foldingRangesStartingOnLine(int line) const
Queries which folding ranges start at the given line and returns the id + flags for all of them...
Definition: katetextfolding.cpp:476
void removeBarWidget(KateViewBarWidget *barWidget)
Removes a widget from this viewbar.
Definition: kateviewhelpers.cpp:2493
void drawPoint(const QPointF &position)
static void paintTriangle(QPainter &painter, QColor c, int xOffset, int yOffset, int width, int height, bool open)
Definition: kateviewhelpers.cpp:1489
void setCurrentWidget(QWidget *widget)
virtual void mousePressEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2517
void setLayout(QLayout *layout)
const_iterator constEnd() const
Qt::Orientation orientation() const
int viewLine() const
Return the index of this visual line inside the document line (KateLineLayout).
Definition: katetextlayout.cpp:109
virtual void mousePressEvent(QMouseEvent *event)
int toInt(bool *ok) const
int x() const
int sliderPosition() const
virtual void sliderChange(SliderChange change)
Definition: kateviewhelpers.cpp:711
int top() const
void setPen(const QColor &color)
void setFocus()
void lineTo(const QPointF &endPoint)
void setDynWrapIndicators(int state)
Definition: kateviewhelpers.cpp:1364
int left() const
Qt::MouseButton button() const
virtual void mouseMoveEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2813
Definition: kateviewinternal.h:58
void setFocusProxy(QWidget *w)
virtual void mouseMoveEvent(QMouseEvent *event)
bool isEmpty() const
bool sendEvent(QObject *receiver, QEvent *event)
void setViRelLineNumbersOn(bool enable)
Definition: kateviewhelpers.cpp:1341
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
void hideMe()
QString text() const
void setWidthF(qreal width)
void setBrush(const QBrush &brush)
virtual void mousePressEvent(QMouseEvent *e)
Definition: kateviewhelpers.cpp:188
KateScrollBar(Qt::Orientation orientation, class KateViewInternal *parent)
Definition: kateviewhelpers.cpp:107
bool hasBarWidget(KateViewBarWidget *barWidget) const
Definition: kateviewhelpers.cpp:2563
bool setCurrentCodec(QTextCodec *codec)
Definition: kateviewhelpers.cpp:2383
QPixmap scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
void hide()
int minimum() const
ushort unicode() const
void setColor(const QColor &color)
void moveTop(int y)
void setAutoRaise(bool enable)
void setMargin(int margin)
virtual QPixmap markPixmap(MarkInterface::MarkTypes) const
Definition: katedocument.cpp:1816
void setSizePolicy(QSizePolicy)
QRect rect() const
KateTextLayout & viewLine(int viewLine)
Returns the layout of the corresponding line in the view.
Definition: katelayoutcache.cpp:358
bool handleMarkContextMenu(int line, QPoint position)
Returns true if the context-menu event should not further be processed.
Definition: katedocument.cpp:1774
void annotationModelChanged(KTextEditor::AnnotationModel *oldmodel, KTextEditor::AnnotationModel *newmodel)
Definition: kateviewhelpers.cpp:2232
Definition: kateview.h:77
void setLineNumbersOn(bool enable)
Definition: kateviewhelpers.cpp:1328
void annotationContextMenuAboutToShow(KTextEditor::View *view, QMenu *menu, int line)
Qt::KeyboardModifiers modifiers() const
bool isNull() const
void setData(const QVariant &userData)
void clear()
int lineToVisibleLine(int line) const
Convert a text buffer line to a visible line number.
Definition: katetextfolding.cpp:366
iterator end()
int key() const
QString currentCodecName() const
Definition: kateviewhelpers.cpp:2414
void accept()
void addPermanentBarWidget(KateViewBarWidget *barWidget)
Adds widget that will be always shown in the viewbar.
Definition: kateviewhelpers.cpp:2503
Definition: katedocument.h:74
Item next()
bool contains(QChar ch, Qt::CaseSensitivity cs) const
void requestMarkTooltip(int line, QPoint position)
Definition: katedocument.cpp:1752
int height() const
int value() const
void removeWidget(QWidget *widget)
virtual int mibEnum() const =0
QColor lighter(int factor) const
void stop()
void hideText()
virtual void mouseMoveEvent(QMouseEvent *e)
Definition: kateviewhelpers.cpp:237
void setCheckable(bool)
Definition: kateviewhelpers.h:414
QTextCodec * codecForMib(int mib) const
Definition: kateviewhelpers.cpp:2367
void triggered(QTextCodec *codec)
Specific (proper) codec was selected.
KateCommandLineBar(KateView *view, QWidget *parent=0)
Definition: kateviewhelpers.cpp:810
void repaint()
bool setAlignment(QWidget *w, QFlags< Qt::AlignmentFlag > alignment)
QString & replace(int position, int n, QChar after)
void updateAnnotationBorderWidth()
Definition: kateviewhelpers.cpp:2211
int currentCodecMib() const
Definition: kateviewhelpers.cpp:2424
const_iterator constBegin() const
KTextEditor::Command * queryCommand(const QString &cmd) const
Definition: katecmd.cpp:78
const QColor & separatorColor() const
Definition: kateconfig.cpp:2603
This class represents one visible line of text; with dynamic wrapping, many KateTextLayouts can be ne...
Definition: katetextlayout.h:38
int width() const
QString mid(int position, int n) const
QPoint pos()
void drawPath(const QPainterPath &path)
virtual bool setEncoding(const QString &e)
Definition: katedocument.cpp:3954
BorderArea positionToArea(const QPoint &) const
Definition: kateviewhelpers.cpp:1811
~KateViewEncodingAction()
Definition: kateviewhelpers.cpp:2322
void setWidth(int width)
int singleStep() const
void showBarWidget(KateViewBarWidget *barWidget)
Shows barWidget that was previously added with addBarWidget.
Definition: kateviewhelpers.cpp:2542
void setAnnotationBorderVisible(bool visible)
Definition: kateview.cpp:3073
qreal ascent() const
int indexOf(QWidget *widget) const
bool isEmpty() const
QTextCodec * currentCodec() const
Definition: kateviewhelpers.cpp:2378
void setHeight(int height)
virtual void removeMark(int line, uint markType)
Definition: katedocument.cpp:1714
void drawConvexPolygon(const QPointF *points, int pointCount)
Definition: kateviewhelpers.h:432
QPoint mapFromGlobal(const QPoint &pos) const
QTextCodec * codecForName(const QByteArray &name)
const QColor & savedLineColor() const
Definition: kateconfig.cpp:2666
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
virtual void mouseReleaseEvent(QMouseEvent *e)
Definition: kateviewhelpers.cpp:213
QTextCodec * codecForMib(int mib)
void adjust(int dx1, int dy1, int dx2, int dy2)
virtual void keyPressEvent(QKeyEvent *event)
int bottom() const
int length() const
const QColor & backgroundColor() const
Definition: kateconfig.cpp:2327
void valueChanged(int value)
void setMouseTracking(bool enable)
virtual void setMarkDescription(MarkInterface::MarkTypes, const QString &)
Definition: katedocument.cpp:1811
void init(const QWidget *widget)
void setHsl(int h, int s, int l, int a)
void setHsv(int h, int s, int v, int a)
QString left(int n) const
virtual const QHash< int, KTextEditor::Mark * > & marks()
Definition: katedocument.cpp:1747
qint64 newFoldingRange(const KTextEditor::Range &range, FoldingRangeFlags flags=FoldingRangeFlags())
Create a new folding range.
Definition: katetextfolding.cpp:99
void start(int msec)
void setAlphaF(qreal alpha)
bool isValid() const
void show()
void annotationBorderVisibilityChanged(View *view, bool visible)
KateIconBorder(KateViewInternal *internalView, QWidget *parent)
Definition: kateviewhelpers.cpp:1251
Definition: kateconfig.h:381
const QFontMetricsF & fontMetrics() const
Definition: kateconfig.cpp:2284
const QPoint & pos() const
QList< QTextLayout::FormatRange > decorationsForLine(const Kate::TextLine &textLine, int line, bool selectionsOnly=false, KateRenderRange *completionHighlight=0L, bool completionSelected=false) const
The ultimate decoration creation function.
Definition: katerenderer.cpp:340
Definition: kateviewhelpers.h:250
virtual void resizeEvent(QResizeEvent *event)
const T & value() const
int addWidget(QWidget *widget)
bool isActive() const
int maximum() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int viewCacheLineCount() const
Definition: katelayoutcache.cpp:364
int size() const
bool begin(QPaintDevice *device)
virtual void leaveEvent(QEvent *event)
void updateViRelLineNumbers()
Definition: kateviewhelpers.cpp:1356
void sliderMMBMoved(int value)
QChar * data()
bool exactMatch(const QString &str) const
bool hasPermanentWidget(KateViewBarWidget *barWidget) const
Definition: kateviewhelpers.cpp:2537
QString toString() const
iterator begin()
virtual void setMarkPixmap(MarkInterface::MarkTypes, const QPixmap &)
Definition: katedocument.cpp:1806
int height() const
virtual void sliderChange(SliderChange change)
qreal height() const
virtual void mouseMoveEvent(QMouseEvent *e)
bool isLetterOrNumber() const
Definition: kateviewhelpers.h:182
void setSingleShot(bool singleShot)
virtual QString markDescription(MarkInterface::MarkTypes) const
Definition: katedocument.cpp:1831
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.