Chris Smith
7f69a44212
Make handling of lifecyclecomponents more generic.
Change-Id: If5f4b2c140a40b768f0acb616b6c7ec15165dc1e
Reviewed-on: http://gerrit.dmdirc.com/3526
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
44911486b0
Add renamealias to corealiasdialogmodel
Change-Id: I3a6f219279f8c0a6a8a0f7471114b371a7039ef7
Reviewed-on: http://gerrit.dmdirc.com/3524
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
9e9984e280
Move aliases DI code into its own module.
Change-Id: Ifafbf427cd1a1f6ac0a1635c72b065a5f911c8fe
Reviewed-on: http://gerrit.dmdirc.com/3525
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
fca2f139ae
Add unit tests for CoreAliasDialogModel
Change-Id: I40a3cd040855b53ec87fd476690ddf65c2e3d080
Reviewed-on: http://gerrit.dmdirc.com/3523
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
20933ec0a1
Add core alias dialog model.
Change-Id: Ia8130431e23f965fe55725588f5eb637087c04df
Reviewed-on: http://gerrit.dmdirc.com/3522
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
61f974b17d
Hook aliases in Main, for now.
Change-Id: Ic51f6ca303a77cf0510780ba043402105381c04c
Reviewed-on: http://gerrit.dmdirc.com/3521
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
bd3583313c
Add an AliasLoader and associated plumbing.
Introduce a global lifecycle component interface which provides a
way to start/stop components, and will help with The Quitting Problem™
when we get around to it.
Change-Id: I6d43f354e90e8206bea3f61a74d09728c9cac5aa
Reviewed-on: http://gerrit.dmdirc.com/3520
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
c2edb71dc6
Add a store that reads/writes aliases.
Change-Id: I24afd60eecf5d77e8ecaf23de584243806df8fdd
Reviewed-on: http://gerrit.dmdirc.com/3519
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
750e485b6d
Make PreferencesReaderUtils more generic.
The way we're handling Yaml files ends up with an uncast Object
and we'll need to use these methods whenever handling Yaml.
Move PreferencesReaderUtils into utils, rename to just
YamlReaderUtils, and change the exception types it throws.
Change-Id: I5602740277185f20dab90621f73ed30204711c8b
Reviewed-on: http://gerrit.dmdirc.com/3518
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
cf8b7365d1
Add a manager for aliases.
Change-Id: Icdf50211d4b42e4014678f76a69a4c1ad089784a
Reviewed-on: http://gerrit.dmdirc.com/3517
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
da525f87b6
Add Command implementation for aliases.
Change-Id: Id9e68a94dc0b42b3fc4450154e2e2e71807a88c1
Reviewed-on: http://gerrit.dmdirc.com/3516
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
0dbe332ec1
This code doesn't do subdirectories, so is completely broken. It just happens to not be used in the client.
Revert "Start using nio2 in resource managers."
This reverts commit a4c4174103 .
Change-Id: Ia0c6f0f1a7c654338573440826b0bb8c89564c17
Reviewed-on: http://gerrit.dmdirc.com/3513
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
85e2c8591e
Add a basic model class for aliases.
Change-Id: I2df03b35733bd60af99f9502166d4e96b02bb300
Reviewed-on: http://gerrit.dmdirc.com/3514
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
a4c4174103
Start using nio2 in resource managers.
Change-Id: I2f9f58595e0867db798c1930d5a90975bab296f8
Depends-On: Ibac8f73683eec322d28cd10ced08c8777812ac43
Reviewed-on: http://gerrit.dmdirc.com/3509
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
6c730e6ff2
Throw exceptions is we fail to delete config file based things.
Change-Id: I4fa54ebe8f4ff93c8fc33504af66338eda01d0b8
Depends-On: I752f5bebe42514f1dc21e1b77e1ee5a649f324f5
Depends-On: I9463e66dc39881bcc69b64b8900df1010683b0bc
Depends-On: I752f5bebe42514f1dc21e1b77e1ee5a649f324f5
Reviewed-on: http://gerrit.dmdirc.com/3503
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
6afb56b917
Add server events.
Change-Id: Id53eb0fba852cf19e80dbd51d6b45fc9fc3dbee6
Reviewed-on: http://gerrit.dmdirc.com/3486
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
cb25fc6edc
Add unknown command event.
Depends-On: I06ee87cf6f7795eb3ee07828fb43f4381a465ac3
Change-Id: Ibcfc059d943a64494842eab68428ea8351206a09
Reviewed-on: http://gerrit.dmdirc.com/3488
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
5337f506f6
Switch to nio for files in Action.
Change-Id: If5b1caa86eade5cb4f97fbe693b8029c5b5bbb95
Reviewed-on: http://gerrit.dmdirc.com/3495
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
c8cbee55d7
Remove unused method.
Change-Id: Iafa20eb3a83f8ec91d4fe63cae33ff3056ebe035
Reviewed-on: http://gerrit.dmdirc.com/3493
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
78b0bcde00
Fix javadoc errors.
Change-Id: I510480f106c27a2e28c25a709c4f48048600002c
Reviewed-on: http://gerrit.dmdirc.com/3489
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
6cacf0bda4
self messages are self messages and self actions are self actions.
Change-Id: Ia694117ac772ebacc9ca30f0b2e5c7283c05e272
Reviewed-on: http://gerrit.dmdirc.com/3484
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
a4b8ca6fde
Remove unused actions.
Change-Id: Ib91fe8e4de5f05d08a3bcecbf6bd27fc1f773c8a
Reviewed-on: http://gerrit.dmdirc.com/3482
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
9632b3fcce
Use all the new channel events.
Change-Id: Iccd094635493e5379cdb1e4771edbbca68a61ed6
Reviewed-on: http://gerrit.dmdirc.com/3481
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
d7a581b6c5
Add the rest of the channel events
Change-Id: I9b28ce7e9d237f2dfe380f4ed5213b42d95ce3b8
Reviewed-on: http://gerrit.dmdirc.com/3480
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
5ab7408d0c
Add channel mode notice event.
Change-Id: I7d48905e7038c01962d4eb925f49ef1827bbc67d
Reviewed-on: http://gerrit.dmdirc.com/3477
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
6b4aad9e15
Add channel notice event.
Change-Id: I4f4ad7955d942b435607e2fe5bae6fce34f38261
Reviewed-on: http://gerrit.dmdirc.com/3478
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
258cd58b2e
Add channel ctcp event.
Change-Id: If5a01bc68f57f30f3ab2b4d9e55acbb8104e1ad6
Reviewed-on: http://gerrit.dmdirc.com/3476
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
f09f220f3b
Add some more channel events.
Change-Id: Iec42294582586783733482f96f6b93d8bdf4002c
Reviewed-on: http://gerrit.dmdirc.com/3475
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
dd1d5def97
Add util for despatching displayable events.
Tidy up a few event despatches.
Change-Id: I8c3f57097bfd7aabcba1bbd1cf495098b257e53c
Reviewed-on: http://gerrit.dmdirc.com/3479
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
2b0daac17a
Add some more actions.
Change-Id: Ib412a2b139ba1112c04f1f1b9b81d195554bf4e9
Reviewed-on: http://gerrit.dmdirc.com/3474
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
71618c12bc
Start migrating to channel events.
Change-Id: Ie503350804b28e1c682d53017e849b0eba8c00c0
Reviewed-on: http://gerrit.dmdirc.com/3473
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Chris Smith
03ea5733d5
FrameManagers now own and manage an EventBus.
Change-Id: Ie23fdab32a811174b2634a2cc0c617aa91ae1fa2
Reviewed-on: http://gerrit.dmdirc.com/3471
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
b5bc3f7d1a
PluginManager doesn't need an ActionController.
Change-Id: Ifd7b733e61e92100f4aadb50fc890b3f8642337f
Reviewed-on: http://gerrit.dmdirc.com/3472
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
1ec3b56141
FrameContainer parents are Optional.
Change-Id: Ibaf13d210cd01e73adf08bac359244b14faef088
Depends-On: Ief9fccad45d654ffaee9d7a124ebc39f7af56166
Reviewed-on: http://gerrit.dmdirc.com/3470
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
cbd0bd52fb
Re-introduce support for Channels.
I didn't think they were that important, really.
Change-Id: I3b9d2aa76702b764d95bce2cccc0e6a56856b4c9
Reviewed-on: http://gerrit.dmdirc.com/3468
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
2b1afbd1e2
Add base query text event class.
Change-Id: Ib39c4b2a6b6f6d9a225cf1630083c267ace0cc48
Reviewed-on: http://gerrit.dmdirc.com/3464
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
d67ae3ae27
Pass FrameContainer their parents when constructed
There's no reason for the parent to ever change, and this simplifies
a lot of things going forward.
Change-Id: I0dc9f767840ce0989739ea28f08254c78ef0d565
Depends-On: I3c0dc4b6cf42b5c6b69a499ac11195271c0aa846
Reviewed-on: http://gerrit.dmdirc.com/3466
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
10dd5575c6
Make notification colours optional.
The core shouldn't randomly default them to black - shunt that
down to the UIs instead.
Change-Id: I50a19086bab32a35fee535c8500a1636ff82b959
Depends-On: Ic17b9ff399a25e1b91bd1ce91d6d7071ba44ecb2
Reviewed-on: http://gerrit.dmdirc.com/3462
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
5dde390450
Migrate to query events not actions.
Change-Id: I9a8817842167ae56f845987c5d345122667314df
Reviewed-on: http://gerrit.dmdirc.com/3460
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
f7580ef22b
Add query events.
Change-Id: Id85f282e577078bf809403ae088f722d32418222
Reviewed-on: http://gerrit.dmdirc.com/3458
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
ac3c86a653
Remove Action events.
Change-Id: I67b558de082c1ce196800d8b0aafa2d6ce87b298
Reviewed-on: http://gerrit.dmdirc.com/3455
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago
Greg Holmes
540904f04a
Remove plugin refresh event.
Change-Id: I831c8dbec6a97c3805b4d7e6ac66730ed8bb162a
Reviewed-on: http://gerrit.dmdirc.com/3452
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
25e7564521
Commands must have non-null origins too.
Change-Id: Iea8cc21d45ec063a2d184902a838224727fdcb49
Reviewed-on: http://gerrit.dmdirc.com/3453
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
6e444ebec1
Remove plugin (un)loaded actions.
Depends-On: I413a3f6f72999262bf4426de082cc8c9946a6f90
Change-Id: I84f07c00e0589ff25ae1b4a01f5671488b847925
Reviewed-on: http://gerrit.dmdirc.com/3450
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
09cb002be2
Always specify an origin when parsing commands.
Where commands are executed globally, pass in a GlobalWindow.
Make the GlobalWindow a singleton that persists, and is simply
added/removed from the WindowManager when the user wants to
show/hide it.
Change-Id: Iac94848487442509bdbf8ec98f67983e313ed743
Reviewed-on: http://gerrit.dmdirc.com/3451
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Chris Smith
3866aa23cd
Use EventBus for client line added events.
Change-Id: I910ba2daa6a11926ba9aced2eb469ce38d9661f0
Reviewed-on: http://gerrit.dmdirc.com/3448
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Greg Holmes
0631ed5f86
Fix my previous stealth comit.
Change-Id: I47779bffe5a05145845275e94ed6929cd6bba01c
Reviewed-on: http://gerrit.dmdirc.com/3447
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
10 years ago
Chris Smith
870416026b
Pass EventBus into FrameContainer.
Change-Id: I711722755bbf78de5b3ae3a6eec3e43985f4ed63
Depends-On: I65695d195052b7800e14f2128c84d344f61ff19c
Reviewed-on: http://gerrit.dmdirc.com/3445
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
10 years ago
Greg Holmes
d2f09046b5
Add some base classes for events.
10 years ago
Greg Holmes
5bf9e9b3ec
Add some more server events.
Change-Id: Ib12542d236757d76540d57ff54341e3b73ceb598
Reviewed-on: http://gerrit.dmdirc.com/3437
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
10 years ago