Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateview.cpp
Show First 20 Lines • Show All 3239 Lines • ▼ Show 20 Line(s) | |||||
3240 | KTextEditor::AnnotationModel *KTextEditor::ViewPrivate::annotationModel() const | 3240 | KTextEditor::AnnotationModel *KTextEditor::ViewPrivate::annotationModel() const | ||
3241 | { | 3241 | { | ||
3242 | return m_annotationModel; | 3242 | return m_annotationModel; | ||
3243 | } | 3243 | } | ||
3244 | 3244 | | |||
3245 | void KTextEditor::ViewPrivate::setAnnotationBorderVisible(bool visible) | 3245 | void KTextEditor::ViewPrivate::setAnnotationBorderVisible(bool visible) | ||
3246 | { | 3246 | { | ||
3247 | m_viewInternal->m_leftBorder->setAnnotationBorderOn(visible); | 3247 | m_viewInternal->m_leftBorder->setAnnotationBorderOn(visible); | ||
3248 | if ( !visible ) { | | |||
3249 | // make sure the tooltip is hidden | | |||
3250 | QToolTip::hideText(); | | |||
3251 | } | | |||
3252 | } | 3248 | } | ||
3253 | 3249 | | |||
3254 | bool KTextEditor::ViewPrivate::isAnnotationBorderVisible() const | 3250 | bool KTextEditor::ViewPrivate::isAnnotationBorderVisible() const | ||
3255 | { | 3251 | { | ||
3256 | return m_viewInternal->m_leftBorder->annotationBorderOn(); | 3252 | return m_viewInternal->m_leftBorder->annotationBorderOn(); | ||
3257 | } | 3253 | } | ||
3258 | 3254 | | |||
3255 | KTextEditor::AbstractAnnotationItemDelegate* KTextEditor::ViewPrivate::annotationItemDelegate() const | ||||
3256 | { | ||||
3257 | return m_viewInternal->m_leftBorder->annotationItemDelegate(); | ||||
3258 | } | ||||
3259 | | ||||
3260 | void KTextEditor::ViewPrivate::setAnnotationItemDelegate(KTextEditor::AbstractAnnotationItemDelegate *delegate) | ||||
3261 | { | ||||
3262 | m_viewInternal->m_leftBorder->setAnnotationItemDelegate(delegate); | ||||
3263 | } | ||||
3264 | | ||||
3265 | bool KTextEditor::ViewPrivate::uniformAnnotationItemSizes() const | ||||
3266 | { | ||||
3267 | return m_viewInternal->m_leftBorder->uniformAnnotationItemSizes(); | ||||
3268 | } | ||||
3269 | | ||||
3270 | void KTextEditor::ViewPrivate::setAnnotationUniformItemSizes(bool enable) | ||||
3271 | { | ||||
3272 | m_viewInternal->m_leftBorder->setAnnotationUniformItemSizes(enable); | ||||
3273 | } | ||||
3274 | | ||||
3259 | KTextEditor::Range KTextEditor::ViewPrivate::visibleRange() | 3275 | KTextEditor::Range KTextEditor::ViewPrivate::visibleRange() | ||
3260 | { | 3276 | { | ||
3261 | //ensure that the view is up-to-date, otherwise 'endPos()' might fail! | 3277 | //ensure that the view is up-to-date, otherwise 'endPos()' might fail! | ||
3262 | m_viewInternal->updateView(); | 3278 | m_viewInternal->updateView(); | ||
3263 | return KTextEditor::Range(m_viewInternal->toRealCursor(m_viewInternal->startPos()), | 3279 | return KTextEditor::Range(m_viewInternal->toRealCursor(m_viewInternal->startPos()), | ||
3264 | m_viewInternal->toRealCursor(m_viewInternal->endPos())); | 3280 | m_viewInternal->toRealCursor(m_viewInternal->endPos())); | ||
3265 | } | 3281 | } | ||
3266 | 3282 | | |||
▲ Show 20 Lines • Show All 488 Lines • Show Last 20 Lines |