Chris Smith
5cc0af4324
Use EventBus interface.
This is just an IntelliJ refactor, using EventBus in place of
DMDircMBassador whenever possible.
7 år sedan
Chris Smith
c12274ae0a
Avoid raising events before a frame has an ID.
8 år sedan
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.
8 år sedan
Chris Smith
4382bce3aa
Remove child event busses.
Closes #662 .
8 år sedan
Chris Smith
b54efa3c82
Remove some unused code.
8 år sedan
Chris Smith
18cb00a6bc
Assorted tidying.
8 år sedan
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).
8 år sedan
Chris Smith
1141fd113f
Pass WindowModel into Server.
8 år sedan
Chris Smith
96933fd89a
Tear Server and FrameContainer apart.
8 år sedan
Chris Smith
10de163267
Separate InputModel functions from FrameContainer.
8 år sedan
Chris Smith
217b5b1a22
Remove input methods from WindowModel.
Migrate all users to using the InputModel.
8 år sedan
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.
8 år sedan
Chris Smith
874b2afd2d
Remove FrameContainer parent/child fields.
8 år sedan
Chris Smith
a3b2815d16
Remove ramaining addLine methods.
Closes #426
8 år sedan
Chris Smith
7a5d418285
Remove another deprecated method.
8 år sedan
Chris Smith
787c72850f
Use events for raw data in/out.
Issue #426
8 år sedan
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
8 år sedan
Chris Smith
86bd33fedb
Deprecate things that should be replaced by events
8 år sedan
Chris Smith
dfb63e9836
Add some more events, remove some unused methods.
8 år sedan
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
8 år sedan
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 :(
8 år sedan
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.
9 år sedan
Chris Smith
20bba51ce3
Weaken some things to WindowModel.
9 år sedan
Chris Smith
499feaea3a
Make WindowManager use WindowModel.
9 år sedan
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.
9 år sedan
Chris Smith
7287ba0d4f
Add an interface for FrameContainers.
9 år sedan
Chris Smith
b28b6e5f9b
Remove urlBuilder params.
From everywhere.
9 år sedan
Chris Smith
81c0783258
Kill FrameContainer.getIconManager.
9 år sedan
Chris Smith
3571ffe3e7
Remove unused methods.
9 år sedan
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.
9 år sedan
Chris Smith
91aacc31b3
Make unread colours user-specified.
Add defaults for the old colours instead of horrible lime green.
9 år sedan
Shane Mc Cormack
9f3fcd1b59
2015!
9 år sedan
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.
9 år sedan
Chris Smith
cdcdae6056
Add getter for USM.
9 år sedan
Chris Smith
7816913a78
Unsubscribe the status manager when frames close.
9 år sedan
Chris Smith
11a021e08f
Raise events.
Should probably improve this to only raise an event when the
values change, but will do for now.
9 år sedan
Chris Smith
2e45dfbbe0
Store display properties in Line.
9 år sedan
Chris Smith
9523367174
Replace old addText method with new one.
9 år sedan
Chris Smith
f830257585
Rename getOptionalConnection() to getConnection().
9 år sedan
Chris Smith
590fb6e484
Remove getConnection().
9 år sedan
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.
9 år sedan
Chris Smith
db4e5c2c77
Give the BackBuffer an EventFormatter.
Urgh.
9 år sedan
Chris Smith
b1bbc6f919
Make BackBuffer subscribe to events.
This is where displayable events are going to be added.
9 år sedan
Greg Holmes
f4f6739927
Fix compile error.
9 år sedan
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.
9 år sedan
Chris Smith
e128a5a9ad
Move messages package to ui.messages.sink
9 år sedan
Chris Smith
c8ec0f77f9
Some OptionalConnection work.
Deprecate getConnection, fix CustomWindow's getOptionalConnection
returning null, change a couple of usages.
9 år sedan
Greg Holmes
245880962b
Add getOptionalConnection.
9 år sedan
Chris Smith
f2f89a9c9f
Change optionals.
9 år sedan
Chris Smith
78093e4dac
Tidy up a load of com.dmdirc classes.
9 år sedan