+TransitionSetDefault::TransitionSetDefault(TransitionDialog *window, int x, int y)
+ : BC_GenericButton(x, y, _("Set Default Transition"))
+{
+ this->window = window;
+}
+
+TransitionSetDefault::~TransitionSetDefault()
+{
+}
+
+int TransitionSetDefault::handle_event()
+{
+ TransitionDialogThread *thread = (TransitionDialogThread *)window->thread;
+ const char *transition_title = thread->transition_title;
+ EDL *edl = window->mwindow->edl;
+ switch( thread->data_type ) {
+ case TRACK_AUDIO:
+ strcpy(edl->session->default_atransition, transition_title);
+ break;
+ case TRACK_VIDEO:
+ strcpy(edl->session->default_vtransition, transition_title);
+ break;
+ }
+ window->set_default_text->update(transition_title);
+ return 1;
+}
+
+TransitionDefaultText::TransitionDefaultText(TransitionDialog *window,
+ int x, int y, int w, const char * text)
+ : BC_TextBox(x, y, w, 1, text)
+{
+ this->window = window;
+}
+
+TransitionDefaultText::~TransitionDefaultText()
+{
+}
+
+