svgui  1.9
InteractiveFileFinder Class Reference

#include <InteractiveFileFinder.h>

Inheritance diagram for InteractiveFileFinder:
Collaboration diagram for InteractiveFileFinder:

Public Member Functions

virtual ~InteractiveFileFinder ()
 
void setApplicationSessionExtension (QString extension)
 Specify the extension for this application's session files (without the dot) More...
 
QString getApplicationSessionExtension () const
 
QString getOpenFileName (FileType type, QString fallbackLocation="")
 
QString getSaveFileName (FileType type, QString fallbackLocation="")
 
void registerLastOpenedFilePath (FileType type, QString path)
 
QString find (FileType type, QString location, QString lastKnownLocation="")
 

Static Public Member Functions

static void setParentWidget (QWidget *)
 
static InteractiveFileFindergetInstance ()
 

Protected Member Functions

 InteractiveFileFinder ()
 
QString findRelative (QString location, QString relativeTo)
 
QString locateInteractive (FileType type, QString thing)
 

Protected Attributes

QString m_sessionExtension
 
QString m_lastLocatedLocation
 
QWidget * m_parent
 

Static Protected Attributes

static InteractiveFileFinder m_instance
 

Detailed Description

Definition at line 25 of file InteractiveFileFinder.h.

Constructor & Destructor Documentation

◆ ~InteractiveFileFinder()

InteractiveFileFinder::~InteractiveFileFinder ( )
virtual

Definition at line 44 of file InteractiveFileFinder.cpp.

◆ InteractiveFileFinder()

InteractiveFileFinder::InteractiveFileFinder ( )
protected

Definition at line 35 of file InteractiveFileFinder.cpp.

Member Function Documentation

◆ setApplicationSessionExtension()

void InteractiveFileFinder::setApplicationSessionExtension ( QString  extension)

Specify the extension for this application's session files (without the dot)

Definition at line 55 of file InteractiveFileFinder.cpp.

References m_sessionExtension.

◆ getApplicationSessionExtension()

QString InteractiveFileFinder::getApplicationSessionExtension ( ) const
inline

Definition at line 37 of file InteractiveFileFinder.h.

References m_sessionExtension.

◆ getOpenFileName()

QString InteractiveFileFinder::getOpenFileName ( FileType  type,
QString  fallbackLocation = "" 
)

Definition at line 61 of file InteractiveFileFinder.cpp.

References m_parent, and m_sessionExtension.

Referenced by ImageDialog::browseClicked(), and locateInteractive().

◆ getSaveFileName()

QString InteractiveFileFinder::getSaveFileName ( FileType  type,
QString  fallbackLocation = "" 
)

Definition at line 227 of file InteractiveFileFinder.cpp.

References m_parent, and m_sessionExtension.

◆ registerLastOpenedFilePath()

void InteractiveFileFinder::registerLastOpenedFilePath ( FileType  type,
QString  path 
)

Definition at line 417 of file InteractiveFileFinder.cpp.

◆ find()

QString InteractiveFileFinder::find ( FileType  type,
QString  location,
QString  lastKnownLocation = "" 
)

◆ setParentWidget()

void InteractiveFileFinder::setParentWidget ( QWidget *  parent)
static

Definition at line 49 of file InteractiveFileFinder.cpp.

References getInstance(), and m_parent.

◆ getInstance()

static InteractiveFileFinder* InteractiveFileFinder::getInstance ( )
inlinestatic

Definition at line 49 of file InteractiveFileFinder.h.

References m_instance.

Referenced by ImageDialog::browseClicked(), and setParentWidget().

◆ findRelative()

QString InteractiveFileFinder::findRelative ( QString  location,
QString  relativeTo 
)
protected

Definition at line 500 of file InteractiveFileFinder.cpp.

Referenced by find().

◆ locateInteractive()

QString InteractiveFileFinder::locateInteractive ( FileType  type,
QString  thing 
)
protected

Definition at line 540 of file InteractiveFileFinder.cpp.

References getOpenFileName(), and m_lastLocatedLocation.

Referenced by find().

Member Data Documentation

◆ m_instance

InteractiveFileFinder InteractiveFileFinder::m_instance
staticprotected

Definition at line 53 of file InteractiveFileFinder.h.

Referenced by getInstance().

◆ m_sessionExtension

QString InteractiveFileFinder::m_sessionExtension
protected

◆ m_lastLocatedLocation

QString InteractiveFileFinder::m_lastLocatedLocation
protected

Definition at line 59 of file InteractiveFileFinder.h.

Referenced by find(), and locateInteractive().

◆ m_parent

QWidget* InteractiveFileFinder::m_parent
protected

Definition at line 61 of file InteractiveFileFinder.h.

Referenced by getOpenFileName(), getSaveFileName(), and setParentWidget().


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