pyrook:pyrook.git
5 years agoBump version and docs for 0.3.4 0.3.4
Sam Lade [Thu, 19 Jan 2012 15:17:41 +0000 (15:17 +0000)]
Bump version and docs for 0.3.4

5 years agoInclude logo PNGs for Windows distribution
Sam Lade [Thu, 19 Jan 2012 22:21:24 +0000 (22:21 +0000)]
Include logo PNGs for Windows distribution

5 years agoUse US dictionary if local language not found
Sam Lade [Thu, 19 Jan 2012 22:07:58 +0000 (22:07 +0000)]
Use US dictionary if local language not found

5 years agoFully functional Windows standalone exe generation
Sam Lade [Thu, 19 Jan 2012 20:35:38 +0000 (20:35 +0000)]
Fully functional Windows standalone exe generation

Uses PyInstaller. cx_freeze has been dropped. Includes spec file for
generation of exe and some code tweaks to enable finding libraries and data
files in this setup.

5 years agoAdd cx_freeze script
Sam Lade [Thu, 19 Jan 2012 02:32:24 +0000 (02:32 +0000)]
Add cx_freeze script

Allows building of Windows packages with no other dependencies.
Commit includes a .ico version of the icons for use with the output exe.
Not tested in Windows yet!

5 years agoFix exit timeout
Sam Lade [Thu, 19 Jan 2012 01:29:35 +0000 (01:29 +0000)]
Fix exit timeout

5 years agoClean comment that appeared in wrong place in build
Sam Lade [Thu, 19 Jan 2012 00:31:58 +0000 (00:31 +0000)]
Clean comment that appeared in wrong place in build

5 years agoRemove tab detachment feature
Sam Lade [Wed, 18 Jan 2012 23:58:28 +0000 (23:58 +0000)]
Remove tab detachment feature

Clumsy and poorly implemented, and actively broken for message and web tabs.
Could be re-implemented properly, including dragging tabs between windows, if
there's interest for it.

5 years agoFix previous commit...
Sam Lade [Fri, 13 Jan 2012 01:11:45 +0000 (01:11 +0000)]
Fix previous commit...

5 years agoFix non-inline purge for messagetabs
Sam Lade [Fri, 13 Jan 2012 01:09:29 +0000 (01:09 +0000)]
Fix non-inline purge for messagetabs

5 years agoAddress msgtabs by frozenset of participants
Sam Lade [Thu, 12 Jan 2012 23:15:46 +0000 (23:15 +0000)]
Address msgtabs by frozenset of participants

5 years agotypo--
Sam Lade [Thu, 12 Jan 2012 23:10:09 +0000 (23:10 +0000)]
typo--

5 years agoUse a set of users for msgtab not a list
Sam Lade [Thu, 12 Jan 2012 23:07:31 +0000 (23:07 +0000)]
Use a set of users for msgtab not a list

Prevents issues with duplicates occasionally.

5 years agoWord wrap messagetab header for very big conversations.
Sam Lade [Thu, 12 Jan 2012 22:51:26 +0000 (22:51 +0000)]
Word wrap messagetab header for very big conversations.

5 years agoBump version and docs for 0.3.3
Sam Lade [Thu, 12 Jan 2012 05:04:39 +0000 (05:04 +0000)]
Bump version and docs for 0.3.3

5 years agoLayout tweak on messagetab
Sam Lade [Thu, 12 Jan 2012 19:15:51 +0000 (19:15 +0000)]
Layout tweak on messagetab

5 years agoFix WebTab copy shortcut on Windows
Sam Lade [Thu, 12 Jan 2012 13:40:37 +0000 (13:40 +0000)]
Fix WebTab copy shortcut on Windows

5 years agoWarn on offline users from /msg tab
Sam Lade [Thu, 12 Jan 2012 04:55:41 +0000 (04:55 +0000)]
Warn on offline users from /msg tab

5 years agoHandle commands from /msg tabs normally
Sam Lade [Thu, 12 Jan 2012 04:22:04 +0000 (04:22 +0000)]
Handle commands from /msg tabs normally

Stops people accidentally messaging things that were supposed to be commands.
More logical behaviour.
Includes capture and /msg-ising of /me commands.

5 years agoFix purge in /msg tabs
Sam Lade [Thu, 12 Jan 2012 04:03:28 +0000 (04:03 +0000)]
Fix purge in /msg tabs

5 years agoUpdate /msg handling for room/tab/both option
Sam Lade [Thu, 12 Jan 2012 03:52:31 +0000 (03:52 +0000)]
Update /msg handling for room/tab/both option

5 years agoAdd msg tab radio buttons for room/tab/both to settings
Sam Lade [Thu, 12 Jan 2012 03:35:34 +0000 (03:35 +0000)]
Add msg tab radio buttons for room/tab/both to settings

Rearrange settings dialog to add an extra tab to make room for this and improve
order.

5 years agoDelete message tabs only when room closed
Sam Lade [Thu, 12 Jan 2012 02:52:32 +0000 (02:52 +0000)]
Delete message tabs only when room closed

If the tab is closed, it's kept around and just removed from the tabwidget.
It can then be re-added and retain conversation history.

5 years agoFix tab alerts for messagetabs
Sam Lade [Thu, 12 Jan 2012 01:51:09 +0000 (01:51 +0000)]
Fix tab alerts for messagetabs

5 years agoFix some errors closing tabs when messagetabs are present
Sam Lade [Wed, 11 Jan 2012 19:17:26 +0000 (19:17 +0000)]
Fix some errors closing tabs when messagetabs are present

5 years agoFix image load for messagetabs
Sam Lade [Wed, 11 Jan 2012 19:17:10 +0000 (19:17 +0000)]
Fix image load for messagetabs

5 years agoRemove remote message tab support
Sam Lade [Wed, 11 Jan 2012 02:40:21 +0000 (02:40 +0000)]
Remove remote message tab support

Would be very messy at this point to avoid a copy of the remote message
appearing for every chat tab currently open and avoid the tabs being associated
with a particular room window.
/rmsg is a fairly little-used feature, so this won't be implemented at this
point.

5 years agoAdd option for separate /msg tabs.
Sam Lade [Wed, 11 Jan 2012 02:07:55 +0000 (02:07 +0000)]
Add option for separate /msg tabs.

5 years agoMake chatstream parsing more sane
Sam Lade [Tue, 10 Jan 2012 15:50:11 +0000 (15:50 +0000)]
Make chatstream parsing more sane

Less re-parsing and re-looping over the same data. Use as few separate loops as
possible, and parse only once.

5 years agoSpellingLineEdit registers itself for settings updates
Sam Lade [Tue, 10 Jan 2012 01:00:09 +0000 (01:00 +0000)]
SpellingLineEdit registers itself for settings updates

5 years agoRemove mobile
Sam Lade [Mon, 9 Jan 2012 18:51:18 +0000 (18:51 +0000)]
Remove mobile

Unmaintained and non-functional, with serious dependency issues preventing any
development.
Would need refactoring for an upcoming change - not worth the effort.

5 years agoFix logger issue with getting passed an invalid timestamp
Sam Lade [Tue, 3 Jan 2012 18:30:47 +0000 (18:30 +0000)]
Fix logger issue with getting passed an invalid timestamp

5 years agoImprove debug for occasional signal errors on request construction
Sam Lade [Tue, 3 Jan 2012 18:12:38 +0000 (18:12 +0000)]
Improve debug for occasional signal errors on request construction

5 years agoBump version and docs for 0.3.2 0.3.2
Sam Lade [Tue, 3 Jan 2012 17:14:25 +0000 (17:14 +0000)]
Bump version and docs for 0.3.2

5 years agoFix datetime imports in built version
Sam Lade [Tue, 3 Jan 2012 17:19:45 +0000 (17:19 +0000)]
Fix datetime imports in built version

5 years agoFix display oddities on welcome message
Sam Lade [Tue, 3 Jan 2012 17:12:10 +0000 (17:12 +0000)]
Fix display oddities on welcome message

Stems from incorrect use of unclosed <p> tag.

5 years agoCase-insensitive matching for usernames detection
Sam Lade [Tue, 3 Jan 2012 16:48:25 +0000 (16:48 +0000)]
Case-insensitive matching for usernames detection

The user specified username is checked for away parsing in the userlist and for
not alerting on one's own messages. The server accepts the username case-
insensitively, and the user may change the case on the fly.
Also adds commentary on another flaw with the parsing for the away status in
the userlist.

5 years agoLog format tweak
Sam Lade [Tue, 3 Jan 2012 16:45:14 +0000 (16:45 +0000)]
Log format tweak

Makes timestamps a bit more obviously separated from messages.

5 years agoAdd option to display timestamps in local time
Sam Lade [Tue, 3 Jan 2012 16:43:30 +0000 (16:43 +0000)]
Add option to display timestamps in local time

Rewritten to local in the theme engine if option is enabled.

5 years agoFix exception closing tab before logger created
Sam Lade [Tue, 3 Jan 2012 16:33:45 +0000 (16:33 +0000)]
Fix exception closing tab before logger created

5 years agoAdd logging functionality
Sam Lade [Tue, 3 Jan 2012 04:42:11 +0000 (04:42 +0000)]
Add logging functionality

* Logger class which handles actually writing logs to disk.
* Settings for logging.
* Modification to ThemeEngine to generate plaintext output for the logs as
  well. Strips trailing timestamps, as the log is timestamped itself.
* Menu action to show log directory, which is only present if logging is
  actually enabled.
* Includes alteration to RookChat patch to ensure that HTML comment timestamps
  are generated in GMT not server time, to facilitate logging with timestamps
  in local time.

5 years agoImprove settings dialogue some more
Sam Lade [Tue, 3 Jan 2012 00:40:29 +0000 (00:40 +0000)]
Improve settings dialogue some more

Checkboxes left-aligned with labels to the right. Looks neater.
Font size is now a QSpinBox.

5 years agoFix inline purge code
Sam Lade [Mon, 2 Jan 2012 22:46:52 +0000 (22:46 +0000)]
Fix inline purge code

No longer repeats old buffer once per chatstream refresh. Oops.

5 years agoUse QApplication.instance() rather than clumsy walks through parents
Sam Lade [Mon, 2 Jan 2012 19:58:23 +0000 (19:58 +0000)]
Use QApplication.instance() rather than clumsy walks through parents

5 years agoRefactor
Sam Lade [Mon, 2 Jan 2012 19:52:16 +0000 (19:52 +0000)]
Refactor

Split all code into files per class.
Update build script to still produce a working single file.

5 years agoBump version and docs for 0.3.1 0.3.1
Sam Lade [Mon, 2 Jan 2012 02:27:39 +0000 (02:27 +0000)]
Bump version and docs for 0.3.1

5 years agoAllow inlining purged data
Sam Lade [Mon, 2 Jan 2012 02:09:27 +0000 (02:09 +0000)]
Allow inlining purged data

Drops the purged data into the chatstream at the correct time, overwriting
later items, without clearing the whole backlog. This obviously will not clean
out system messages from older sections of the backlog, but this is an unlikely
use case.

5 years agoCommented out code--
Sam Lade [Sun, 1 Jan 2012 18:36:44 +0000 (18:36 +0000)]
Commented out code--

5 years agoFix msg target left user logic
Sam Lade [Sat, 31 Dec 2011 23:11:08 +0000 (23:11 +0000)]
Fix msg target left user logic

A left user is removed from the list immediately upon a different user being
selected.
If a user leaves and rejoins while targeted, they are correctly returned to the
sorted section of the list, and no longer break and get stuck in wrong target
mode.

5 years agoFix height of input box
Sam Lade [Sat, 31 Dec 2011 22:53:20 +0000 (22:53 +0000)]
Fix height of input box

Steals the height from the QComboBox. Tested on Oxygen, Windows Classic and
Windows 7 and found to behave sanely.

5 years agoFix except statements for GeoIP
Sam Lade [Sat, 31 Dec 2011 21:06:58 +0000 (21:06 +0000)]
Fix except statements for GeoIP

5 years agoAdd link to region code -> name map for geoIP to docs
Sam Lade [Sat, 31 Dec 2011 20:56:46 +0000 (20:56 +0000)]
Add link to region code -> name map for geoIP to docs

5 years agoFix and improve l10n support for userlist away detect
Sam Lade [Sat, 31 Dec 2011 20:55:20 +0000 (20:55 +0000)]
Fix and improve l10n support for userlist away detect

5 years agoCopy link location to selection clipboard if available
Sam Lade [Sat, 31 Dec 2011 11:16:57 +0000 (11:16 +0000)]
Copy link location to selection clipboard if available

5 years agoFix pasting multiline data into input box
Sam Lade [Sat, 31 Dec 2011 10:52:27 +0000 (10:52 +0000)]
Fix pasting multiline data into input box

5 years agoFix file copy logic when dest doesn't exist
Sam Lade [Sat, 31 Dec 2011 02:51:37 +0000 (02:51 +0000)]
Fix file copy logic when dest doesn't exist

5 years agoDocs formatting fail--
Sam Lade [Sat, 31 Dec 2011 02:21:48 +0000 (02:21 +0000)]
Docs formatting fail--

5 years agoBump version and docs for 0.3.0 0.3.0
Sam Lade [Sat, 31 Dec 2011 02:13:21 +0000 (02:13 +0000)]
Bump version and docs for 0.3.0

5 years agoImprove regexes for highlights
Sam Lade [Sat, 31 Dec 2011 02:07:17 +0000 (02:07 +0000)]
Improve regexes for highlights

Never highlight a line spoken by the user. Catch remote /msgs too.

5 years agodocs for geoip
Sam Lade [Sat, 31 Dec 2011 01:37:51 +0000 (01:37 +0000)]
docs for geoip

5 years agoAdd geoIP tooltips on userlist IPs
Sam Lade [Sat, 31 Dec 2011 01:27:15 +0000 (01:27 +0000)]
Add geoIP tooltips on userlist IPs

5 years agoMake data file copying algorithm more intelligent
Sam Lade [Sat, 31 Dec 2011 01:27:04 +0000 (01:27 +0000)]
Make data file copying algorithm more intelligent

5 years agopygeoip support only
Sam Lade [Sat, 31 Dec 2011 01:25:45 +0000 (01:25 +0000)]
pygeoip support only

The C GeoIP library segfaulted in testing, and will therefore not be supported.

5 years agoImport, data copy and settings for geoIP
Sam Lade [Sat, 31 Dec 2011 00:14:52 +0000 (00:14 +0000)]
Import, data copy and settings for geoIP

5 years agoTidy settings dialogue
Sam Lade [Sat, 31 Dec 2011 00:14:13 +0000 (00:14 +0000)]
Tidy settings dialogue

5 years agoDocs for enchant
Sam Lade [Fri, 30 Dec 2011 22:43:22 +0000 (22:43 +0000)]
Docs for enchant

5 years agoAdd spelling suggestions and replacement
Sam Lade [Fri, 30 Dec 2011 22:32:47 +0000 (22:32 +0000)]
Add spelling suggestions and replacement

5 years agoHighlight misspelled words
Sam Lade [Fri, 30 Dec 2011 20:55:50 +0000 (20:55 +0000)]
Highlight misspelled words

5 years agoSettings for spellcheck
Sam Lade [Fri, 30 Dec 2011 19:13:55 +0000 (19:13 +0000)]
Settings for spellcheck

5 years agoMake input box a QPlainTextEdit
Sam Lade [Fri, 30 Dec 2011 18:19:17 +0000 (18:19 +0000)]
Make input box a QPlainTextEdit

Set up to as far as possible behave like the old LineEdit, but it enables
a SyntaxHighlighter for spellcheck purposes.

5 years agoFix WebTab ctrl+c on Windows
Sam Lade [Fri, 30 Dec 2011 15:18:51 +0000 (15:18 +0000)]
Fix WebTab ctrl+c on Windows

5 years agoDon't detach tabs if there's <2 tabs
Sam Lade [Fri, 30 Dec 2011 15:02:52 +0000 (15:02 +0000)]
Don't detach tabs if there's <2 tabs

5 years agoUse correct URL for right click -> copy link location
Sam Lade [Fri, 30 Dec 2011 14:57:50 +0000 (14:57 +0000)]
Use correct URL for right click -> copy link location

Creates a QTextBrowser subclass which overrides the necessary methods to divert
handling of this action and parse the URL correctly before copying.

5 years agoAdd highlighting on /msg event
Sam Lade [Fri, 30 Dec 2011 04:07:37 +0000 (04:07 +0000)]
Add highlighting on /msg event

5 years agoAlerts obey new config settings.
Sam Lade [Fri, 30 Dec 2011 03:57:20 +0000 (03:57 +0000)]
Alerts obey new config settings.

5 years agoMake away input box colour optional
Sam Lade [Fri, 30 Dec 2011 03:08:46 +0000 (03:08 +0000)]
Make away input box colour optional

5 years agoColour input box when /away
Sam Lade [Fri, 30 Dec 2011 03:03:07 +0000 (03:03 +0000)]
Colour input box when /away

5 years agoFix handling of room list request error
Sam Lade [Fri, 30 Dec 2011 02:34:45 +0000 (02:34 +0000)]
Fix handling of room list request error

5 years agoTrack away state
Sam Lade [Fri, 30 Dec 2011 02:30:31 +0000 (02:30 +0000)]
Track away state

5 years agoUse a regex for word highlight detection
Sam Lade [Fri, 30 Dec 2011 01:34:15 +0000 (01:34 +0000)]
Use a regex for word highlight detection

Now will only capture full, rather than partial, words, to prevent false
positives. Also allows a manually specified regex starting with the ~
character.

5 years agoFix line loss issue on Windows.
Sam Lade [Fri, 30 Dec 2011 00:39:20 +0000 (00:39 +0000)]
Fix line loss issue on Windows.

Due to an intermittent IOError trying to print when running with no console.

5 years agoWebTabs: implement refresh
Sam Lade [Thu, 29 Dec 2011 23:11:09 +0000 (23:11 +0000)]
WebTabs: implement refresh

(Also tweaks an outdated docstring)

5 years agoFix empty message send if target selected
Sam Lade [Thu, 29 Dec 2011 23:06:00 +0000 (23:06 +0000)]
Fix empty message send if target selected

5 years agoSave new settings dialog options
Sam Lade [Thu, 29 Dec 2011 22:36:29 +0000 (22:36 +0000)]
Save new settings dialog options

5 years agoSettings dialog: add widgets for new features
Sam Lade [Thu, 29 Dec 2011 21:43:18 +0000 (21:43 +0000)]
Settings dialog: add widgets for new features

5 years agoStrip passwords from raw HTML
Sam Lade [Thu, 29 Dec 2011 13:17:14 +0000 (13:17 +0000)]
Strip passwords from raw HTML

5 years agoBump version and docs for 0.2.6 0.2.6
Sam Lade [Thu, 29 Dec 2011 03:13:45 +0000 (03:13 +0000)]
Bump version and docs for 0.2.6

5 years agoRemove static webpage, add fields for Django page instead
Sam Lade [Thu, 29 Dec 2011 03:05:34 +0000 (03:05 +0000)]
Remove static webpage, add fields for Django page instead

5 years agoInclude exceptions in the debug log
Sam Lade [Thu, 29 Dec 2011 02:49:35 +0000 (02:49 +0000)]
Include exceptions in the debug log

5 years agoParse chatstream data line-by-line
Sam Lade [Thu, 29 Dec 2011 01:48:16 +0000 (01:48 +0000)]
Parse chatstream data line-by-line

5 years agoAlter chatstream open to always cut off <head>
Sam Lade [Thu, 29 Dec 2011 02:04:21 +0000 (02:04 +0000)]
Alter chatstream open to always cut off <head>

5 years agoRework chatstream refresh parsing
Sam Lade [Thu, 29 Dec 2011 01:11:34 +0000 (01:11 +0000)]
Rework chatstream refresh parsing

Buffer complete lines as in regular parsing and clean up.

5 years agoClear incomplete line buffer on new chatstream
Sam Lade [Thu, 29 Dec 2011 00:27:49 +0000 (00:27 +0000)]
Clear incomplete line buffer on new chatstream

Shouldn't cause issues, but just might cause the parser to trip over on rare
occasions, so fixing just in case.

5 years agoAdd raw HTML view widget a la debug log
Sam Lade [Thu, 29 Dec 2011 00:10:38 +0000 (00:10 +0000)]
Add raw HTML view widget a la debug log

5 years agoHopefully improve purge handling with connectivity issues
Sam Lade [Wed, 28 Dec 2011 23:49:47 +0000 (23:49 +0000)]
Hopefully improve purge handling with connectivity issues

5 years agoReverse ctrl+pgup/down shortcuts
Sam Lade [Fri, 9 Dec 2011 00:55:44 +0000 (00:55 +0000)]
Reverse ctrl+pgup/down shortcuts

5 years agoPrevious commit: also prevent exception on WebTabs
Sam Lade [Sun, 4 Dec 2011 20:53:23 +0000 (20:53 +0000)]
Previous commit: also prevent exception on WebTabs

5 years agoHandle currentChanged signal parameter inconsistency
Sam Lade [Sat, 3 Dec 2011 20:02:31 +0000 (20:02 +0000)]
Handle currentChanged signal parameter inconsistency

5 years agoTweak logo to avoid clipping edges of circle
Sam Lade [Thu, 1 Dec 2011 05:19:20 +0000 (05:19 +0000)]
Tweak logo to avoid clipping edges of circle

5 years agoHopefully workaround for Windows chatstream death issue
Sam Lade [Sun, 27 Nov 2011 00:29:04 +0000 (00:29 +0000)]
Hopefully workaround for Windows chatstream death issue