1 #ifndef CNOID_BASE_ITEM_FILE_DIALOG_H
2 #define CNOID_BASE_ITEM_FILE_DIALOG_H
7 #include "exportdecl.h"
18 template <
class ItemType>
20 setRegisteredFileIOsFor_(
typeid(ItemType));
22 void setFileIOs(
const std::vector<ItemFileIO*>& fileIOs);
27 Item* parentItem =
nullptr,
28 bool doAddition =
true,
29 Item* nextItem =
nullptr);
31 void setExportMode(
bool on =
true);
32 bool saveItem(
Item* item);
34 static QString makeNameFilter(
35 const std::string& caption,
const std::vector<std::string>& extensions,
bool isAnyEnabled =
false);
38 void setRegisteredFileIOsFor_(
const std::type_info& type);