summaryrefslogtreecommitdiffstats
path: root/parts/filecreate/filecreate_part.h
diff options
context:
space:
mode:
Diffstat (limited to 'parts/filecreate/filecreate_part.h')
-rw-r--r--parts/filecreate/filecreate_part.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/parts/filecreate/filecreate_part.h b/parts/filecreate/filecreate_part.h
index 9d090493..ab870791 100644
--- a/parts/filecreate/filecreate_part.h
+++ b/parts/filecreate/filecreate_part.h
@@ -68,6 +68,13 @@ public:
*/
FileType * getType(const TQString & ext, const TQString subtype = TQString());
/**
+ * Finds the file type object for a given file type or subtype ID.
+ * IDs for file types are not persistent. ID is a sequence number assigned when
+ * reading file type definitions from an XML file. Negative numbers are assigned
+ * for custom file types.
+ */
+ FileType * getType(int id);
+ /**
* Finds the file type object for a given extension and optionally subtype.
* You can omit the subtype and specify the extension as ext-subtype if you wish.
* Returns only enabled type (i.e. used in the project).
@@ -93,9 +100,9 @@ public slots:
/**
* Called from TDEToolBarPopupMenu to request a new file action
- * @param pFileType is acutally a pointer to FileType
+ * @param fileTypeId is a sequence number that identifies a particular FileType
*/
- void slotNewFilePopup(int pFileType);
+ void slotNewFilePopup(int fileTypeId);
protected slots:
void slotNoteFiletype(const FileType * filetype);