Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::FileAssociations Class Reference
+ Inheritance diagram for inviwo::FileAssociations:

Public Types

using ResultType = qintptr
 

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, qintptr *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 also
FileAssociationCommand

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