Hi there,

I have added a new "mode" to qtcreator via a plugin. The new mode basically 
shows our bugtracker in a QWebView.
Now I want to be able to
- write comments like //TT7020 into the sourcecode.
- these comments should be marked like a hyperlink.
- a mouseclick on a comment should switch to the bugtracker mode and load the 
bugtracker URL for the ticketnumber 7020.

I already succeeded in creating the bugtracker mode plugin.
The navigation functionality had to be added to the cppeditor plugin that comes 
with qtcreator.
But I'd rather like to have all the functionality in my plugin and not to 
modify any existing plugins.

So I think I would have to somehow do in my plugin the following:
- create a new syntaxhighlighter for our Bugtracker comments (or somehow extend 
the cppeditor syntaxhighlighter from within my plugin)
- extend the navigation functions of the cppeditor plugin somehow from within 
my plugin. I am thinking of the functions CPPEditor::findLinkAt(...) and 
CPPEditor::openLink(...)
- If I use the above functions I need to have a CPPEditor::Link that is able to 
store a URL and not only a filename.

Do you think this is possible? Or would it be better to add the desired 
functionality directly to the CPPEditor?

Regards,
Markus

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to