[bt-devel] important: major changes in SVN

Martin Gruner mg.pub at gmx.net
Fri Dec 28 05:45:50 MST 2007


Hi,

these last days I had opportunity to work on BT a bit. I made some major 
changes that you should be informed about. Please read carefully.

a) CSS: We used to have <div class="entry"> for text with "linebreaks" and 
<span class="entry"> for text without "linebreaks". Due to an incompatibility 
with OSIS I changed the second case to <div class="entry" style="display: 
inline;">. This breaks some of our css (at least crazy.tmpl) when linebreaks 
are off.
Could a CSS specialist please look into that? We can adjust the generated html 
if neccessary, but we cannot work with <span> as verse container. Maybe this 
can be fixed with CSS tweaks.

b) I removed tons of KDE includes. The KDE->QT transition is well underway. 
Developers should not use KDE classes for new code any more (example: use 
QFileDialog instead of KFileDialog).

c) I changed the main window from an XML-baseddd KDE window to QMainWindow. 
The menu bar and main toolbar layout is now static.

d) QApplication is used everywhere except for one place. The main app needs to 
stay KApplication as long as we still use KDE stuff. Nevertheless, developers 
should only use the QApplication interface.

e) I changed the storage system for all configuration files from KConfig to 
QSettings (INI file). This should work without data loss. Please test.

f) I reworked locale system to use QT's locale mechanism tr() instead of KDE's 
i18n(). The locale files are now stored in QT's format (.ts files). BibleTime 
will find and use them even if it is only installed in the build directory 
(development build).
Some data loss could not be prevented. Translators will  have to re-check 
their files.

@Joachim: we will have to update the website translation page to reflect the 
new system. Translators now have to work with the .ts files for message 
translation.

g) For main window actions, I changed KAction to QAction. This needs to be 
done for all other parts as well. Help is welcome.

Regards,

mg




More information about the bt-devel mailing list