On Sep 17, 2009, at 10:48 AM, ext Liebe Markus (RtP2/TEF72) wrote: >> You can have a look at the VCS plugins. In the vcsbase >> plugin there is >> the vcsbaseeditor and then in git plugin there is the >> annotationhighlighter and giteditor files. They would be a >> good place to >> start. > > Thanks for putting me into the right direction. I had a look at the > plugins. > However as I wanted to extend the syntax highlighting of the code > which is shown in the cpp editor I extended the cpp plugin a little > to suit my needs: > Lexer.cpp contains code to find doxygen style comments. Right there > I introduced another comment type for our "tasktracker comments". > So the lexer is able to identify them and to set the new token type > so that I am able to highlight them. > It is possible to click on such a comment and the "tasktracker"-mode > is activated. > > The only thing that is missing right now is to load the particular > bugtracker entry upon clicking on it. > In the CppEditor I am able to emit a signal containing the > tasktracker id. > Now I want to be able to connect to this signal in my tasktracker > plugin. > That is the point where I am stuck right now. > > So if you have any ideas how to achieve this, let me know.
You'll probably want to monitor editor creation by the use of the corresponding signals of the EditorManager, and in case of the created editor being a cpp one, connect to your signal. -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Phone +49 (0)30 6392 3255 Fax +49 (0)30 6392 3256 E-mail eike.zil...@nokia.com _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator