Chris Smith
d524712042
Merge pull request #29 from csmith/textpane
More TextPane tidying.
9 years ago
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 years ago
Greg Holmes
28d4a7ebe9
Merge pull request #28 from csmith/textpane
Fix some TextPane layout weirdness.
9 years ago
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 years ago
Greg Holmes
935e85c5ce
Merge pull request #27 from csmith/textpane
Unused method.
9 years ago
Chris Smith
d273dabbe3
Unused method.
9 years ago
Greg Holmes
1589a7ec99
Merge pull request #26 from csmith/textpane
Make rendering of wrapped lines simpler.
9 years ago
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 years ago
Greg Holmes
b3a6571f4a
Merge pull request #24 from csmith/textpane
Use system highlight colours.
9 years ago
Chris Smith
c3255b6d6f
Use system highlight colours.
9 years ago
Greg Holmes
6cbe4d74f7
Merge pull request #19 from csmith/textpane
Fix a variety of horrible bugs I added.
9 years ago
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 years ago
Greg Holmes
f9228e3a90
Merge pull request #18 from csmith/textpane
Fix text pane performance regression.
9 years ago
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 years ago
Greg Holmes
98594d7d72
Merge pull request #17 from csmith/textpane
Simplify line renderer a bit.
9 years ago
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 years ago
Greg Holmes
8a3b4e55f9
Merge pull request #16 from csmith/master
Missing space in alias dialog.
9 years ago
Chris Smith
dfbad49bc8
Missing space in alias dialog.
9 years ago
Greg Holmes
78e6cd9e9b
Merge pull request #15 from csmith/master
Dispose of windows on the EDT.
9 years ago
Chris Smith
9bdb66d940
Dispose of windows on the EDT.
Fixes DMDirc/DMDirc#33
9 years ago
Greg Holmes
09e9df6e03
Merge pull request #14 from csmith/master
Split up rendering a bit more.
9 years ago
Chris Smith
4452e38fe4
Split up rendering a bit more.
Make various methods protected so it's possible to extend the
renderer.
9 years ago
Greg Holmes
b19bb270d9
Merge pull request #11 from csmith/textpane
Split out a LineRenderer class.
9 years ago
Chris Smith
92d2678d14
Merge remote-tracking branch 'origin/master' into textpane
9 years ago
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 years ago
Chris Smith
f8134e06ce
Merge pull request #6 from greboid/logging-resource-leak
Fix resource leak in logging plugin.
9 years ago
Greg Holmes
330094cbb3
Publish error instead of ignore.
9 years ago
Greg Holmes
c5f17164e4
Fix resource leak in logging plugin.
9 years ago
Greg Holmes
15602e7d66
Merge pull request #5 from csmith/textpane
TextPane tidying.
9 years ago
Chris Smith
c56d2024d9
Bit more tidying.
9 years ago
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 years ago
Greg Holmes
3981c245f4
Merge pull request #4 from csmith/master
Run gradle in parallel mode.
9 years ago
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 years ago
Chris Smith
4915bbbfdc
Run gradle in parallel mode.
9 years ago
Greg Holmes
99f77e3b78
Merge pull request #3 from csmith/cache-sensibly
Configure gradle to refresh dynamic deps promptly
9 years ago
Greg Holmes
250d76ea80
Merge pull request #2 from csmith/master
Unshallow properly.
9 years ago
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 years ago
Chris Smith
157e9c3496
Unshallow properly.
9 years ago
Greg Holmes
d284c6ce70
Merge pull request #1 from csmith/master
Add CircleIO config.
9 years ago
Chris Smith
0220c4b016
Add CircleIO config.
9 years ago
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 years ago
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 years ago
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 years ago
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 years ago
Greg Holmes
8409df20c6
Stop using ResourceManager methods some more.
Change-Id: Ie8f2c6abe05eac9897cada8e17b67ed1d982d95e
Depends-On: Ic48f35315ff795c6dd44bf24190ca19581ca71d3
Reviewed-on: http://gerrit.dmdirc.com/4078
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
0fe6bea009
Fix changes to StreamReader/StreamUtils.
Depends-On: Ia24b29f2fcd414d7b27bad52cc6fad6312179de5
Change-Id: Ie4bd081e56c12afe66a0f333a36e7f87b1736048
Reviewed-on: http://gerrit.dmdirc.com/4068
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
cbbc4e1114
Collect plugin jars in dist folder, like before.
Whenever we build a new jar -- or if the jar in dist is changed --
copy it into the dist directory with a proper name.
Change-Id: If05133cf38f1dbe2ce9ba6ace94bf8cf2b466bc1
Reviewed-on: http://gerrit.dmdirc.com/4060
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Greg Holmes
c4b42d188a
Switch to Path for Downloader.
Change-Id: I475f5f4a54ec1b30e4f0258442864d678041eff1
Reviewed-on: http://gerrit.dmdirc.com/4053
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
9c6e06630e
Move licenses for freedesktop notifications plugin.
Change-Id: If2ea25460f39d2ec443e47bb57c61e79715ee82d
Reviewed-on: http://gerrit.dmdirc.com/4051
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
d3f6d41c3f
Fix Logging plugin for new ReverseFileReader.
Depends-On: I921a395e088846216650d1ac14207cb915a6bb8c
Change-Id: If51c7d7214b560c656250f6157a5dc2d2a15894d
Reviewed-on: http://gerrit.dmdirc.com/4046
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago