projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dynamic keyframes, textbox rework, andrea ffmpeg.opts, perpetual chkpt undo, lv2...
[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 7d9f0e9c9671268af48b6b6a7d0c2b3397b7321f..9ae3ba39a9bf95834baa40503a963fec335b7fb2 100644
(file)
--- a/
cinelerra-5.1/cinelerra/pluginlv2gui.C
+++ b/
cinelerra-5.1/cinelerra/pluginlv2gui.C
@@
-153,7
+153,8
@@
void PluginLV2Client_OptPanel::update()
const char *cols[] = { "option", "value", };
const int col1_w = 150;
int wids[] = { col1_w, get_w()-col1_w };
const char *cols[] = { "option", "value", };
const int col1_w = 150;
int wids[] = { col1_w, get_w()-col1_w };
- BC_ListBox::update(&items[0], &cols[0], &wids[0], sizeof(items)/sizeof(items[0]));
+ BC_ListBox::update(&items[0], &cols[0], &wids[0], sizeof(items)/sizeof(items[0]),
+ get_xposition(), get_yposition(), get_highlighted_item());
}
PluginLV2ClientPot::PluginLV2ClientPot(PluginLV2ClientWindow *gui, int x, int y)
}
PluginLV2ClientPot::PluginLV2ClientPot(PluginLV2ClientWindow *gui, int x, int y)
@@
-213,7
+214,7
@@
void PluginLV2ClientWindow::create_objects()
int x = 10, y = 10, x1;
add_subwindow(title = new BC_Title(x, y, client->title));
x1 = get_w() - BC_GenericButton::calculate_w(this, _("UI")) - 8;
int x = 10, y = 10, x1;
add_subwindow(title = new BC_Title(x, y, client->title));
x1 = get_w() - BC_GenericButton::calculate_w(this, _("UI")) - 8;
- add_subwindow(ui = new PluginLV2ClientUI(this, x1, y));
+ add_subwindow(
client_
ui = new PluginLV2ClientUI(this, x1, y));
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, ""));
@@
-241,6
+242,7
@@
void PluginLV2ClientWindow::create_objects()
show_window(1);
if( client->server->mwindow->preferences->autostart_lv2ui ) {
show_window(1);
if( client->server->mwindow->preferences->autostart_lv2ui ) {
+ client_ui->disable();
PluginLV2ParentUI *ui = get_ui();
ui->show();
}
PluginLV2ParentUI *ui = get_ui();
ui->show();
}
@@
-249,8
+251,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;
- x1 = w - ui->get_w() - 8;
-
ui->reposition_window(x1,
ui->get_y());
+ x1 = w -
client_
ui->get_w() - 8;
+
client_ui->reposition_window(x1, client_
ui->get_y());
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;
@@
-354,4
+356,11
@@
void PluginLV2ClientWindow::lv2_set(int idx, float val)
lv2_update();
}
lv2_update();
}
+void PluginLV2ClientWindow::lv2_ui_enable()
+{
+ lock_window("PluginLV2ClientWindow::lv2_update");
+ client_ui->enable();
+ unlock_window();
+}
+
#endif
#endif