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