Code editor using QScintilla

This pull request adds a new qgscodeeditor object which can be used as a base for all text editors that need good editor support and syntax highlighting, project macros, expression widget, html editors, etc

Original Code by Salvatore Larosa

Tested on Windows.  Needs testing on other platforms.

![image](https://cloud.githubusercontent.com/assets/381660/3594260/21d26986-0c98-11e4-9d6c-491af2b68c1f.png)

That is what happens when I just yank someone else's code ;)

Will review it tonight.


On Wed, Jul 16, 2014 at 4:44 PM, Jürgen Fischer <notifications@github.com>
wrote:

> In src/gui/qgscodeeditorpython.cpp:
>
> > +}
> > +
> > +void QgsCodeEditorPython::loadAPIs( const QList<QString> &filenames )
> > +{
> > +  mAPISFilesList = filenames;
> > +  //QgsDebugMsg( QString( "The apis files: %1" ).arg( mAPISFilesList[0] ) );
> > +  setSciLexerPython();
> > +}
> > +
> > +void QgsCodeEditorPython::loadScript( const QString &script )
> > +{
> > +  QgsDebugMsg( QString( "The script file: %1" ).arg( script ) );
> > +  QFile file( script );
> > +  if ( !file.open( QIODevice::ReadOnly ) )
> > +  {
> > +    QMessageBox::information( 0, "error", file.errorString() );
>
> tr. message bar?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/qgis/QGIS/pull/1507/files#r14983231>.
>