From: Michel L. <mic...@kd...> - 2006-09-15 15:53:21
|
On Thu 14 Sep 2006 11:05, Jeroen Wijnhout wrote: > This would mean that the user has to choose the filetype when creating the > file, right? I kind of like the flexibility that Kile has right now. It > also mean that the user has to realize that the template he/she chooses > will determine the actual file type. The templates need to be extended to > ensure that there is a template for every file type. Still I think that it > is nice that the user can delay the choice of the file type and determine > this implicitly by saving the file with a certain extension. Alright, so let me propose the following compromise: the new-file dialog keeps the possibility to create an empty file, which will be promoted to a different document type upon the first saving. But I'll also add two icons that represent empty LaTeX and empty BibTeX documents. For the templates, we could use the extensions of the template files to determine the document type or store some without an extension to allow the late choosing of the document type. > (...) Instead the design should be changed and Kile should only deal with a > KileDocument (which is essentially a KileDocumentInfo class). One can then > retrieve the KTextEditor::Document from the KileDocument. That's true. The patch already makes use of this design rationale wherever possible. Also, wherever possible, one shouldn't use URLs to retrieve the corresponding document info classes. Greetings, Michel |