Changeset View
Changeset View
Standalone View
Standalone View
src/view/kateviewhelpers.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 313 | private: | |||
---|---|---|---|---|---|
318 | 318 | | |||
319 | void mousePressEvent(QMouseEvent *) override; | 319 | void mousePressEvent(QMouseEvent *) override; | ||
320 | void mouseMoveEvent(QMouseEvent *) override; | 320 | void mouseMoveEvent(QMouseEvent *) override; | ||
321 | void mouseReleaseEvent(QMouseEvent *) override; | 321 | void mouseReleaseEvent(QMouseEvent *) override; | ||
322 | void mouseDoubleClickEvent(QMouseEvent *) override; | 322 | void mouseDoubleClickEvent(QMouseEvent *) override; | ||
323 | void leaveEvent(QEvent *event) override; | 323 | void leaveEvent(QEvent *event) override; | ||
324 | void wheelEvent(QWheelEvent *e) override; | 324 | void wheelEvent(QWheelEvent *e) override; | ||
325 | 325 | | |||
326 | /** | ||||
327 | * Try to unfold a folded range starting at @p line | ||||
328 | * @return true when a range was unfolded, otherwise false | ||||
329 | */ | ||||
330 | bool unfoldLine(int line); | ||||
331 | | ||||
332 | /** | ||||
333 | * Try to fold an unfolded range starting at @p line | ||||
334 | * @return the new folded range on success, otherwise an unvalid range | ||||
335 | */ | ||||
336 | KTextEditor::Range foldLine(int line); | ||||
337 | | ||||
338 | /** | ||||
339 | * Try to change all the foldings inside a folding range starting at @p line | ||||
340 | * but not the range itself starting there. | ||||
341 | * However, should the range itself be folded, will only the range unfolded | ||||
342 | * and the containing ranges kept untouched. | ||||
343 | * Should the range not contain other ranges will the range itself folded, | ||||
344 | * @return true when any range was folded or unfolded, otherwise false | ||||
345 | */ | ||||
346 | bool toggleFoldingInRange(int line); | ||||
347 | | ||||
326 | void showMarkMenu(uint line, const QPoint &pos); | 348 | void showMarkMenu(uint line, const QPoint &pos); | ||
327 | 349 | | |||
328 | void hideAnnotationTooltip(); | 350 | void hideAnnotationTooltip(); | ||
329 | void removeAnnotationHovering(); | 351 | void removeAnnotationHovering(); | ||
330 | void showAnnotationMenu(int line, const QPoint &pos); | 352 | void showAnnotationMenu(int line, const QPoint &pos); | ||
331 | void calcAnnotationBorderWidth(); | 353 | void calcAnnotationBorderWidth(); | ||
332 | 354 | | |||
333 | void initStyleOption(KTextEditor::StyleOptionAnnotationItem *styleOption) const; | 355 | void initStyleOption(KTextEditor::StyleOptionAnnotationItem *styleOption) const; | ||
▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines |