projects
/
goodguy
/
cinelerra.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
camera zoom fix, upgrade giflib, configure.ac ix86 probe tweaks, any python
[goodguy/cinelerra.git]
/
cinelerra-5.1
/
guicast
/
bcslider.C
diff --git
a/cinelerra-5.1/guicast/bcslider.C
b/cinelerra-5.1/guicast/bcslider.C
index 7a60a1f44ee423a3c953b92d71cb0ffd8949803d..882e5c9cfd3b470a2a48d2f0f0a80b3175f7f3ee 100644
(file)
--- a/
cinelerra-5.1/guicast/bcslider.C
+++ b/
cinelerra-5.1/guicast/bcslider.C
@@
-171,6
+171,7
@@
int BC_Slider::get_button_pixels()
void BC_Slider::show_value_tooltip()
{
void BC_Slider::show_value_tooltip()
{
+ if( !show_number ) return;
//printf("BC_Slider::show_value_tooltip %s\n", get_caption());
set_tooltip(get_caption());
keypress_tooltip_timer = 2000;
//printf("BC_Slider::show_value_tooltip %s\n", get_caption());
set_tooltip(get_caption());
keypress_tooltip_timer = 2000;
@@
-195,7
+196,7
@@
int BC_Slider::repeat_event(int64_t duration)
}
}
else
}
}
else
- if(status == SLIDER_HI && tooltip_text)
+ if(status == SLIDER_HI && tooltip_text
&& show_number
)
{
if(!tooltip_text[0] || isdigit(tooltip_text[0]))
{
{
if(!tooltip_text[0] || isdigit(tooltip_text[0]))
{
@@
-298,6
+299,11
@@
void BC_Slider::disable()
draw_face(1);
}
draw_face(1);
}
+void BC_Slider::enable_show_value(int v)
+{
+ show_number = v;
+}
+
int BC_Slider::button_press_event()
{
int result = 0;
int BC_Slider::button_press_event()
{
int result = 0;