fw4spl
fwGui::dialog::ILocationDialog Class Referenceabstract
+ Inheritance diagram for fwGui::dialog::ILocationDialog:
+ Collaboration diagram for fwGui::dialog::ILocationDialog:

Public Types

enum  Options { NONE = 0, READ = 1 << 1, WRITE = 1 << 2, FILE_MUST_EXIST = 1 << 3 }
 
enum  Types { SINGLE_FILE, FOLDER, MULTI_FILES }
 
typedef std::string FactoryRegistryKeyType
 
- Public Types inherited from fwGui::GuiBaseObject
typedef ::fwGui::factory::Key Key
 

Public Member Functions

virtual bool isA (const std::string &type) const override
 
virtual FWGUI_API void setTitle (const std::string &title)
 set the title for the dialog
 
virtual FWGUI_API const std::string & getTitle ()
 returns the title for the dialog
 
virtual FWGUI_API void setDefaultLocation (::fwData::location::ILocation::sptr loc)
 set the initial location for the dialog
 
virtual FWGUI_APIconst::boost::filesystem::path getDefaultLocation ()
 get the default location for the dialog (from preferences or specified by user)
 
virtual FWGUI_API void saveDefaultLocation (::fwData::location::ILocation::sptr loc)
 save the specified default location for the dialog in preferences (if available)
 
virtual FWGUI_API void setType (Types type)=0
 set the type of location for the dialog (SINGLE_FILE, FORLDER, MULTI_FILES)
 
virtual FWGUI_API ILocationDialogsetOption (Options option)=0
 allow to set option to the file dialog mode=READ/WRITE , check=FILE_MUST_EXIST
 
virtual FWGUI_API void addFilter (const std::string &filterName, const std::string &wildcardList)=0
 specify some filtering when browsing files: More...
 
virtual FWGUI_API::fwData::location::ILocation::sptr show ()=0
 
virtual FWGUI_API std::string getCurrentSelection () const =0
 Gets the current extension file selection.
 
- Public Member Functions inherited from fwGui::GuiBaseObject
- Public Member Functions inherited from fwCore::BaseObject
virtual const std::string & getLeafClassname () const
 return object's classname without its namespace, i.e. BaseObject
 

Static Public Member Functions

static bool isTypeOf (const std::string &type)
 
- Static Public Member Functions inherited from fwGui::GuiBaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & classname ()
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
- Static Public Member Functions inherited from fwCore::BaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Static Public Attributes

static FWGUI_API const FactoryRegistryKeyType REGISTRY_KEY = "::fwGui::dialog::LocationDialog"
 this unique key should be used for all factory for specific LocationDialog(qt,wx,...)
 
static FWGUI_API const std::string SOFTWARE_UI = "SOFTWARE_UI"
 
static FWGUI_API const std::string DLG_DEFAULT_LOCATION = "DLG_DEFAULT_LOCATION"
 

Protected Member Functions

FWGUI_API void readConfig ()
 
FWGUI_API void writeConfig ()
 
FWGUI_API::fwData::Composite::sptr getPreferenceUI ()
 
- Protected Member Functions inherited from fwGui::GuiBaseObject
 GuiBaseObject ()
 
virtual ~GuiBaseObject ()
 

Demangling methods

virtual const std::string & getClassname () const override
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
static const std::string & classname ()
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 

Detailed Description

Definition at line 31 of file ILocationDialog.hpp.

Member Function Documentation

virtual FWGUI_API void fwGui::dialog::ILocationDialog::addFilter ( const std::string &  filterName,
const std::string &  wildcardList 
)
pure virtual

specify some filtering when browsing files:

Parameters
[in]filterNamea string that will be displayed as filter name
[in]wildcardLista string of extension (glob syntax) separated by spaces example : addFilter("images","*.png *.jpg")

Implemented in fwGui::dialog::LocationDialog, and fwGuiQt::dialog::LocationDialog.

virtual FWGUI_API ::fwData::location::ILocation::sptr fwGui::dialog::ILocationDialog::show ( )
pure virtual

Display the dialog

Returns
the ILocation selected or null sptr if user cancel the operation

Implemented in fwGui::dialog::LocationDialog, and fwGuiQt::dialog::LocationDialog.

Referenced by fwGui::dialog::LocationDialog::show().

+ Here is the caller graph for this function:


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