Hi, Am Nov 4, 2009 um 9:02 AM schrieb ext Christophe Meessen:
> Hello, > > The first suggestion is the following. I use tiddlywiki which is a > wiki > self contained in a single html file. I use it to store my todo, > software manual, howto information. A double click on it opens the > wiki > in my prefered browser and allows me to edit it. I would be nice if it > was possible to add an html file to a Qt project, or project > subfolder, > so that double clicking it would open a WebKit window (as QtDesigner > does) and allow me to view and eventually edit the html file content. First part is possible (showing it in project tree): Add it as "OTHER_FILES+=yourfile" in your .pro file, similar to how you'd do it with source files and "SOURCES+=foo". But there's no "html editor" in Qt Creator. > The second suggestion, would be to allow to add the binding between a > type of file and a specific editor/viewer. When this type of file is > added to the project, a double click on it would start the > corresponding > editor/viewer. I guess the editor/viewer would be added as a plugin. > The > kind of editor/viewers that would be interesting are a binary hex > file > editor, image editor, sound editor, video editor, etc. Did you notice that Qt Creator already has a binary (hex) editor :) The adding of editors is at the moment possible to do via plugins. Plugins which add editors would also define which "kind of files" they can/want to open. I'd suppose that the binary editor in Qt Creator is a good example of how such plugins would look like: http://qt.gitorious.org/qt-creator/qt-creator/trees/master/src/plugins/bineditor What is missing in Qt Creator is a user interface to change the default mapping between file types and editors to use in Qt Creator. > I met the following problem with Qt Creator 4.5. My current project is > big, so I use subfolders and pri files which works well. Each of these > subfolders group the model view controller classes of a particular > functionality of my system. When I start a new project, I simply add > symbolic links (unix) to the wiget folder and the include > instruction in > the .pro file and thats it. Unfortunately I wasn't able to add a > simple > text file in the .pri file. It is ignored. How did you try to add it in the pri file? We use e.g. "OTHER_FILES += someqdocfile.qdoc" in doc/doc.pri in the Qt Creator sources, and that works fine for me. http://qt.gitorious.org/qt-creator/qt-creator/blobs/master/doc/doc.pri Note that you must be careful with using "=" in pro and pri files - if you use assignment "OTHER_FILES=" in the pro file and the pri file, one will override the other. > .txt files can only be added > in the .pro file. I use it to track my todos. Though I would prefer to > use tiddlywiki files instead of text files. It would also be used as > manual or logbok. Unfortunately the tddlywiki are big files, ~350KB. A > pluggin could hold a single copy of all the java script code so that > the > file contains only the user data. But the principle is great. -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Phone +49 (0)30 6392 3255 Fax +49 (0)30 6392 3256 E-mail [email protected] _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
