Desktop Text Config

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
7.2
Description:

This little module for the control center gathers in one place all available settings for the desktop icons texts: Font, colors and shadow.

(It extends and is meant to replace "TextShadowEdit".)
Last changelog:

12 years ago

0.3:
- Improved dialog.
- 4 presets are now available for the most common styles of shadow.
- You are now warned when the foreground and the background are
identical and produce an illegible result.

0.2:
- First public release

jcsmooth

12 years ago

Configure went down swell, but during make I got an error saying I was missing libkonq.la

Is this file something I can put into my /usr/lib without messing anything else up and if so could someone send it to me?

Thanks, JC

Report

Laerte

12 years ago

Hi,

I can't install this module in my gentoo box. Configure goes ok, but make fails when building kcm_desktoptext.la. Below are the error messages:

/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -c -o textconfig.lo `test -f 'textconfig.cpp' || echo './'`textconfig.cpp
kshadowsettings.h:43: warning: 'class KShadowSettings' has virtual functions but non-virtual destructor
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -o kcm_desktoptext.la -rpath /usr/kde/3.5/lib/kde3 -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -L/usr/lib -L/usr/qt/3/lib -L/usr/kde/3.5/lib desktoptext.lo textpreviewwidget.lo textconfig.lo -lkdeinit_kdesktop -lkdeui
.libs/textpreviewwidget.o: In function `TextPreviewWidget::cleanup()':
textpreviewwidget.cpp:(.text+0x47b): undefined reference to `KShadowEngine::~KShadowEngine()'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::updatePreview()':
textpreviewwidget.cpp:(.text+0xf72): undefined reference to `KShadowEngine::makeShadow(QPixmap const&, QColor const&)'
textpreviewwidget.cpp:(.text+0xfa2): undefined reference to `KShadowSettings::offsetY() const'
textpreviewwidget.cpp:(.text+0xfb5): undefined reference to `KShadowSettings::offsetX() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::init(QString)':
textpreviewwidget.cpp:(.text+0x14be): undefined reference to `KShadowSettings::KShadowSettings()'
textpreviewwidget.cpp:(.text+0x1802): undefined reference to `KShadowEngine::KShadowEngine(KShadowSettings*)'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::thickness() const':
textpreviewwidget.cpp:(.text+0x19e4): undefined reference to `KShadowSettings::thickness() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::offsetX() const':
textpreviewwidget.cpp:(.text+0x1b64): undefined reference to `KShadowSettings::offsetX() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::selectionType() const':
textpreviewwidget.cpp:(.text+0x1bc4): undefined reference to `KShadowSettings::selectionType() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::factor() const':
textpreviewwidget.cpp:(.text+0x1e68): undefined reference to `KShadowSettings::multiplicationFactor() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::opacity() const':
textpreviewwidget.cpp:(.text+0x1ff8): undefined reference to `KShadowSettings::maxOpacity() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::algorithm() const':
textpreviewwidget.cpp:(.text+0x2198): undefined reference to `KShadowSettings::algorithm() const'
.libs/textpreviewwidget.o: In function `TextPreviewWidget::offsetY() const':
textpreviewwidget.cpp:(.text+0x2314): undefined reference to `KShadowSettings::offsetY() const'
collect2: ld returned 1 exit status
make[2]: ** [kcm_desktoptext.la] Error 1

I tryed both manual install and making a custom ebuild.

Can you help me?

Report

C

Maxilys

12 years ago

I'm definitively not an expert about compilation failures but what I notice is that the used commands totally lack of any reference to X11 libs and includes. AFAIK this is not an option... ;-)

Check your "config.log". Mine says:

X_INCLUDES='-I/usr/X11R6/include'
X_LDFLAGS='-L/usr/X11R6/lib'
...
all_includes='-I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include '
all_libraries='-L/usr/X11R6/lib -L/usr/lib/qt3/lib -L/opt/kde3/lib '

What does yours say?

Report

Laerte

12 years ago

Hi,

Thanks for the reply.

My X11 prefix is /usr, so my config.log lines are

X_EXTRA_LIBS=''
X_INCLUDES='-I.'
X_LDFLAGS='-L/usr/lib'
X_PRE_LIBS=''

I don't think tis will help too much...

May I ask a dumb question?

Where are the .cpp files for kshadowengine.h and ksahdowsettings.h? Or they aren't need?

Report

C

Maxilys

12 years ago

No, no, no! If your X11 is in /usr your X_INCLUDES should be '-I/usr/include'. With '-I.', the includes for X11 will be search in the build tree... where there are definitively not.

I don't know why the X11 includes aren't found. Something is wrong. As a fix, you should try to add the option
--with-extra-includes="/usr/include" for ./configure.

As for the "missing" .cpp files, they aren't needed. They are to be found only in the build tree of KDE and it's not a requirement to have KDE sources on your harddisk to build Desktop Text Config. Lucky you! ;-)

Report

Laerte

12 years ago

Hi,

thank you again for replying.

Adding /usr/include to extra-includes didn't help here. Also added /usr/lib to extra-libs.

I've asked about the "missing" files because those lines:

.libs/textpreviewwidget.o: In function `TextPreviewWidget::cleanup()':
textpreviewwidget.cpp:(.text+0x47b): undefined reference to `KShadowEngine::~KShadowEngine()'

It seems I don't have the code for the destructor compiled here, or at least is not in "-lkdeinit_kdesktop -lkdeui".

Have any idea where the code should be?

I really want to install your module, as it looks very cool.


Thank you in advance,

Laerte.

Report

brazzmonkey

11 years ago

i think i'm getting similar issues because running ./configure gives me : checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!

using kubuntu feisty 64-bit

Report

C

Maxilys

12 years ago

This is a little text file, you can safely add it by hand next to "libkonq.so.*". BUT you should already have it. On "my" SuSE, it's part of the kdebase RPM. Maybe on your distro it's part of a devel package that you must explicitely install. That should be so if you don't have any ".la" files or very few of them with your KDE libs. Or else, it got erased during a filesystem repair and in that case, you just have to re-install it by hand from the same sources you got your KDE (same distro, same version).

Report

jcsmooth

12 years ago

Thanks, I picked up a devel package and got that part working, however now I'm missing -lXss in the /usr/bin/ld binary. I couldn't find any packages to help me out on this one. Any ideas?

Report

C

Maxilys

12 years ago

According to what I found on my system, it's part of the Xorg libs: /usr/X11R6/lib/libXss.*

I think it's another problem of normal vs. devel package. "My" libXss.* belong to the xorg-x11-devel RPM.

Report

dummy_double

12 years ago

Ok I will ;)

Report

dummy_double

12 years ago

Hi the program works fine on my openSUSE system.

Feature request:
Can you ad a option that the text will be on the right side of the icon?

Report

C

Maxilys

12 years ago

Sorry but that's impossible. KDesktop has no option to change the position of the text of the icons.

You should propose it for KDE 4.

Report

pupil

12 years ago

anyway look at this:
http://img261.imageshack.us/img261/9849/snapshot22by7.jpg

just wondering, did i do something wrong with the setting or something? it's been like that since your first release.

btw i use opensuse 10.2, and the patch does not applied in suse version other than 10.0.

Report

C

Maxilys

12 years ago

Just one word about the patch: I applied it on my SuSE 10.1 and it does nothing visible, harmful, whatever.

As for the ghost shadow, that can't be me. The module does nothing but setting options. It doesn't hack its way into KDE to do strange things. The "worst" is does is to talk to the desktop --through legal channels-- to warn it that the config has changed.

Aren't there problems with the icon labelled "Brow... something"? Have you already tried to move it to see if the ghost moves too?

And could you show me the [FMSEttings] section of your "kdesktoprc"? ($HOME/.kde/share/config/kdesktoprc) Once I'll be sure that there are only legal values, I'll guaranty you that I'm not responsible.

Report

pupil

12 years ago

refering to your reply on: 02/16/2007, 23:22.

it doesn't work. with or without ItemTextBackground & NormalTextColor the ghost shadow still appear everytime i restart kde. so now i just set the Lines of Text value to 2. then the ghost shadow dissapear for good :p
perhaps there's a bug in KDE or something (??).
the weird part is, the ghost only appear under the truncated "Network Browsing" label, it doesn't appear in other truncated label.
anyway, thanks for helping me out. and great module. as always rpms for suse v9.3, 10.0, 10.1, SLED 10, 10.2, and "Bleeding Edge" Factory are available in both my repos & KDE:Community repos. my site only contains for opensuse 10.2 i586.

Report

C

Maxilys

12 years ago

Yep! You found a bug, I think. Report! ;-)

And thank you for the RPM. I'm going to warn everybody...

Report

pupil

12 years ago

let me rephrase my prev post. i only applied the patch to suse 10.0
%if suse_version == 1000
%patch1
%endif

as for the ghost shadow. the label is "network browser". its truncated, but the shadow isnt. when i change something in this module the ghost disappear, but when i restart kde it appear again. i never said that you or this module is responsible, i only try to find whats wrong, because you obviously have better knowledge about this shadowing thing than me. i'll post the file when i'm home.

Report

pupil

12 years ago

here you go...

[FMSettings]
ShadowEnabled=true
ShadowParameters=1,1,5.000000,192.000000,1,1,1
ShowFileTips=true
StandardFont=Sans Serif,12,-1,5,50,0,0,0,0,0
TextHeight=1
TextWidth=0

Report

C

Maxilys

12 years ago

AFAIK, the values here are valid ones. Just one question: What have you done of the lines "ItemTextBackground" and
"NormalTextColor"?

Did you remove them because you thought it was useless to show the colors you use or are they actually missing?

Report

pupil

12 years ago

no, i didn't remove anything. i paste it as it is.

Report

C

Maxilys

12 years ago

We got a problem here. I don't know how that's even possible but two colors should appear in this section. And even if they are absent when the config is read, the module should write them when it saves back the config. It makes me wonder where your kdesktop picks the colors it uses. And, maybe, that explains your problem. *Maybe*...

First, look if the entries "ItemTextBackground" and "NormalTextColor" aren't present elsewhere in your kdesktoprc. If they are present, I'd say that it shouldn't be a bad idea to move them at the beginning of the FMSettings section. If they aren't present, add them.

ItemTextBackground=0,0,255
NormalTextColor=255,0,0

Launch the module. The preview should have red text with a blue shadow. Change the colors and apply.

After that, check that the entries have changed in your kdesktoprc and that the colors you chose have been applied of course.

I think that *should* kill the ghost shadow forever because *I think* that these missing entries "puzzle" kdestop.

Keep me informed. (Reply to one of my previous message in order that I'll be informed. I think we reached the maximum depth.)

Report

equinoxel

12 years ago

Nice one :)

It's quite what I wanted to do in the first place when I wrote the shadow engine...

From an usability pov, there is little advantage to have a shadow tweaker so powerful, just because most users just want the text to be visible...

IMHO a list of nice presets will have more success :)

Anyway, it's great to have this tool (which imo will be quite useful for developers).

ps: if you could add an export/import feature... :)

Cheers,

Laur

Report

C

Maxilys

12 years ago

An import/export feature? I hope you're kidding. That would be a little exaggerated. The shadow settings are already complicate enough.

But I got an idea after I read your post. It is possible to make the settings accessible for the most computer illiterate users if I replace all the numbers with sliders and appropriate labels. For example, instead of decay style/factor, the label will be "Shadow outline" and the slider go from "Solid" to "Blurred". And behind the funny widgets, the module calculates the corresponding options for the shadow engine that will stop to be so "right under your nose".

As for the presets, I already had in mind to extend their list but I don't think it will be useful if I implement the right "fuzzy widgets".

Wait and see... because I found a bug and I have to make another release sooner or later.

Report

linux3114a

12 years ago

desktoptext-config-0.3-1.lotus.i586.rpm
at
http://home.scarlet.be/raoul.linux/lotus.html

Report

12 years ago

0.3:
- Improved dialog.
- 4 presets are now available for the most common styles of shadow.
- You are now warned when the foreground and the background are
identical and produce an illegible result.

0.2:
- First public release

12345678910
product-maker Count:104 Rating: 7.17
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.3
updated Feb 17 2007
added Feb 11 2007
downloads today
0
page views today 2