openMSX
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
openmsx::ImGuiMedia Class Referencefinal

#include <ImGuiMedia.hh>

Inheritance diagram for openmsx::ImGuiMedia:
Inheritance graph
[legend]
Collaboration diagram for openmsx::ImGuiMedia:
Collaboration graph
[legend]

Classes

struct  CartridgeMediaInfo
 
struct  CassetteMediaInfo
 
struct  DiskMediaInfo
 
struct  ExtensionInfo
 
struct  ItemGroup
 
struct  MediaItem
 

Public Types

enum  SelectDiskType { SELECT_DISK_IMAGE , SELECT_DIR_AS_DISK , SELECT_RAMDISK , SELECT_EMPTY_DISK }
 
enum  SelectCartridgeType { SELECT_ROM_IMAGE , SELECT_EXTENSION , SELECT_EMPTY_SLOT }
 

Public Member Functions

zstring_view iniName () const override
 
void save (ImGuiTextBuffer &buf) override
 
void loadLine (std::string_view name, zstring_view value) override
 
void showMenu (MSXMotherBoard *motherBoard) override
 
void paint (MSXMotherBoard *motherBoard) override
 
std::string displayNameForExtension (std::string_view config)
 
std::string displayNameForRom (const std::string &filename, bool compact=false)
 
std::string displayNameForHardwareConfig (const HardwareConfig &config, bool compact=false)
 
std::string displayNameForSlotContent (const CartridgeSlotManager &slotManager, unsigned slotNr, bool compact=false)
 
std::string slotAndNameForHardwareConfig (const CartridgeSlotManager &slotManager, const HardwareConfig &config)
 
std::string displayNameForDriveContent (unsigned drive, bool compact=false)
 
std::vector< ExtensionInfo > & getAllExtensions ()
 
void resetExtensionInfo ()
 
ExtensionInfofindExtensionInfo (std::string_view config)
 
const std::string & getTestResult (ExtensionInfo &info)
 
 ImGuiPart (ImGuiManager &manager_)
 
 ImGuiPart (const ImGuiPart &)=delete
 
 ImGuiPart (ImGuiPart &&)=delete
 
- Public Member Functions inherited from openmsx::ImGuiPart
 ImGuiPart (ImGuiManager &manager_)
 
 ~ImGuiPart ()
 
 ImGuiPart (const ImGuiPart &)=delete
 
 ImGuiPart (ImGuiPart &&)=delete
 
ImGuiPartoperator= (const ImGuiPart &)=delete
 
ImGuiPartoperator= (ImGuiPart &&)=delete
 
- Public Member Functions inherited from openmsx::ImGuiPartInterface
virtual void loadStart ()
 
virtual void loadEnd ()
 

Static Public Member Functions

static void printDatabase (const RomInfo &romInfo, const char *buf)
 
static bool selectMapperType (const char *label, RomType &item)
 
static std::string diskFilter ()
 

Public Attributes

bool resetOnInsertRom = true
 

Additional Inherited Members

- Protected Attributes inherited from openmsx::ImGuiPart
ImGuiManagermanager
 

Detailed Description

Definition at line 27 of file ImGuiMedia.hh.

Member Enumeration Documentation

◆ SelectCartridgeType

Enumerator
SELECT_ROM_IMAGE 
SELECT_EXTENSION 
SELECT_EMPTY_SLOT 

Definition at line 65 of file ImGuiMedia.hh.

◆ SelectDiskType

Enumerator
SELECT_DISK_IMAGE 
SELECT_DIR_AS_DISK 
SELECT_RAMDISK 
SELECT_EMPTY_DISK 

Definition at line 59 of file ImGuiMedia.hh.

Member Function Documentation

◆ diskFilter()

std::string openmsx::ImGuiMedia::diskFilter ( )
static

Definition at line 212 of file ImGuiMedia.cc.

References openmsx::DiskImageCLI::getExtensions().

◆ displayNameForDriveContent()

std::string openmsx::ImGuiMedia::displayNameForDriveContent ( unsigned  drive,
bool  compact = false 
)

◆ displayNameForExtension()

std::string openmsx::ImGuiMedia::displayNameForExtension ( std::string_view  config)

Definition at line 319 of file ImGuiMedia.cc.

References findExtensionInfo().

Referenced by displayNameForHardwareConfig(), and showMenu().

◆ displayNameForHardwareConfig()

std::string openmsx::ImGuiMedia::displayNameForHardwareConfig ( const HardwareConfig config,
bool  compact = false 
)

◆ displayNameForRom()

std::string openmsx::ImGuiMedia::displayNameForRom ( const std::string &  filename,
bool  compact = false 
)

◆ displayNameForSlotContent()

std::string openmsx::ImGuiMedia::displayNameForSlotContent ( const CartridgeSlotManager slotManager,
unsigned  slotNr,
bool  compact = false 
)

◆ findExtensionInfo()

ImGuiMedia::ExtensionInfo * openmsx::ImGuiMedia::findExtensionInfo ( std::string_view  config)

◆ getAllExtensions()

std::vector< ImGuiMedia::ExtensionInfo > & openmsx::ImGuiMedia::getAllExtensions ( )

Definition at line 250 of file ImGuiMedia.cc.

References openmsx::ImGuiPart::manager.

Referenced by findExtensionInfo(), and showMenu().

◆ getTestResult()

const std::string & openmsx::ImGuiMedia::getTestResult ( ExtensionInfo info)

◆ ImGuiPart() [1/3]

openmsx::ImGuiPart::ImGuiPart ( const ImGuiPart )
delete

◆ ImGuiPart() [2/3]

openmsx::ImGuiPart::ImGuiPart ( ImGuiManager manager_)
inlineexplicit

Definition at line 12 of file ImGuiPart.hh.

◆ ImGuiPart() [3/3]

openmsx::ImGuiPart::ImGuiPart ( ImGuiPart &&  )
delete

◆ iniName()

zstring_view openmsx::ImGuiMedia::iniName ( ) const
inlineoverridevirtual

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 40 of file ImGuiMedia.hh.

◆ loadLine()

void openmsx::ImGuiMedia::loadLine ( std::string_view  name,
zstring_view  value 
)
overridevirtual

◆ paint()

void openmsx::ImGuiMedia::paint ( MSXMotherBoard motherBoard)
overridevirtual

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 692 of file ImGuiMedia.cc.

References openmsx::MSXMotherBoard::getSlotManager(), and xrange().

◆ printDatabase()

void openmsx::ImGuiMedia::printDatabase ( const RomInfo romInfo,
const char *  buf 
)
static

◆ resetExtensionInfo()

void openmsx::ImGuiMedia::resetExtensionInfo ( )

Definition at line 258 of file ImGuiMedia.cc.

◆ save()

void openmsx::ImGuiMedia::save ( ImGuiTextBuffer &  buf)
overridevirtual

◆ selectMapperType()

bool openmsx::ImGuiMedia::selectMapperType ( const char *  label,
RomType item 
)
static

Definition at line 840 of file ImGuiMedia.cc.

References im::Combo(), and openmsx::simpleToolTip().

Referenced by openmsx::ImGuiManager::paintImGui().

◆ showMenu()

void openmsx::ImGuiMedia::showMenu ( MSXMotherBoard motherBoard)
overridevirtual

◆ slotAndNameForHardwareConfig()

std::string openmsx::ImGuiMedia::slotAndNameForHardwareConfig ( const CartridgeSlotManager slotManager,
const HardwareConfig config 
)

Member Data Documentation

◆ resetOnInsertRom

bool openmsx::ImGuiMedia::resetOnInsertRom = true

Definition at line 106 of file ImGuiMedia.hh.


The documentation for this class was generated from the following files: