add lv2ui support
[goodguy/history.git] / cinelerra-5.1 / cinelerra / renderprofiles.C
index f689c4431e190294c3368bed769c0e0e2e234025..471c7ccd4c268e44ae85e74c101015143c1c2fc6 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include "clip.h"
+#include "language.h"
 #include "renderprofiles.h"
 #include "mwindow.h"
 #include "theme.h"
 #include "errorbox.h"
 #include "mwindowgui.h"
 
-#include <libintl.h>
-#define _(String) gettext(String)
-#define gettext_noop(String) String
-#define N_(String) gettext_noop (String)
-
 #define LISTWIDTH 200
 
 RenderProfileItem::RenderProfileItem(const char *text, int value)
@@ -222,8 +218,9 @@ int RenderProfile::save_to_slot(int profile_slot, const char *profile_name)
        sprintf(string_name, "RENDER_%i_PROFILE_NAME", profile_slot);
        mwindow->defaults->update(string_name, profile_name);
 
-       sprintf(string_name, "RENDER_%i_STRATEGY", profile_slot);
-       mwindow->defaults->update(string_name, rwindow->render->strategy);
+       sprintf(string_name, "RENDER_%i_FILE_PER_LABEL", profile_slot);
+       mwindow->defaults->update(string_name,
+               rwindow->render->use_labels ? FILE_PER_LABEL : SINGLE_PASS);
        sprintf(string_name, "RENDER_%i_LOADMODE", profile_slot);
        mwindow->defaults->update(string_name, rwindow->render->load_mode);
        sprintf(string_name, "RENDER_%i_RANGE_TYPE", profile_slot);
@@ -231,12 +228,7 @@ int RenderProfile::save_to_slot(int profile_slot, const char *profile_name)
 
        sprintf(string_name, "RENDER_%i_", profile_slot);
        rwindow->asset->save_defaults(mwindow->defaults,
-               string_name,
-               1,
-               1,
-               1,
-               1,
-               1);
+               string_name, 1, 1, 1, 1, 1);
 
        mwindow->save_defaults();
        return 0;