quassel.git
10 years agoIntroduce Clickable::activate() to put handling clicks in a single place
Manuel Nickschas [Tue, 25 Aug 2009 15:30:35 +0000 (17:30 +0200)]
Introduce Clickable::activate() to put handling clicks in a single place

Moved out of ChatItem.

10 years agoFix chatmonitorfilter
Sebastian Goth [Tue, 25 Aug 2009 18:30:20 +0000 (20:30 +0200)]
Fix chatmonitorfilter

10 years agoTry workarounding bug #663 ("Teh Systray Heisenbug")
Manuel Nickschas [Tue, 25 Aug 2009 15:50:56 +0000 (17:50 +0200)]
Try workarounding bug #663 ("Teh Systray Heisenbug")

Setting uniform row heights for BufferView seems to keep Quassel from crashing. This is not
a long-term solution and has some sideeffects (don't use different font sizes for network and buffer
items when playing with QSS!), but if it helps people to start Quassel, fine with me.

Please report if it fixes the crashes for you!

10 years agofixing Quit propagation
Marcus Eggenberger [Tue, 25 Aug 2009 11:18:24 +0000 (13:18 +0200)]
fixing Quit propagation

10 years agoWho would have thought, that macros need to be defined before they can
Marcus Eggenberger [Tue, 25 Aug 2009 10:15:57 +0000 (12:15 +0200)]
Who would have thought, that macros need to be defined before they can
be used...
/me whistles innocently...

10 years agoadded missing macros
Marcus Eggenberger [Tue, 25 Aug 2009 10:05:58 +0000 (12:05 +0200)]
added missing macros

10 years agoi18n cs.ts finaly finish most of the annoying buffer parts + history
Tomáš Chvátal [Mon, 24 Aug 2009 20:16:22 +0000 (22:16 +0200)]
i18n cs.ts finaly finish most of the annoying buffer parts + history

10 years agoWupps, Altlast-Alarm
Manuel Nickschas [Mon, 24 Aug 2009 23:11:06 +0000 (01:11 +0200)]
Wupps, Altlast-Alarm

MessageModelItem::_msg was never set or used. Thus, we shouldn't return that for
the MessageRole and rather delegate that to ChatLineModelItem...

10 years agoFix slots for new syncobj
Manuel Nickschas [Mon, 24 Aug 2009 22:48:14 +0000 (00:48 +0200)]
Fix slots for new syncobj

10 years agoDecomplexify & reencapsulate
Manuel Nickschas [Mon, 24 Aug 2009 22:03:58 +0000 (00:03 +0200)]
Decomplexify & reencapsulate

10 years agoAdapt to SignalProxy changes
Manuel Nickschas [Mon, 24 Aug 2009 21:26:30 +0000 (23:26 +0200)]
Adapt to SignalProxy changes

10 years agoDon't show notifications for ignored messages
Sebastian Goth [Sun, 16 Aug 2009 19:56:37 +0000 (21:56 +0200)]
Don't show notifications for ignored messages

10 years agoIgnorelist settingspage
Sebastian Goth [Sun, 16 Aug 2009 15:10:35 +0000 (17:10 +0200)]
Ignorelist settingspage

10 years agoIntroduce IgnoreList backend
Sebastian Goth [Sun, 16 Aug 2009 15:07:45 +0000 (17:07 +0200)]
Introduce IgnoreList backend
Implements core- and clientside filtering and the synchronized ignorelist
itself.

10 years agooopsie... there were some macros missing on windows...
Marcus Eggenberger [Mon, 24 Aug 2009 21:36:00 +0000 (23:36 +0200)]
oopsie... there were some macros missing on windows...

10 years agofixing bulk updates of SyncObjects
Marcus Eggenberger [Mon, 24 Aug 2009 19:50:54 +0000 (21:50 +0200)]
fixing bulk updates of SyncObjects

10 years agosmall fixes
Marcus Eggenberger [Mon, 24 Aug 2009 19:23:53 +0000 (21:23 +0200)]
small fixes

10 years agoFixing small glitch in a header file
Marcus Eggenberger [Mon, 24 Aug 2009 17:07:02 +0000 (19:07 +0200)]
Fixing small glitch in a header file
I always wonder why my gcc doesn't complain about that...

10 years agoProtocol version bump
Marcus Eggenberger [Mon, 24 Aug 2009 16:44:25 +0000 (18:44 +0200)]
Protocol version bump
Yes that means I just broke client core compatibility :)

10 years agoclean up
Marcus Eggenberger [Mon, 24 Aug 2009 16:42:55 +0000 (18:42 +0200)]
clean up

10 years agoFitting the SyncableObjects to the new Style
Marcus Eggenberger [Sun, 23 Aug 2009 17:08:44 +0000 (19:08 +0200)]
Fitting the SyncableObjects to the new Style
... now that was tiresome...

10 years agoTesting the new SyncObjects concept - looking good so far
Marcus Eggenberger [Fri, 14 Aug 2009 17:09:08 +0000 (19:09 +0200)]
Testing the new SyncObjects concept - looking good so far

10 years agoGoodbye SyncRelay, you will live on in our hearts...
Marcus Eggenberger [Fri, 14 Aug 2009 10:21:35 +0000 (12:21 +0200)]
Goodbye SyncRelay, you will live on in our hearts...

10 years agoSignalProxy::ExtendedMetaObject cleanup
Marcus Eggenberger [Thu, 13 Aug 2009 20:01:45 +0000 (22:01 +0200)]
SignalProxy::ExtendedMetaObject cleanup

10 years agoTesting a new concept for the SyncableObjects.
Marcus Eggenberger [Sun, 9 Aug 2009 16:21:07 +0000 (18:21 +0200)]
Testing a new concept for the SyncableObjects.

10 years agoFix QSS syntax
Manuel Nickschas [Mon, 24 Aug 2009 19:18:27 +0000 (21:18 +0200)]
Fix QSS syntax

We want #netsplit-join rather than #netsplitJoin, and #netsplit-quit
rather than #netsplitQuit.

10 years agoMake netsplits pretty on clientside
Sebastian Goth [Mon, 24 Aug 2009 16:03:09 +0000 (18:03 +0200)]
Make netsplits pretty on clientside

10 years agoHandle very short netsplits
Sebastian Goth [Mon, 24 Aug 2009 16:01:27 +0000 (18:01 +0200)]
Handle very short netsplits

10 years agoIntroduce netsplit detection/handling
Sebastian Goth [Thu, 30 Jul 2009 15:33:44 +0000 (17:33 +0200)]
Introduce netsplit detection/handling

10 years agoDon't wrap the input line (really this time!)
Manuel Nickschas [Mon, 24 Aug 2009 08:48:23 +0000 (10:48 +0200)]
Don't wrap the input line (really this time!)

Really.

10 years agoAdd -fno-strict-aliasing to CFLAGS
Manuel Nickschas [Sun, 23 Aug 2009 12:31:28 +0000 (14:31 +0200)]
Add -fno-strict-aliasing to CFLAGS

Apparently Qt < 4.6 breaks strict aliasing rules, which makes gcc-4.4 complain loudly when compiling
Quassel (and possibly leads to spurious errors). Hence, for now we disable strict aliasing.

10 years agoMove Clickable out of ContentsChatItem
Manuel Nickschas [Sat, 22 Aug 2009 16:29:43 +0000 (18:29 +0200)]
Move Clickable out of ContentsChatItem

We want to reuse this for the URL handling in the topic widget, so move this out of
ChatIteminto its own class (with proper encapsulation) and file.

As (the also new) ClickableList extends QList<Clickable>, we can continue to use it as
normal.

10 years agoDon't enable wordwrap for the input widget
Manuel Nickschas [Sat, 22 Aug 2009 15:36:56 +0000 (17:36 +0200)]
Don't enable wordwrap for the input widget

10 years agomore cs updates
Tomáš Chvátal [Sat, 22 Aug 2009 12:21:48 +0000 (14:21 +0200)]
more cs updates

10 years agoRedesign the topic widget
Manuel Nickschas [Fri, 21 Aug 2009 22:06:44 +0000 (00:06 +0200)]
Redesign the topic widget

This replaces the old ugly hackish topicwidget by something cleaner. We now use a stacked widget to switch
between display and edit mode. In edit mode, we use a MultiLineEdit rather than a single QLineEdit.
Instead of doing voodooish resizing of the parent widget, we use proper sizeHints and sizePolicies that make
Qt's layout system actually work with this.

There are still some features missing though, notably clickable URLs and the clear button. Will
be implemented ASAP.

Closes #506, fixes #573, closes #608.

10 years agoIntroducing StyledLabel
Manuel Nickschas [Fri, 21 Aug 2009 22:02:26 +0000 (00:02 +0200)]
Introducing StyledLabel

This widget evolved from TopicLabel and provides a QFrame that contains a mIRC-formatted string
(e.g. it accepts mIRC's format codes in the input). Rather than the old drag-to-scroll behavior,
this widget provides a tooltip. It also uses proper QTextLayouts instead of assembling text snippets
manually.

Note that URLs are not yet clickable. This will be added later.

10 years agoAdd ResizingStackedWidget
Manuel Nickschas [Fri, 21 Aug 2009 21:57:15 +0000 (23:57 +0200)]
Add ResizingStackedWidget

This extends QStackedWidget by adding a dynamic sizeHint that only depends on the
currently selected page. Geometry is updated on page change. Use this widget if you want
a stacked container that dynamically adapts to the size of the visible page only rather than
caring for all the pages. Note that pages should have QSizePolicy::Ignore for this to work properly.

10 years agoSlightly improve behavior on resize
Manuel Nickschas [Fri, 21 Aug 2009 21:54:57 +0000 (23:54 +0200)]
Slightly improve behavior on resize

10 years agoRename setters to be more Qt-like
Manuel Nickschas [Wed, 19 Aug 2009 06:51:54 +0000 (08:51 +0200)]
Rename setters to be more Qt-like

Also add a setter for enabling wordwrap in the MultiLineEdit. Will be needed
for the topic widget.

10 years agoUpdate cs.ts
Tomáš Chvátal [Fri, 21 Aug 2009 17:02:10 +0000 (19:02 +0200)]
Update cs.ts

10 years agoAdd a settingspage for configuring the input widget
Manuel Nickschas [Tue, 18 Aug 2009 21:19:20 +0000 (23:19 +0200)]
Add a settingspage for configuring the input widget

Centralize the now-scattered input-line related settings in their own settingspage;
also add some new options.

10 years agoBring back old inputline history behavior
Manuel Nickschas [Tue, 18 Aug 2009 12:29:32 +0000 (14:29 +0200)]
Bring back old inputline history behavior

Cursor down now again always saves the current line in history and starts a new one.
Brought back from the dead by user request.

10 years agoImprove inputline behavior
Manuel Nickschas [Mon, 17 Aug 2009 20:54:38 +0000 (22:54 +0200)]
Improve inputline behavior

* Don't show scrollbars in single line mode
* Don't update geometry more often than necessary
* Allow selecting text with shift + up/down

10 years agochange highlight regexp boundaries from \b to \W
Daniel Albers [Wed, 12 Aug 2009 22:45:00 +0000 (00:45 +0200)]
change highlight regexp boundaries from \b to \W

fixes #708
\b is between \w\W or \W\w, therefore doesn't match "^nickname^ something" due to "^ " being \W\W characters

10 years agoBuild on Qt 4.4 again
Manuel Nickschas [Sun, 16 Aug 2009 13:01:48 +0000 (15:01 +0200)]
Build on Qt 4.4 again

10 years agoDon't show the header widget in bufferviews
Manuel Nickschas [Sun, 16 Aug 2009 11:06:53 +0000 (13:06 +0200)]
Don't show the header widget in bufferviews

This just wastes valuable space and looks ugly.

10 years agoIntroduce multi-line editing for the inputline
Manuel Nickschas [Sun, 16 Aug 2009 10:58:07 +0000 (12:58 +0200)]
Introduce multi-line editing for the inputline

This introduces the new MultiLineEdit that basically enhances the old InputLine widget by being
able to expand to show more than one line. All non-editing related things have been moved out of the
MultiLineEdit to ease reuse in other widgets. For example, InputWidget-specific keypresses are now handled
in InputWidget rather than MultiLineEdit.

Closes #209, closes #213, fixes #386. Thanks to Squider for input (I saw your patch too late, but I did refactor
things anyway...)

10 years agoDon't set a default font for the chatview
Manuel Nickschas [Thu, 13 Aug 2009 18:16:43 +0000 (20:16 +0200)]
Don't set a default font for the chatview

10 years agoDisable unchecked font widget
Manuel Nickschas [Wed, 12 Aug 2009 22:53:14 +0000 (00:53 +0200)]
Disable unchecked font widget

10 years agoshow correct core start time in coreinfodlg
Daniel Albers [Wed, 12 Aug 2009 21:38:32 +0000 (23:38 +0200)]
show correct core start time in coreinfodlg

10 years agos/Buffer/Chat/g
Manuel Nickschas [Wed, 12 Aug 2009 18:50:29 +0000 (20:50 +0200)]
s/Buffer/Chat/g

This removes the mention of "Buffer" from the UI, as it was confuzzling users and making our Usability Queen
unhappy. It has been replaced by "Chat", which might not always be as precise, but should make more sense for users.
A "Buffer View" is now a "Chat List", and in some cases, "Window" has been used (e.g. the "Status Buffer" is now
a "Status Window" - which, again, isn't really the correct term, but probably makes more sense to people not used
to cli-based chat clients.

Obviously, within the code and the DB everything is still a Buffer (and it'll stay that way).

10 years agoChange defaults for some ChatView-related settings
Manuel Nickschas [Wed, 12 Aug 2009 18:04:42 +0000 (20:04 +0200)]
Change defaults for some ChatView-related settings

Since we don't have settings.qss on a new install, we cannot enable things by default.
User must manually enable them and apply the dialog for generating the stylesheet.

10 years agoMove "Appearance" to "Interface" in settingspages
Manuel Nickschas [Wed, 12 Aug 2009 15:47:52 +0000 (17:47 +0200)]
Move "Appearance" to "Interface" in settingspages

This makes more sense, as not all settings concern only the appearance of things.
It's more about how the interface looks and acts like.

10 years agoRemove FontsSettingsPage - hasn't been used in months
Manuel Nickschas [Wed, 12 Aug 2009 15:04:39 +0000 (17:04 +0200)]
Remove FontsSettingsPage - hasn't been used in months

10 years agoMore sensible default color for unread messages
Manuel Nickschas [Wed, 12 Aug 2009 08:11:15 +0000 (10:11 +0200)]
More sensible default color for unread messages

10 years agoDon't merge all custom formats with the base format
Manuel Nickschas [Wed, 12 Aug 2009 07:09:23 +0000 (09:09 +0200)]
Don't merge all custom formats with the base format

This was needed at some point, but now it just screws up things. Should make
combinations (like "color and bold") work again properly.

10 years agoMake all color values work
Manuel Nickschas [Wed, 12 Aug 2009 07:04:32 +0000 (09:04 +0200)]
Make all color values work

Note to self: shifting an uint without explicit typecast might well end up
in a signed int.

10 years agoMake URLs stylable and fix on-hover underline
Manuel Nickschas [Tue, 11 Aug 2009 21:45:56 +0000 (23:45 +0200)]
Make URLs stylable and fix on-hover underline

You can now use ::url in stylesheets to define how URLs should look like.
Default is palette(link) which uses the system color for that purpose. Since this
is applied after layouting, you shouldn't use attributes that change the font geometry.

10 years agoDon't set application stylesheet if no Qt-specific sections are found
Manuel Nickschas [Mon, 10 Aug 2009 11:50:08 +0000 (13:50 +0200)]
Don't set application stylesheet if no Qt-specific sections are found

10 years agoshame on me...
Marcus Eggenberger [Sun, 9 Aug 2009 16:41:40 +0000 (18:41 +0200)]
shame on me...

10 years agofixes #764 - client crashes on lines from nicks like "__"
Marcus Eggenberger [Sat, 8 Aug 2009 10:33:57 +0000 (12:33 +0200)]
fixes #764 - client crashes on lines from nicks like "__"
Nicks consisting only of underscores are no longer treated as a variant of some basename.

10 years agoMake compile without webkit again
Manuel Nickschas [Fri, 7 Aug 2009 08:06:08 +0000 (10:06 +0200)]
Make compile without webkit again

10 years agoAdapt to new topic message type
Manuel Nickschas [Thu, 6 Aug 2009 20:48:19 +0000 (22:48 +0200)]
Adapt to new topic message type

10 years agoInstall a default stylesheet
Manuel Nickschas [Thu, 6 Aug 2009 17:56:10 +0000 (19:56 +0200)]
Install a default stylesheet

This adds basic formatting and should make Quassel usable out of the box.
Colors shamelessly stolen from Konversation by now (same colors as the settingspage
defaults); improvements welcome!

10 years agoAdd new ItemView settingspage
Manuel Nickschas [Thu, 6 Aug 2009 17:00:30 +0000 (19:00 +0200)]
Add new ItemView settingspage

This can be used to define custom colors and fonts for the chat list and nick list.
As with the ChatView, only basic things are settable here; more complex stuff requires
a custom stylesheet.

10 years agoAdd itemview styles to generated settings.qss
Manuel Nickschas [Thu, 6 Aug 2009 16:59:22 +0000 (18:59 +0200)]
Add itemview styles to generated settings.qss

10 years agoThrow out unneeded font setters, adapt to ItemViewSettings
Manuel Nickschas [Thu, 6 Aug 2009 16:58:57 +0000 (18:58 +0200)]
Throw out unneeded font setters, adapt to ItemViewSettings

10 years agoUse state="channel-event" rather than "event" to make things more obvious
Manuel Nickschas [Thu, 6 Aug 2009 16:57:31 +0000 (18:57 +0200)]
Use state="channel-event" rather than "event" to make things more obvious

10 years agoAdd and use ItemViewSettings
Manuel Nickschas [Thu, 6 Aug 2009 16:52:46 +0000 (18:52 +0200)]
Add and use ItemViewSettings

Also, this allows us to use UiStyleSettings with a subgroup.

10 years agoMake custom ChatView font disableable
Manuel Nickschas [Tue, 4 Aug 2009 07:44:04 +0000 (09:44 +0200)]
Make custom ChatView font disableable

Add a checkbox for it, now that we can.

10 years agoRemove label from FontSelector
Manuel Nickschas [Tue, 4 Aug 2009 07:42:46 +0000 (09:42 +0200)]
Remove label from FontSelector

Earlier the FontSelector had its own label, which in retrospect was a stupid idea.
Much better to just consider the demo widget and choose button parts of the FontSelector
widget and have settingspages supply their own description label - or checkbox.

This makes it much easier to have a font disableable, without introducing the need for
multi-property autowidgets.

10 years agoVarious fixes for the style engine
Manuel Nickschas [Mon, 3 Aug 2009 22:53:58 +0000 (00:53 +0200)]
Various fixes for the style engine

This should iron out the last remaining buggy corner cases. I hope.

10 years agoDon't put loaded formats directly in the format cache
Manuel Nickschas [Mon, 3 Aug 2009 21:54:53 +0000 (23:54 +0200)]
Don't put loaded formats directly in the format cache

Bad... idea.

10 years agoHonor disableDecoration() again
Manuel Nickschas [Mon, 3 Aug 2009 18:29:51 +0000 (20:29 +0200)]
Honor disableDecoration() again

10 years agoStyle NickView via UiStyle
Manuel Nickschas [Mon, 3 Aug 2009 17:41:29 +0000 (19:41 +0200)]
Style NickView via UiStyle

NickView now asks UiStyle for appropriate Qt::ItemDataRoles for styling its items,
including the item icons.
This replaces the need for custom delegates altogether.

10 years agoStyle BufferView via UiStyle
Manuel Nickschas [Mon, 3 Aug 2009 17:39:12 +0000 (19:39 +0200)]
Style BufferView via UiStyle

BufferView now asks UiStyle for appropriate Qt::ItemDataRoles for styling its items,
including the item icons.
This replaces the need for setting the palette of custom delegates.

10 years agoProvide means for styling itemviews via UiStyle
Manuel Nickschas [Mon, 3 Aug 2009 17:35:45 +0000 (19:35 +0200)]
Provide means for styling itemviews via UiStyle

QssParser now parses ChatListItem { } and NickListItem { } with "type" and "state"
properties to allow defining styles for BufferView and NickView.

The formats are provided via Qt::ItemRoles, for a given networkmodel index. This allows
for easy access from the itemviews.

10 years agoMake UiStyle accessible from the uisupport module
Manuel Nickschas [Mon, 3 Aug 2009 17:32:29 +0000 (19:32 +0200)]
Make UiStyle accessible from the uisupport module

This provides GraphicalUi::uiStyle() to access UiStyle from widgets in uisupport.

10 years agoIntroduce extra Palette roles for UiStyle
Manuel Nickschas [Thu, 30 Jul 2009 21:23:29 +0000 (23:23 +0200)]
Introduce extra Palette roles for UiStyle

In particular BufferView and NickView use several colors that can't be expressed properly
by QPalette roles. We thus introduce various UiStyle::ColorRoles which can be used by the UI and
defined via stylesheets (as usual, in Palette {} blocks).

10 years agoTweak ChatItem/ChatLine layouting
Manuel Nickschas [Thu, 30 Jul 2009 19:27:30 +0000 (21:27 +0200)]
Tweak ChatItem/ChatLine layouting

This makes the scene react properly to dataChanged() signals from the MessageModel. Only affected
ChatLines are relayouted, the rest moved as appropriately. We can now also call updateGeometryByWidth()
with unchanged width to force a relayout in case the style has changed.

10 years agoMake setData() work for the FlagsRole
Manuel Nickschas [Thu, 30 Jul 2009 19:26:06 +0000 (21:26 +0200)]
Make setData() work for the FlagsRole

10 years agoDon't try to mark all incoming messages with the Backlog flag
Manuel Nickschas [Thu, 30 Jul 2009 19:21:44 +0000 (21:21 +0200)]
Don't try to mark all incoming messages with the Backlog flag

This was an ugly workaround the need for which went away when BacklogManager was introduced.
Anyway, setData() with the FlagsRole was ignored by MessageModelItem...

10 years agoUpdate ChatView properly on style changes
Manuel Nickschas [Thu, 30 Jul 2009 15:45:52 +0000 (17:45 +0200)]
Update ChatView properly on style changes

Since we have the cached wraplists back for the moment, we need to invalidate the caches
for all ChatLineModelItems before relayouting the scene. So instead of having each ChatView trigger
the layout change for his scene, we now inform the ChatLineModel itself, which invalidates its
items' caches and then emits a dataChanged() signal that is caught by the scenes.

10 years agoRevert "Remove the word boundary cache"
Manuel Nickschas [Thu, 30 Jul 2009 15:10:55 +0000 (17:10 +0200)]
Revert "Remove the word boundary cache"

We'll look into those issues again later. For now prevent performance degradation.

This reverts commit 94f4e9d385d32eb1bb8fbf1c9736ca3ccc31cdd6.

10 years agoRevert "Introduce a timer for resizing the ChatView"
Manuel Nickschas [Thu, 30 Jul 2009 15:10:05 +0000 (17:10 +0200)]
Revert "Introduce a timer for resizing the ChatView"

We'll look into those issues again later. For now prevent performance degradation.

This reverts commit 63d178b9ca67b7072a05f5afbd12b4eaedd1f17f.

10 years agoInitially display the current color in KColorDialog
Manuel Nickschas [Thu, 30 Jul 2009 09:10:01 +0000 (11:10 +0200)]
Initially display the current color in KColorDialog

When clicking on a ColorButton in KDE, we would start with white rather than
the button's current color.

10 years agoGenerate and load settings.qss
Manuel Nickschas [Thu, 30 Jul 2009 08:56:19 +0000 (10:56 +0200)]
Generate and load settings.qss

ChatViewSettingsPage now generates (via QtUiStyle) a stylesheet representing the
style settings made in the configuration dialog. This makes the ChatView settingspage
fully functional; also, all changes are applied to ChatView immediately.

10 years agoTweak ChatViewSettingsPage
Manuel Nickschas [Thu, 30 Jul 2009 08:54:37 +0000 (10:54 +0200)]
Tweak ChatViewSettingsPage

* Add default sender colors, shamelessly stolen from Konversation for now
* Fix taborder
* Move font/color settings to [QtUiStyle], as we can then cleanly access it

10 years agoStylesheetify the marker line color
Manuel Nickschas [Thu, 30 Jul 2009 08:39:50 +0000 (10:39 +0200)]
Stylesheetify the marker line color

This is now treated as a new palette role "marker-line" and can be set in
a Palette {} section as follows:

Palette { marker-line: #123456; }

10 years agoDon't wrap the timestamp
Manuel Nickschas [Wed, 29 Jul 2009 22:58:51 +0000 (00:58 +0200)]
Don't wrap the timestamp

10 years agoMerge all stylesheet formats with the base format
Manuel Nickschas [Wed, 29 Jul 2009 22:52:21 +0000 (00:52 +0200)]
Merge all stylesheet formats with the base format

10 years agoRemove obsolete methods
Manuel Nickschas [Wed, 29 Jul 2009 22:43:08 +0000 (00:43 +0200)]
Remove obsolete methods

10 years agoPrepare for more than 15 message types
Manuel Nickschas [Wed, 29 Jul 2009 22:39:59 +0000 (00:39 +0200)]
Prepare for more than 15 message types

10 years agoDon't reset FontSelector font on style change
Manuel Nickschas [Wed, 29 Jul 2009 21:50:05 +0000 (23:50 +0200)]
Don't reset FontSelector font on style change

Qt resets the font of all widgets if the application stylesheet is set.
Thus, we intercept the ChangeEvent and restore the custom font for FontSelector.

10 years agoReload stylesheet after changing it in the AppearanceSettingsPage
Manuel Nickschas [Wed, 29 Jul 2009 18:32:09 +0000 (20:32 +0200)]
Reload stylesheet after changing it in the AppearanceSettingsPage

10 years agoAllow reloading stylesheets at runtime
Manuel Nickschas [Wed, 29 Jul 2009 17:16:45 +0000 (19:16 +0200)]
Allow reloading stylesheets at runtime

We can now relayout the ChatScene using ChatScene::layout() and this is used whenever
UiStyle changes. This means that it's now possible to reload stylesheets at runtime and
reflect this in the ChatView without restarting the client.

10 years agoIntroduce a timer for resizing the ChatView
Manuel Nickschas [Wed, 29 Jul 2009 15:49:54 +0000 (17:49 +0200)]
Introduce a timer for resizing the ChatView

This allows for smooth resizing, as the layout is only calculated at most once every 100ms.

10 years agoRemove the word boundary cache
Manuel Nickschas [Wed, 29 Jul 2009 15:31:05 +0000 (17:31 +0200)]
Remove the word boundary cache

This removes the pre-calculation of word boundaries, which we used to speed up chatline height
computation.

This should also fix the wordwrap issues we had with some fonts.

10 years agoAdd configuration option for a custom stylesheet
Manuel Nickschas [Tue, 28 Jul 2009 22:02:19 +0000 (00:02 +0200)]
Add configuration option for a custom stylesheet

Configure -> Appearance now allows you to select a custom stylesheet that should be loaded.
This will override both the default stylesheet and the settings.qss containing your dialog-based
settings; it will be overridden by --qss specified on the command line.

10 years agoMove color and font settings to [Colors] and [Fonts]
Manuel Nickschas [Tue, 28 Jul 2009 21:21:11 +0000 (23:21 +0200)]
Move color and font settings to [Colors] and [Fonts]

Better to keep those separate, rather than lumping them together with all the rest
of the ChatView/__default__ stuff.