projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
last push faux paux, update shortcuts doc, period/comma alt shortcuts, popup deactiva...
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
plugindialog.C
diff --git
a/cinelerra-5.1/cinelerra/plugindialog.C
b/cinelerra-5.1/cinelerra/plugindialog.C
index 6068ce1c73bf74ff6007b914dd706d7c40f2f37a..8b83480bb389e0c3d15cd2e73387a7c9b5b44795 100644
(file)
--- a/
cinelerra-5.1/cinelerra/plugindialog.C
+++ b/
cinelerra-5.1/cinelerra/plugindialog.C
@@
-20,6
+20,7
@@
*/
#include "condition.h"
*/
#include "condition.h"
+#include "cstrdup.h"
#include "edl.h"
#include "edlsession.h"
#include "language.h"
#include "edl.h"
#include "edlsession.h"
#include "language.h"
@@
-242,25
+243,8
@@
PluginDialog::~PluginDialog()
void PluginDialog::create_objects()
{
// int use_default = 1;
void PluginDialog::create_objects()
{
// int use_default = 1;
- char string[BCTEXTLEN];
mwindow->theme->get_plugindialog_sizes();
mwindow->theme->get_plugindialog_sizes();
-
lock_window("PluginDialog::create_objects");
lock_window("PluginDialog::create_objects");
- if(thread->plugin)
- {
- strcpy(string, thread->plugin->title);
- //use_default = 0;
- }
- else
- {
-// no plugin
- sprintf(string, _("None"));
- }
-
-
-
-
-
// GET A LIST OF ALL THE PLUGINS AVAILABLE
mwindow->search_plugindb(thread->data_type == TRACK_AUDIO,
// GET A LIST OF ALL THE PLUGINS AVAILABLE
mwindow->search_plugindb(thread->data_type == TRACK_AUDIO,
@@
-287,10
+271,9
@@
void PluginDialog::create_objects()
PLAY_FORWARD,
1,
0);
PLAY_FORWARD,
1,
0);
- char *plugin_title = plugin->title;
char string[BCTEXTLEN];
char string[BCTEXTLEN];
-
- snprintf(string, sizeof(string), "%s: %s", track_title,
_(plugin_title)
);
+ const char *plugin_title = _(plugin->title);
+ snprintf(string, sizeof(string), "%s: %s", track_title,
plugin_title
);
shared_data.append(new BC_ListBoxItem(string));
}
for(int i = 0; i < module_locations.total; i++)
shared_data.append(new BC_ListBoxItem(string));
}
for(int i = 0; i < module_locations.total; i++)
@@
-329,12
+312,6
@@
void PluginDialog::create_objects()
// mwindow->theme->plugindialog_newattach_y));
//
// mwindow->theme->plugindialog_newattach_y));
//
-
-
-
-
-
-
add_subwindow(shared_title = new BC_Title(mwindow->theme->plugindialog_shared_x,
mwindow->theme->plugindialog_shared_y - 20,
_("Shared effects:")));
add_subwindow(shared_title = new BC_Title(mwindow->theme->plugindialog_shared_x,
mwindow->theme->plugindialog_shared_y - 20,
_("Shared effects:")));
@@
-356,13
+333,6
@@
void PluginDialog::create_objects()
// mwindow->theme->plugindialog_sharedattach_y));
//
// mwindow->theme->plugindialog_sharedattach_y));
//
-
-
-
-
-
-
-
add_subwindow(module_title = new BC_Title(mwindow->theme->plugindialog_module_x,
mwindow->theme->plugindialog_module_y - 20,
_("Shared tracks:")));
add_subwindow(module_title = new BC_Title(mwindow->theme->plugindialog_module_x,
mwindow->theme->plugindialog_module_y - 20,
_("Shared tracks:")));
@@
-468,9
+438,9
@@
int PluginDialog::resize_event(int w, int h)
if(single_standalone)
if(single_standalone)
- single_standalone->reposition_window(
mwindow->theme->plugindialog_new_x,
- mwindow->theme->plugindialog_new_
y +
-
mwindow->theme->plugindialog_new_h +
+ single_standalone->reposition_window(
+ mwindow->theme->plugindialog_new_
x + BC_OKButton::calculate_w() + 10,
+
mwindow->theme->plugindialog_new_y +
mwindow->theme->plugindialog_new_h +
get_text_height(MEDIUMFONT));
flush();
get_text_height(MEDIUMFONT));
flush();
@@
-752,8
+722,8
@@
void PluginDialog::load_plugin_list(int redraw)
const char *text = search_text->get_text();
for( int i=0; i<plugindb.total; ++i ) {
const char *text = search_text->get_text();
for( int i=0; i<plugindb.total; ++i ) {
- const char *title =
plugindb.values[i]->title
;
- if( text && text[0] && !strcasestr(title, text) ) continue;
+ const char *title =
_(plugindb.values[i]->title)
;
+ if( text && text[0] && !
b
strcasestr(title, text) ) continue;
standalone_data.append(new PluginDialogListItem(title, i));
}
standalone_data.append(new PluginDialogListItem(title, i));
}
@@
-777,7
+747,7
@@
PluginDialogSingle::PluginDialogSingle(PluginDialog *dialog, int x, int y)
: BC_CheckBox(x,
y,
dialog->thread->single_standalone,
: BC_CheckBox(x,
y,
dialog->thread->single_standalone,
- _("Attach single standlone and share others"))
+ _("Attach single stand
a
lone and share others"))
{
this->dialog = dialog;
}
{
this->dialog = dialog;
}