minor changes; mostly for new Context Help feature
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / timestretch / timestretch.C
index 780c452a55fdf88518106600cf5cce30315fb24a..c4f01e1bdae2e179dcfd3292cfb0512cb5e491d0 100644 (file)
@@ -49,7 +49,7 @@ REGISTER_PLUGIN(TimeStretch)
 
 
 TimeStretchFraction::TimeStretchFraction(TimeStretch *plugin, int x, int y)
- : BC_TextBox(x, y, 100, 1, (float)(1.0 / plugin->scale))
+ : BC_TextBox(x, y, xS(100), 1, (float)(1.0 / plugin->scale))
 {
        this->plugin = plugin;
 }
@@ -118,17 +118,20 @@ int TimeStretchTime::handle_event()
 
 TimeStretchWindow::TimeStretchWindow(TimeStretch *plugin, int x, int y)
  : BC_Window(_(PROGRAM_NAME ": Time stretch"),
-                               x - 160,
-                               y - 75,
-                               320,
-                               200,
-                               320,
-                               200,
+                               x - xS(160),
+                               y - yS(75),
+                               xS(320),
+                               yS(200),
+                               xS(320),
+                               yS(200),
                                0,
                                0,
                                1)
 {
        this->plugin = plugin;
+// *** CONTEXT_HELP ***
+       if(plugin) context_help_set_keyword(plugin->plugin_title());
+       else       context_help_set_keyword("Rendered Audio Effects");
 }
 
 
@@ -138,7 +141,7 @@ TimeStretchWindow::~TimeStretchWindow()
 
 void TimeStretchWindow::create_objects()
 {
-       int x = 10, y = 10;
+       int x = xS(10), y = yS(10);
 
        BC_Title *title;
        add_subwindow(title = new BC_Title(x, y, _("Fraction of original speed:")));