Chris Smith
03e9dd99fa
Use proper import ordering.
8 лет назад
Chris Smith
c01e26f5b9
Tidy up nick change handling.
It doesn't make sense to have a public method in Connection to
muddle around with how queries are tracked, nor for queries to
tell servers when they change (creating a dependency loop).
Instead, have the ServerEventHandler tell Server.
8 лет назад
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 лет назад
Chris Smith
10de163267
Separate InputModel functions from FrameContainer.
8 лет назад
Chris Smith
217b5b1a22
Remove input methods from WindowModel.
Migrate all users to using the InputModel.
8 лет назад
Chris Smith
874b2afd2d
Remove FrameContainer parent/child fields.
8 лет назад
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 лет назад
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 лет назад
Chris Smith
8c91a4ca16
Remove CallbackNotFoundException, tidy up Query.
We don't need to reregister on nick change now, as we get all
the events anyway and filter them manually.
9 лет назад
Chris Smith
b8bc8c5717
Fix some query nonsense.
For some reason we're checking hostname (e.g. dmdirc.com)
against full hosts (e.g. chris!ident@dmdirc.com ) and expecting
them to match.
Queries now check on nicknames.
9 лет назад
Greg Holmes
0ea7328c4f
Check events are for us now there are no SpecificCallbacks.
9 лет назад
Greg Holmes
7455fe09da
Fix client after parser changes. Eventbouseseses.
9 лет назад
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 лет назад
Chris Smith
ea9a81563c
Fix a bunch more FrameContainer references.
9 лет назад
Chris Smith
5488531eb9
Make Connection return a WindowModel.
Start to move FrameContainers behind an iface so they can be
pulled out.
For now, just cast back when needed.
9 лет назад
Chris Smith
976e365835
Remove Query.getHost.
Only one place in the core needs the silly IRC format, so just
inline it there.
9 лет назад
Greg Holmes
cf03e2ba8a
Sanitise some Optionals before returning in Query.getHost
9 лет назад
Greg Holmes
c8a0b452a2
Fix odd query logic
9 лет назад
Greg Holmes
5a225dac92
Add QueryNickChangeEvent formatter.
9 лет назад
Greg Holmes
131bd2d7a7
Add a QueryQuitEvent, add new nickname to QueryNickChangeEvent.
9 лет назад
Greg Holmes
6266711f11
Fix wrapped users being totally wrong.
9 лет назад
Chris Smith
ce25b15a62
Switch some more output to events.
9 лет назад
Chris Smith
b28b6e5f9b
Remove urlBuilder params.
From everywhere.
9 лет назад
Chris Smith
369d5b6c2b
Remove MessageTarget.
For some reason it reordered the ctor parameters, so fix them too...
9 лет назад
Chris Smith
b61c1bf788
Remove references to MessageTarget.
Doesn't make sense to have this any more, as Chat provides the
common interface between queries + channels.
9 лет назад
Chris Smith
7ae63d4e04
Move query self messages to the new formatter.
9 лет назад
Chris Smith
1697e8a10b
Make Query use Connection iface, not Server.
9 лет назад
Chris Smith
9de663113e
Use new formatter for query action/msg.
Removes some usages of server.parseHostMask which needs to die.
9 лет назад
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 лет назад
Chris Smith
42fe0db71f
Fix naming of events.
We no longer need to be consistent with the odd casing/naming
of actions.
9 лет назад
Greg Holmes
1707df7849
Retrieve optional users before passing on.
9 лет назад
Greg Holmes
a69affc703
Pass Users into doNotification everywhere.
9 лет назад
Greg Holmes
48124d1965
Remove some uses of parser local user.
9 лет назад
Greg Holmes
3d3a49d9b8
Remove uses of parser objects in processnotificationargs.
9 лет назад
Shane Mc Cormack
9f3fcd1b59
2015!
9 лет назад
Greg Holmes
df7046f37c
Handle GroupChatUser + User in processNotificationArg
9 лет назад
Greg Holmes
348033fc13
Stop get(Local)User returning Optional.
9 лет назад
Chris Smith
6586b8ad11
Make Query use Users better.
Also remove some more parseHostname calls.
9 лет назад
Greg Holmes
7519e098c4
Fix factory.
9 лет назад
Greg Holmes
f00063e782
Use getLocalUser in Query.
9 лет назад
Greg Holmes
9af0c8c996
Switch events to User.
9 лет назад
Chris Smith
6ecb8e2e9a
Make getParser() optional.
Returning null is bad.
9 лет назад
Chris Smith
f830257585
Rename getOptionalConnection() to getConnection().
9 лет назад
Chris Smith
2eaaf532eb
Found a sneaky one left. Kill it.
9 лет назад
Chris Smith
590fb6e484
Remove getConnection().
9 лет назад
Chris Smith
31a78eb743
Fix various deprecated uses.
Change-Id: I0bb97a8946d1c217de82fe2a9b8f35b7d49eae06
9 лет назад
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 лет назад
Chris Smith
db4e5c2c77
Give the BackBuffer an EventFormatter.
Urgh.
9 лет назад
Chris Smith
e128a5a9ad
Move messages package to ui.messages.sink
9 лет назад
Chris Smith
c8ec0f77f9
Some OptionalConnection work.
Deprecate getConnection, fix CustomWindow's getOptionalConnection
returning null, change a couple of usages.
9 лет назад