QGIS/python/gui/qgscodeeditor.sip
Denis Rouzaud 93971d5ed3 [sip] align pointer and reference in blacklisted files
this will facilitate sip diff checking
2017-05-01 17:49:43 +02:00

49 lines
1.3 KiB
Plaintext

class QgsCodeEditor: QsciScintilla
{
%TypeHeaderCode
#include <qgscodeeditor.h>
%End
public:
/**
* 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 margin for code editor
* @param margin False: Enable folding for code editor
* @note added in 2.6
*/
QgsCodeEditor( QWidget *parent /TransferThis/ = 0, const QString &title = "" , bool folding = false, bool margin = false );
~QgsCodeEditor();
/** Set the widget title
* @param title widget title
*/
void setTitle( const QString &title );
/** Set margin visible state
* @param margin Set margin in the editor
*/
void setMarginVisible( bool margin );
bool marginVisible();
/** Set folding visible state
* @param folding Set folding in the editor
*/
void setFoldingVisible( bool folding);
bool foldingVisible();
/** Insert text at cursor position, or replace any selected text if user has
* made a selection.
* @param text The text to be inserted
*/
void insertText( const QString &text );
protected:
bool isFixedPitch( const QFont &font );
QFont getMonospaceFont();
};