Add base interface for objects with display properties.
This will allow the formatter to check if strings coming from
(for example) users in channels should be formatted specially,
such as by colouring or linking them.
Issues #424 and DMDirc/Plugins#507
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.
Add a base class for events with a WindowModel source.
For #662, it makes sense to have a standard way to
get the source from events we may wish to filter.
This introduces a SourcedEvent interface, and adapts classes
to use it.
Any formattable DisplayableEvent received on a frame container's
event bus is now automatically added to the IRC Document.
Current problems:
1) Every time this happens the old path still executes, so you
end up with two lines
2) Every event on a channel's event bus gets passed to the
server's, so the lines appear there as well.
This will allow listeners to change how events are displayed,
for example setting the default FG colour to red when the
user is highlighted.
Depends-On: I21f9babe74a90b5cfea6daba815c08e7a4b5afa5
Change-Id: I0ac716ee335ed40531af698fe475d077aba2766d
Reviewed-on: http://gerrit.dmdirc.com/3833
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
These are events which are going to cause a line to be added to a
client window. They allow actions, plugins, or other listeners
to change the formatter line.
Eventually the UI model will just be able to listen for displayable
events on the local event bus to figure out what needs to be displayed.
Change-Id: Ia86c593df66f8bff13574714c45464a2634c02ba
Reviewed-on: http://gerrit.dmdirc.com/3390
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com>
UpdateCopyright.sh now works out the year automatically.
UpdateCopyright.sh now ignores .git aswell as .svn
UpdateCopyright.sh now excludes Binary Files from being matched during the initial search, rather than as an afterthought.
Change-Id: I2cfc56851a4217a4c85cbc7361c7a90421aae717
Reviewed-on: http://gerrit.dmdirc.com/202
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
Tested-by: Shane Mc Cormack <shane@dmdirc.com>
- ChannelCommandParser now extends ServerCommandParser
- Rename Command.thingy to Command.polyadic
- Command.arity now defaults to 0
- The CommandParser can now register commands
git-svn-id: http://svn.dmdirc.com/trunk@5700569f92-eb28-0410-84fd-f71c24880f