Ticket #2853: ProgGuideFinderPos.patch
File ProgGuideFinderPos.patch, 4.0 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/guidegrid.h
29 29 MPUBLIC 30 30 bool RunProgramGuide(uint &startChanId, QString &startChanNum, 31 31 bool thread = false, TV *player = NULL, 32 bool allowsecondaryepg = true );32 bool allowsecondaryepg = true, bool needsresize = false); 33 33 34 34 35 35 class GuideGrid : public MythDialog -
libs/libmythtv/guidegrid.cpp
36 36 37 37 bool RunProgramGuide(uint &chanid, QString &channum, 38 38 bool thread, TV *player, 39 bool allowsecondaryepg )39 bool allowsecondaryepg, bool needsresize) 40 40 { 41 41 bool channel_changed = false; 42 42 43 int x, y, width, height; 44 float xm, ym; 45 43 46 if (thread) 44 47 qApp->lock(); 45 48 … … 49 52 chanid, channum, 50 53 player, allowsecondaryepg, "guidegrid"); 51 54 55 bool using_gui_size_for_tv = gContext->GetNumSetting("GuiSizeForTV", 0); 56 if (needsresize && !using_gui_size_for_tv) 57 { 58 gContext->GetScreenSettings(x, width, xm, y, height, ym); 59 gg->setGeometry(x, y, width, height); 60 gg->setFixedSize(QSize(width, height)); 61 } 62 52 63 gg->Show(); 53 64 54 65 if (thread) -
libs/libmythtv/progfind.h
24 24 class QWidget; 25 25 class TV; 26 26 27 MPUBLIC void RunProgramFind(bool thread = false, bool ggActive = false );27 MPUBLIC void RunProgramFind(bool thread = false, bool ggActive = false, bool needsresize = false); 28 28 29 29 class ProgFinder : public MythDialog 30 30 { -
libs/libmythtv/tv_play.cpp
5127 5127 allowsecondary = nvp->getVideoOutput()->AllowPreviewEPG(); 5128 5128 5129 5129 // Start up EPG 5130 changeChannel = RunProgramGuide(chanid, channum, true, this, allowsecondary );5130 changeChannel = RunProgramGuide(chanid, channum, true, this, allowsecondary, true); 5131 5131 break; 5132 5132 } 5133 5133 case kPlaybackBox: … … 5169 5169 { 5170 5170 default: 5171 5171 case kScheduleProgramGuide: 5172 RunProgramGuide(chanid, channum, true );5172 RunProgramGuide(chanid, channum, true, NULL, true, true); 5173 5173 break; 5174 5174 case kScheduleProgramFinder: 5175 RunProgramFind(true, false );5175 RunProgramFind(true, false, true); 5176 5176 break; 5177 5177 case kScheduledRecording: 5178 5178 { -
libs/libmythtv/progfind.cpp
34 34 #include "libmyth/mythcontext.h" 35 35 #include "libmyth/mythdbcon.h" 36 36 37 void RunProgramFind(bool thread, bool ggActive )37 void RunProgramFind(bool thread, bool ggActive, bool needsresize) 38 38 { 39 int x, y, width, height; 40 float xm, ym; 41 39 42 if (thread) 40 43 qApp->lock(); 41 44 … … 54 57 programFind = new ProgFinder(gContext->GetMainWindow(), 55 58 "program finder", ggActive); 56 59 60 bool using_gui_size_for_tv = gContext->GetNumSetting("GuiSizeForTV", 0); 61 if (needsresize && !using_gui_size_for_tv) 62 { 63 gContext->GetScreenSettings(x, width, xm, y, height, ym); 64 programFind->setGeometry(x, y, width, height); 65 programFind->setFixedSize(QSize(width, height)); 66 } 67 57 68 programFind->Initialize(); 58 69 programFind->Show();