MythTV  master
Classes | Macros | Functions | Variables
gamesettings.cpp File Reference
#include <QCoreApplication>
#include <mythdb.h>
#include <mythdirs.h>
#include "gamesettings.h"
Include dependency graph for gamesettings.cpp:

Go to the source code of this file.

Classes

struct  GameTypes
 
struct  GameDBStorage
 Game player database table reader/writer. More...
 
struct  TextEdit
 Base for Game textual settings. More...
 
struct  Name
 
struct  Command
 
struct  GameType
 
struct  RomPath
 
struct  WorkingDirPath
 
struct  Extensions
 
struct  AllowMultipleRoms
 

Macros

#define MAX_GAME_TYPES   12
 
#define TR   GameGeneralSettings::tr
 
#define TR   GamePlayerSetting::tr
 

Functions

QString GetGameTypeName (const QString &GameType)
 
QString GetGameTypeExtensions (const QString &GameType)
 
static HostTextEditSettingGameAllTreeLevels ()
 
static HostTextEditSettingGameFavTreeLevels ()
 
static HostCheckBoxSettingGameDeepScan ()
 
static HostCheckBoxSettingGameRemovalPrompt ()
 
static HostCheckBoxSettingGameShowFileNames ()
 
static HostCheckBoxSettingGameTreeView ()
 
static HostTextEditSettingGetScreenshotDir ()
 
static HostTextEditSettingGetFanartDir ()
 
static HostTextEditSettingGetBoxartDir ()
 

Variables

const GameTypes GameTypeList [MAX_GAME_TYPES]
 

Macro Definition Documentation

◆ MAX_GAME_TYPES

#define MAX_GAME_TYPES   12

Definition at line 14 of file gamesettings.cpp.

◆ TR [1/2]

#define TR   GameGeneralSettings::tr

Definition at line 197 of file gamesettings.cpp.

◆ TR [2/2]

#define TR   GamePlayerSetting::tr

Definition at line 197 of file gamesettings.cpp.

Function Documentation

◆ GetGameTypeName()

QString GetGameTypeName ( const QString &  GameType)

Definition at line 32 of file gamesettings.cpp.

Referenced by GamePlayersList::Load().

◆ GetGameTypeExtensions()

QString GetGameTypeExtensions ( const QString &  GameType)

Definition at line 47 of file gamesettings.cpp.

◆ GameAllTreeLevels()

static HostTextEditSetting* GameAllTreeLevels ( )
static

Definition at line 67 of file gamesettings.cpp.

Referenced by GameGeneralSettings::GameGeneralSettings().

◆ GameFavTreeLevels()

static HostTextEditSetting* GameFavTreeLevels ( )
static

Definition at line 80 of file gamesettings.cpp.

Referenced by GameGeneralSettings::GameGeneralSettings().

◆ GameDeepScan()

static HostCheckBoxSetting* GameDeepScan ( )
static

Definition at line 93 of file gamesettings.cpp.

Referenced by GameGeneralSettings::GameGeneralSettings().

◆ GameRemovalPrompt()

static HostCheckBoxSetting* GameRemovalPrompt ( )
static

Definition at line 107 of file gamesettings.cpp.

Referenced by GameGeneralSettings::GameGeneralSettings().

◆ GameShowFileNames()

static HostCheckBoxSetting* GameShowFileNames ( )
static

Definition at line 119 of file gamesettings.cpp.

Referenced by GameGeneralSettings::GameGeneralSettings().

◆ GameTreeView()

static HostCheckBoxSetting* GameTreeView ( )
static

Definition at line 131 of file gamesettings.cpp.

Referenced by GameGeneralSettings::GameGeneralSettings().

◆ GetScreenshotDir()

static HostTextEditSetting* GetScreenshotDir ( )
static

Definition at line 143 of file gamesettings.cpp.

Referenced by GameGeneralSettings::GameGeneralSettings().

◆ GetFanartDir()

static HostTextEditSetting* GetFanartDir ( )
static

Definition at line 155 of file gamesettings.cpp.

Referenced by GameGeneralSettings::GameGeneralSettings().

◆ GetBoxartDir()

static HostTextEditSetting* GetBoxartDir ( )
static

Definition at line 167 of file gamesettings.cpp.

Referenced by GameGeneralSettings::GameGeneralSettings().

Variable Documentation

◆ GameTypeList

const GameTypes GameTypeList[MAX_GAME_TYPES]
Initial value:
=
{
{ QT_TRANSLATE_NOOP("(GameTypes)", "OTHER"), "OTHER", "" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "AMIGA"), "AMIGA", "adf,ipf" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "ATARI"), "ATARI", "bin,a26" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "GAMEGEAR"), "GAMEGEAR", "gg" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "GENESIS/MEGADRIVE"), "GENESIS", "smd,bin,md" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "MAME"), "MAME", "" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "N64"), "N64", "v64,n64" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "NES"), "NES", "zip,nes" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "PC GAME"), "PC", "" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "PCE/TG16"),"PCE", "pce" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "SEGA/MASTER SYSTEM"), "SEGA", "sms" },
{ QT_TRANSLATE_NOOP("(GameTypes)", "SNES"), "SNES", "zip,smc,sfc,fig,swc" }
}

Definition at line 16 of file gamesettings.cpp.

Referenced by GameType::GameType(), GetGameTypeExtensions(), and GetGameTypeName().