Ticket #3703: progfind_diff.txt

File progfind_diff.txt, 1.4 KB (added by Mike Rice <mikerice1969@…>, 17 years ago)

Program Finder patch

Line 
1Index: progfind.cpp
2===================================================================
3--- progfind.cpp        (revision 13460)
4+++ progfind.cpp        (working copy)
5@@ -190,6 +190,8 @@
6             pageUp();
7         else if (action == "PAGEDOWN")
8             pageDown();
9+        else if (action == "5")
10+            pageMiddle();
11         else if (action == "SELECT" || action == "INFO")
12             select();
13         else if (action == "CUSTOMEDIT")
14@@ -702,6 +704,37 @@
15     }
16 }
17 
18+void ProgFinder::pageMiddle()
19+{
20+    if (inSearch == 0)
21+    {
22+        curSearch = searchCount / 2 + 10 - 1;
23+
24+        if (gotInitData[curSearch] <= 1)
25+            clearProgramList();
26+        else
27+            showSearchList();
28+    }
29+    if (inSearch == 1)
30+    {
31+        if (listCount > showsPerListing)
32+        {
33+          curProgram = listCount / 2 - 1;
34+
35+          showProgramList();
36+        }
37+    }
38+    if (inSearch == 2)
39+    {
40+        if (showCount > showsPerListing)
41+        {
42+          curShow = showCount / 2 - 1;
43+
44+          showShowingList();
45+        }
46+    }
47+}
48+
49 void ProgFinder::cursorUp()
50 {
51     if (inSearch == 0)
52Index: progfind.h
53===================================================================
54--- progfind.h  (revision 13460)
55+++ progfind.h  (working copy)
56@@ -47,6 +47,7 @@
57     void showGuide();
58     void pageUp();
59     void pageDown();
60+    void pageMiddle();
61     void select();
62     void customEdit();
63     void upcoming();