Choreonoid  1.8
Public Member Functions | Static Public Member Functions | List of all members
cnoid::ItemFileDialog Class Reference

#include <ItemFileDialog.h>

Inheritance diagram for cnoid::ItemFileDialog:
cnoid::FileDialog

Public Member Functions

 ItemFileDialog ()
 
 ItemFileDialog (QWidget *parent)
 
 ~ItemFileDialog ()
 
template<class ItemType >
void setRegisteredFileIOsFor ()
 
void setFileIOs (const std::vector< ItemFileIO * > &fileIOs)
 
void setFileIO (ItemFileIO *fileIO)
 
void clearFileIOs ()
 
ItemList< ItemloadItems (Item *parentItem=nullptr, bool doAddition=true, Item *nextItem=nullptr)
 
void setExportMode (bool on=true)
 
bool saveItem (Item *item)
 
- Public Member Functions inherited from cnoid::FileDialog
 FileDialog ()
 
 FileDialog (QWidget *parent, Qt::WindowFlags f=0)
 
 ~FileDialog ()
 
void updatePresetDirectories ()
 
bool selectFilePath (const std::string &filePath)
 
void insertOptionPanel (QWidget *panel)
 
SignalProxy< void(int index)> sigFilterSelected ()
 
SignalProxy< bool(int result), LogicalProductsigAboutToFinished ()
 
virtual int exec () override
 
QFileDialog * fileDialog ()
 
QDir directory () const
 
QStringList nameFilters () const
 
QStringList selectedFiles () const
 
void selectFile (const QString &filename)
 
void selectFile (const std::string &filename)
 
void setAcceptMode (QFileDialog::AcceptMode mode)
 
void setDirectory (const QString &directory)
 
void setDirectory (const std::string &directory)
 
void setFileMode (QFileDialog::FileMode mode)
 
void setLabelText (QFileDialog::DialogLabel label, const QString &text)
 
void setNameFilter (const QString &filter)
 
void setNameFilters (const QStringList &filters)
 
void setOption (QFileDialog::Option option, bool on=true)
 
void setViewMode (QFileDialog::ViewMode mode)
 
void selectNameFilter (int index)
 

Static Public Member Functions

static QString makeNameFilter (const std::string &caption, const std::vector< std::string > &extensions, bool isAnyEnabled=false)
 

Constructor & Destructor Documentation

◆ ItemFileDialog() [1/2]

ItemFileDialog::ItemFileDialog ( )

◆ ItemFileDialog() [2/2]

ItemFileDialog::ItemFileDialog ( QWidget *  parent)

◆ ~ItemFileDialog()

ItemFileDialog::~ItemFileDialog ( )

Member Function Documentation

◆ clearFileIOs()

void ItemFileDialog::clearFileIOs ( )

◆ loadItems()

ItemList< Item > ItemFileDialog::loadItems ( Item parentItem = nullptr,
bool  doAddition = true,
Item nextItem = nullptr 
)

◆ makeNameFilter()

QString ItemFileDialog::makeNameFilter ( const std::string &  caption,
const std::vector< std::string > &  extensions,
bool  isAnyEnabled = false 
)
static

◆ saveItem()

bool ItemFileDialog::saveItem ( Item item)

◆ setExportMode()

void ItemFileDialog::setExportMode ( bool  on = true)

◆ setFileIO()

void ItemFileDialog::setFileIO ( ItemFileIO fileIO)

◆ setFileIOs()

void ItemFileDialog::setFileIOs ( const std::vector< ItemFileIO * > &  fileIOs)

◆ setRegisteredFileIOsFor()

template<class ItemType >
void cnoid::ItemFileDialog::setRegisteredFileIOsFor ( )
inline

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