Show tooltip for all hovered ticks, not just for a selected one

This commit is contained in:
YuSanka 2020-02-04 14:53:17 +01:00
parent 0da4cb29b5
commit 49c5822be4
2 changed files with 98 additions and 79 deletions

View file

@ -33,10 +33,14 @@ enum SelectedSlider {
ssHigher
};
enum IconFocus {
ifNone,
ifRevert,
ifCog
enum FocusItem {
fiNone,
fiRevertIcon,
fiOneLayerIcon,
fiCogIcon,
fiColorBand,
fiActionIcon,
fiTick
};
enum ConflictType
@ -263,7 +267,7 @@ private:
wxSize get_size();
void get_size(int *w, int *h);
double get_double_value(const SelectedSlider& selection);
wxString get_tooltip(IconFocus icon_focus);
wxString get_tooltip(FocusItem focused_item, int tick = -1);
std::string get_color_for_tool_change_tick(std::set<TickCode>::const_iterator it) const;
std::string get_color_for_color_change_tick(std::set<TickCode>::const_iterator it) const;