MessageInterface: Add CenterInView as additional position
AbandonedPublic

Authored by dhaumann on Dec 8 2017, 3:29 PM.

Details

Reviewers
cullmann
neundorf
Summary

This patch extends the message interface to support CenterInView.
This should be binary compatible, since an enum is only added at
the end.

The search messages "Search wrapped at bottom/top" now use
CenterInView to be more visible (see recent discussion on
kwrite-devel). In order to support his, a custom layout called
KateMessageLayout was added that only supports the positions
allowed by KTextEditor::Messate::MessagePosition.

Test Plan

make test, manual testing

Diff Detail

Repository
R39 KTextEditor
Branch
MessageInterface (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
dhaumann created this revision.Dec 8 2017, 3:29 PM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptDec 8 2017, 3:29 PM
Restricted Application added a subscriber: Frameworks. · View Herald Transcript
dhaumann requested review of this revision.Dec 8 2017, 3:29 PM

For the "KateMessageWidget *m_topMessageWidget" and Co. members: Would it make sense to have just an array of pointers with index == the matching MessagePosition enum value?

dhaumann updated this revision to Diff 23780.Dec 11 2017, 10:16 PM
  • Simplify MessageWidget member variable handling
dhaumann updated this revision to Diff 23781.Dec 11 2017, 10:18 PM
  • Remove unneeded include
dhaumann updated this revision to Diff 23782.Dec 11 2017, 10:23 PM
  • Honor spacing for message widgets

I like the code better with the array ;=)
I would use the enum values instead of 5 or 2, otherwise this is fine for me.

For the actual functionality I guess Alex should say yes/no.

dhaumann abandoned this revision.Dec 18 2017, 10:51 AM

Abandoned in favor of followup request: https://phabricator.kde.org/D9393