Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » GraphDraw/GraphCtrl
Re: GraphDraw/GraphCtrl [message #57116 is a reply to message #57071] Wed, 26 May 2021 16:22 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 671
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Did you have time to play around with the selection ?

I deployed it to one of applications and had to make some adjustments and add WhenSelectAction.
==> This first use-case is now OK for me.
Next step is to try to deploy it to ScatterSeries.
With these two use-cases, maybe selection will be stabilized.

How does you're use-case go ?

I will deliver tonight a new version

[Updated on: Wed, 26 May 2021 16:23]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #57157 is a reply to message #57116] Tue, 01 June 2021 23:23 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 671
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Here is my lattest update Smile


There is a lot of cleaning up and corrections around the GraphSerie style editor
As for selection, I had to do some small refactoring (nothing really heavy, but you will be impacted: See PaintDataPoint() and MCoordinateConverter


All modifications are:
Quote:
* GraphSerieEditorInterface:
* Added default filling of Functions<> (no more needed to fill them in custom creator function)
* Changed procedure used to create GraphSerieEditorInterface instances
==> You now have to use GraphSerieEditorInterface::Create()
This allows to "catch" types and have full type checking in code
* Added RevertChange() : used by the [Cancel] button (All is managed automatically by doing a copy of the Style before modifying it)
!! NOTE !!! : All MY_GrapSerie::StyleGS structs now MUST have an 'operator=()' defined (needed to copy styles)

* Series Style editor :
* corrected serie selection when filtering & sorting
* Corrected preview update
* added upddate of preview in list table

* Added FitToData() capacities to SimpleJobSerie example

* Corrected FitToVisibleData() (had same behaviour as FitToData() since refactoring)

* Removed method: CustomData::PaintDataPoint(BufferPainter& , int scale, const MCoordinateConverter& coordConv )
Only version with 'int style' is kept

* Introduced class : MCoordinateConverter
* Changed GraphSerie::SelectXxx() API (to use MCoordinateConverter)
* Changed GraphSerie::PaintXxx() API (to use MCoordinateConverter)
* Changed CustomData class methods API (to use MCoordinateConverter)

* Added GraphSerie selection related action Functions<>
Event<> WhenPreSelectAction;
Event<> WhenPostSelectAction;
Re: GraphDraw/GraphCtrl [message #57189 is a reply to message #57157] Mon, 07 June 2021 10:43 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 104
Registered: February 2019
Location: India
Experienced Member
Hello Didier!

You are taking GraphCtrl to new heights! Really cool 👍

Sorry last few days I got busy with other things a bit, also I was trying to show the info by mouse hover, which I could achieve by using CursorImage(), though perhaps it wasn't the intention of that method, but it is working quite well.

In a few days I'll download the new package and will sync.

Noticed one thing though now, which wasn't happening before:
If the GraphCtrl Rect has non-positive height or width (which might happen by window resizing or by moving a Splitter), then it crashes at this line:

index.php?t=getfile&id=6467&private=0

Please notice the _plotRect

Will let you know how the syncing goes, very soon.


Regards,
Pradip
Re: GraphDraw/GraphCtrl [message #57191 is a reply to message #57189] Mon, 07 June 2021 13:33 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 671
Registered: November 2008
Location: France
Contributor
Hello Pradip,

I also noticed this crash, and did not take time to look into it.
I will do it as soon as I have some time
Re: GraphDraw/GraphCtrl [message #57196 is a reply to message #57191] Tue, 08 June 2021 22:28 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 671
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Quote:
If the GraphCtrl Rect has non-positive height or width (which might happen by window resizing or by moving a Splitter), then it crashes at this line:


just surround the code with :
if ( ( _plotRect.GetHeight() > 0 ) && ( _plotRect.GetWidth() > 0 ) ) {


just like for 'paint PLOT DATA'

It will be in next release Smile
Re: GraphDraw/GraphCtrl [message #57306 is a reply to message #57196] Sat, 03 July 2021 06:18 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 104
Registered: February 2019
Location: India
Experienced Member
Hello Didier!

I'm all done with the syncing, and woah!

You indeed made huge progress with the selection, using ALT and CTRL and SHIFT, amazing! And the style editor improvements are done wonderfully as well. Though as of now I'm not using the full potential of these features, but very soon I will!

Kudos to you 👍👍



Regards,
Pradip
Re: GraphDraw/GraphCtrl [message #57307 is a reply to message #57306] Sat, 03 July 2021 09:41 Go to previous message
Didier is currently offline  Didier
Messages: 671
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Glad to see the recent evolutions fit you're apps needs Thumbs Up
If you need to change the default keys, look at :
GraphCtrl_Keys::Reset()


I am less working on it these days : rainning has stopped Very Happy
So i'm spending most of my spare time taking advantage of the good weather Cool

[Updated on: Sat, 03 July 2021 09:44]

Report message to a moderator

Previous Topic: STEM4U
Next Topic: Firebird 3
Goto Forum:
  


Current Time: Tue Oct 26 14:44:44 CEST 2021

Total time taken to generate the page: 0.01237 seconds