Chris Smith
4c35da850d
Update copyright.
hace 7 años
Chris Smith
152fbfcb2a
Fix config binding for unread status manager.
I broke it in my interface-extraction shennanigans.
Closes DMDirc/Plugins#509
hace 7 años
Chris Smith
f5be0bf102
Add interface for UnreadStatusManager.
hace 7 años
Chris Smith
ae5a5e7251
Extract interfaces for BackBuffer and IRCDocument.
hace 7 años
Chris Smith
5cc0af4324
Use EventBus interface.
This is just an IntelliJ refactor, using EventBus in place of
DMDircMBassador whenever possible.
hace 7 años
Chris Smith
c12274ae0a
Avoid raising events before a frame has an ID.
hace 8 años
Chris Smith
d15111ddd3
Restructure to standard maven/gradle layout.
Stop swimming against the tide and accept what most of the rest of
the world does.
While it adds an annoying depth to the actual source code, it makes
the root directory nicer (no more 'test-res' dirs), means we don't
have to override the gradle config, and makes it nicer to work in
IDEA 2016.1.
hace 8 años
Chris Smith
4382bce3aa
Remove child event busses.
Closes #662 .
hace 8 años
Chris Smith
b54efa3c82
Remove some unused code.
hace 8 años
Chris Smith
18cb00a6bc
Assorted tidying.
hace 8 años
Chris Smith
869713b4db
Assign IDs to windows.
This allows windows to be uniquely identified and shared with
clients that are running outside of the DMDirc process (e.g.
a web UI, or a remote instance).
hace 8 años
Chris Smith
1141fd113f
Pass WindowModel into Server.
hace 8 años
Chris Smith
96933fd89a
Tear Server and FrameContainer apart.
hace 8 años
Chris Smith
10de163267
Separate InputModel functions from FrameContainer.
hace 8 años
Chris Smith
217b5b1a22
Remove input methods from WindowModel.
Migrate all users to using the InputModel.
hace 8 años
Chris Smith
334b8d3d99
Introduce a model for window input.
Instead of WindowModel defining lots of methods on the off-chance
that the window is writable, pull them all into a separate
optional InputModel.
For ease of transition, FrameContainer will just implement both,
but eventually the input handling should be pulled out into
its own class.
hace 8 años
Chris Smith
874b2afd2d
Remove FrameContainer parent/child fields.
hace 8 años
Chris Smith
a3b2815d16
Remove ramaining addLine methods.
Closes #426
hace 8 años
Chris Smith
7a5d418285
Remove another deprecated method.
hace 8 años
Chris Smith
787c72850f
Use events for raw data in/out.
Issue #426
hace 8 años
Chris Smith
b5e200216d
Disable numeric formatting, remove dead code.
With numeric formatting gone, all output is either added direct
to a window (which will be changed soon) or done through
displayable events. Message sinks are now completely unused,
as they don't affect displayable events.
Issue #426
hace 8 años
Chris Smith
86bd33fedb
Deprecate things that should be replaced by events
hace 8 años
Chris Smith
dfb63e9836
Add some more events, remove some unused methods.
hace 8 años
Chris Smith
4b61733f0c
Move some more formats over to events.
This allows us to remove a fair chunk of the notification
handling functionality in FrameContainer.
Issue 426
hace 8 años
Chris Smith
1576c2c798
Tidy up some unused/uncommonly used methods.
I think these will eventually go away entirely, once everything
is event-bus'd, but I'm not entirely sure how that works any
more :(
hace 8 años
Chris Smith
deaf4b232f
Tidy how CommandParsers are created.
Instead of passing them in to the FrameContainer ctor, create
them afterwards.
This means the reference in FrameContainer can't be final but
removes the horrible setOwner() kludge that was previously in
CommandParser, and cuts down the deps needed to pass in to the
FrameContainer ctor.
hace 9 años
Chris Smith
20bba51ce3
Weaken some things to WindowModel.
hace 9 años
Chris Smith
499feaea3a
Make WindowManager use WindowModel.
hace 9 años
Chris Smith
3c16993963
Fix NPE when trying to add timestampless lines.
Think we're going to stop supporting this. If there's a decent
case for it then it should be done as a DisplayProperty instead.
hace 9 años
Chris Smith
7287ba0d4f
Add an interface for FrameContainers.
hace 9 años
Chris Smith
b28b6e5f9b
Remove urlBuilder params.
From everywhere.
hace 9 años
Chris Smith
81c0783258
Kill FrameContainer.getIconManager.
hace 9 años
Chris Smith
3571ffe3e7
Remove unused methods.
hace 9 años
Chris Smith
eb67b89a04
Stop BackBuffer being so lazy.
We now need it to exist independently of anything requesting it,
otherwise we miss lines being added.
hace 9 años
Chris Smith
91aacc31b3
Make unread colours user-specified.
Add defaults for the old colours instead of horrible lime green.
hace 9 años
Shane Mc Cormack
9f3fcd1b59
2015!
hace 9 años
Chris Smith
176d35072f
Remove old notification code.
Drop the /notify command, as manually setting it doesn't make
sense in a post-actions world.
Drop the action component because they're now useless.
hace 9 años
Chris Smith
cdcdae6056
Add getter for USM.
hace 9 años
Chris Smith
7816913a78
Unsubscribe the status manager when frames close.
hace 9 años
Chris Smith
11a021e08f
Raise events.
Should probably improve this to only raise an event when the
values change, but will do for now.
hace 9 años
Chris Smith
2e45dfbbe0
Store display properties in Line.
hace 9 años
Chris Smith
9523367174
Replace old addText method with new one.
hace 9 años
Chris Smith
f830257585
Rename getOptionalConnection() to getConnection().
hace 9 años
Chris Smith
590fb6e484
Remove getConnection().
hace 9 años
Chris Smith
2366ffc524
Move BackBuffer to ui.messages.
It doesn't really make sense in ui.core now it's doing more...
The classes it's integrating are all in messages.
hace 9 años
Chris Smith
db4e5c2c77
Give the BackBuffer an EventFormatter.
Urgh.
hace 9 años
Chris Smith
b1bbc6f919
Make BackBuffer subscribe to events.
This is where displayable events are going to be added.
hace 9 años
Greg Holmes
f4f6739927
Fix compile error.
hace 9 años
Chris Smith
13b7feefc9
Add a BackBuffer class.
This will move some of the logic out of FrameContainer, and will
be responsible for handling DisplayableEvents in the future.
hace 9 años
Chris Smith
e128a5a9ad
Move messages package to ui.messages.sink
hace 9 años