int RecordGUIBatches::selection_changed() { if(get_selection_number(0, 0) >= 0) { int i = get_selection_number(0, 0); record->change_editing_batch(get_selection_number(0, 0)); if(get_cursor_x() < gui->column_widths[0]) { record->batches.values[i]->enabled = !record->batches.values[i]->enabled; gui->update_batches(); } } return 1; }
int TransitionDialogName::selection_changed() { int number = get_selection_number(0, 0); strcpy(thread->transition_title, thread->transition_names.values[number]->get_text()); return 1; }
int BatchRenderList::selection_changed() { thread->current_job = get_selection_number(0, 0); thread->gui->change_job(); if(get_cursor_x() < thread->column_width[0]) { BatchRenderJob *job = thread->get_current_job(); job->enabled = !job->enabled; thread->gui->create_list(1); } return 1; }
int PluginDialogModules::selection_changed() { dialog->selected_modules = get_selection_number(0, 0); dialog->standalone_list->set_all_selected(&dialog->standalone_data, 0); dialog->standalone_list->draw_items(1); dialog->shared_list->set_all_selected(&dialog->shared_data, 0); dialog->shared_list->draw_items(1); dialog->selected_available = -1; dialog->selected_shared = -1; return 1; }
int BatchRenderList::drag_stop_event() { if(dragging_item) { int src = get_selection_number(0, 0); int dst = get_highlighted_item(); if(src != dst) { thread->move_batch(src, dst); } BC_ListBox::drag_stop_event(); } }
int MenuEffectWindowList::handle_event() { window->result = get_selection_number(0, 0); window->set_done(0); }
int LiveChannelList::handle_event() { plugin->config.channel = get_selection_number(0, 0); plugin->send_configure_change(); return 1; }