pyrook:pyrook.git
5 years agoBump version and docs for 0.3.10 0.3.10
Sam Lade [Sat, 28 Apr 2012 16:20:43 +0000 (17:20 +0100)]
Bump version and docs for 0.3.10

5 years agoFix userlist crash with non-ASCII labels
Sam Lade [Sat, 28 Apr 2012 16:13:44 +0000 (17:13 +0100)]
Fix userlist crash with non-ASCII labels

5 years agoRevert "Partial revert of 3df59dcc3f07b5751"
Sam Lade [Wed, 25 Apr 2012 03:28:26 +0000 (04:28 +0100)]
Revert "Partial revert of 3df59dcc3f07b5751"

This reverts commit 0ef576a4a2574fdd8c5f31a55ec94d5a3a67fbbd. Issue was
a false positive caused by library bugs and not related to PyRook
changes.

5 years agoPartial revert of 3df59dcc3f07b5751
Sam Lade [Mon, 23 Apr 2012 16:10:25 +0000 (17:10 +0100)]
Partial revert of 3df59dcc3f07b5751

It removed an error signal disconnect, which ought not to have done
anything as it wasn't connected. After user error reports, it appears it
*did* do something after all.

5 years agoBump version and docs for 0.3.9 0.3.9
Sam Lade [Sat, 21 Apr 2012 00:57:08 +0000 (01:57 +0100)]
Bump version and docs for 0.3.9

5 years agoShow notification for network errors on userlist timeout
Sam Lade [Sat, 21 Apr 2012 00:23:14 +0000 (01:23 +0100)]
Show notification for network errors on userlist timeout

This was not technically an error, just the 20 second timer to start the
next request expiring, so was not being detected.

5 years agoUse RinkChat external link scheme for topic URLs
Sam Lade [Wed, 18 Apr 2012 22:11:33 +0000 (23:11 +0100)]
Use RinkChat external link scheme for topic URLs

Fixes some odd behaviour with topic links to other parts of RinkWorks

5 years agoFix error when pressing enter with an empty input box on MessageTab
Sam Lade [Tue, 17 Apr 2012 02:20:58 +0000 (03:20 +0100)]
Fix error when pressing enter with an empty input box on MessageTab

5 years agoFix timestamps to local time option
Sam Lade [Mon, 26 Mar 2012 00:24:35 +0000 (01:24 +0100)]
Fix timestamps to local time option

Was previously displaying in UTC regardless of real timezone.

5 years agoBump version and docs for 0.3.8 0.3.8
Sam Lade [Fri, 23 Mar 2012 02:33:09 +0000 (02:33 +0000)]
Bump version and docs for 0.3.8

5 years agoAdd notification about network connectivity issues
Sam Lade [Fri, 23 Mar 2012 02:23:17 +0000 (02:23 +0000)]
Add notification about network connectivity issues

Status notifier as cornerWidget in TabWidget, which displays a simple
notification if the userlist or message send requests fail.

5 years agoAdd sent message history to SpellingLineEdit
Sam Lade [Fri, 23 Mar 2012 01:24:44 +0000 (01:24 +0000)]
Add sent message history to SpellingLineEdit

Up and down arrows scroll through recent messages

5 years agoPrevent constant chatstream reloading after kick
Sam Lade [Fri, 23 Mar 2012 00:33:55 +0000 (00:33 +0000)]
Prevent constant chatstream reloading after kick

Introduced by reopen backoff in d5b7f39c1.

5 years agoAdd option to start pdb on exceptions
Sam Lade [Thu, 8 Mar 2012 16:16:53 +0000 (16:16 +0000)]
Add option to start pdb on exceptions

Checks config file for debug_pdb value. No GUI config - useful only to
developers. Starts pdb from the generic exception handler.
Hopefully helpful for debugging the QNetworkReply return issue.

5 years agoAlert on /memo as well as /msg
Sam Lade [Sat, 3 Mar 2012 23:28:44 +0000 (23:28 +0000)]
Alert on /memo as well as /msg

5 years agoBump version and docs for 0.3.7 0.3.7
Sam Lade [Fri, 2 Mar 2012 22:43:49 +0000 (22:43 +0000)]
Bump version and docs for 0.3.7

5 years agoDebug writes to stderr and takes config option
Sam Lade [Fri, 2 Mar 2012 22:32:11 +0000 (22:32 +0000)]
Debug writes to stderr and takes config option

Can disable debug write to stderr with config/debug in settings. Doesn't
disable debug log window. No settings dialogue option as this would be
confusing to most users.

5 years agoSplit QSettings convenience methods into separate file
Sam Lade [Fri, 2 Mar 2012 22:31:37 +0000 (22:31 +0000)]
Split QSettings convenience methods into separate file

5 years agoBehave better if login is cancelled
Sam Lade [Fri, 2 Mar 2012 20:21:58 +0000 (20:21 +0000)]
Behave better if login is cancelled

Checks if the server is actually logged in and retries if not before
opening a new chat tab.

5 years agoAdd proxy support
Sam Lade [Fri, 2 Mar 2012 20:12:13 +0000 (20:12 +0000)]
Add proxy support

Includes config dialogue page for proxies and support for SOCKS5 or HTTP
proxies.

5 years agoError check fontsize value read in from conf
Sam Lade [Fri, 2 Mar 2012 20:11:54 +0000 (20:11 +0000)]
Error check fontsize value read in from conf

5 years agoRendered logos rerendered with Qt 4.8
Sam Lade [Fri, 2 Mar 2012 18:28:07 +0000 (18:28 +0000)]
Rendered logos rerendered with Qt 4.8

5 years agoFix images in streams on Qt 4.8
Sam Lade [Fri, 2 Mar 2012 18:27:46 +0000 (18:27 +0000)]
Fix images in streams on Qt 4.8

5 years agoQt 4.8 fix: Specify content-type header for form POSTs
Sam Lade [Thu, 1 Mar 2012 13:04:29 +0000 (13:04 +0000)]
Qt 4.8 fix: Specify content-type header for form POSTs

5 years agoBump version and docs for 0.3.6 0.3.6
Sam Lade [Mon, 27 Feb 2012 00:50:42 +0000 (00:50 +0000)]
Bump version and docs for 0.3.6

5 years agoFix up some userlist parse issues
Sam Lade [Mon, 27 Feb 2012 00:47:56 +0000 (00:47 +0000)]
Fix up some userlist parse issues

Encountered during Oscar chat, with extra stuff in the userlist which was being
hit by the parser.

5 years agoPrevent CPU eating if network connection totally dies
Sam Lade [Sun, 26 Feb 2012 00:00:52 +0000 (00:00 +0000)]
Prevent CPU eating if network connection totally dies

If the connection becomes marked as unavailable, the chatstream network reply
signals finished immediately, leading to an infinite loop of retrying the
stream fetch.
We now check the time the stream was opened and sleep for a few seconds if it
was too recent.

5 years agoFix theme engine when not rewriting timestamps
Sam Lade [Sat, 11 Feb 2012 22:38:54 +0000 (22:38 +0000)]
Fix theme engine when not rewriting timestamps

5 years agoBump version and docs for 0.3.5 0.3.5
Sam Lade [Sat, 11 Feb 2012 16:33:42 +0000 (16:33 +0000)]
Bump version and docs for 0.3.5

5 years agoCopy status messages to messagetabs
Sam Lade [Sat, 11 Feb 2012 15:55:58 +0000 (15:55 +0000)]
Copy status messages to messagetabs

Join, part, away, back.
Notifications are not triggered for these messages in tabs.

5 years agoFix message tabs being case sensitive for usernames
Sam Lade [Sat, 11 Feb 2012 15:39:01 +0000 (15:39 +0000)]
Fix message tabs being case sensitive for usernames

5 years agoAllow expanded versions of bot images to be shown
Sam Lade [Sat, 11 Feb 2012 02:46:31 +0000 (02:46 +0000)]
Allow expanded versions of bot images to be shown

Bot images use some JavaScript to change the size when clicked. This patch adds
the ability to show a full-size version of the image in a popup by clicking on
it. Altering the image size in place like the web client is not cleanly
possible.

5 years agoFix slow shutdown in some cases
Sam Lade [Sat, 11 Feb 2012 02:45:00 +0000 (02:45 +0000)]
Fix slow shutdown in some cases

If the window closeEvent was triggered directly, rather than by a global
close_all, the application did not get quitting set, and so waited 20 seconds
after window close before the timeout killed it. Should now exit immediately in
this case.

5 years agoFix loading new images in message tabs
Sam Lade [Thu, 9 Feb 2012 23:19:33 +0000 (23:19 +0000)]
Fix loading new images in message tabs

5 years agoUse /b when sending from message tabs with bots
Sam Lade [Thu, 9 Feb 2012 23:02:00 +0000 (23:02 +0000)]
Use /b when sending from message tabs with bots

5 years agoTimestamp handling fixes when a font size is specified
Sam Lade [Thu, 9 Feb 2012 19:37:59 +0000 (19:37 +0000)]
Timestamp handling fixes when a font size is specified

Fix rewriting to local time and stripping before logging.

5 years agoCleaner fix for FindFlags on older PySide
Sam Lade [Thu, 9 Feb 2012 04:22:30 +0000 (04:22 +0000)]
Cleaner fix for FindFlags on older PySide

5 years agoDetect and linkify URLs in topics
Sam Lade [Wed, 8 Feb 2012 17:35:27 +0000 (17:35 +0000)]
Detect and linkify URLs in topics

5 years agoImprove spellcheck tokeniser
Sam Lade [Wed, 8 Feb 2012 16:25:23 +0000 (16:25 +0000)]
Improve spellcheck tokeniser

No longer includes apostrophes at the beginning or end of a word.

5 years agoFix find on older versions of PySide
Sam Lade [Wed, 8 Feb 2012 14:16:04 +0000 (14:16 +0000)]
Fix find on older versions of PySide

5 years agoFix userlist and chatstream when people are shrunken
Sam Lade [Tue, 7 Feb 2012 22:12:53 +0000 (22:12 +0000)]
Fix userlist and chatstream when people are shrunken

Was causing some parsing crashes.

5 years agoMake find close button trigger cleanup functions correctly
Sam Lade [Tue, 7 Feb 2012 20:59:58 +0000 (20:59 +0000)]
Make find close button trigger cleanup functions correctly

5 years agoWrapper object for browser scroll handling
Sam Lade [Tue, 7 Feb 2012 19:48:05 +0000 (19:48 +0000)]
Wrapper object for browser scroll handling

Used when inserting data into the streams, or when altering the size
otherwise (e.g. when showing/hiding the find controls). Supports the with
statement.

5 years agoAdd find function for chat/message streams.
Sam Lade [Tue, 7 Feb 2012 18:57:48 +0000 (18:57 +0000)]
Add find function for chat/message streams.

5 years agoPrevent logging to a room called "Loading..." in some cases
Sam Lade [Mon, 6 Feb 2012 19:03:11 +0000 (19:03 +0000)]
Prevent logging to a room called "Loading..." in some cases

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