Ticket #7716: 7716_v1.diff
File 7716_v1.diff, 3.2 KB (added by , 14 years ago) |
---|
-
libs/libmythui/mythscreentype.h
49 49 50 50 void doInit(void); 51 51 void LoadInForeground(void); 52 bool IsInitialized(void) const; 52 53 53 54 // if the widget is full screen and obscures widgets below it 54 55 bool IsFullscreen(void) const; … … 100 101 bool m_IsDeleting; 101 102 bool m_IsLoading; 102 103 bool m_IsLoaded; 104 bool m_IsInitialized; 103 105 104 106 MythUIType *m_CurrentFocusWidget; 105 107 //TODO We are currently dependant on the internal sorting of QMap for -
libs/libmythui/mythscreentype.cpp
45 45 m_IsDeleting = false; 46 46 m_IsLoading = false; 47 47 m_IsLoaded = false; 48 m_IsInitialized = false; 48 49 49 50 // Can be overridden, of course, but default to full sized. 50 51 m_Area = GetMythMainWindow()->GetUIScreenRect(); … … 58 59 m_CurrentFocusWidget = NULL; 59 60 60 61 m_ScreenStack = NULL; 62 m_BusyPopup = NULL; 61 63 m_IsDeleting = false; 64 m_IsLoading = false; 65 m_IsLoaded = false; 66 m_IsInitialized = false; 62 67 63 68 m_Area = GetMythMainWindow()->GetUIScreenRect(); 64 69 } … … 297 302 m_BusyPopup = NULL; 298 303 } 299 304 305 bool MythScreenType::IsInitialized(void) const 306 { 307 return m_IsInitialized; 308 } 309 300 310 void MythScreenType::doInit(void) 301 311 { 302 312 CloseBusyPopup(); 303 313 Init(); 314 m_IsInitialized = true; 304 315 } 305 316 306 317 void MythScreenType::Init(void) -
libs/libmythui/mythuihelper.h
59 59 Settings *qtconfig(void); 60 60 61 61 bool IsScreenSetup(void); 62 bool IsTopScreenInitialized(void); 62 63 63 64 // which the user may have set to be different from the raw screen size 64 65 void GetScreenSettings(float &wmult, float &hmult); -
libs/libmythui/mythuihelper.cpp
365 365 return d->screenSetup; 366 366 } 367 367 368 bool MythUIHelper::IsTopScreenInitialized(void) 369 { 370 return GetMythMainWindow()->GetMainStack()->GetTopScreen()->IsInitialized(); 371 } 372 368 373 void MythUIHelper::LoadQtConfig(void) 369 374 { 370 375 d->language.clear(); -
programs/mythfrontend/networkcontrol.cpp
629 629 while ((timer.elapsed() < 10000) && 630 630 (GetMythUI()->GetCurrentLocation().toLower() != "playbackbox")) 631 631 usleep(10000); 632 633 timer.start(); 634 while ((timer.elapsed() < 10000) && 635 (!GetMythUI()->IsTopScreenInitialized())) 636 usleep(10000); 632 637 } 633 638 634 639 if (GetMythUI()->GetCurrentLocation().toLower() == "playbackbox")