convert all graphs to cairo to migrate to GTK3
- jumps/races capture tab: barplot done!
- jumps/races capture tab: realtime capture graph done (also with runInterval abs/relative for texts under bars)
- encoder signal graph at capture (and maybe also after capture, instead of the R graph) done! but not the capture R graph, unneded
- encoder capture bars (and load). Not using repetitiveConditionsWin (moved functions to new FeedbackEncoder) TODO:
- title (done text, need to paint it with two colors). done!
- realtime capture ecc/con do not wait until end con to plot each repetition. done!
- mark selected repetitions done!
- Manage NewPreferences done!
- ShowNRepetitions while capture done!
- graph on no data, blank graph on change person/session done!
- cont mode done!
- eccentric overload done!
- make most of the gui/eventExecute stuff not calculate again at every expose_event, store them on prepareObject, ... done!
- implement historical feedback done!
- update graphs only: if(preferences.encoderCaptureShowOnlyBars == null || ! preferences.encoderCaptureShowOnlyBars.Show....)
- fix a threadAbort on capture since cairo code at exit chronojump after having captured (can be on linear encoder and without debug) (see linked image) maybe fixed on this commit: 3b6256bc No: is not fixed and it does not need debug to fail, seems it fails more when capture has been done. seems fixed now
- delete all gtk encoder barplot graph done!
- new cairo barplot needs still to show the message when power is 0 and no bars!!! Don't need: because title is already shown and there it can be seen 0 power
- force sensor realtime capture (and load) -> See encoder signal graph. done
- TODO: need to erase the graph on person or session change
- force sensor analyze DOING
- fMaxAVG done
- repetitions with numbers and button press events done
- zoom and done (but need to show the RFD of AB, better calculate independently and add it to fsAI)
- triggers done
- elastic stuff done also added speed & power
- Test if triggers while capture are ok and then delete the gtk graph with all forceSensorCapturePoints code done
- RFD (not show the max or between A and B, show the max RFD found in x ms)
- disable the pulses graph because (we think) no one is using that done
Continue with https://docs.gtk.org/gtk3/migrating-2to3.html
- delete all non-cairo graphs done
- remove Gdk.Pixmap done
- remove Gdk.Colormap
- remove FromDrawable. See: https://lazka.github.io/pgi-docs/#Gdk-3.0/functions.html#Gdk.pixbuf_get_from_window
- libglade to gtkbuilder
- https://github.com/xournalpp/xournalpp/issues/4
- http://www.peteronion.org.uk/GtkExamples/GladeTutorials.html preferences_win.xml seem to work ok with glade-3 and glade (gtk3)
- buil/build.environment.mk
- LINK_GLIB = $(GLIB_SHARP_30_LIBS)
- LINK_GTK = $(GTK_SHARP_30_LIBS)
- LINK_GLADE = $(GLADE_SHARP_20_LIBS) (delete this)
- configure.ac and build/build.environment.mk
- glib-sharp-2.0 to glib-sharp-3.0
- gtk-sharp-2.0 to gtk-sharp-3.0
- glade-sharp has no 3.0 version, because this is the libglade links and gtk3 uses gtkbuilder. So now need to create the gtkbuilder versions of the glade files. Use gtk-builder-convert and open in glade (gtk3), test it with a window and load it from Chronojump
- gtk-builder-convert dialog_threshold.glade dialog_threshold.xml (Some widgets and properties are different between GTK+ versions 2.0 and 3.0, so this option allows to set the desired GTK+ target version. use: --target-version gtk+2.0 (or 3))
- apt install libgtk3.0-cil (also installs: libatk3.0-cil libcairo1.10-cil libgdk3.0-cil libgio3.0-cil libglib3.0-cil libpango3.0-cil)
- apt install libgtk3.0-cil-dev (also installs: libgdk3.0-cil-dev libgio3.0-cil-dev libglib3.0-cil-dev libmono-profiler-gui-thread-check)
- apt install monodoc-gtk3.0-manual monodoc-base monodoc-http monodoc-manual but not able to see the documentation with monodoc-http or the generate and html with monodocs2html -source:/usr/lib/monodoc/sources/gtk-sharp-3-docs.source -dest:gtk3-docs
- installing monodevelop to try to see documentation of gtk# 3, gdk# 3 https://www.monodevelop.com/download/#fndtn-download-lin-debian
- monodevelop docs points to gtk2 (http://docs.go-mono.com/), but creating a c# project, references, gdk-sharp there is for 2.12 and for 3. For 2.12 exists the Pixbuf.FromDrawable and Pixbuf.GetFromDrawable, but on 3.0 none of them. Or faster: using Tools/Assembly browser. So for GetFromDrawable use the Cairo solution
More info:
Edited by Xavier de Blas