A GtkRangeEditor?
Submitted by mil..@..il.com
Link to original bug (#781248)
Description
Created attachment 349764 Source code illustrating the feature request.
Here is an implementation of what could be called GtkRangeEditor. Usecases:
- Choose horizontal/vertical view range on a page
- Choose export range for a timeline editing program (video editors, digital audio workstations,...)
- Choose visible range on a colormap (scientific visualisation)
The implementation is not complete, but it is enough to illustrate the desired widget behaviour. Here is what is missing approximately ordered by appearance in file
- Is it possible to add this behaviour to, for example GtkRange, which have a very similar look?
- The code is a C++11 application, and therefore needs to be rewritten in C. Also it needs to be restructured into the proper form for a GtkWidget.
- Cleanup cursor array when destroying widget (Line 11)
- Make the widget themable. The color should not be hardcoded (Line 24, Line 28)
- Add support for horizontal layout (all callbacks except release)
- GTK chose have max at the bottom (which I think is wrong, so mostly I turn on the inverted option for this kind of widgets). Anyway inversion is missing (All callbacks except release)
- The control should support keyboard input as well
Attachment 349764, "Source code illustrating the feature request.":
ui.cpp
Version: 3.91.x