Diff of /libgui/KwavePlugin.cpp [0a3dc1] .. [0a1223] Maximize Restore

  Switch to side-by-side view

--- a/libgui/KwavePlugin.cpp
+++ b/libgui/KwavePlugin.cpp
@@ -89,13 +89,16 @@
     debug("KwavePlugin::execute(): activating thread");
     m_thread->start();
 
+    // sometimes the signal proxies remain blocked until an initial
+    // X11 event occurs and thus might block the thread :-(
+    QApplication::syncX();
+
     return 0;
 }
 
 //***************************************************************************
 void KwavePlugin::run(QStrList params)
 {
-    return;
 }
 
 //***************************************************************************
@@ -113,44 +116,43 @@
 }
 
 //***************************************************************************
-QWidget *KwavePlugin::getParentWidget()
+QWidget *KwavePlugin::parentWidget()
 {
     return &(m_context.top_widget);
 }
 
 //***************************************************************************
-const QString &KwavePlugin::getSignalName()
+const QString &KwavePlugin::signalName()
 {
     return (m_context.top_widget.getSignalName());
 }
 
 //***************************************************************************
-unsigned int KwavePlugin::getSignalLength()
-{
-    return manager().getSignalLength();
-}
-
-//***************************************************************************
-unsigned int KwavePlugin::getSignalRate()
-{
-    return manager().getSignalRate();
-}
-
-//***************************************************************************
-unsigned int KwavePlugin::getSelection(unsigned int *left,
-                                       unsigned int *right)
-{
-    int l = manager().getSelectionStart();
-    int r = manager().getSelectionEnd();
+unsigned int KwavePlugin::signalLength()
+{
+    return manager().signalLength();
+}
+
+//***************************************************************************
+unsigned int KwavePlugin::signalRate()
+{
+    return manager().signalRate();
+}
+
+//***************************************************************************
+unsigned int KwavePlugin::selection(unsigned int *left, unsigned int *right)
+{
+    int l = manager().selectionStart();
+    int r = manager().selectionEnd();
     if (left)  *left  = l;
     if (right) *right = r;
     return r-l+1;
 }
 
 //***************************************************************************
-int KwavePlugin::getSingleSample(unsigned int channel, unsigned int offset)
-{
-    return manager().getSingleSample(channel, offset);
+int KwavePlugin::singleSample(unsigned int channel, unsigned int offset)
+{
+    return manager().singleSample(channel, offset);
 }
 
 //***************************************************************************