-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[will be dropped]From my own purpose. #32
base: master
Are you sure you want to change the base?
Conversation
…om widget. -> Caused by circular reference between Chart and Series.
…me(). -> To avoid warping time-diff by NTP.
- To reduce draw call by limiting the range efficiently(?) with using RBST. - I encountered a problem by pushing values with random timepoint on List.
sorry i forgot to commit "changed" test code. ->pushed |
Whooo, very interesting ! Thanks for sharing, I'll take a deeper look in the next weeks, but I like what you've done. |
Thank you for replying. |
Can I submit more pull requests ?
But more abilities are implemented on the original repository after this pull request. |
vala_args = ['--target-glib=2.50'] | ||
|
||
#setting up gtk | ||
gtk_major = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GTK version should define in meson_options.txt:
option('GTK',
type: 'integer',
value: 4,
description : 'GTK version')
then use it in the meson:
if 3 == get_option('GTK')
else
endif
then change the GTK version by command:
meson -DGTK=3 build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
I tried it, and it works.
I'll take it in my repository later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By the way, as talked in #37, the default build should be GTK3 for now if we don't provide any argument to meson.
Do you mind that your repo behind upstream 20 commits? you should rebase to upstream immediately. |
Yes, I know. Rebasing is my job for now. From the very start, my modification is for my own project which named "omni-plotter". |
hey, @lcallarec can you look into this PR? Would be cool to have these features 😄 |
@stsdc Thank you for your comment. |
Do you mind rebasing my PR #37? it's done for GTK4 now, all examples work fine. |
@taozuhong |
Hey @Robert-Ordis, thank you very much for your PR. That's a fact : I don't have so much time, but yeah, you're welcome to create PR. Just : for each new feature, please update the documentation accordingly, add tests (TDD welcome), and avoid API breaks. If you need any API breaks, let discuss together. If any of you wants to become a maintainer to help me pushing live-chart at the next level, let's talk, I'll be very proud ! By the way, I'll merge this PR soon, sorry for the delay, thank you again. |
Good morning @lcallarec . Avoiding API breaks: I did my work as not to lose compatibility (I think it means becoming unable to reuse "example" code e.g.) carefully at least. But changing the base type of Values (LinkedList->TreeSet) may be so. Test and documentation: I see. I'll commit the example code for my features. I see that you'll merge my PR. thx, but then, do I have to rebase to your newest repository? |
Yes, and move forward to GTK4 at best. |
@Robert-Ordis : yes, in order to technically be able to merge your PR, you need to resolve conflicts, whatever the way you do it. You can fix them via the web editor (somewhere below this message, there should be a "This branch has conflicts that must be resolved" block where you'll be able to open the web editor). |
If you want to contribute with more PR in the future, I think it'll be a good idea to make a PR per feature. It's smaller, simpler to read and review and therefore will be easier and quicker to merge. |
chart.remove_serie(rss); | ||
return false; | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be a nice if we could have a button to remove that serie instead of waiting 20s
public void remove_all_series(){ | ||
this.series.remove_all(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That kind of API improvements should be added to README.
this.prev_time = now; | ||
this.queue_draw(); | ||
return true; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation is welcome :)
} | ||
|
||
private bool render(Gtk.Widget _, Context ctx) { | ||
|
||
ctx.set_antialias(Cairo.Antialias.NONE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we loose render quality if we disable antialias ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry to forgot to revert it. It's my mistake.
set{ | ||
if(_width != value){ | ||
//i = config.width - config.padding.right; i > config.padding.left; i -= config.x_axis.tick_length | ||
if(x_axis.tick_length <= 0.0){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's commented, it's certainly useless :)
foreach(var entry in signals){ | ||
entry.key.disconnect(entry.value); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, very cool, you fixed lots of possible memory leaks 👍
Thanks for revieweing my noob-like PR... P.S. |
Started first (#38). @taozuhong |
Put your mods based on GTK4 if your app has been ported to GTK4, or focus on GTK3 full time, then upgrade to GTK4 branch. |
Caution of memory leak.
Started 2nd (#39). |
Started 3/10 (#40) |
All of these changes are came from my purpose (making real-time rewindable plotter app.).
If you are interested in these code or thought you can make these code better,
then take a light look please.