OSDN Git Service

LinGui: add custom filter strings to queue display
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 6 Feb 2009 16:06:34 +0000 (16:06 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 6 Feb 2009 16:06:34 +0000 (16:06 +0000)
add tooltips for custom filter entries

git-svn-id: svn://localhost/HandBrake/trunk@2124 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/ghb.ui
gtk/src/queuehandler.c
gtk/src/resource_data.h
gtk/src/resources.plist

index 7adbbff..8115f4a 100644 (file)
@@ -4677,6 +4677,8 @@ location as the movie.</property>
                                 <child>
                                   <object class="GtkEntry" id="PictureDetelecineCustom">
                                     <property name="width_chars">8</property>
+                                    <property name="tooltip-text" translatable="yes">Custom detelecine filter string format
+       JunkLeft:JunkRight:JunkTop:JunkBottom:StrictBreaks:MetricPlane</property>
                                     <signal name="changed" handler="setting_widget_changed_cb"/>
                                   </object>
                                   <packing>
@@ -4718,6 +4720,8 @@ location as the movie.</property>
                                 <child>
                                   <object class="GtkEntry" id="PictureDecombCustom">
                                     <property name="width_chars">8</property>
+                                    <property name="tooltip-text" translatable="yes">Custom decomb filter string format
+       Mode:SpatialMetric:MotionThresh:SpatialThresh:BlockThresh:BlockWidth:BlockHeight</property>
                                     <signal name="changed" handler="setting_widget_changed_cb"/>
                                   </object>
                                   <packing>
@@ -4759,6 +4763,8 @@ location as the movie.</property>
                                 <child>
                                   <object class="GtkEntry" id="PictureDeinterlaceCustom">
                                     <property name="width_chars">8</property>
+                                    <property name="tooltip-text" translatable="yes">Custom deinterlace filter string format
+       YadifMode:YadifParity:McdintMode:McdeintOp</property>
                                     <signal name="changed" handler="setting_widget_changed_cb"/>
                                   </object>
                                   <packing>
@@ -4799,6 +4805,8 @@ location as the movie.</property>
                                 <child>
                                   <object class="GtkEntry" id="PictureDenoiseCustom">
                                     <property name="width_chars">8</property>
+                                    <property name="tooltip-text" translatable="yes">Custom denoise filter string format
+       SpatialLuma:SpatialChroma:TemporalLuma:TemporalChroma</property>
                                     <signal name="changed" handler="setting_widget_changed_cb"/>
                                   </object>
                                   <packing>
index d928ed7..68be779 100644 (file)
@@ -278,19 +278,34 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter)
                "<b>Picture:</b> Source: <small>%d x %d, Output %d x %d %s</small>\n",
                 source_width, source_height, width, height, aspect_desc);
 
-       gboolean decomb;
+       gint decomb, detel;
        gboolean filters = FALSE;
 
        decomb = ghb_settings_combo_int(settings, "PictureDecomb");
        g_string_append_printf(str, "<b>Filters:</b><small>");
-       if (ghb_settings_combo_int(settings, "PictureDetelecine"))
+       detel = ghb_settings_combo_int(settings, "PictureDetelecine");
+       if (detel)
        {
                g_string_append_printf(str, " - Detelecine");
+               if (detel == 1)
+               {
+                       gchar *cust;
+                       cust = ghb_settings_get_string(settings, "PictureDetelecineCustom");
+                       g_string_append_printf(str, ": %s", cust);
+                       g_free(cust);
+               }
                filters = TRUE;
        }
        if (decomb)
        {
                g_string_append_printf(str, " - Decomb");
+               if (decomb == 1)
+               {
+                       gchar *cust;
+                       cust = ghb_settings_get_string(settings, "PictureDecombCustom");
+                       g_string_append_printf(str, ": %s", cust);
+                       g_free(cust);
+               }
                filters = TRUE;
        }
        else
@@ -298,18 +313,38 @@ add_to_queue_list(signal_user_data_t *ud, GValue *settings, GtkTreeIter *piter)
                gint deint = ghb_settings_combo_int(settings, "PictureDeinterlace");
                if (deint)
                {
-                       const gchar *opt = ghb_settings_combo_option(settings,
+                       if (deint == 1)
+                       {
+                               gchar *cust = ghb_settings_get_string(settings,
+                                                                                               "PictureDeinterlaceCustom");
+                               g_string_append_printf(str, " - Deinterlace: %s", cust);
+                               g_free(cust);
+                       }
+                       else
+                       {
+                               const gchar *opt = ghb_settings_combo_option(settings,
                                                                                                        "PictureDeinterlace");
-                       g_string_append_printf(str, " - Deinterlace: %s", opt);
+                               g_string_append_printf(str, " - Deinterlace: %s", opt);
+                       }
                        filters = TRUE;
                }
        }
        gint denoise = ghb_settings_combo_int(settings, "PictureDenoise");
        if (denoise)
        {
-               const gchar *opt = ghb_settings_combo_option(settings,
+               if (denoise == 1)
+               {
+                       gchar *cust = ghb_settings_get_string(settings,
+                                                                                                       "PictureDenoiseCustom");
+                       g_string_append_printf(str, " - Denoise: %s", cust);
+                       g_free(cust);
+               }
+               else
+               {
+                       const gchar *opt = ghb_settings_combo_option(settings,
                                                                                                        "PictureDenoise");
-               g_string_append_printf(str, " - Denoise: %s", opt);
+                       g_string_append_printf(str, " - Denoise: %s", opt);
+               }
                filters = TRUE;
        }
        gint deblock = ghb_settings_get_int(settings, "PictureDeblock");
index 26e869b..59d75ca 100644 (file)
 " id=&quot;PictureDetelecineCustom&quot;&gt;\n"
 "                                    &lt;property name=&quot;width_chars"
 "&quot;&gt;8&lt;/property&gt;\n"
+"                                    &lt;property name=&quot;tooltip-tex"
+"t&quot; translatable=&quot;yes&quot;&gt;Custom detelecine filter string"
+" format\n"
+"      JunkLeft:JunkRight:JunkTop:JunkBottom:StrictBreaks:MetricPlane&lt;/pro"
+"perty&gt;\n"
 "                                    &lt;signal name=&quot;changed&quot;"
 " handler=&quot;setting_widget_changed_cb&quot;/&gt;\n"
 "                                  &lt;/object&gt;\n"
 " id=&quot;PictureDecombCustom&quot;&gt;\n"
 "                                    &lt;property name=&quot;width_chars"
 "&quot;&gt;8&lt;/property&gt;\n"
+"                                    &lt;property name=&quot;tooltip-tex"
+"t&quot; translatable=&quot;yes&quot;&gt;Custom decomb filter string for"
+"mat\n"
+"      Mode:SpatialMetric:MotionThresh:SpatialThresh:BlockThresh:BlockWidth:B"
+"lockHeight&lt;/property&gt;\n"
 "                                    &lt;signal name=&quot;changed&quot;"
 " handler=&quot;setting_widget_changed_cb&quot;/&gt;\n"
 "                                  &lt;/object&gt;\n"
 " id=&quot;PictureDeinterlaceCustom&quot;&gt;\n"
 "                                    &lt;property name=&quot;width_chars"
 "&quot;&gt;8&lt;/property&gt;\n"
+"                                    &lt;property name=&quot;tooltip-tex"
+"t&quot; translatable=&quot;yes&quot;&gt;Custom deinterlace filter strin"
+"g format\n"
+"      YadifMode:YadifParity:McdintMode:McdeintOp&lt;/property&gt;\n"
 "                                    &lt;signal name=&quot;changed&quot;"
 " handler=&quot;setting_widget_changed_cb&quot;/&gt;\n"
 "                                  &lt;/object&gt;\n"
 " id=&quot;PictureDenoiseCustom&quot;&gt;\n"
 "                                    &lt;property name=&quot;width_chars"
 "&quot;&gt;8&lt;/property&gt;\n"
+"                                    &lt;property name=&quot;tooltip-tex"
+"t&quot; translatable=&quot;yes&quot;&gt;Custom denoise filter string fo"
+"rmat\n"
+"      SpatialLuma:SpatialChroma:TemporalLuma:TemporalChroma&lt;/property&gt;"
+"\n"
 "                                    &lt;signal name=&quot;changed&quot;"
 " handler=&quot;setting_widget_changed_cb&quot;/&gt;\n"
 "                                  &lt;/object&gt;\n"
index b6630d2..7be8bbd 100644 (file)
@@ -4682,6 +4682,8 @@ location as the movie.&lt;/property&gt;
                                 &lt;child&gt;
                                   &lt;object class=&quot;GtkEntry&quot; id=&quot;PictureDetelecineCustom&quot;&gt;
                                     &lt;property name=&quot;width_chars&quot;&gt;8&lt;/property&gt;
+                                    &lt;property name=&quot;tooltip-text&quot; translatable=&quot;yes&quot;&gt;Custom detelecine filter string format
+       JunkLeft:JunkRight:JunkTop:JunkBottom:StrictBreaks:MetricPlane&lt;/property&gt;
                                     &lt;signal name=&quot;changed&quot; handler=&quot;setting_widget_changed_cb&quot;/&gt;
                                   &lt;/object&gt;
                                   &lt;packing&gt;
@@ -4723,6 +4725,8 @@ location as the movie.&lt;/property&gt;
                                 &lt;child&gt;
                                   &lt;object class=&quot;GtkEntry&quot; id=&quot;PictureDecombCustom&quot;&gt;
                                     &lt;property name=&quot;width_chars&quot;&gt;8&lt;/property&gt;
+                                    &lt;property name=&quot;tooltip-text&quot; translatable=&quot;yes&quot;&gt;Custom decomb filter string format
+       Mode:SpatialMetric:MotionThresh:SpatialThresh:BlockThresh:BlockWidth:BlockHeight&lt;/property&gt;
                                     &lt;signal name=&quot;changed&quot; handler=&quot;setting_widget_changed_cb&quot;/&gt;
                                   &lt;/object&gt;
                                   &lt;packing&gt;
@@ -4764,6 +4768,8 @@ location as the movie.&lt;/property&gt;
                                 &lt;child&gt;
                                   &lt;object class=&quot;GtkEntry&quot; id=&quot;PictureDeinterlaceCustom&quot;&gt;
                                     &lt;property name=&quot;width_chars&quot;&gt;8&lt;/property&gt;
+                                    &lt;property name=&quot;tooltip-text&quot; translatable=&quot;yes&quot;&gt;Custom deinterlace filter string format
+       YadifMode:YadifParity:McdintMode:McdeintOp&lt;/property&gt;
                                     &lt;signal name=&quot;changed&quot; handler=&quot;setting_widget_changed_cb&quot;/&gt;
                                   &lt;/object&gt;
                                   &lt;packing&gt;
@@ -4804,6 +4810,8 @@ location as the movie.&lt;/property&gt;
                                 &lt;child&gt;
                                   &lt;object class=&quot;GtkEntry&quot; id=&quot;PictureDenoiseCustom&quot;&gt;
                                     &lt;property name=&quot;width_chars&quot;&gt;8&lt;/property&gt;
+                                    &lt;property name=&quot;tooltip-text&quot; translatable=&quot;yes&quot;&gt;Custom denoise filter string format
+       SpatialLuma:SpatialChroma:TemporalLuma:TemporalChroma&lt;/property&gt;
                                     &lt;signal name=&quot;changed&quot; handler=&quot;setting_widget_changed_cb&quot;/&gt;
                                   &lt;/object&gt;
                                   &lt;packing&gt;