how to access the editor configuration from the cppsupportpart.cpp
Roberto Raggi
raggi at cli.di.unipi.it
Thu Dec 19 13:30:07 UTC 2002
Hi,
On Thursday 19 December 2002 11:53, Victor Röder wrote:
> Hi,
>
> > 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,
e.g.
void indent( int line );
void indentBlock();
void markTextAsError( int fromLine, int fromColumn, ... )
...
anyway, i don't know if add "IDE specific" interfaces to KTextEditor
is the right solution
ciao robe
More information about the KDevelop-devel
mailing list