-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
840 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,40 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscharacterselectdialog.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsCharacterSelectorDialog : QDialog | ||
{ | ||
%Docstring | ||
A dialog for selecting a single character from a single font | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include <qgscharacterselectdialog.h> | ||
#include "qgscharacterselectdialog.h" | ||
%End | ||
public: | ||
QgsCharacterSelectorDialog( QWidget *parent /TransferThis/ = 0, const Qt::WindowFlags &fl = QgsGuiUtils::ModalDialogFlags ); | ||
~QgsCharacterSelectorDialog(); | ||
QgsCharacterSelectorDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags ); | ||
|
||
public slots: | ||
const QChar &selectCharacter( bool *gotChar, const QFont &font, const QString &style ); | ||
%Docstring | ||
:rtype: QChar | ||
%End | ||
|
||
protected: | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscharacterselectdialog.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,97 @@ | ||
class QgsCodeEditor: QsciScintilla | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditor.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsCodeEditor : QsciScintilla | ||
{ | ||
%TypeHeaderCode | ||
#include <qgscodeeditor.h> | ||
%Docstring | ||
A text editor based on QScintilla2. | ||
.. versionadded:: 2.6 | ||
.. note:: | ||
|
||
may not be available in Python bindings, depending on platform support | ||
%End | ||
|
||
%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 | ||
*/ | ||
|
||
QgsCodeEditor( QWidget *parent /TransferThis/ = 0, const QString &title = "", bool folding = false, bool margin = false ); | ||
%Docstring | ||
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 | ||
.. versionadded:: 2.6 | ||
%End | ||
|
||
void setTitle( const QString &title ); | ||
%Docstring | ||
Set the widget title | ||
\param title widget title | ||
%End | ||
|
||
/** Set margin visible state | ||
* @param margin Set margin in the editor | ||
*/ | ||
void setMarginVisible( bool margin ); | ||
%Docstring | ||
Set margin visible state | ||
\param margin Set margin in the editor | ||
%End | ||
bool marginVisible(); | ||
%Docstring | ||
:rtype: bool | ||
%End | ||
|
||
/** Set folding visible state | ||
* @param folding Set folding in the editor | ||
*/ | ||
void setFoldingVisible( bool folding); | ||
void setFoldingVisible( bool folding ); | ||
%Docstring | ||
Set folding visible state | ||
\param folding Set folding in the editor | ||
%End | ||
bool foldingVisible(); | ||
%Docstring | ||
:rtype: bool | ||
%End | ||
|
||
/** 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 ); | ||
%Docstring | ||
Insert text at cursor position, or replace any selected text if user has | ||
made a selection. | ||
\param text The text to be inserted | ||
%End | ||
|
||
protected: | ||
|
||
bool isFixedPitch( const QFont &font ); | ||
%Docstring | ||
:rtype: bool | ||
%End | ||
|
||
virtual void focusOutEvent( QFocusEvent *event ); | ||
|
||
virtual void keyPressEvent( QKeyEvent *event ); | ||
|
||
|
||
QFont getMonospaceFont(); | ||
%Docstring | ||
:rtype: QFont | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditor.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
class QgsCodeEditorCSS: QgsCodeEditor | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditorcss.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsCodeEditorCSS : QgsCodeEditor | ||
{ | ||
%TypeHeaderCode | ||
#include <qgscodeeditorcss.h> | ||
%Docstring | ||
A CSS editor based on QScintilla2. Adds syntax highlighting and | ||
code autocompletion. | ||
.. versionadded:: 2.6 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgscodeeditorcss.h" | ||
%End | ||
public: | ||
QgsCodeEditorCSS( QWidget *parent /TransferThis/ = 0 ); | ||
~QgsCodeEditorCSS(); | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditorcss.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,37 @@ | ||
class QgsCodeEditorHTML: QgsCodeEditor | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditorhtml.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsCodeEditorHTML : QgsCodeEditor | ||
{ | ||
%TypeHeaderCode | ||
#include <qgscodeeditorhtml.h> | ||
%Docstring | ||
A HTML editor based on QScintilla2. Adds syntax highlighting and | ||
code autocompletion. | ||
.. versionadded:: 2.6 | ||
.. note:: | ||
|
||
may not be available in Python bindings, depending on platform support | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgscodeeditorhtml.h" | ||
%End | ||
public: | ||
QgsCodeEditorHTML( QWidget *parent /TransferThis/ = 0 ); | ||
~QgsCodeEditorHTML(); | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditorhtml.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,58 @@ | ||
class QgsCodeEditorPython: QgsCodeEditor | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditorpython.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsCodeEditorPython : QgsCodeEditor | ||
{ | ||
%TypeHeaderCode | ||
#include <qgscodeeditorpython.h> | ||
%Docstring | ||
A Python editor based on QScintilla2. Adds syntax highlighting and | ||
code autocompletion. | ||
.. versionadded:: 2.6 | ||
.. note:: | ||
|
||
may not be available in Python bindings, depending on platform support | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgscodeeditorpython.h" | ||
%End | ||
public: | ||
/** | ||
* 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 | ||
*/ | ||
|
||
QgsCodeEditorPython( QWidget *parent /TransferThis/ = 0, const QList<QString> &filenames = QList<QString>() ); | ||
~QgsCodeEditorPython(); | ||
%Docstring | ||
Construct a new Python editor. | ||
|
||
\param parent The parent QWidget | ||
\param filenames The list of apis files to load for the Python lexer | ||
.. versionadded:: 2.6 | ||
%End | ||
|
||
/** 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 ); | ||
%Docstring | ||
Load APIs from one or more files | ||
\param filenames The list of apis files to load for the Python lexer | ||
%End | ||
|
||
/** Load a script file | ||
* @param script The script file to load | ||
*/ | ||
bool loadScript( const QString &script ); | ||
%Docstring | ||
Load a script file | ||
\param script The script file to load | ||
:rtype: bool | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditorpython.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,37 @@ | ||
class QgsCodeEditorSQL: QgsCodeEditor | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditorsql.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
class QgsCodeEditorSQL : QgsCodeEditor | ||
{ | ||
%TypeHeaderCode | ||
#include <qgscodeeditorsql.h> | ||
%Docstring | ||
A SQL editor based on QScintilla2. Adds syntax highlighting and | ||
code autocompletion. | ||
.. versionadded:: 2.6 | ||
.. note:: | ||
|
||
may not be available in Python bindings, depending on platform support | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgscodeeditorsql.h" | ||
%End | ||
public: | ||
QgsCodeEditorSQL( QWidget *parent /TransferThis/ = 0 ); | ||
~QgsCodeEditorSQL(); | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgscodeeditorsql.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.