QGIS/python/gui/qgscodeeditor.sip.in

96 lines
2.5 KiB
Plaintext
Raw Normal View History

2017-05-23 14:39:33 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgscodeeditor.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2017-06-26 09:57:09 +02:00
2017-05-23 14:39:33 +02:00
class QgsCodeEditor : QsciScintilla
2014-07-12 20:50:08 +10:00
{
2017-05-23 14:39:33 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
A text editor based on QScintilla2.
2017-05-23 14:39:33 +02:00
.. versionadded:: 2.6
2017-12-15 10:36:55 -04:00
2017-05-23 14:39:33 +02:00
.. note::
may not be available in Python bindings, depending on platform support
2014-07-12 20:50:08 +10:00
%End
2017-05-23 14:39:33 +02:00
%TypeHeaderCode
#include "qgscodeeditor.h"
%End
2014-07-12 20:50:08 +10:00
public:
2017-05-23 14:39:33 +02:00
2017-09-25 14:20:39 +10:00
QgsCodeEditor( QWidget *parent /TransferThis/ = 0, const QString &title = QString(), bool folding = false, bool margin = false );
2017-05-23 14:39:33 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Construct a new code editor.
:param parent: The parent QWidget
:param title: The title to show in the code editor dialog
:param folding: false: Enable folding for code editor
:param margin: false: Enable margin for code editor
2017-05-23 14:39:33 +02:00
.. versionadded:: 2.6
%End
void setTitle( const QString &title );
2017-05-23 14:39:33 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set the widget title
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param title: widget title
2017-05-23 14:39:33 +02:00
%End
2014-11-13 23:13:13 +01:00
void setMarginVisible( bool margin );
2017-05-23 14:39:33 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Set margin visible state
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param margin: Set margin in the editor
2017-05-23 14:39:33 +02:00
%End
bool marginVisible();
2014-07-12 20:50:08 +10:00
2017-05-23 14:39:33 +02:00
void setFoldingVisible( bool folding );
%Docstring
2017-12-15 10:36:55 -04:00
Set folding visible state
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param folding: Set folding in the editor
2017-05-23 14:39:33 +02:00
%End
bool foldingVisible();
2014-11-13 23:13:13 +01:00
void insertText( const QString &text );
2017-05-23 14:39:33 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Insert text at cursor position, or replace any selected text if user has
made a selection.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param text: The text to be inserted
2017-05-23 14:39:33 +02:00
%End
2014-09-23 19:30:41 +10:00
protected:
bool isFixedPitch( const QFont &font );
2017-05-23 14:39:33 +02:00
virtual void focusOutEvent( QFocusEvent *event );
virtual void keyPressEvent( QKeyEvent *event );
2014-09-23 19:30:41 +10:00
QFont getMonospaceFont();
2017-05-23 14:39:33 +02:00
2014-07-12 20:50:08 +10:00
};
2017-05-23 14:39:33 +02:00
2017-09-25 14:20:39 +10:00
2017-05-23 14:39:33 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgscodeeditor.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/