Shane Mc Cormack
b591d5a331
Make main less static.
Don't ask Main for the config directory.
Remove getMain() from Main.
Everything that needs a main now either gets given it, or asks something else.
Unfortunately, a few more dependencies on the static IdentityManager.getIdentityManager()
were introduced, but they can be tackled separately.
Fix unit tests for the above.
Depends-On: I9e42ac7f74453b739209a681d0a31f50c1be2a04
Change-Id: Ib5a9fdea5a2e25d5471d0b849f4f65fa0286d1f8
Reviewed-on: http://gerrit.dmdirc.com/2521
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
11 years ago
Greg Holmes
fedcadfd0a
Convert between model and view for row selection.
Change-Id: I20a39179dc21d8c183096a6ef557a746545c02fe
Fixes-Issue: CLIENT-369
Reviewed-on: http://gerrit.dmdirc.com/2476
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
8f7991aa3c
Tidy up some threading in MainFrame.
Change-Id: Icd048f3eac41cdd31d7d3944fa36eaf78317ee21
Reviewed-on: http://gerrit.dmdirc.com/2474
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
1b8961d442
Fix long ruynning bug where the DCC plugin doesn't work.
Change-Id: I77c811c20850e35edd30931425c12938a9562d1c
Reviewed-on: http://gerrit.dmdirc.com/2473
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
ae65b221aa
Pass caret position into input handler.
Change-Id: Ibdd698a09cd14affb5d88f3156cbb582d0bde047
Depends-On: Ia5bcb212121521a73c14b14f8f827756e2f0a29d
Reviewed-on: http://gerrit.dmdirc.com/2471
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
2b0dc53a8d
Add new method for invokeAndWait using Callable not ReturnableThread
Change-Id: Ic0edb15c06533c0df5bc78f0f6878ca5ae98d9d0
Reviewed-on: http://gerrit.dmdirc.com/2465
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Shane Mc Cormack
79056d1075
Detect new and old names for apple look and feel.
Fix Apple Menu Items to actually work for the first time since November 2010 (db95f29d75 )
This should probably be backported also along with I6b31f255981dd064ef19bea2b84e8389d63e71c3 but is less important.
Change-Id: I325f91b0a2f9cf033f47138330abad132a77bf9a
Reviewed-on: http://gerrit.dmdirc.com/2467
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
12 years ago
Shane Mc Cormack
28a5bf7f14
Prevent "Apple" class being given a null config.
0.6.7 for OS X will need rebuilding to include this fix.
Change-Id: I6b31f255981dd064ef19bea2b84e8389d63e71c3
Reviewed-on: http://gerrit.dmdirc.com/2466
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
12 years ago
Greg Holmes
61d33d4471
This code is really not required, might even fix an issue.
Change-Id: I91d336926db51db0d6332afc78f78bc0058ba998
Fixes-Issue: CLIENT-359
Reviewed-on: http://gerrit.dmdirc.com/2464
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
02bee41e74
Fix textpane being unable to display a single line.
Change-Id: Ifd60765e87ecbc2fc6f4401f61c143e1e4e5eae3
Fixes-Issue: CLIENT-362
Reviewed-on: http://gerrit.dmdirc.com/2463
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
b1fb7f5ef8
(Almost) Generic background image painter
Change-Id: I5daa7330e62f3d3c04d2c3250ecf3ac2ca9320b3
Reviewed-on: http://gerrit.dmdirc.com/2461
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Greg Holmes
d2e06ff050
Fix for errant new line notifications in the textpane.
Change-Id: I26df38d66cd8d3a32a34ff3becc1a561a2aa89df
Fixes-Issue: CLIENT-361
Reviewed-on: http://gerrit.dmdirc.com/2456
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
38d9202806
Simplify with lombok
Change-Id: I2b03cce6ee8752f5d367d8cc1e614f4a6c8de5e4
Reviewed-on: http://gerrit.dmdirc.com/2460
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
c8a0e27a20
Associated changes for prefs tidy up.
Change-Id: Id8e090709271b6a908bc56273b9ff8dfd180370d
Depends-On: I428aa1596e7d41e6842175d805d88a4421c1b764
Depends-On: Iadcf92d4390034828d005a9c9e92d9a8ba189c99
Reviewed-on: http://gerrit.dmdirc.com/2453
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
3971b17a38
Associated changes from core commit
Change-Id: I17790a0e71a6c004a088a6eb51332293b23062a4
Depends-On: Iadcf92d4390034828d005a9c9e92d9a8ba189c99
Reviewed-on: http://gerrit.dmdirc.com/2454
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
ec14d94f2e
Improve unit tests for profile manager dialog, fix bugs they found.
Change-Id: I9741fee955a4eef2449ed2f93a06b8b7b80c5504
Reviewed-on: http://gerrit.dmdirc.com/2435
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
f43fec4162
Fix truncating treeview node labels.
Change-Id: I9fc697bf7cf8cd362f2d76696d2207ef5d40b7f8
Fixes-Issue: CLIENT-358
Reviewed-on: http://gerrit.dmdirc.com/2427
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
5615637738
Ad support for runtime changing of global fonts.
There is at least one known bug with this, probably more.
Change-Id: Ibf68730eecf063ff18a7a93d9f384666dc475b63
Fixes-Issue: CLIENT-357
Reviewed-on: http://gerrit.dmdirc.com/2426
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
cab1a30516
Fix broken button bar.
Change-Id: I15d8740a80b35b8e2c489df7af6a4e31394a7258
Fixes-Issue: CLIENT-356
Reviewed-on: http://gerrit.dmdirc.com/2425
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Greg Holmes
545e4a029f
Channel list is now sortable
Change-Id: Id96b2279573b44e24f408f15cba71b38f1b804e0
Fixes-Issue: CLIENT-346
Reviewed-on: http://gerrit.dmdirc.com/2395
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
12 years ago
Greg Holmes
50d5d31bcc
Update profile list when profiles change
Change-Id: Ife3bb95f8b8fb36837e6f01d108132362828678c
Depends-On: Idbe3fa49249f84cf31b4d42d041da27850e71061
Reviewed-on: http://gerrit.dmdirc.com/2412
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
9f541e4ca2
Hack around broken PluginManager listing duplicate plugins.
Issue CLIENT-335
Change-Id: Ieabc6957c7b46fa72e5a752f77b789d5da7dce7d
Reviewed-on: http://gerrit.dmdirc.com/2407
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
f0a8106539
Fix statusbar only ever showing a single message.
Change-Id: Ia0281cbade9f0598b81790c2c23395c9809559f4
Fixes-Issue: CLIENT-349
Reviewed-on: http://gerrit.dmdirc.com/2406
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
935f6e7345
Fix wizards being too small on Gnome3
Issue CLIENT-307
Change-Id: I6daa3c646646b71d3afcead999f4d8f302a56c60
Reviewed-on: http://gerrit.dmdirc.com/2402
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
4f0692166a
Only change titles on mainframe if the window is active.
Change-Id: Id622c08127680600225b7e1e95597d1860938013
Fixes-Issue: CLIENT-316
Reviewed-on: http://gerrit.dmdirc.com/2401
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
7a428098e6
Tidy up some dodgy code and prevent statusbar popup dialogs showing twice.
Change-Id: I89b0ff65d8689b8b227e0c91e8961b5da5408ae7
Fixes-Issue: CLIENT-337
Reviewed-on: http://gerrit.dmdirc.com/2399
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
6d83831a44
List channels should be enabled when on a server not in a channel.
Change-Id: I62ed60487672ef8f102907dfb6a4df062fff6e1a
Fixes-Issue: CLIENT-345
Reviewed-on: http://gerrit.dmdirc.com/2390
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Chris Smith
7e1fb6606d
Wrap items in the UpdaterPopup again
Change-Id: I072a86f4836d45548352eccf029cd45486d7fa8d
Fixes-Issue: CLIENT-343
Reviewed-on: http://gerrit.dmdirc.com/2388
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Greg Holmes
0ebb404f2c
Allow topics to be changed on channels without topics.
Change-Id: Ibea6c4270ad60d9b51e1ef3b09f0f9c3261e78e6
Fixes-Issue: CLIENT-341
Reviewed-on: http://gerrit.dmdirc.com/2385
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Chris Smith
10688b17c9
Support for the new updater
Change-Id: Iab5db6ba7738102fbe45e37670f6cfd3c705fd9c
Depends-On: Ia92ef9058621aa0a3cb67dc1fb30a13642580303
Reviewed-on: http://gerrit.dmdirc.com/2382
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
12 years ago
Greg Holmes
b89045693b
Redo constructors to cope with dependency injector
Change-Id: Ia38ec1d68e38f638d90c4c2cc2f919adcfef5db8
Fixes-Issue: CLIENT-340
Reviewed-on: http://gerrit.dmdirc.com/2372
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Greg Holmes
e505339ef8
Fix channel list dialog throwing fatal errors when mousing over it.
Change-Id: I5ac9e6679da726f8ca8f977ef7b9c7874bc547eb
Reviewed-on: http://gerrit.dmdirc.com/2361
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Greg Holmes
26392a885a
Increase status bar height (it was a related padding too short).
Change-Id: Ibdb5030ac3905918fcf314c004c980f2956edb09
Reviewed-on: http://gerrit.dmdirc.com/2357
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
536e89d16a
Fix issues with treeview and status bar on gnome3.
Change-Id: Ib4f7d4cd92109a5c7b8a994a5692d57a2ed9b10f
Reviewed-on: http://gerrit.dmdirc.com/2343
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
5b091ef9a9
Add a real rowheight again to fix truncated icons in win7
Change-Id: Iac7010bc11cc0a2d4e86df3918087111e80b06ff
Fixes-Issue: CLIENT-304
Reviewed-on: http://gerrit.dmdirc.com/2338
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
578c9c0bc0
Fix the first run wizard.
Change-Id: I92c41ace9285cd81d7bc286543c0d77e8571ab45
Fixes-Issue: CLIENT-305
Reviewed-on: http://gerrit.dmdirc.com/2337
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
0bd8222f96
Change Swing debug plugin to use DMDirc windows rather than dialogs.
Change-Id: Ic29bf3495781213b4114769b6ef11013352d5a12
Reviewed-on: http://gerrit.dmdirc.com/2335
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Greg Holmes
c48b8b89ca
Disable OptionJSpinners on creation if state is disabled
Change-Id: Ib4c3ba528b26eb8839822f616b1137895d57ba55
Fixes-Issue: CLIENT-333
Reviewed-on: http://gerrit.dmdirc.com/2317
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
79cde01781
Ask user for input in PMD not ask for confirmation
Change-Id: I3520a885263f09b2a098b9f3ae371e9835d9b7d4
Reviewed-on: http://gerrit.dmdirc.com/2311
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Chris Smith
4fbf6f235c
Remove @AutoGenMethodStub as it makes Netbeans scan forever :(
Change-Id: I9abd8c4aa315fcbe49f8432bc417efc9d246c981
Reviewed-on: http://gerrit.dmdirc.com/2307
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Greg Holmes
7932ff2d0d
Fix a regression in the topic bar.
The topic bar should only change the topic when the server informs it
the topic has changed, currently this was changing the text regardless
of whether the topic change was allowed.
Change-Id: Ib4979c324e05a29c2f0b066714f4b410d6a7ca77
Reviewed-on: http://gerrit.dmdirc.com/2303
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
b0ff6ebed9
Fix SwingRestartDialog not opening
Change-Id: I90bf0517d42312e226513c94a28d98d24ed9cb0d
Reviewed-on: http://gerrit.dmdirc.com/2296
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
b8aafad96a
Fix broken Settings submenu in treeview
Change-Id: I09ba91b1bcfcb7c9e2e2fdf63c53a52380e63303
Reviewed-on: http://gerrit.dmdirc.com/2295
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
36e01ebb31
Fix broken Profile Manager dialog (Chris wins :()
Change-Id: Icf9f85c19c30f95809133acc2f2076301a671407
Reviewed-on: http://gerrit.dmdirc.com/2294
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
1cb39aefba
Fix incorrect headers, revert non DMDirc headers.
Change-Id: I4230201115d998e46c179ed14a59984a54180766
Reviewed-on: http://gerrit.dmdirc.com/2293
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Shane Mc Cormack
f40fbcff29
Update copyright for 2012
Change-Id: I559bbd9a7e6abdfc73068d4934cfb0fc9f7ce84c
Reviewed-on: http://gerrit.dmdirc.com/2289
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
12 years ago
Greg Holmes
b786e88b50
Allow blank idents in the profile manager dialog.
Change-Id: I6ac3d24e0dcf78601568d63a660033178d73ba78
Reviewed-on: http://gerrit.dmdirc.com/2286
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
0ee59c807d
Fix dialogs not being disposed ever...
Change-Id: I5ee383c4f193179379fed54eac4d564eec5a517b
Reviewed-on: http://gerrit.dmdirc.com/2285
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
12 years ago
Greg Holmes
4d80c32e27
Mass singleton removal spree. Minor tidying in edited classes.
This tidying introduces a DialogManager class which ensures only a
single instance of a dialog can exist at any one time. This will be
expanded in the future to support management of all dialogs.
Change-Id: I506d7dde623628e38fddcd5f81221d9f2cc832ca
Reviewed-on: http://gerrit.dmdirc.com/2246
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
12 years ago
Greg Holmes
30b3ef4e1b
Move serverlist dialog to server list plugin.
Fixes-Issue: CLIENT-238
Change-Id: I4333c2a982b0c6757b4a450441903316500e4065
Reviewed-on: http://gerrit.dmdirc.com/2245
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com >
12 years ago