[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: HighlightInterface
From: Dominik Haumann <dhdev () gmx ! de>
Date: 2009-10-21 21:09:43
Message-ID: 200910212309.43170.dhdev () gmx ! de
[Download RAW message or body]
Hi,
after discussions with Milian and Christoph we came up with this:
HighlightInterface:
// make default styles available
- enum: DefaultStyles ... all katepart default styles
- Attribute defaultStyle(DefaultStyle ds); // dsNormalText, ..., dsError
// get attribute list of complete line (already in KateTextLine)
- QVector<KTE::HighlightInterface::AttributeBlock> lineAttributes(int line) const;
AttributeBlock:
int: start
int: length
Attribute: attribute
// get mode at cursor position
- QString modeAt(const KTE::Cursor& position) const;
// get all modes in document
- QStringList modes() const;
ConfigIterface for KTE::View
// query background colors
- value: background-color -> QVariant
- value: background-selection-color -> QVariant
Note: has nothing to do with Highlight interface, as it's global
// emit signal when highlight or config stuff changed
- signal: emit configChanged(), whenever configEnd is called in the KateViewConfig
Cheers,
Dominik
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic