svgui  1.9
InteractiveFileFinder Class Reference

#include <InteractiveFileFinder.h>

Collaboration diagram for InteractiveFileFinder:

List of all members.

Public Member Functions

virtual ~InteractiveFileFinder ()
void setApplicationSessionExtension (QString extension)
 Specify the extension for this application's session files (without the dot)
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

Definition at line 35 of file InteractiveFileFinder.cpp.


Member Function Documentation

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

Definition at line 55 of file InteractiveFileFinder.cpp.

References m_sessionExtension.

Definition at line 37 of file InteractiveFileFinder.h.

References m_sessionExtension.

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().

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

Definition at line 227 of file InteractiveFileFinder.cpp.

References m_parent, and m_sessionExtension.

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

Definition at line 417 of file InteractiveFileFinder.cpp.

QString InteractiveFileFinder::find ( FileType  type,
QString  location,
QString  lastKnownLocation = "" 
)
void InteractiveFileFinder::setParentWidget ( QWidget *  parent) [static]

Definition at line 49 of file InteractiveFileFinder.cpp.

References getInstance(), and m_parent.

Definition at line 49 of file InteractiveFileFinder.h.

References m_instance.

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

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

Definition at line 500 of file InteractiveFileFinder.cpp.

Referenced by find().

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

Definition at line 53 of file InteractiveFileFinder.h.

Referenced by getInstance().

Definition at line 59 of file InteractiveFileFinder.h.

Referenced by find(), and locateInteractive().

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: