how to access the editor configuration from the cppsupportpart.cpp
raggi at cli.di.unipi.it
Thu Dec 19 13:30:07 UTC 2002
On Thursday 19 December 2002 11:53, Victor Röder wrote:
> > I wouldn't it like if the cppsupportpart knows about all the editors
> > and how they can be accessed. It results in a huge switch statement
> > for the single editors.
> > Better is to extend the KTextEditor interface with a for instance
> > putStringInFile(const QString& text, int line, int column) method.
> > Then the editor can handle it by itself (or not).
> Isn't there a insertText ( line, col, text ) method in the KTextEditor
> interface (EditInterface)?
yes, but would be nice to have more methods suitable for IDE like kdevelop,
void indent( int line );
void markTextAsError( int fromLine, int fromColumn, ... )
anyway, i don't know if add "IDE specific" interfaces to KTextEditor
is the right solution
More information about the KDevelop-devel