[mythtv] PATCH submission

Harry Orenstein ho_9 at hotmail.com
Wed Jun 2 23:12:24 EDT 2004


1st time submitter... please be gentle.

Adds adjust picture control access to new 0.15 live TV popup menu.
Diff is from 0.15.1 package posted on the Myth site.



--- tv_play.cpp.orig    2004-06-02 20:14:43.000000000 -0400
+++ tv_play.cpp 2004-06-02 21:49:11.000000000 -0400
@@ -3455,6 +3455,11 @@
             BrowseStart();
         else if (action == "PREVCHAN")
             PreviousChannel();
+       else if (action.left(17) == "TOGGLEPICCONTROLS")
+       {
+           picAdjustment = action.right(1).toInt();
+           DoTogglePictureAttribute();
+       }
         else
         {
             cout << "unknown menu action selected: " << action << endl;
@@ -3532,6 +3537,18 @@

         item = new OSDGenericTree(treeMenu, tr("Previous Channel"),
                                   "PREVCHAN");
+       if (usePicControls)
+       {
+               item = new OSDGenericTree(treeMenu, tr("Adjust Picture"));
+               subitem = new OSDGenericTree(item, tr("Brightness"), 
"TOGGLEPICCONTROLS" +
+                       QString("%1").arg(kPictureAttribute_Brightness));
+               subitem = new OSDGenericTree(item, tr("Contrast"), 
"TOGGLEPICCONTROLS" +
+                       QString("%1").arg(kPictureAttribute_Contrast));
+               subitem = new OSDGenericTree(item, tr("Colour"), 
"TOGGLEPICCONTROLS" +
+                       QString("%1").arg(kPictureAttribute_Colour));
+               subitem = new OSDGenericTree(item, tr("Hue"), 
"TOGGLEPICCONTROLS" +
+                       QString("%1").arg(kPictureAttribute_Hue));
+       }
     }
     else if (StateIsPlaying(internalState))
     {



-- Harry O.

_________________________________________________________________
Check out the coupons and bargains on MSN Offers! http://youroffers.msn.com



More information about the mythtv-dev mailing list