Chris Smith
b54efa3c82
Remove some unused code.
8 years ago
Chris Smith
9ccf14368a
Remove unused DisplayableEvent properties.
Now everything is using events, we don't need the legacy
format identifier.
8 years ago
Chris Smith
18cb00a6bc
Assorted tidying.
8 years ago
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 years ago
Chris Smith
1141fd113f
Pass WindowModel into Server.
8 years ago
Chris Smith
96933fd89a
Tear Server and FrameContainer apart.
8 years ago
Chris Smith
10de163267
Separate InputModel functions from FrameContainer.
8 years ago
Chris Smith
217b5b1a22
Remove input methods from WindowModel.
Migrate all users to using the InputModel.
8 years ago
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 years ago
Chris Smith
874b2afd2d
Remove FrameContainer parent/child fields.
8 years ago
Chris Smith
9d18ce8942
Remove usages of FrameContainer window methods.
These will be going away shortly.
8 years ago
Chris Smith
d6e6cb3c96
Make the WindowManager track windows.
Despite its name and description, the WindowManager relied on
each FrameContainer having a reference to its parents and all
its children.
The WindowManager now stores this information itself, and so
the FrameContainer methods can be gradually phased out.
8 years ago
Chris Smith
a3b2815d16
Remove ramaining addLine methods.
Closes #426
8 years ago
Chris Smith
7bfdf45249
Add events for sent messages/ctcps/notices/raw lines.
8 years ago
Chris Smith
2b171bb83d
Use events in ShowTopic command.
8 years ago
Chris Smith
7a5d418285
Remove another deprecated method.
8 years ago
Chris Smith
b7fd4e6fe1
Move raw events into plugins.
8 years ago
Chris Smith
787c72850f
Use events for raw data in/out.
Issue #426
8 years ago
Chris Smith
d080e44956
Remove some unused methods.
8 years ago
Chris Smith
dc0f607943
Add display property to suppress timestamps.
Formats defined in YAML can specify 'timestamps: false' to hide
the default timestamp for lines associated with that event.
Closes #633
8 years ago
Chris Smith
6b1e6e7e5c
Use the right annotation to subscribe.
8 years ago
Chris Smith
57cf21576b
Make LogUtils more robust.
Also make event bus errors have a better message.
Closes #627
8 years ago
Chris Smith
7d5a0de34e
Allow plugins to specify event formats.
Closes #622
8 years ago
Chris Smith
f270d34aa3
Use snapshot version of raven, send relase.
This enables release tracking in sentry.
8 years ago
Chris Smith
8e701d9b8a
Propagate exceptions sanely.
8 years ago
Chris Smith
7421c1fa83
Use the new MutliEventFormatProvider.
Issue #622
8 years ago
Chris Smith
e7e5315116
Add format provider that handles multiple sources.
This will allow plugins to supply their own format providers
while still allowing the user to override them using the
main format.yml file.
Issue #622
8 years ago
Chris Smith
1ad67b6c3f
Update to MBassador 1.2.4.
This release contains some performance improvements compared
to the version we were using.
Error handlers are now passed in at construction time, so
there was a small bit of refactoring required.
8 years ago
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 years ago
Chris Smith
ad223b1a6e
Remove WhoisNumericFormatter.
8 years ago
Chris Smith
bc37a9d982
Improve formatting of whois events.
8 years ago
Chris Smith
ef2357d347
Add ugly event-based whois output.
This allows events to iterate over a collection property, and
adds formatting for whois results. It needs a lot of tidying,
but it's a start...
8 years ago
Chris Smith
1767fa4e99
Add formatter support for before/after templates.
This allows formats that may be multi-line (whois results,
probably MOTD results at some point, etc...) to show a header
and footer around the actual content.
8 years ago
Chris Smith
e1e78e2437
Couple more deprecation fixes.
8 years ago
Chris Smith
621a53cf06
Change all command error/output to use events.
8 years ago
Chris Smith
2204bf0570
Convert some commands to use output events.
8 years ago
Chris Smith
e060357fb2
Fix deprecated methods in CommandFlagHandler.
8 years ago
Chris Smith
86bd33fedb
Deprecate things that should be replaced by events
8 years ago
Chris Smith
dfb63e9836
Add some more events, remove some unused methods.
8 years ago
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 years ago
Chris Smith
9897426a7a
Make topics have proper dates.
8 years ago
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 years ago
Chris Smith
07c5f9449e
Minor tidying around displayable events.
8 years ago
Chris Smith
daad29f32b
Tidying of Server.
Split out error description getting into its own method. Other
minor changes.
8 years ago
Chris Smith
e54b0331f1
Fix weird plugin path construction.
We have a path, it doesn't really make sense to take the filename,
then take the directory, then create a new path using those...
8 years ago
Chris Smith
b6cc7a098b
Extract config value retrieving from binder.
The logic to get a correctly typed setting given a class is
pretty general purpose, and will be useful elsewhere. Pull
it out of ConfigBinder and add some tests for it.
8 years ago
Chris Smith
fed540f6fe
Ensure module methods have unique names.
Dagger 2.0 appears to require each method in a module to have a
unique name. In some cases we've used overloads with the same name.
Also, remove a bunch of boilerplate javadoc.
Issue #601
9 years ago
Chris Smith
f0019ffb26
Fix source of notice events.
We were raising notices as all coming from the local user, not
the person that sent the notice. This is... unideal.
9 years ago
Chris Smith
0a7fb8b874
Stop TabCompleter depending on CommandManager.
9 years ago
Chris Smith
30b2d9332a
Tidy up plugin refreshing.
9 years ago