[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: kword default look
From:       Cyrille Berger <cberger () cberger ! net>
Date:       2009-03-23 22:52:10
Message-ID: 200903232352.10207.cberger () cberger ! net
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Monday 23 March 2009, Boudewijn Rempt wrote:
> Look in krita's code for that -- we actually install an rc file now.
It's here:
http://websvn.kde.org:80/trunk/koffice/krita/data/kritarc?revision=936996&view=markup

And add this to your CMakeLists.txt:
install( FILES kritarc DESTINATION ${CONFIG_INSTALL_DIR} )

Basically the rc file in ${CONFIG_INSTALL_DIR} get loaded before the one in 
${KDEHOME}/share/config , so default value end up there, and only if the user 
make custom changes, the file in share/config is changed. (which is basically 
the case for the "state", but not for the shapes selection)

-- 
Cyrille Berger

[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" \
content="1" /><style type="text/css">p, li { white-space: pre-wrap; \
}</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; \
font-weight:400; font-style:normal;">On Monday 23 March 2009, Boudewijn Rempt \
wrote:<br> &gt; Look in krita's code for that -- we actually install an rc file \
now.<br> It's here:<br>
http://websvn.kde.org:80/trunk/koffice/krita/data/kritarc?revision=936996&amp;view=markup<br>
 <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;"><br></p>And add this to your CMakeLists.txt:<br> install( FILES \
kritarc DESTINATION ${CONFIG_INSTALL_DIR} )<br> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Basically the rc file \
in ${CONFIG_INSTALL_DIR} get loaded before the one in ${KDEHOME}/share/config , so \
default value end up there, and only if the user make custom changes, the file in \
share/config is changed. (which is basically the case for the "state", but not for \
the shapes selection)<br> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"><br></p>-- <br> Cyrille Berger</p></body></html>



_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic