QGIS/python/gui/qgscodeeditorpython.sip

29 lines
765 B
Plaintext
Raw Normal View History

2014-07-12 20:50:08 +10:00
class QgsCodeEditorPython: QgsCodeEditor
{
%TypeHeaderCode
#include <qgscodeeditorpython.h>
%End
public:
2015-02-03 02:21:52 +01:00
/**
* Construct a new Python editor.
*
* @param parent The parent QWidget
* @param filenames The list of apis files to load for the python lexer
* @note added in 2.6
*/
2014-07-12 20:50:08 +10:00
QgsCodeEditorPython( QWidget *parent /TransferThis/ = 0, const QList<QString> &filenames = QList<QString>() );
~QgsCodeEditorPython();
2015-02-03 02:21:52 +01:00
/** Load APIs from one or more files
* @param filenames The list of apis files to load for the python lexer
*/
void loadAPIs( const QList<QString> &filenames );
2014-07-12 20:50:08 +10:00
2015-02-03 02:21:52 +01:00
/** Load a script file
* @param script The script file to load
*/
bool loadScript( const QString &script );
2014-07-12 20:50:08 +10:00
};