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++ » Bazaar » GraphDraw/GraphCtrl
GraphDraw/GraphCtrl [message #53791] Fri, 01 May 2020 12:20 Go to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Pradip wrote on Fri, 01 May 2020 12:02
Hello Didier,

Thanks for replying! Yes exactly, I need date/time on x-axis. I'm trying to make something like this:
index.php?t=getfile&id=6064&private=0

I already have a tree and an array (synced) showing the activities, I will need to sync them with the graph. Also zooming is important, it should be able to zoom in to days (S, M, T, W...) as in the image, and while zooming out it could show weeks, then months, quarter and finally year.

I won't really need layout designer, in any case I'll have to manipulate it with code.

Thanks a lot, I'll try it once you upload it Smile



Well you can definitly display the days/weeks/wonths as you wan't but you will have to :
  • make you're own GridAxisDraw child class with own grid style drawing (or maybe I could push further into Chameleon capacities)
  • Add time custom display format method (The exact same format is not available out of the box)

For all the zoom/scroll, verything you need is available.
There is also a Linking feature that allows to sync axis between graphs (when one zooms or scrolls, the other ones follow) : maybe you could use this to link to you're grid to the graph Y axis
Re: GraphDraw/GraphCtrl [message #53794 is a reply to message #53791] Fri, 01 May 2020 13:04 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 61
Registered: February 2019
Location: India
Member
Quote:
make you're own GridAxisDraw child class with own grid style drawing (or maybe I could push further into Chameleon capacities)
Add time custom display format method (The exact same format is not available out of the box)

I'll try it with my limited capacity Laughing. It will be fine to get something close if not same.

Quote:
For all the zoom/scroll, verything you need is available.
There is also a Linking feature that allows to sync axis between graphs (when one zooms or scrolls, the other ones follow) : maybe you could use this to link to you're grid to the graph Y axis

Exactly what I was planning to do!


Regards,
Pradip
Re: GraphDraw/GraphCtrl [message #53795 is a reply to message #53794] Fri, 01 May 2020 13:30 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Here is the first part of GraphCtrl packages

[Updated on: Sun, 03 May 2020 16:09]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #53796 is a reply to message #53795] Fri, 01 May 2020 13:37 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Here is the sencond part.

I packaged my demo app GraphCtrl_demo_GUI (which doesn't look how it should since Layout Designer properties are no more taken into account (for the moment))

Take a look at : GraphCtrl_Demo/CustomDataSource_WF.h
This is the cutom data class used to display the bars you saw on my screenshot

Everything compiles fine with lattest Upp/trunk on windows and linux

[Updated on: Sun, 03 May 2020 16:09]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #53799 is a reply to message #53796] Sat, 02 May 2020 10:16 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3143
Registered: August 2008
Ultimate Member
Maybe the Ctrl name would have to be something like GanttCtrl Smile

Best regards
IƱaki
Re: GraphDraw/GraphCtrl [message #53801 is a reply to message #53799] Sat, 02 May 2020 11:38 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Hello Koldo,

Yes why not have a pre-configured GanttCtrl ready-to go out of the box Smile

But first I have to simplify GraphCtrl/GraphDraw architecture (CRTP layering), since Chameleon introduction is going way to complex du to the layering technique I used, and the use of LayoutDesigner is less needed (that was the first reason for going with CRTP layers) ... so I could probably kick-out a lot of complexity and make it more usable

Re: GraphDraw/GraphCtrl [message #53808 is a reply to message #53801] Sun, 03 May 2020 15:46 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Hello Pradip,

I started the GanttCtrl class so that you can see where to start coding and it was also at test for me to see if all was goiing to work as intended before letting you search how to do it.

Here is what I get:
index.php?t=getfile&id=6067&private=0

I will upload code later today
  • Attachment: Scatter.png
    (Size: 10.57KB, Downloaded 300 times)

[Updated on: Sun, 03 May 2020 15:59]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #53809 is a reply to message #53808] Sun, 03 May 2020 16:08 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
here is the first part

[Edit] deleted dowload file

[Updated on: Sun, 10 May 2020 14:53]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #53810 is a reply to message #53809] Sun, 03 May 2020 16:10 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Here is the second part

[Edit] deleted dowload file

[Updated on: Sun, 10 May 2020 14:54]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #53836 is a reply to message #53810] Thu, 07 May 2020 21:10 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Did you download the code ?
Was it useful for you ?
Re: GraphDraw/GraphCtrl [message #53837 is a reply to message #53836] Fri, 08 May 2020 09:37 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 61
Registered: February 2019
Location: India
Member
Hello Didier,

Sorry for replying late, struggling without salary Sad

It's amazing that you made a custom GanttCtrl! Thanks a lot.

I realized that I need to keep the data set ready for making the graph, so I have learned to use S_* structures last few days, reading every line from database was taking long time. I'll be ready in 2 more days, then I'll download the code and try to make the graph. Thanks again Smile



Regards,
Pradip
Re: GraphDraw/GraphCtrl [message #53838 is a reply to message #53837] Fri, 08 May 2020 09:43 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Glad to here this helps you.
Hope you will get a salary soon Confused

Before writing the GanttCtrl, I also refactored GraphDraw/GraphCtrl CRTP part that had become useless and to complex : I almost kicked out all of CRTP Smile
Things are simpler now (although all is not completelly finished)

[Updated on: Sun, 10 May 2020 14:55]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #53876 is a reply to message #53838] Sun, 10 May 2020 14:53 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Hello Pradip,

I made some refactoring, simplifications, cleaning, namespace/include management, one two bug corrections and a compilation issue with latest Upp svn version

Please use this last version

EDIT : removed attachement (see further)

[Updated on: Mon, 18 May 2020 00:01]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #53895 is a reply to message #53876] Wed, 13 May 2020 17:42 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 61
Registered: February 2019
Location: India
Member
Hello Didier,

I've downloaded it. I'm using MSVS17 compiler. GanttCtrl_Test compiles fine (except conversion and possible loss of data warnings) and I'm getting the same graph.

However, GraphCtrl_Demo is giving some errors, perhaps all in Chameleon, see the image.

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

Though I could do without any Chameleon capability for now, to understand the working of GraphCtrl, running the demo would be useful.

I'll study more (please bear with my limited coding knowledge) and revert.



Regards,
Pradip

[Updated on: Thu, 14 May 2020 06:37]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #53896 is a reply to message #53895] Wed, 13 May 2020 20:51 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
Hello Pradip,

Well this is strange, under linux all compiles fine with lattest svn version
The missing functions can be found in uppsrc/CtrlLib/Ch.h so it shoudn't be a problem

Which Upp version are you using ?

I am having difficulties with the lattest Upp svn versions on Win : my MCS V15 compiler crashes Shocked ( and CLANG doesn't work du to path problems and I can't change them: I don't have admin rights to change paths)
The current version I work with on Win is svn 14390
So I am stuck to 14390 for the moment on Win

Didier
Re: GraphDraw/GraphCtrl [message #53897 is a reply to message #53896] Wed, 13 May 2020 21:06 Go to previous messageGo to next message
Didier is currently offline  Didier
Messages: 559
Registered: November 2008
Location: France
Contributor
I also trie with and withour Blitz : no compilation problem (under linux)

I will have to resolve my Win problem to check further

Re: GraphDraw/GraphCtrl [message #53899 is a reply to message #53896] Thu, 14 May 2020 08:16 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 61
Registered: February 2019
Location: India
Member
Hello Didier,
Didier wrote on Thu, 14 May 2020 00:21

Which Upp version are you using ?

That could be the issue, I was using 13664, for which uppsrc/CtrlLib/Ch.h contains only this much:
void ChStdSkin();
void ChClassicSkin();
void ChHostSkin();

I'm downloading latest stable release at the moment, I'll let you know the result.


Regards,
Pradip
Re: GraphDraw/GraphCtrl [message #53900 is a reply to message #53899] Thu, 14 May 2020 08:51 Go to previous messageGo to next message
Pradip is currently offline  Pradip
Messages: 61
Registered: February 2019
Location: India
Member
McAfee is blocking to execute 14429 Mad

Regards,
Pradip
Re: GraphDraw/GraphCtrl [message #53901 is a reply to message #53900] Thu, 14 May 2020 09:30 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12571
Registered: November 2005
Ultimate Member
Pradip wrote on Thu, 14 May 2020 08:51
McAfee is blocking to execute 14429 Mad


This is really worrysome, but I really do not have any means how to prevent that....

I think it is the debugger code causing this issue Sad

That said, I am not sure who would believe this guy: https://cryptopotato.com/wp-content/uploads/2019/01/mcafee-n ew-finke-min-min.jpg

[Updated on: Thu, 14 May 2020 09:33]

Report message to a moderator

Re: GraphDraw/GraphCtrl [message #53902 is a reply to message #53900] Thu, 14 May 2020 09:44 Go to previous messageGo to previous message
Pradip is currently offline  Pradip
Messages: 61
Registered: February 2019
Location: India
Member
Hello Didier,
I can't run 14429 yet, until it gains some "reputation" with McAfee! Well the issue is with Chameleon only, I'll keep studying the demo code and try to get this done.


Regards,
Pradip
Previous Topic: NetProxy package. (HTTP/SOCKS4/4a/5 with BIND support) encapsulation for U++
Next Topic: A terminal emulator widget for U++
Goto Forum:
  


Current Time: Tue Jul 07 02:27:24 CEST 2020

Total time taken to generate the page: 0.01732 seconds