openMSX
Public Types | Public Member Functions | Static Public Member Functions | List of all members
openmsx::ImGuiOpenFile Class Referencefinal

#include <ImGuiOpenFile.hh>

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

Public Types

enum class  Painter { MANAGER , DISKMANIPULATOR }
 

Public Member Functions

void selectFile (const std::string &title, std::string filters, const std::function< void(const std::string &)> &callback, zstring_view lastLocationHint={}, Painter painter=Painter::MANAGER)
 
void selectNewFile (const std::string &title, std::string filters, const std::function< void(const std::string &)> &callback, zstring_view lastLocationHint={}, Painter painter=Painter::MANAGER)
 
void selectDirectory (const std::string &title, const std::function< void(const std::string &)> &callback, zstring_view lastLocationHint={}, Painter painter=Painter::MANAGER)
 
zstring_view iniName () const override
 
void save (ImGuiTextBuffer &buf) override
 
void loadLine (std::string_view name, zstring_view value) override
 
bool mustPaint (Painter p) const
 
void doPaint ()
 
 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 ()
 
virtual void showMenu (MSXMotherBoard *)
 
virtual void paint (MSXMotherBoard *)
 

Static Public Member Functions

static std::string getLastFilter ()
 

Additional Inherited Members

- Protected Attributes inherited from openmsx::ImGuiPart
ImGuiManagermanager
 

Detailed Description

Definition at line 12 of file ImGuiOpenFile.hh.

Member Enumeration Documentation

◆ Painter

Enumerator
MANAGER 
DISKMANIPULATOR 

Definition at line 15 of file ImGuiOpenFile.hh.

Member Function Documentation

◆ doPaint()

void openmsx::ImGuiOpenFile::doPaint ( )

Definition at line 149 of file ImGuiOpenFile.cc.

References openmsx::FileOperations::getConventionalPath().

◆ getLastFilter()

std::string openmsx::ImGuiOpenFile::getLastFilter ( )
static

Definition at line 165 of file ImGuiOpenFile.cc.

Referenced by openmsx::ImGuiSymbols::paint().

◆ 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::ImGuiOpenFile::iniName ( ) const
inlineoverridevirtual

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 38 of file ImGuiOpenFile.hh.

◆ loadLine()

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

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 25 of file ImGuiOpenFile.cc.

◆ mustPaint()

bool openmsx::ImGuiOpenFile::mustPaint ( Painter  p) const
inline

Definition at line 42 of file ImGuiOpenFile.hh.

◆ save()

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

Reimplemented from openmsx::ImGuiPartInterface.

Definition at line 16 of file ImGuiOpenFile.cc.

◆ selectDirectory()

void openmsx::ImGuiOpenFile::selectDirectory ( const std::string &  title,
const std::function< void(const std::string &)> &  callback,
zstring_view  lastLocationHint = {},
Painter  painter = Painter::MANAGER 
)

Definition at line 116 of file ImGuiOpenFile.cc.

◆ selectFile()

void openmsx::ImGuiOpenFile::selectFile ( const std::string &  title,
std::string  filters,
const std::function< void(const std::string &)> &  callback,
zstring_view  lastLocationHint = {},
Painter  painter = Painter::MANAGER 
)

Definition at line 90 of file ImGuiOpenFile.cc.

◆ selectNewFile()

void openmsx::ImGuiOpenFile::selectNewFile ( const std::string &  title,
std::string  filters,
const std::function< void(const std::string &)> &  callback,
zstring_view  lastLocationHint = {},
Painter  painter = Painter::MANAGER 
)

Definition at line 102 of file ImGuiOpenFile.cc.


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