projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add configure without-thirdparty, without-libzmpeg, without-commercial
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
pluginlv2gui.C
diff --git
a/cinelerra-5.1/cinelerra/pluginlv2gui.C
b/cinelerra-5.1/cinelerra/pluginlv2gui.C
index e9e62d533cf1b4b7ef108d85fc29dd93ea767634..ea5a102356094b5becc8a659e7f9b5e7a04fa300 100644
(file)
--- a/
cinelerra-5.1/cinelerra/pluginlv2gui.C
+++ b/
cinelerra-5.1/cinelerra/pluginlv2gui.C
@@
-1,4
+1,3
@@
-#ifdef HAVE_LV2
/*
* CINELERRA
/*
* CINELERRA
@@
-19,6
+18,7
@@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
+#ifdef HAVE_LV2
#include "clip.h"
#include "cstrdup.h"
#include "clip.h"
#include "cstrdup.h"
@@
-212,12
+212,9
@@
void PluginLV2ClientWindow::create_objects()
BC_Title *title;
int x = 10, y = 10, x1;
add_subwindow(title = new BC_Title(x, y, client->title));
BC_Title *title;
int x = 10, y = 10, x1;
add_subwindow(title = new BC_Title(x, y, client->title));
-#ifdef HAVE_LV2UI
x1 = get_w() - BC_GenericButton::calculate_w(this, _("UI")) - 8;
add_subwindow(ui = new PluginLV2ClientUI(this, x1, y));
x1 = get_w() - BC_GenericButton::calculate_w(this, _("UI")) - 8;
add_subwindow(ui = new PluginLV2ClientUI(this, x1, y));
-#else
- ui = 0;
-#endif
+ ui->disable();
y += title->get_h() + 10;
add_subwindow(varbl = new BC_Title(x, y, ""));
add_subwindow(range = new BC_Title(x+160, y, ""));
y += title->get_h() + 10;
add_subwindow(varbl = new BC_Title(x, y, ""));
add_subwindow(range = new BC_Title(x+160, y, ""));
@@
-233,7
+230,6
@@
void PluginLV2ClientWindow::create_objects()
add_subwindow(slider = new PluginLV2ClientSlider(this, x1, y+10));
y += pot->get_h() + 10;
add_subwindow(slider = new PluginLV2ClientSlider(this, x1, y+10));
y += pot->get_h() + 10;
- client->init_lv2();
client->load_configuration();
client->config.update();
client->load_configuration();
client->config.update();
@@
-254,10
+250,8
@@
void PluginLV2ClientWindow::create_objects()
int PluginLV2ClientWindow::resize_event(int w, int h)
{
int x1;
int PluginLV2ClientWindow::resize_event(int w, int h)
{
int x1;
-#ifdef HAVE_LV2UI
x1 = w - ui->get_w() - 8;
ui->reposition_window(x1, ui->get_y());
x1 = w - ui->get_w() - 8;
ui->reposition_window(x1, ui->get_y());
-#endif
x1 = w - reset->get_w() - 8;
reset->reposition_window(x1, reset->get_y());
x1 = w - apply->get_w() - 8;
x1 = w - reset->get_w() - 8;
reset->reposition_window(x1, reset->get_y());
x1 = w - apply->get_w() - 8;
@@
-361,4
+355,11
@@
void PluginLV2ClientWindow::lv2_set(int idx, float val)
lv2_update();
}
lv2_update();
}
+void PluginLV2ClientWindow::lv2_ui_enable()
+{
+ lock_window("PluginLV2ClientWindow::lv2_update");
+ ui->enable();
+ unlock_window();
+}
+
#endif
#endif