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 class  SelectDiskType : int {
  IMAGE , DIR_AS_DISK , RAMDISK , EMPTY ,
  NUM
}
 
enum class  SelectCartridgeType : int { IMAGE , EXTENSION , EMPTY , NUM }
 

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)
 
void addRecent (const TclObject &cmd)
 
 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 29 of file ImGuiMedia.hh.

Member Enumeration Documentation

◆ SelectCartridgeType

Enumerator
IMAGE 
EXTENSION 
EMPTY 
NUM 

Definition at line 67 of file ImGuiMedia.hh.

◆ SelectDiskType

enum class openmsx::ImGuiMedia::SelectDiskType : int
strong
Enumerator
IMAGE 
DIR_AS_DISK 
RAMDISK 
EMPTY 
NUM 

Definition at line 63 of file ImGuiMedia.hh.

Member Function Documentation

◆ addRecent()

void openmsx::ImGuiMedia::addRecent ( const TclObject cmd)

◆ diskFilter()

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

Definition at line 216 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 323 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 254 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 42 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

◆ printDatabase()

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

◆ resetExtensionInfo()

void openmsx::ImGuiMedia::resetExtensionInfo ( )

Definition at line 262 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 846 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 112 of file ImGuiMedia.hh.


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