mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-25 02:04:23 +00:00
Added a colour ID for TextButton text when the button is toggled on. Improved the class hierarchy implementation of some container classes. Made DSound cope better with dropped buffers.
This commit is contained in:
parent
2a43959884
commit
a126b1918a
22 changed files with 853 additions and 764 deletions
|
|
@ -212,16 +212,16 @@ bool CodeDocument::Iterator::isEOF() const throw()
|
|||
|
||||
//==============================================================================
|
||||
CodeDocument::Position::Position() throw()
|
||||
: owner (0), line (0), indexInLine (0),
|
||||
characterPos (0), positionMaintained (false)
|
||||
: owner (0), characterPos (0), line (0),
|
||||
indexInLine (0), positionMaintained (false)
|
||||
{
|
||||
}
|
||||
|
||||
CodeDocument::Position::Position (const CodeDocument* const ownerDocument,
|
||||
const int line_, const int indexInLine_) throw()
|
||||
: owner (const_cast <CodeDocument*> (ownerDocument)),
|
||||
line (line_), indexInLine (indexInLine_),
|
||||
characterPos (0), positionMaintained (false)
|
||||
characterPos (0), line (line_),
|
||||
indexInLine (indexInLine_), positionMaintained (false)
|
||||
{
|
||||
setLineAndIndex (line_, indexInLine_);
|
||||
}
|
||||
|
|
@ -235,9 +235,8 @@ CodeDocument::Position::Position (const CodeDocument* const ownerDocument,
|
|||
}
|
||||
|
||||
CodeDocument::Position::Position (const Position& other) throw()
|
||||
: owner (other.owner), line (other.line),
|
||||
indexInLine (other.indexInLine), characterPos (other.characterPos),
|
||||
positionMaintained (false)
|
||||
: owner (other.owner), characterPos (other.characterPos), line (other.line),
|
||||
indexInLine (other.indexInLine), positionMaintained (false)
|
||||
{
|
||||
jassert (*this == other);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -277,16 +277,16 @@ private:
|
|||
CodeEditorComponent::CodeEditorComponent (CodeDocument& document_,
|
||||
CodeTokeniser* const codeTokeniser_)
|
||||
: document (document_),
|
||||
codeTokeniser (codeTokeniser_),
|
||||
firstLineOnScreen (0),
|
||||
gutter (5),
|
||||
spacesPerTab (4),
|
||||
lineHeight (0),
|
||||
firstLineOnScreen (0),
|
||||
linesOnScreen (0),
|
||||
columnsOnScreen (0),
|
||||
scrollbarThickness (16),
|
||||
useSpacesForTabs (false),
|
||||
xOffset (0),
|
||||
useSpacesForTabs (false)
|
||||
codeTokeniser (codeTokeniser_)
|
||||
{
|
||||
caretPos = CodeDocument::Position (&document_, 0, 0);
|
||||
caretPos.setPositionMaintained (true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue