Review Request: Make mouse cursor size configurable

Lukas Sommer sommerluk at gmail.com
Sun Jul 17 09:26:37 BST 2011



> On July 12, 2011, 8:56 a.m., Christoph Feck wrote:
> > kcontrol/input/xcursor/xcursortheme.cpp, line 73
> > <http://git.reviewboard.kde.org/r/101701/diff/1/?file=24784#file24784line73>
> >
> >     Do you mean the sizes are always > 0, or do you mean the number of entries in the list is > 0 ("never empty")?
> >     
> >     Do we need some logic to prevent it saying "Available sizes:" when only one size is available? But I am not sure if i18n can handle that.

It means "never empty".

This could be a solution to the plural problem:

        // The translation is aware of plural forms. i18ncp uses the first integer argument to
        // distinguish plural forms. The first and the second argument are QString. So we use
        // sizeList.size() as third argument to provide proper support for plural forms. This 
        // works, although it is never referenced with %3 in the string itself. Although we
        // provide english strings only for "1 item" and for "more than 1 item", but i18ncp
        // will silently expand to as many plural forms as necesarry in the target language.
        m_description = i18ncp(
          "@info/plain This is the description of the cursor themes. The first argument is the "
            "original description that comes from the index.theme file. The second argument is "
            "the list of available sizes, which is never empty. This string is localized with "
            "support for plural forms: You can make different singular/plural translations "
            "depending on the number (!) of list items in the second argument.",
          "%1 (Size: %2)"            /* only 1 item in sizeListString      */
          "%1 (Available sizes: %2)" /* more than 1 item in sizeListString */
          ).arg(m_description).arg(sizeliststring).arg(sizeList.size());

I'll test this after holiday.


- Lukas


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101701/#review4633
-----------------------------------------------------------


On June 20, 2011, 10:04 a.m., Lukas Sommer wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101701/
> -----------------------------------------------------------
> 
> (Updated June 20, 2011, 10:04 a.m.)
> 
> 
> Review request for KDE Base Apps, KDE Runtime, kdelibs, and Christoph Feck.
> 
> 
> Summary
> -------
> 
> X11 mouse cursor themes can contain cursors in multiple sizes, making them pseudo-scalable.
> 
> It is yet possible in KDE to configure manually the mouse cursor size (editing kcminput.rc). However, the GUI of the corresponding KControl module didn't provide support to change this. This patch add support for changing the mouse cursor size to the GUI.
> 
> This are mostly GUI related changes. The underlying data structure XCursorTheme did yet provide support for choosing different sizes and only needed some adjustments.
> 
> 
> This addresses bug 90444.
>     http://bugs.kde.org/show_bug.cgi?id=90444
> 
> 
> Diffs
> -----
> 
>   kcontrol/input/xcursor/xcursortheme.cpp a987487 
>   kcontrol/input/xcursor/themepage.ui 2e38054 
>   kcontrol/input/xcursor/xcursortheme.h b474086 
>   kcontrol/input/xcursor/themepage.h 902148f 
>   kcontrol/input/xcursor/themepage.cpp 24b9efe 
>   kcontrol/input/xcursor/previewwidget.h f4d2c4e 
>   kcontrol/input/xcursor/previewwidget.cpp 3c264fc 
>   kcontrol/input/xcursor/cursortheme.h 8f7834b 
>   kcontrol/input/xcursor/legacytheme.h 23c9d5f 
> 
> Diff: http://git.reviewboard.kde.org/r/101701/diff
> 
> 
> Testing
> -------
> 
> Tested locally. Works fine for me. Also when using non-standard font DPI values.
> 
> 
> Screenshots
> -----------
> 
> 
>   http://git.reviewboard.kde.org/r/101701/s/188/
> 
>   http://git.reviewboard.kde.org/r/101701/s/189/
> 
> 
> Thanks,
> 
> Lukas
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20110717/448f25fd/attachment.htm>


More information about the kde-core-devel mailing list