NDEVR
API Documentation
ImageEditApplicationManager

Finds any acceptable Image editors (MS Paint, GIMP Photoshop, etc) and allows them to be used as editors. More...

Collaboration diagram for ImageEditApplicationManager:
[legend]

Public Member Functions

 ImageEditApplicationManager ()
 Constructs an ImageEditApplicationManager and searches for available editors.
const Buffer< ApplicationLauncherButtonManager * > & buttonManagers () const
 Returns the button managers for each discovered image editor.
void findApps ()
 Searches the system for available image editing applications.
void setImage (const TranslatedString &name, const StringView &image)
 Sets the image to be edited and its display name.

Protected Member Functions

void findGIMP ()
 Searches for GIMP on the system.
void findMSPaint ()
 Searches for Microsoft Paint on the system.

Protected Attributes

Buffer< ApplicationLauncherButtonManager * > m_button_managers
 Button managers for discovered editors.
String m_image
 The current image path or identifier to edit.
TranslatedString m_name
 The display name of the current image.
Time updated_time
 The last modification time of the image.

Detailed Description

Finds any acceptable Image editors (MS Paint, GIMP Photoshop, etc) and allows them to be used as editors.


Definition at line 14 of file ImageEditApplicationManager.h.

Member Function Documentation

◆ buttonManagers()

const Buffer< ApplicationLauncherButtonManager * > & ImageEditApplicationManager::buttonManagers ( ) const
inline

Returns the button managers for each discovered image editor.

Returns
A reference to the buffer of ApplicationLauncherButtonManager pointers.

Definition at line 31 of file ImageEditApplicationManager.h.

References m_button_managers.

◆ setImage()

void ImageEditApplicationManager::setImage ( const TranslatedString & name,
const StringView & image )

Sets the image to be edited and its display name.

Parameters
[in]nameThe translated display name for the image.
[in]imageThe image path or identifier.

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