Skip to content

Commit

Permalink
Move QgsCodeEditorWidget to a new file
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 8, 2024
1 parent 46babc1 commit 8ce1797
Show file tree
Hide file tree
Showing 15 changed files with 515 additions and 425 deletions.
68 changes: 0 additions & 68 deletions python/PyQt6/gui/auto_generated/codeeditors/qgscodeeditor.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -603,74 +603,6 @@ QFlags<QgsCodeEditor::Flag> operator|(QgsCodeEditor::Flag f1, QFlags<QgsCodeEdit



class QgsCodeEditorWidget : QgsPanelWidget
{
%Docstring(signature="appended")
A widget which wraps a QgsCodeEditor in additional functionality.

This widget wraps an existing QgsCodeEditor object in a widget which provides
additional standard functionality, such as search/replace tools. The caller
must create an unparented QgsCodeEditor object (or a subclass of QgsCodeEditor)
first, and then construct a :py:class:`QgsCodeEditorWidget` passing this object to the
constructor.

.. note::

may not be available in Python bindings, depending on platform support

.. versionadded:: 3.38
%End

%TypeHeaderCode
#include "qgscodeeditor.h"
%End
public:

QgsCodeEditorWidget( QgsCodeEditor *editor /Transfer/, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCodeEditorWidget, wrapping the specified ``editor`` widget.

Ownership of ``editor`` will be transferred to this widget.
%End

QgsCodeEditor *editor();
%Docstring
Returns the wrapped code editor.
%End

public slots:

void showSearchBar();
%Docstring
Shows the search bar.

.. seealso:: :py:func:`hideSearchBar`

.. seealso:: :py:func:`setSearchBarVisible`
%End

void hideSearchBar();
%Docstring
Hides the search bar.

.. seealso:: :py:func:`showSearchBar`

.. seealso:: :py:func:`setSearchBarVisible`
%End

void setSearchBarVisible( bool visible );
%Docstring
Sets whether the search bar is ``visible``.

.. seealso:: :py:func:`showSearchBar`

.. seealso:: :py:func:`hideSearchBar`
%End

};



/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/codeeditors/qgscodeeditorwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsCodeEditorWidget : QgsPanelWidget
{
%Docstring(signature="appended")
A widget which wraps a :py:class:`QgsCodeEditor` in additional functionality.

This widget wraps an existing :py:class:`QgsCodeEditor` object in a widget which provides
additional standard functionality, such as search/replace tools. The caller
must create an unparented :py:class:`QgsCodeEditor` object (or a subclass of :py:class:`QgsCodeEditor`)
first, and then construct a :py:class:`QgsCodeEditorWidget` passing this object to the
constructor.

.. note::

may not be available in Python bindings, depending on platform support

.. versionadded:: 3.38
%End

%TypeHeaderCode
#include "qgscodeeditorwidget.h"
%End
public:

QgsCodeEditorWidget( QgsCodeEditor *editor /Transfer/, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCodeEditorWidget, wrapping the specified ``editor`` widget.

Ownership of ``editor`` will be transferred to this widget.
%End

QgsCodeEditor *editor();
%Docstring
Returns the wrapped code editor.
%End

public slots:

void showSearchBar();
%Docstring
Shows the search bar.

.. seealso:: :py:func:`hideSearchBar`

.. seealso:: :py:func:`setSearchBarVisible`
%End

void hideSearchBar();
%Docstring
Hides the search bar.

.. seealso:: :py:func:`showSearchBar`

.. seealso:: :py:func:`setSearchBarVisible`
%End

void setSearchBarVisible( bool visible );
%Docstring
Sets whether the search bar is ``visible``.

.. seealso:: :py:func:`showSearchBar`

.. seealso:: :py:func:`hideSearchBar`
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/codeeditors/qgscodeeditorwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@




class QgsQueryResultWidget: QWidget
{
%Docstring(signature="appended")
Expand Down
3 changes: 3 additions & 0 deletions python/PyQt6/gui/gui_auto.sip
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@
%If ( HAVE_QSCI_SIP )
%Include auto_generated/codeeditors/qgscodeeditorsql.sip
%End
%If ( HAVE_QSCI_SIP )
%Include auto_generated/codeeditors/qgscodeeditorwidget.sip
%End
%Include auto_generated/devtools/qgsdevtoolwidget.sip
%Include auto_generated/devtools/qgsdevtoolwidgetfactory.sip
%Include auto_generated/editorwidgets/core/qgseditorconfigwidget.sip
Expand Down
68 changes: 0 additions & 68 deletions python/gui/auto_generated/codeeditors/qgscodeeditor.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -603,74 +603,6 @@ QFlags<QgsCodeEditor::Flag> operator|(QgsCodeEditor::Flag f1, QFlags<QgsCodeEdit



class QgsCodeEditorWidget : QgsPanelWidget
{
%Docstring(signature="appended")
A widget which wraps a QgsCodeEditor in additional functionality.

This widget wraps an existing QgsCodeEditor object in a widget which provides
additional standard functionality, such as search/replace tools. The caller
must create an unparented QgsCodeEditor object (or a subclass of QgsCodeEditor)
first, and then construct a :py:class:`QgsCodeEditorWidget` passing this object to the
constructor.

.. note::

may not be available in Python bindings, depending on platform support

.. versionadded:: 3.38
%End

%TypeHeaderCode
#include "qgscodeeditor.h"
%End
public:

QgsCodeEditorWidget( QgsCodeEditor *editor /Transfer/, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCodeEditorWidget, wrapping the specified ``editor`` widget.

Ownership of ``editor`` will be transferred to this widget.
%End

QgsCodeEditor *editor();
%Docstring
Returns the wrapped code editor.
%End

public slots:

void showSearchBar();
%Docstring
Shows the search bar.

.. seealso:: :py:func:`hideSearchBar`

.. seealso:: :py:func:`setSearchBarVisible`
%End

void hideSearchBar();
%Docstring
Hides the search bar.

.. seealso:: :py:func:`showSearchBar`

.. seealso:: :py:func:`setSearchBarVisible`
%End

void setSearchBarVisible( bool visible );
%Docstring
Sets whether the search bar is ``visible``.

.. seealso:: :py:func:`showSearchBar`

.. seealso:: :py:func:`hideSearchBar`
%End

};



/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
85 changes: 85 additions & 0 deletions python/gui/auto_generated/codeeditors/qgscodeeditorwidget.sip.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/codeeditors/qgscodeeditorwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/





class QgsCodeEditorWidget : QgsPanelWidget
{
%Docstring(signature="appended")
A widget which wraps a :py:class:`QgsCodeEditor` in additional functionality.

This widget wraps an existing :py:class:`QgsCodeEditor` object in a widget which provides
additional standard functionality, such as search/replace tools. The caller
must create an unparented :py:class:`QgsCodeEditor` object (or a subclass of :py:class:`QgsCodeEditor`)
first, and then construct a :py:class:`QgsCodeEditorWidget` passing this object to the
constructor.

.. note::

may not be available in Python bindings, depending on platform support

.. versionadded:: 3.38
%End

%TypeHeaderCode
#include "qgscodeeditorwidget.h"
%End
public:

QgsCodeEditorWidget( QgsCodeEditor *editor /Transfer/, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsCodeEditorWidget, wrapping the specified ``editor`` widget.

Ownership of ``editor`` will be transferred to this widget.
%End

QgsCodeEditor *editor();
%Docstring
Returns the wrapped code editor.
%End

public slots:

void showSearchBar();
%Docstring
Shows the search bar.

.. seealso:: :py:func:`hideSearchBar`

.. seealso:: :py:func:`setSearchBarVisible`
%End

void hideSearchBar();
%Docstring
Hides the search bar.

.. seealso:: :py:func:`showSearchBar`

.. seealso:: :py:func:`setSearchBarVisible`
%End

void setSearchBarVisible( bool visible );
%Docstring
Sets whether the search bar is ``visible``.

.. seealso:: :py:func:`showSearchBar`

.. seealso:: :py:func:`hideSearchBar`
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/codeeditors/qgscodeeditorwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
1 change: 1 addition & 0 deletions python/gui/auto_generated/qgsqueryresultwidget.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@




class QgsQueryResultWidget: QWidget
{
%Docstring(signature="appended")
Expand Down
3 changes: 3 additions & 0 deletions python/gui/gui_auto.sip
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@
%If ( HAVE_QSCI_SIP )
%Include auto_generated/codeeditors/qgscodeeditorsql.sip
%End
%If ( HAVE_QSCI_SIP )
%Include auto_generated/codeeditors/qgscodeeditorwidget.sip
%End
%Include auto_generated/devtools/qgsdevtoolwidget.sip
%Include auto_generated/devtools/qgsdevtoolwidgetfactory.sip
%Include auto_generated/editorwidgets/core/qgseditorconfigwidget.sip
Expand Down
2 changes: 2 additions & 0 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ set(QGIS_GUI_SRCS
codeeditors/qgscodeeditorshell.cpp
codeeditors/qgscodeeditorsql.cpp
codeeditors/qgscodeeditorexpression.cpp
codeeditors/qgscodeeditorwidget.cpp

devtools/qgsdevtoolwidget.cpp
devtools/qgsdevtoolwidgetfactory.cpp
Expand Down Expand Up @@ -1112,6 +1113,7 @@ set(QGIS_GUI_HDRS
codeeditors/qgscodeeditorr.h
codeeditors/qgscodeeditorshell.h
codeeditors/qgscodeeditorsql.h
codeeditors/qgscodeeditorwidget.h

devtools/qgsdevtoolwidget.h
devtools/qgsdevtoolwidgetfactory.h
Expand Down
Loading

0 comments on commit 8ce1797

Please sign in to comment.