Greg Holmes
18f673053d
Tidy up window menu.
Fixes #62
преди 9 години
Greg Holmes
943918b0f7
Remove sysout.
преди 9 години
Greg Holmes
1a9d685b99
Add a separator class.
преди 9 години
Greg Holmes
e2cc2aaab3
Add new classes to manage state of items.
преди 9 години
Chris Smith
9169c6b962
Merge pull request #67 from greboid/framemanagers
Move some methods around.
преди 9 години
Greg Holmes
5c500c92ce
Move some methods around
преди 9 години
Chris Smith
117d236c51
Merge pull request #65 from greboid/framemanagers
Split methods up to make it easier to read.
преди 9 години
Greg Holmes
c985a7b0e8
Split methods up to make it easier to read.
преди 9 години
Chris Smith
71d91022c4
Merge pull request #64 from greboid/framemanagers
Split Close menu item out from WindowMenuFactory.
преди 9 години
Greg Holmes
d1893352a4
If we add a window, there's always a window to close!
преди 9 години
Greg Holmes
a3f80318f8
Split Close menu item out from WindowMenuFactory.
преди 9 години
Chris Smith
53dd2e9f6c
Merge pull request #63 from greboid/framemanagers
General tidying of frame managers
преди 9 години
Greg Holmes
9e7c559395
General tidying of the frame managers.
преди 9 години
Greg Holmes
0ec9c71d1e
General tidying of the frame managers.
преди 9 години
Greg Holmes
4c135cc911
Merge pull request #37 from csmith/textpane
Highlight entire line, not just selected chars.
преди 9 години
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 години
Greg Holmes
2bbca371cf
Merge pull request #34 from csmith/textpane
Simplify highlight drawing code.
преди 9 години
Chris Smith
ba614eab2c
Simplify highlight drawing code.
No need to translate, we can just add some numbers together.
преди 9 години
Greg Holmes
ded430464a
Merge pull request #32 from csmith/textpane
Remove dodgy line height calculation.
преди 9 години
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 години
Chris Smith
d524712042
Merge pull request #29 from csmith/textpane
More TextPane tidying.
преди 9 години
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 години
Greg Holmes
28d4a7ebe9
Merge pull request #28 from csmith/textpane
Fix some TextPane layout weirdness.
преди 9 години
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 години
Greg Holmes
935e85c5ce
Merge pull request #27 from csmith/textpane
Unused method.
преди 9 години
Chris Smith
d273dabbe3
Unused method.
преди 9 години
Greg Holmes
1589a7ec99
Merge pull request #26 from csmith/textpane
Make rendering of wrapped lines simpler.
преди 9 години
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 години
Greg Holmes
b3a6571f4a
Merge pull request #24 from csmith/textpane
Use system highlight colours.
преди 9 години
Chris Smith
c3255b6d6f
Use system highlight colours.
преди 9 години
Greg Holmes
6cbe4d74f7
Merge pull request #19 from csmith/textpane
Fix a variety of horrible bugs I added.
преди 9 години
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 години
Greg Holmes
f9228e3a90
Merge pull request #18 from csmith/textpane
Fix text pane performance regression.
преди 9 години
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 години
Greg Holmes
98594d7d72
Merge pull request #17 from csmith/textpane
Simplify line renderer a bit.
преди 9 години
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 години
Greg Holmes
8a3b4e55f9
Merge pull request #16 from csmith/master
Missing space in alias dialog.
преди 9 години
Chris Smith
dfbad49bc8
Missing space in alias dialog.
преди 9 години
Greg Holmes
78e6cd9e9b
Merge pull request #15 from csmith/master
Dispose of windows on the EDT.
преди 9 години
Chris Smith
9bdb66d940
Dispose of windows on the EDT.
Fixes DMDirc/DMDirc#33
преди 9 години
Greg Holmes
09e9df6e03
Merge pull request #14 from csmith/master
Split up rendering a bit more.
преди 9 години
Chris Smith
4452e38fe4
Split up rendering a bit more.
Make various methods protected so it's possible to extend the
renderer.
преди 9 години
Greg Holmes
b19bb270d9
Merge pull request #11 from csmith/textpane
Split out a LineRenderer class.
преди 9 години
Chris Smith
92d2678d14
Merge remote-tracking branch 'origin/master' into textpane
преди 9 години
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 години
Chris Smith
f8134e06ce
Merge pull request #6 from greboid/logging-resource-leak
Fix resource leak in logging plugin.
преди 9 години
Greg Holmes
330094cbb3
Publish error instead of ignore.
преди 9 години
Greg Holmes
c5f17164e4
Fix resource leak in logging plugin.
преди 9 години
Greg Holmes
15602e7d66
Merge pull request #5 from csmith/textpane
TextPane tidying.
преди 9 години
Chris Smith
c56d2024d9
Bit more tidying.
преди 9 години