Chris Smith
cded76e8b4
Make rendering of wrapped lines simpler.
We now always render bottom-to-top, regardless of whether lines
wrap. Previously for wrapped lines we jumped upwards, rendered
the wrapping lines top-to-bottom, then jumped upwards once more
and carried on bottom-to-top. That made for some really confusing
code.
9 years ago
Chris Smith
c3255b6d6f
Use system highlight colours.
9 years ago
Chris Smith
ac4949845c
Fix a variety of horrible bugs I added.
TextPane no longer leaks memory like there's no tomorrow.
Selection works again.
9 years ago
Chris Smith
a95233c047
Fix text pane performance regression.
I was wrong -- lineLayouts didn't need to be sorted. Making it
a TreeMap was quite expensive, as it had to do a bajillion
comparisons each time a line was added (which happens every
render cycle).
9 years ago
Chris Smith
edab7f2f92
Simplify line renderer a bit.
Remove some redundent checks, change firstChar/lastChar to be
relative to the current line, rather than within the whole
unwrapped line.
9 years ago
Chris Smith
dfbad49bc8
Missing space in alias dialog.
9 years ago
Chris Smith
9bdb66d940
Dispose of windows on the EDT.
Fixes DMDirc/DMDirc#33
9 years ago
Chris Smith
4452e38fe4
Split up rendering a bit more.
Make various methods protected so it's possible to extend the
renderer.
9 years ago
Chris Smith
d91148c2a4
Split out a LineRenderer class.
This handles the direct rendering of a line, including highlighting
and wrapping.
Also change how the TextPaneCanvas stores its various properties,
so it's not doing lookups in multiple maps at once.
Issue #10
9 years ago
Chris Smith
c56d2024d9
Bit more tidying.
9 years ago
Chris Smith
9a4af07e82
TextPaneCanvas tidying.
Use new LinePosition method.
Split some of the huge methods up into smaller ones.
Fix some Netbeans-induced wonky line wrapping.
9 years ago
Chris Smith
fe5c818b7d
Replace TextPaneBoundedRangeModel with the default.
Seems functionally identical aside from a couple of bugs in the
TextPane one :-)
Change-Id: I2a28e7e7761224bab435b323a83c6586bda71067
Reviewed-on: http://gerrit.dmdirc.com/4084
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
0562a418fe
Tidy some logic, fix weird line wrapping.
Change-Id: I90e6c24ea0bd1520a6dd9e2588016dc0b4e8b66e
Reviewed-on: http://gerrit.dmdirc.com/4083
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
9cc8bc7b40
Use new util methods, tidy a bit more.
Change-Id: I2c49b891e08fe020773acddf1b0160f0eb641d79
Reviewed-on: http://gerrit.dmdirc.com/4082
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
14bbfdb785
Tidy some perfectly normal classes.
I'm not insane. This isn't dangerous. /me runs
Change-Id: I1eb7e1c413e491c539920d960b6ab9cd497e6ece
Reviewed-on: http://gerrit.dmdirc.com/4080
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
8409df20c6
Stop using ResourceManager methods some more.
Change-Id: Ie8f2c6abe05eac9897cada8e17b67ed1d982d95e
Depends-On: Ic48f35315ff795c6dd44bf24190ca19581ca71d3
Reviewed-on: http://gerrit.dmdirc.com/4078
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
c4b42d188a
Switch to Path for Downloader.
Change-Id: I475f5f4a54ec1b30e4f0258442864d678041eff1
Reviewed-on: http://gerrit.dmdirc.com/4053
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
801bf9ab2c
Gradle copies the res folder. Use this.
This copies licenses, identities, preferences, and anything else we add.
Change-Id: I7d78bfdce2ad2adf9c42db564366a30f55981c62
Reviewed-on: http://gerrit.dmdirc.com/4024
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
ee75f5ab8f
Fix licenses not being added to plugin jars.
Change-Id: I26ca7f22361593650793e9db64d9a1d54ced234b
Reviewed-on: http://gerrit.dmdirc.com/4022
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
06271e5110
Fix compilation error.
I think I now live in dependency hell. It is not a nice place.
Change-Id: Iee0d759f6307e95f397f58064c0b3d4e2694e191
Reviewed-on: http://gerrit.dmdirc.com/4009
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
2dedf04cfd
Use full versions for dependencies.
Feel like we've got a few too many moving parts at the moment,
so explicitly set versions of our dependencies.
Also took the opportunity to upgrade a couple of things.
Change-Id: I1af4dbfbbd149e5a4c64e83f66de015affcf4032
Reviewed-on: http://gerrit.dmdirc.com/4001
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Greg Holmes
ce637c1401
Fix Statusbar not showing components.
Change-Id: I3e97728803759a7d6a091425c9a539a98fb06640
Reviewed-on: http://gerrit.dmdirc.com/3988
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
ea9b97ea2e
Stop coverity complaining.
Change-Id: I3cffd0a46bfa6ff3f8e81a004b2e66dffa6f5378
Reviewed-on: http://gerrit.dmdirc.com/3985
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
3fdfa5297b
Fix an unguarded read in ErrorTableModel.
Change-Id: Ifcb309ce73ebed15dc17cadc6beddd261527bca9
Reviewed-on: http://gerrit.dmdirc.com/3979
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Greg Holmes
07b1502505
Synchronize on something more sensible.
Change-Id: I3b0d649a3a545e5747b8e2531d47f2d11bfef171
Reviewed-on: http://gerrit.dmdirc.com/3978
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Greg Holmes
534701bc09
Fix potential NPE in action editor dialog.
Change-Id: Iff979cc00bc2c81584a673883b9869799b3612da
Reviewed-on: http://gerrit.dmdirc.com/3976
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
a519bf92a3
Fix broken comparison
Change-Id: I70df54739f67e5a7cfc2336dbc606723384aa930
Reviewed-on: http://gerrit.dmdirc.com/3946
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Chris Smith
4c68c5e600
Enable PMD for plugins.
Fix assorted PMD errors.
Change-Id: I9af7e36f2aeb10bd658c5825ad2f94161e0bb243
Reviewed-on: http://gerrit.dmdirc.com/3940
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
136fc81d2e
Fix, probably, buggy ActionTableModel.
Change-Id: I7f3712e32936e66baac18199f6d702b5b5f66c3b
Reviewed-on: http://gerrit.dmdirc.com/3930
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
e03723f60d
Tidying.
Change-Id: Ib589c2957a99b616774f2e6d9ca508125fd4e553
Reviewed-on: http://gerrit.dmdirc.com/3923
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
29777f57de
Add ability to remove menu items. Use it in server list ui.
Change-Id: I55bb7e3d1b5ca6d59d260c063c0b40b663bcc9ce
Reviewed-on: http://gerrit.dmdirc.com/3908
Reviewed-by: Chris Smith <chris@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
6fc005ce9c
Add a qualifier for ColourManager.
Change-Id: I81484e5df7b5dfeb7067ba211c11f2df198ac43c
Depends-On: Icf9c64b84ddc129fe54765a4a3cac475c58cf1de
Reviewed-on: http://gerrit.dmdirc.com/3892
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
dba8ac3ee3
Remove pointless/incorrect dagger annotations
Change-Id: Ie5daf5da494cf70c49081351c1b01bdb7dbaeef5
Reviewed-on: http://gerrit.dmdirc.com/3886
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
57d088b6fe
Remove some redundant casts.
Change-Id: I7b4c7348eb44d731347546105a3a6c66fb132aa8
Reviewed-on: http://gerrit.dmdirc.com/3882
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Chris Smith
0d9d18499a
Fix pointless array creation.
Change-Id: I7e4e6e86c02dce066eb4a739259bbeef9df8620e
Reviewed-on: http://gerrit.dmdirc.com/3879
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago
Greg Holmes
5956243fc5
Use ColourManagerFactory
Change-Id: If1bc20d15561584c9296ad10f04957efb51c5966
Depends-On: I6ef45d10a4fe862854702eee671114ee09f01d4d
Reviewed-on: http://gerrit.dmdirc.com/3867
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
8cc02bbfff
Use ConnectionManager.
Change-Id: Ic0e6e5f95adc30e773945c95e73d321d589503d2
Depends-On: I8888522d58ff4d332c4a477702442c29a82d12ff
Reviewed-on: http://gerrit.dmdirc.com/3871
Reviewed-by: Greg Holmes <greg@dmdirc.com >
Automatic-Compile: DMDirc Build Manager
9 years ago
Greg Holmes
25db137bd6
Move Colour to utils.
Change-Id: Ibf9936e6cf89ebbe1243e1c32596bc726bebc5ce
Depends-On: I73c10f367e5972031d1c9b0871c4cb9043008bec
Reviewed-on: http://gerrit.dmdirc.com/3859
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Greg Holmes
73cefb0805
Keep serverlist stuff in ServerLists!
Change-Id: I76d9cabb6a550116cee644b0d92cbf3ef7adfd6a
Reviewed-on: http://gerrit.dmdirc.com/3851
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com >
9 years ago
Chris Smith
93d405608c
Gradle-ify the plugins.
* Move all plugins to their own top-level directories.
* Move resources out of source trees
* Add Gradle build scripts.
* Remove ivy and ant build scripts.
Change-Id: Ib69a48ef26800c174ccf51c84ff9d1f73529460f
Depends-On: I303b6b69518468f98d48d835b8f40135d9e4bcbf
Reviewed-on: http://gerrit.dmdirc.com/3850
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Greg Holmes <greg@dmdirc.com >
9 years ago