Greg Holmes
794d34f46f
Use lambdas in StandardQuestionDialog.
9 years ago
Greg Holmes
fc78baaf10
Remove a couple of redundant casts.
9 years ago
Greg Holmes
3d629ef73d
And another I missed.
9 years ago
Greg Holmes
4a4a209edf
Remove some undeeded casts.
9 years ago
Greg Holmes
5a7ad699ea
Switch Window to TextFrame in the frame managers.
9 years ago
Greg Holmes
5dd33e33f9
Switch events to TextFrame.
9 years ago
Greg Holmes
55a2f4f54c
Switch to Optional for active frame in MainFrame.
9 years ago
Greg Holmes
22679c7b4b
Less EDT.
9 years ago
Greg Holmes
57f4af88a6
Split ActiveFrameManager out of MainFrame
9 years ago
Greg Holmes
3418968ba4
No need for the invoke later
9 years ago
Greg Holmes
23e285c266
Use EDT when setting active frame.
9 years ago
Greg Holmes
02ecb36289
Uber defensive--
9 years ago
Greg Holmes
8ae30f1a67
Turns out horrible hacks are needed.
9 years ago
Greg Holmes
cac3c54006
Use events for switching window.
9 years ago
Greg Holmes
1d4851de6a
Switch to SwingEventBus
9 years ago
Greg Holmes
5c37804865
Tidying
9 years ago
Chris Smith
865d87f5ee
Tidy.
9 years ago
Chris Smith
aafa8ee3a1
Fix compile error.
9 years ago
Chris Smith
699fb8d6ce
Change optionals.
9 years ago
Greg Holmes
d5698a5589
Remove some statusbar uses
9 years ago
Greg Holmes
dd09f8f472
Remove some uses of Statusbar Manager
9 years ago
Greg Holmes
a9e5e8e565
Fix plugins for client change DMDirc/DMDirc#96
9 years ago
Greg Holmes
43cf4c58b7
Fix the status bar.
This needs to be fixed properly by removed the statusbar
manager and all uses.
9 years ago
Chris Smith
17fbdb70da
Don't get a PluginManager from random places.
9 years ago
Chris Smith
bd54fab19b
More highlight tidying.
9 years ago
Chris Smith
badf66f08c
Tidy up highlight calculation.
Use the bounds from the logical highlight shape, rather than
calculating everything from scratch using the text metrics.
9 years ago
Chris Smith
d62c191001
Use floats for highlight shapes.
This doesn't help fix anything, but truncating everything to
integers is odd.
9 years ago
Greg Holmes
7c6b1eb87d
Fix some container/window changes.
9 years ago
Greg Holmes
26b0e6a23c
Unfail.
9 years ago
Greg Holmes
247bb2c03d
More tidying.
9 years ago
Greg Holmes
e9dd5174d4
Tidy up Button bar.
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
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
Greg Holmes
5c500c92ce
Move some methods around
9 years ago
Greg Holmes
c985a7b0e8
Split methods up to make it easier to read.
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
Greg Holmes
9e7c559395
General tidying of the frame managers.
9 years ago
Greg Holmes
0ec9c71d1e
General tidying of the frame managers.
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
Chris Smith
ba614eab2c
Simplify highlight drawing code.
No need to translate, we can just add some numbers together.
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