int AssetEdit::window_height()
{
int h = 128 + 64;
- if( indexable->have_audio() )
- h += 180;
+ if( indexable->have_audio() ) h += 200;
if( indexable->have_video() ) {
- h += 200;
+ h += 210;
if( indexable->is_asset ) {
Asset *asset = (Asset *)indexable;
if( asset->format == FILE_MPEG ||
- asset->format == FILE_FFMPEG ) {
- h += 40;
- }
+ asset->format == FILE_FFMPEG ) h += 42;
}
}
return h;
if( asset ) {
add_subwindow(new BC_Title(x, y, _("File format:")));
x = x2;
- add_subwindow(new BC_Title(x, y, File::formattostr(mwindow->plugindb,
- asset->format),
+ add_subwindow(new BC_Title(x, y, File::formattostr(asset->format),
MEDIUMFONT,
mwindow->theme->assetedit_color));
x = x1;
void AssetEditWindow::show_info_detail()
{
int cur_x, cur_y;
- get_abs_cursor_xy(cur_x, cur_y, 0);
+ get_abs_cursor(cur_x, cur_y, 0);
detail_dialog->start((Asset*)asset_edit->indexable, cur_x, cur_y);
}
-
-
-AssetEditFormat::AssetEditFormat(AssetEditWindow *fwindow, char* default_, int y)
- : FormatPopup(fwindow->mwindow->plugindb, 90, y)
-{
- this->fwindow = fwindow;
-}
-AssetEditFormat::~AssetEditFormat()
-{
-}
-int AssetEditFormat::handle_event()
-{
- Asset *asset = fwindow->asset_edit->changed_params;
- asset->format = File::strtoformat(fwindow->mwindow->plugindb,
- get_selection(0, 0)->get_text());
- return 1;
-}
-
-
-
-
DetailAssetButton::DetailAssetButton(AssetEditWindow *fwindow, int x, int y)
: BC_GenericButton(x, y, _("Detail"))
{
strncpy(info,_("no info available"),len);
if( !mwindow->preferences->get_asset_file_path(asset, file_name) ) {
switch( asset->format ) {
+#ifdef HAVE_LIBZMPEG
case FILE_MPEG:
FileMPEG::get_info(asset->path, file_name, &info[0],len);
break;
+#endif
case FILE_FFMPEG:
FileFFMPEG::get_info(asset->path, &info[0],len);
break;