Chris Smith
ee3539f5ca
Merge pull request #69 from greboid/selectionevent
Continue working on Frame Managers
9 years ago
Greg Holmes
a6c2769750
Fix all the cached brokeness.
9 years ago
Greg Holmes
9f2e60d2ec
Add qualifier to IconManager.
9 years ago
Greg Holmes
860b0d565c
Add change I forgot to add.
9 years ago
Greg Holmes
adb7c3aad0
Change some references from FrameContainer to Window.
Issue #46
9 years ago
Greg Holmes
b503f89771
Switch to events for selection.
9 years ago
Chris Smith
06be941ecc
Merge pull request #68 from greboid/framemanagers
Tidy up window menu
9 years ago
Greg Holmes
115a3a58f5
Don't need low priority handlers.
9 years ago
Greg Holmes
18f673053d
Tidy up window menu.
Fixes #62
9 years ago
Greg Holmes
943918b0f7
Remove sysout.
9 years ago
Greg Holmes
1a9d685b99
Add a separator class.
9 years ago
Greg Holmes
e2cc2aaab3
Add new classes to manage state of items.
9 years ago
Chris Smith
9169c6b962
Merge pull request #67 from greboid/framemanagers
Move some methods around.
9 years ago
Greg Holmes
5c500c92ce
Move some methods around
9 years ago
Chris Smith
117d236c51
Merge pull request #65 from greboid/framemanagers
Split methods up to make it easier to read.
9 years ago
Greg Holmes
c985a7b0e8
Split methods up to make it easier to read.
9 years ago
Chris Smith
71d91022c4
Merge pull request #64 from greboid/framemanagers
Split Close menu item out from WindowMenuFactory.
9 years ago
Greg Holmes
d1893352a4
If we add a window, there's always a window to close!
9 years ago
Greg Holmes
a3f80318f8
Split Close menu item out from WindowMenuFactory.
9 years ago
Chris Smith
53dd2e9f6c
Merge pull request #63 from greboid/framemanagers
General tidying of frame managers
9 years ago
Greg Holmes
9e7c559395
General tidying of the frame managers.
9 years ago
Greg Holmes
0ec9c71d1e
General tidying of the frame managers.
9 years ago
Greg Holmes
4c135cc911
Merge pull request #37 from csmith/textpane
Highlight entire line, not just selected chars.
9 years ago
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 years ago
Greg Holmes
2bbca371cf
Merge pull request #34 from csmith/textpane
Simplify highlight drawing code.
9 years ago
Chris Smith
ba614eab2c
Simplify highlight drawing code.
No need to translate, we can just add some numbers together.
9 years ago
Greg Holmes
ded430464a
Merge pull request #32 from csmith/textpane
Remove dodgy line height calculation.
9 years ago
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 years ago
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