Greg Holmes
4c135cc911
Merge pull request #37 from csmith/textpane
Highlight entire line, not just selected chars.
9 gadus atpakaļ
Chris Smith
5cb611a9dd
Highlight entire line, not just selected chars.
When you select up to the end of the line, we now highlight the
remainder of the line. This means when a block of multiple lines
are selected, the highlight appears as a single contiguous
rectangle, rather than little bits and pieces.
9 gadus atpakaļ
Greg Holmes
2bbca371cf
Merge pull request #34 from csmith/textpane
Simplify highlight drawing code.
9 gadus atpakaļ
Chris Smith
ba614eab2c
Simplify highlight drawing code.
No need to translate, we can just add some numbers together.
9 gadus atpakaļ
Greg Holmes
ded430464a
Merge pull request #32 from csmith/textpane
Remove dodgy line height calculation.
9 gadus atpakaļ
Chris Smith
af18658a52
Remove dodgy line height calculation.
Use the proper font metrics to calculate line height and spacing.
For Dialog size 12 (our default font), this seems to be identical
behaviour. Other fonts define more sensible leadings, so are
spaced out properly.
This also fixes highlighting having gaps for large font sizes.
9 gadus atpakaļ
Chris Smith
d524712042
Merge pull request #29 from csmith/textpane
More TextPane tidying.
9 gadus atpakaļ
Chris Smith
17515f0619
More TextPane tidying.
Change to using Rectangle2D.Float to avoid having to cast all
of the co-ords and dimensions to ints.
Remove a magic 1.5 in the calculations in favour of using the right
properties of the text.
9 gadus atpakaļ
Greg Holmes
28d4a7ebe9
Merge pull request #28 from csmith/textpane
Fix some TextPane layout weirdness.
9 gadus atpakaļ
Chris Smith
9547eb0a17
Fix some TextPane layout weirdness.
Stop adding descents all over the place. This stops the highlight
rectangles being slightly offset and allowing descenders to peek
out.
Also adjust the initial Y offset to include padding, and increment
it in the right place.
9 gadus atpakaļ
Greg Holmes
935e85c5ce
Merge pull request #27 from csmith/textpane
Unused method.
9 gadus atpakaļ
Chris Smith
d273dabbe3
Unused method.
9 gadus atpakaļ
Greg Holmes
1589a7ec99
Merge pull request #26 from csmith/textpane
Make rendering of wrapped lines simpler.
9 gadus atpakaļ
Chris Smith
cded76e8b4
Make rendering of wrapped lines simpler.
We now always render bottom-to-top, regardless of whether lines
wrap. Previously for wrapped lines we jumped upwards, rendered
the wrapping lines top-to-bottom, then jumped upwards once more
and carried on bottom-to-top. That made for some really confusing
code.
9 gadus atpakaļ
Greg Holmes
b3a6571f4a
Merge pull request #24 from csmith/textpane
Use system highlight colours.
9 gadus atpakaļ
Chris Smith
c3255b6d6f
Use system highlight colours.
9 gadus atpakaļ
Greg Holmes
6cbe4d74f7
Merge pull request #19 from csmith/textpane
Fix a variety of horrible bugs I added.
9 gadus atpakaļ
Chris Smith
ac4949845c
Fix a variety of horrible bugs I added.
TextPane no longer leaks memory like there's no tomorrow.
Selection works again.
9 gadus atpakaļ
Greg Holmes
f9228e3a90
Merge pull request #18 from csmith/textpane
Fix text pane performance regression.
9 gadus atpakaļ
Chris Smith
a95233c047
Fix text pane performance regression.
I was wrong -- lineLayouts didn't need to be sorted. Making it
a TreeMap was quite expensive, as it had to do a bajillion
comparisons each time a line was added (which happens every
render cycle).
9 gadus atpakaļ
Greg Holmes
98594d7d72
Merge pull request #17 from csmith/textpane
Simplify line renderer a bit.
9 gadus atpakaļ
Chris Smith
edab7f2f92
Simplify line renderer a bit.
Remove some redundent checks, change firstChar/lastChar to be
relative to the current line, rather than within the whole
unwrapped line.
9 gadus atpakaļ
Greg Holmes
8a3b4e55f9
Merge pull request #16 from csmith/master
Missing space in alias dialog.
9 gadus atpakaļ
Chris Smith
dfbad49bc8
Missing space in alias dialog.
9 gadus atpakaļ
Greg Holmes
78e6cd9e9b
Merge pull request #15 from csmith/master
Dispose of windows on the EDT.
9 gadus atpakaļ
Chris Smith
9bdb66d940
Dispose of windows on the EDT.
Fixes DMDirc/DMDirc#33
9 gadus atpakaļ
Greg Holmes
09e9df6e03
Merge pull request #14 from csmith/master
Split up rendering a bit more.
9 gadus atpakaļ
Chris Smith
4452e38fe4
Split up rendering a bit more.
Make various methods protected so it's possible to extend the
renderer.
9 gadus atpakaļ
Greg Holmes
b19bb270d9
Merge pull request #11 from csmith/textpane
Split out a LineRenderer class.
9 gadus atpakaļ
Chris Smith
92d2678d14
Merge remote-tracking branch 'origin/master' into textpane
9 gadus atpakaļ
Chris Smith
d91148c2a4
Split out a LineRenderer class.
This handles the direct rendering of a line, including highlighting
and wrapping.
Also change how the TextPaneCanvas stores its various properties,
so it's not doing lookups in multiple maps at once.
Issue #10
9 gadus atpakaļ
Chris Smith
f8134e06ce
Merge pull request #6 from greboid/logging-resource-leak
Fix resource leak in logging plugin.
9 gadus atpakaļ
Greg Holmes
330094cbb3
Publish error instead of ignore.
9 gadus atpakaļ
Greg Holmes
c5f17164e4
Fix resource leak in logging plugin.
9 gadus atpakaļ
Greg Holmes
15602e7d66
Merge pull request #5 from csmith/textpane
TextPane tidying.
9 gadus atpakaļ
Chris Smith
c56d2024d9
Bit more tidying.
9 gadus atpakaļ
Chris Smith
9a4af07e82
TextPaneCanvas tidying.
Use new LinePosition method.
Split some of the huge methods up into smaller ones.
Fix some Netbeans-induced wonky line wrapping.
9 gadus atpakaļ
Greg Holmes
3981c245f4
Merge pull request #4 from csmith/master
Run gradle in parallel mode.
9 gadus atpakaļ
Chris Smith
bb0d6d8797
Cache artifacts for the duration of the build...
Helps if we don't run a load of parallel job which each have to
hit maven to make sure the 3 second old build is still current.
9 gadus atpakaļ
Chris Smith
4915bbbfdc
Run gradle in parallel mode.
9 gadus atpakaļ
Greg Holmes
99f77e3b78
Merge pull request #3 from csmith/cache-sensibly
Configure gradle to refresh dynamic deps promptly
9 gadus atpakaļ
Greg Holmes
250d76ea80
Merge pull request #2 from csmith/master
Unshallow properly.
9 gadus atpakaļ
Chris Smith
9b42753356
Configure gradle to refresh dynamic deps promptly
This saves us using --refresh-dependencies willy-nilly, which
wastes loads of time on the non-dynamic dependencies.
9 gadus atpakaļ
Chris Smith
157e9c3496
Unshallow properly.
9 gadus atpakaļ
Greg Holmes
d284c6ce70
Merge pull request #1 from csmith/master
Add CircleIO config.
9 gadus atpakaļ
Chris Smith
0220c4b016
Add CircleIO config.
9 gadus atpakaļ
Chris Smith
fe5c818b7d
Replace TextPaneBoundedRangeModel with the default.
Seems functionally identical aside from a couple of bugs in the
TextPane one :-)
Change-Id: I2a28e7e7761224bab435b323a83c6586bda71067
Reviewed-on: http://gerrit.dmdirc.com/4084
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 gadus atpakaļ
Chris Smith
0562a418fe
Tidy some logic, fix weird line wrapping.
Change-Id: I90e6c24ea0bd1520a6dd9e2588016dc0b4e8b66e
Reviewed-on: http://gerrit.dmdirc.com/4083
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 gadus atpakaļ
Chris Smith
9cc8bc7b40
Use new util methods, tidy a bit more.
Change-Id: I2c49b891e08fe020773acddf1b0160f0eb641d79
Reviewed-on: http://gerrit.dmdirc.com/4082
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 gadus atpakaļ
Chris Smith
14bbfdb785
Tidy some perfectly normal classes.
I'm not insane. This isn't dangerous. /me runs
Change-Id: I1eb7e1c413e491c539920d960b6ab9cd497e6ece
Reviewed-on: http://gerrit.dmdirc.com/4080
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 gadus atpakaļ