GameUI Class Reference

#include <gameui.h>

Inheritance diagram for GameUI:
MythScreenType MythUIType XMLParseBase

List of all members.

Public Slots

void nodeChanged (MythGenericTree *node)
void itemClicked (MythUIButtonListItem *item)
void showImages (void)
void searchComplete (QString)
void gameSearch (MythGenericTree *node=NULL, bool automode=false)
void OnGameSearchListSelection (MetadataLookup *lookup)
void OnGameSearchDone (MetadataLookup *lookup)
void StartGameImageSet (MythGenericTree *node, QStringList coverart, QStringList fanart, QStringList screenshot)
void doScan (void)
void reloadAllData (bool dbchanged)

Public Member Functions

 GameUI (MythScreenStack *parentStack)
 ~GameUI ()
bool Create ()
void Load ()
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning).
bool keyPressEvent (QKeyEvent *event)
 Key event handler.

Private Member Functions

void updateRomInfo (RomInfo *rom)
void clearRomInfo (void)
void edit (void)
void showInfo (void)
void showMenu (void)
void searchStart (void)
void toggleFavorite (void)
void customEvent (QEvent *event)
void createBusyDialog (QString title)
QString getFillSql (MythGenericTree *node) const
QString getChildLevelString (MythGenericTree *node) const
QString getFilter (MythGenericTree *node) const
int getLevelsOnThisBranch (MythGenericTree *node) const
bool isLeaf (MythGenericTree *node) const
void fillNode (MythGenericTree *node)
void resetOtherTrees (MythGenericTree *node)
void updateChangedNode (MythGenericTree *node, RomInfo *romInfo)
void handleDownloadedImages (MetadataLookup *lookup)

Private Attributes

bool m_showHashed
int m_gameShowFileName
MythGenericTreem_gameTree
MythGenericTreem_favouriteNode
MythUIBusyDialogm_busyPopup
MythScreenStackm_popupStack
MythUIButtonTreem_gameUITree
MythUITextm_gameTitleText
MythUITextm_gameSystemText
MythUITextm_gameYearText
MythUITextm_gameGenreText
MythUITextm_gamePlotText
MythUIStateTypem_gameFavouriteState
MythUIImagem_gameImage
MythUIImagem_fanartImage
MythUIImagem_boxImage
MetadataDownloadm_query
MetadataImageDownloadm_imageDownload
GameScannerm_scanner

Detailed Description

Definition at line 24 of file gameui.h.


Constructor & Destructor Documentation

GameUI::GameUI ( MythScreenStack parentStack  ) 
GameUI::~GameUI (  ) 

Definition at line 62 of file gameui.cpp.


Member Function Documentation

bool GameUI::Create ( void   )  [virtual]

Reimplemented from MythScreenType.

Definition at line 66 of file gameui.cpp.

Referenced by RunGames().

void GameUI::Load ( void   )  [virtual]

Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning).

Warning:
This method should only load data, it should NEVER perform UI routines or segfaults WILL result. This includes assinging data to any widgets, calling methods on a widget or anything else which triggers redraws. The safest and recommended approach is to avoid any interaction with a libmythui class or class member.

Reimplemented from MythScreenType.

Definition at line 104 of file gameui.cpp.

Referenced by Create(), and reloadAllData().

bool GameUI::keyPressEvent ( QKeyEvent *   )  [virtual]

Key event handler.

Parameters:
event Keypress event

Reimplemented from MythScreenType.

Definition at line 181 of file gameui.cpp.

void GameUI::nodeChanged ( MythGenericTree node  )  [slot]

Definition at line 219 of file gameui.cpp.

Referenced by Create(), and updateChangedNode().

void GameUI::itemClicked ( MythUIButtonListItem item  )  [slot]

Definition at line 256 of file gameui.cpp.

Referenced by Create(), and customEvent().

void GameUI::showImages ( void   )  [slot]

Definition at line 296 of file gameui.cpp.

Referenced by nodeChanged().

void GameUI::searchComplete ( QString  string  )  [slot]

Definition at line 306 of file gameui.cpp.

Referenced by searchStart().

void GameUI::gameSearch ( MythGenericTree node = NULL,
bool  automode = false 
) [slot]

Definition at line 889 of file gameui.cpp.

Referenced by customEvent(), and keyPressEvent().

void GameUI::OnGameSearchListSelection ( MetadataLookup lookup  )  [slot]

Definition at line 942 of file gameui.cpp.

Referenced by customEvent().

void GameUI::OnGameSearchDone ( MetadataLookup lookup  )  [slot]

Definition at line 951 of file gameui.cpp.

Referenced by customEvent().

void GameUI::StartGameImageSet ( MythGenericTree node,
QStringList  coverart,
QStringList  fanart,
QStringList  screenshot 
) [slot]

Definition at line 1005 of file gameui.cpp.

Referenced by OnGameSearchDone().

void GameUI::doScan ( void   )  [slot]

Definition at line 1093 of file gameui.cpp.

Referenced by customEvent().

void GameUI::reloadAllData ( bool  dbchanged  )  [slot]

Definition at line 1101 of file gameui.cpp.

Referenced by doScan().

void GameUI::updateRomInfo ( RomInfo rom  )  [private]

Definition at line 320 of file gameui.cpp.

Referenced by nodeChanged().

void GameUI::clearRomInfo ( void   )  [private]

Definition at line 358 of file gameui.cpp.

Referenced by nodeChanged().

void GameUI::edit ( void   )  [private]

Definition at line 383 of file gameui.cpp.

Referenced by customEvent(), and keyPressEvent().

void GameUI::showInfo ( void   )  [private]

Definition at line 405 of file gameui.cpp.

Referenced by customEvent(), and keyPressEvent().

void GameUI::showMenu ( void   )  [private]

Definition at line 427 of file gameui.cpp.

Referenced by keyPressEvent().

void GameUI::searchStart ( void   )  [private]

Definition at line 461 of file gameui.cpp.

Referenced by keyPressEvent().

void GameUI::toggleFavorite ( void   )  [private]

Definition at line 494 of file gameui.cpp.

Referenced by customEvent(), and keyPressEvent().

void GameUI::customEvent ( QEvent *  event  )  [private, virtual]

Reimplemented from MythUIType.

Definition at line 505 of file gameui.cpp.

void GameUI::createBusyDialog ( QString  title  )  [private]

Definition at line 928 of file gameui.cpp.

Referenced by gameSearch().

QString GameUI::getFillSql ( MythGenericTree node  )  const [private]

Definition at line 638 of file gameui.cpp.

Referenced by fillNode().

QString GameUI::getChildLevelString ( MythGenericTree node  )  const [private]

Definition at line 759 of file gameui.cpp.

Referenced by fillNode(), and getFillSql().

QString GameUI::getFilter ( MythGenericTree node  )  const [private]

Definition at line 769 of file gameui.cpp.

Referenced by getFillSql().

int GameUI::getLevelsOnThisBranch ( MythGenericTree node  )  const [private]

Definition at line 777 of file gameui.cpp.

Referenced by fillNode(), getFillSql(), and isLeaf().

bool GameUI::isLeaf ( MythGenericTree node  )  const [private]

Definition at line 786 of file gameui.cpp.

Referenced by edit(), itemClicked(), nodeChanged(), showInfo(), showMenu(), and toggleFavorite().

void GameUI::fillNode ( MythGenericTree node  )  [private]

Definition at line 791 of file gameui.cpp.

Referenced by nodeChanged().

void GameUI::resetOtherTrees ( MythGenericTree node  )  [private]

Definition at line 856 of file gameui.cpp.

Referenced by updateChangedNode().

void GameUI::updateChangedNode ( MythGenericTree node,
RomInfo romInfo 
) [private]

Definition at line 877 of file gameui.cpp.

Referenced by customEvent(), handleDownloadedImages(), OnGameSearchDone(), and toggleFavorite().

void GameUI::handleDownloadedImages ( MetadataLookup lookup  )  [private]

Definition at line 1054 of file gameui.cpp.

Referenced by customEvent().


Member Data Documentation

Definition at line 72 of file gameui.h.

Referenced by getFillSql(), and Load().

Definition at line 73 of file gameui.h.

Referenced by Create(), and getFillSql().

Definition at line 75 of file gameui.h.

Referenced by Load(), reloadAllData(), and resetOtherTrees().

Definition at line 76 of file gameui.h.

Referenced by Load(), nodeChanged(), and updateChangedNode().

Definition at line 78 of file gameui.h.

Referenced by createBusyDialog(), customEvent(), and OnGameSearchDone().

Definition at line 79 of file gameui.h.

Referenced by createBusyDialog(), and customEvent().

Definition at line 82 of file gameui.h.

Referenced by clearRomInfo(), Create(), and updateRomInfo().

Definition at line 83 of file gameui.h.

Referenced by clearRomInfo(), Create(), and updateRomInfo().

Definition at line 84 of file gameui.h.

Referenced by clearRomInfo(), Create(), and updateRomInfo().

Definition at line 85 of file gameui.h.

Referenced by clearRomInfo(), Create(), and updateRomInfo().

Definition at line 86 of file gameui.h.

Referenced by clearRomInfo(), Create(), and updateRomInfo().

Definition at line 87 of file gameui.h.

Referenced by clearRomInfo(), Create(), and updateRomInfo().

Definition at line 88 of file gameui.h.

Referenced by clearRomInfo(), Create(), nodeChanged(), showImages(), and updateRomInfo().

Definition at line 89 of file gameui.h.

Referenced by clearRomInfo(), Create(), nodeChanged(), showImages(), and updateRomInfo().

Definition at line 90 of file gameui.h.

Referenced by clearRomInfo(), Create(), nodeChanged(), showImages(), and updateRomInfo().

Definition at line 92 of file gameui.h.

Referenced by gameSearch(), and OnGameSearchListSelection().

Definition at line 93 of file gameui.h.

Referenced by StartGameImageSet().

Definition at line 95 of file gameui.h.

Referenced by doScan(), and reloadAllData().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:04 2012 for MythTV by  doxygen 1.6.3