strcpy(plugin_path, plugin->path);
MWindow *mwindow = awindow->mwindow;
mwindow->plugindb->remove(plugin);
- delete plugin; plugin = 0;
remove(plugin_path);
char index_path[BCTEXTLEN];
sprintf(index_path, "%s/%s", mwindow->preferences->plugin_dir, PLUGIN_FILE);
remove(png_path);
if( plugin->get_theme_png_path(png_path, "picon") )
remove(png_path);
+ delete plugin; plugin = 0;
awindow->gui->async_update_assets();
}
}
return 1;
}
-int AWindowAssets::cursor_enter_event()
+int AWindowAssets::focus_in_event()
{
- int ret = BC_ListBox::cursor_enter_event();
gui->start_vicon_drawing();
- return ret;
+ return 0;
}
-int AWindowAssets::cursor_leave_event()
+int AWindowAssets::focus_out_event()
{
gui->stop_vicon_drawing();
- return BC_ListBox::cursor_leave_event();
+ return BC_ListBox::focus_out_event();
}
int drag_stop_event();
int button_press_event();
int column_resize_event();
- int cursor_enter_event();
- int cursor_leave_event();
+ int focus_in_event();
+ int focus_out_event();
MWindow *mwindow;
AWindowGUI *gui;
{
const char *exec_path = File::get_cinlib_path();
sprintf(mjpeg_command, "%s/%s", exec_path, HVPEG_EXE);
+ append_vcommand_line(mjpeg_command);
if(asset->aspect_ratio > 0)
{
append_vcommand_line(asset->vmpeg_cmodel == BC_YUV422P ? "-422" : "");
if(asset->vmpeg_fix_bitrate)
{
- append_vcommand_line("--cbr -b");
+ append_vcommand_line("-b");
append_vcommand_line(bitrate_string);
}
else
File::get_config_path(), BACKUP_FILE);
edl->save_xml(&file, backup_path, 0, 0);
file.terminate_string();
- char path[BCTEXTLEN];
FileSystem fs;
fs.complete_path(backup_path);
{
strcpy(path, asset->path);
int result = !access(path, R_OK) ? 0 : -1;
- if( !result && asset->format == FILE_MPEG ) {
+ if( !result && ( asset->format == FILE_MPEG ||
+ asset->format == FILE_VMPEG || asset->format == FILE_AMPEG ) ) {
char source_filename[BCTEXTLEN], index_filename[BCTEXTLEN];
IndexFile::get_index_filename(source_filename,
index_directory, index_filename, asset->path, ".toc");
int *result /* = 0 */,
int master_column);
-
- int focus_out_event();
+ virtual int focus_out_event();
+ virtual int keypress_event();
virtual int button_press_event();
- int button_release_event();
- int cursor_enter_event();
- int cursor_leave_event();
- int cursor_motion_event();
+ virtual int button_release_event();
+ virtual int cursor_enter_event();
+ virtual int cursor_leave_event();
+ virtual int cursor_motion_event();
virtual int drag_start_event();
virtual int drag_motion_event();
virtual int drag_stop_event();
+
int deactivate();
// After popping up a menu call this to interrupt the selection process
void deactivate_selection();
// textbox
int activate(int take_focus = 1);
- virtual int keypress_event();
int translation_event();
int repeat_event(int64_t duration);
BC_DragWindow* get_drag_popup();
timer = new Timer();
this->refresh_rate = VICON_RATE;
done = 0;
- interrupted = 1;
+ interrupted = -1;
}
VIconThread::
wdw->lock_window("VIconThread::start_drawing");
if( view_win )
wdw->set_active_subwindow(view_win);
- if( interrupted )
+ if( interrupted < 0 )
draw_lock->unlock();
+ interrupted = 0;
wdw->unlock_window();
}
{
wdw->lock_window("VIconThread::stop_drawing");
set_view_popup(0);
- interrupted = 1;
+ if( !interrupted )
+ interrupted = 1;
wdw->unlock_window();
}
{
while(!done) {
draw_lock->lock("VIconThread::run 0");
- if( done ) break;;
+ if( done ) break;
wdw->lock_window("BC_WindowBase::run 1");
- interrupted = 0;
drawing_started();
reset_images();
int64_t seq_no = 0, now = 0;
*/
- for( l = 0; l < 6; ++l )
- actsum +=
- (*pquant_weight_coeff_sum)
+ if( cur_picture.mbinfo[k].dctblocks )
+ for( l = 0; l < 6; ++l )
+ actsum += (*pquant_weight_coeff_sum)
( cur_picture.mbinfo[k].dctblocks[l], i_q_mat ) ;
actj = (double)actsum / (double)COEFFSUM_SCALE;
if( actj < 12.0 )