Inviwo  0.9.10.1
Inviwo documentation
inviwo::FileAssociations Class Reference
+ Inheritance diagram for inviwo::FileAssociations:

Public Member Functions

 FileAssociations (QMainWindow *win)
 
void registerFileType (const std::string &documentId, const std::string &fileTypeName, const std::string &fileExtension, int appIconIndex=0, std::vector< FileAssociationCommand > commands={})
 
bool nativeEventFilter (const QByteArray &eventType, void *message, long *result) override
 

Member Function Documentation

◆ registerFileType()

void inviwo::FileAssociations::registerFileType ( const std::string &  documentId,
const std::string &  fileTypeName,
const std::string &  fileExtension,
int  appIconIndex = 0,
std::vector< FileAssociationCommand commands = {} 
)

Register a file type for opening with Inviwo

Parameters
documentIdId of the document, e.g. "Inviwo.workspace"
fileTypeNameName of the file type, e.g. "Inviwo Workspace"
fileExtensionFile extension, including the dot (e.g. ".inv")
appIconIndexIndex of the app icon to use for the file in the windows explorer, typically the application icon
commandsVector FileAssociationCommands see @FileAssociationCommand

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