36 QMap<QString, QString> t;
38 t[
"rui"] =
"layoutWrapper";
41 t[
"rpt"] =
"paneTransitioner";
42 t[
"rcs"] =
"contentSelector";
44 t[
"rnc"] =
"nodeCanvas";
45 t[
"rnd"] =
"nodeCanvasNode";
47 t[
"rn3"] =
"glCanvas";
54 t[
"runity"] =
"unityPane";
75 QMap<QString, bool> j;
80 j[
"textStream"] =
false;
101 QFileInfo info(_path);
103 QString ext = info.suffix();
106 return typeMap.value(ext,_default);
107 else if (info.isDir())
124 return jsonMap.value(_type,
false);
static bool registerType(QString type, QString handler, bool json=true)
Add a type to the registry.
static QMap< QString, QString > initTypes()
Initialize the type library.
static QMap< QString, bool > initJsons()
Initialize the jsons library.
static bool isJsonType(QString _type)
Check if a type is known to be json.
static QMap< QString, QString > typeMap
The extension:type map.
static QString getType(QString _path, QString _default="unknownType")
Fetch the type of a file, based on path/filename.ext.
static QMap< QString, bool > jsonMap
The extension:isjson map.
static bool unregisterType(QString type)
Remove a type from the registry.
setter type
a setter DOCME