Recent

Author Topic: TurboPower Visual Planit Lazarus port version 1.04 released  (Read 37060 times)

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #15 on: August 28, 2016, 09:58:07 am »
By the way, I just noticed that in DayView, the 24h mark is displayed as 4 when granularity is 30 minutes. See attachment.
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #16 on: August 28, 2016, 11:24:59 am »
@wp Here is the translation file for French. It is 96% complete. The exceptions being some phrases and single characters that I wasn't sure what they represented. I'll need to see them in the context of a live application to be able to translate them properly.
Thank you. I added your translation to trunk (r5108). The "fulldemo" automatically detects the new language, but note that the other strings used by the demo code itself will be untranslated unless you translate "demo.po" as well.

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #17 on: August 28, 2016, 11:40:23 am »
By the way, I just noticed that in DayView, the 24h mark is displayed as 4 when granularity is 30 minutes. See attachment.
That 24h mark shouldn't be there at all because it would belong to the next day. Fixed in r5109.

I also replaced the systemcolor used for the navbar and title bar background of the fulldemo by a hard-coded color - it seems that on your system this color maps to white which makes the white text a bit hard to see.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #18 on: August 28, 2016, 02:18:05 pm »
@wp Thanks for fixing that.

I just applied the translation & TvPlanit no longer displays French accented characters properly. If no translation is applied, the display is correct. See the screenshots below. The first screenshot is the fulldemo with the french translation applied & the second is my application without the translation i.e TvPlanit is in English but the accented characters are displayed properly.
« Last Edit: August 28, 2016, 02:19:36 pm by JD »
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #19 on: August 29, 2016, 11:05:55 am »
Hmm... French accented characters in the month names are displayed correctly here. What is your Lazarus version, your OS? For Windows only: Look at the full demo's UpdateFormatSettings (unit demoMain): Is the define UTF8_CALLS active?

[EDIT]
If UTF8_CALLS is not active (any non-trunk Lazarus version) then month and day names are not converted to utf8. This is fixed in r5110. Maybe your problem?
« Last Edit: August 29, 2016, 11:41:11 am by wp »

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #20 on: August 29, 2016, 12:24:25 pm »
Strange? UTF8_CALLS is defined but the GetLocaleFormatSettingsUTF8(LCID, DefaultSettings) is not being called. In any case r5110 worked so that means the code in the {$ELSE} part of procedure UpdateFormatSettings (line 271) is what is being executed.

BTW I'm using Windows 7 and the Lazarus 1.6/3.0
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #21 on: August 29, 2016, 12:41:29 pm »
I remember that there was a bug report on the enable/disable state of defines not being correctly displayed.

Good that's working now.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #22 on: August 29, 2016, 03:30:11 pm »
I'm having trouble getting printing to work in my application. I'm using the code in the fulldemo but all I get is a blank canvas in PrintPreview.  :(
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #23 on: August 29, 2016, 04:41:27 pm »
Did you replace VpControlLink1 by another instance? This is where the demo print layouts are stored. Double-click on the VpControlLink to open the "Print format designer" - it should look like the one in the attached screenshot. If the Formats list is empty you must design your own formats from this dialog - follow the instructions in the wiki, or load the prepared samples in "printerdefs.xml" in the fulldemo folder. You can do that also at runtime from the File menu commands of the demo.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1738
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #24 on: August 29, 2016, 06:55:31 pm »
Latest TvPlanit with the mORMot and live feedback.
See attached mp4.
Short and only 10fps, but I hope it will show the realtime update of the two clients.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #25 on: August 30, 2016, 11:23:36 am »
@wp I've got it now thanks.
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #26 on: August 30, 2016, 11:50:57 am »
Latest TvPlanit with the mORMot and live feedback.
See attached mp4.
Short and only 10fps, but I hope it will show the realtime update of the two clients.

Very good. I don't have real-time updates in my model yet. Are you using an database event notifier on the remote backend that makes all connected clients refresh their views?

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1738
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #27 on: August 30, 2016, 12:25:19 pm »
@JD
For now cheap update flag polling of the TvPlanit REST server.
Problem with bidirectional websockets (that would allow for signaling of clients when data has changed) is, that some proxies would not allow them.

JD

  • Hero Member
  • *****
  • Posts: 1848
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #28 on: August 30, 2016, 12:56:31 pm »
@JD
For now cheap update flag polling of the TvPlanit REST server.
Problem with bidirectional websockets (that would allow for signaling of clients when data has changed) is, that some proxies would not allow them.

Exactly that is what I was wondering about. By the way, how did you implement the update flag polling such that it is database agnostic?

Thanks,

JD
Windows - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe),
Linux Mint - Lazarus 2.1/FPC 3.2 (built using fpcupdeluxe)

mORMot; Zeos 8; SQLite, PostgreSQL & MariaDB; VirtualTreeView

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1738
Re: TurboPower Visual Planit Lazarus port version 1.04 released
« Reply #29 on: August 30, 2016, 01:04:24 pm »
That's the mORMot !
It implements a server state flag and a table state flag to track changes.
And, with the mORMot, all implementation details are abstracted away from the user.

 

TinyPortal © 2005-2018