[Kst] [Kst-plot/kst] c2c978: show progress bar while reloading data sources

Peter Kümmel syntheticpp at gmx.net
Sat Mar 15 10:49:05 UTC 2014


On 14.03.2014 23:22, Nicolas Brisset wrote:
> Peter,
>
> Good job! Your fix seems to work well. I tested the 4 cases I'm aware of where a file gets parsed:
> - Create vector from the menu with an unused data file
> - Reload an existing file
> - Data wizard
> - Change data file
> In all cases I get appropriate feedback :-) The only buglet I saw is that when reloading from file we get only the text (Reading field...) but no progress bar. I know with QXmlStreamreader it's not possible to know in advance how many vectors we'll read, but the progress bar moving back and forth is better than nothing and does not seem to come in that case.
>
> Other topics of interest:
> 1) While doing some tests I noticed that the cmake call prints something about .po files. And I cross-checked the bug report about translations, which says we should extract messages to 2 different files (one for the Qt version and another one for the KDE version). If someone understands how that's all supposed to work, I'd be grateful for some details
> 2) Looking at the marble source code to try and understand a bit more about translations I stumbled over this in qtmain.cpp, which called my attention. I haven't tried it yet, but it sounds interesting. If we could get the OpenGL backend to work correctly, that could be nice and right now it's clearly not working as it should:
>
> #if QT_VERSION < 0x050000
>      // The GraphicsSystem needs to be set before the instantiation of the
>      // QApplication. Therefore we need to parse the current setting
>      // in this unusual place :-/
>      QSettings graphicsSettings("KDE", "Marble Virtual Globe"); // keep the parameters here
>      QString const graphicsString = graphicsSettings.value("View/graphicsSystem", "raster").toString();
>      QApplication::setGraphicsSystem( graphicsString );
> #endif
>

Nice, it's worth a try.


> So to sum up: apart from the fixlet mentioned above, I'd like to see whether we can get translations packaged and then I'd be for a quick release of 2.0.8.
> If someone wants to test the OpenGL trick, maybe it's also worth a try, but I personally would rather concentrate on some testing first.
>
> Nicolas
>
> ----- Mail original -----
>> De: "Peter Kümmel" <syntheticpp at gmx.net>
>> À: kst at kde.org
>> Envoyé: Vendredi 14 Mars 2014 21:14:38
>> Objet: [Kst] [Kst-plot/kst] c2c978: show progress bar while reloading data sources
>>
>> Branch: refs/heads/master
>>    Home:   https://github.com/Kst-plot/kst
>>    Commit: c2c97845b2a999053c3cf402749660edd60278b0
>>        https://github.com/Kst-plot/kst/commit/c2c97845b2a999053c3cf402749660edd60278b0
>>    Author: Peter Kümmel <syntheticpp at gmx.net>
>>    Date:   2014-03-14 (Fri, 14 Mar 2014)
>>
>>    Changed paths:
>>      M src/datasources/ascii/asciisource.cpp
>>      M src/libkst/updatemanager.cpp
>>
>>    Log Message:
>>    -----------
>>    show progress bar while reloading data sources
>>
>>
>>
>> _______________________________________________
>> Kst mailing list
>> Kst at kde.org
>> https://mail.kde.org/mailman/listinfo/kst
>>
>



More information about the Kst mailing list