prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / cinelerra / recordgui.C
index c91be42480677d87a16a61e3ee441c9c2ff4fad9..bd45c32346f2fef2e6a7c0a9d499c191d7d41b68 100644 (file)
@@ -31,7 +31,6 @@
 #include "edl.h"
 #include "edlsession.h"
 #include "file.h"
-#include "filemov.h"
 #include "filesystem.h"
 #include "keys.h"
 #include "language.h"
@@ -60,7 +59,7 @@
 
 
 RecordGUI::RecordGUI(MWindow *mwindow, Record *record)
- : BC_Window(PROGRAM_NAME ": Recording"
+ : BC_Window(_(PROGRAM_NAME ": Recording")
        mwindow->session->rwindow_x, mwindow->session->rwindow_y, 
        mwindow->session->rwindow_w, mwindow->session->rwindow_h,
        10, 10, 1, 0, 1)
@@ -187,7 +186,7 @@ void RecordGUI::create_objects()
                batch_path->get_x() + batch_path->get_w(), 
                y,
                asset->path,
-               PROGRAM_NAME ": Record path",
+               _(PROGRAM_NAME ": Record path"),
                _("Select a file to record to:"),
                0));
        x2 = max(x2, batch_path->get_w() + batch_browse->get_w());
@@ -292,9 +291,8 @@ void RecordGUI::create_objects()
 
        if(asset->video_data) {
                add_subwindow(new BC_Title(x, y, 
-                       asset->format != FILE_MPEG ?
-                               FileMOV::compressiontostr(asset->vcodec) :
-                               "File Capture",
+                       asset->format == FILE_MPEG ? _("File Capture") :
+                               File::compressiontostr(asset->vcodec),
                        MEDIUMFONT, 
                        mwindow->theme->recordgui_fixed_color));
        
@@ -968,7 +966,7 @@ int RecordGUIStopBatches::handle_event()
 {
        Record *record = gui->record;
        unlock_window();
-       record->stop_cron_thread("Stopped");
+       record->stop_cron_thread(_("Stopped"));
        lock_window();
        return RecordBatchesGUI::StopBatches::handle_event();
 }
@@ -983,7 +981,7 @@ RecordGUIActivateBatch::RecordGUIActivateBatch(RecordGUI *gui, int x, int y)
 int RecordGUIActivateBatch::handle_event()
 {
        gui->record->activate_batch(gui->record->editing_batch());
-       gui->update_cron_status("Idle");
+       gui->update_cron_status(_("Idle"));
        return RecordBatchesGUI::ActivateBatch::handle_event();
 }