Skip to content
Permalink
Browse files
sipify gui part 3
  • Loading branch information
3nids committed May 24, 2017
1 parent cc5e713 commit 563e7c17fc7dc8d33bac4cbf45d9580bedcda3eb
@@ -141,22 +141,6 @@ gui/qgscompoundcolorwidget.sip
gui/qgsconfigureshortcutsdialog.sip
gui/qgscustomdrophandler.sip
gui/qgscurveeditorwidget.sip
gui/qgsdetaileditemdata.sip
gui/qgsdetaileditemdelegate.sip
gui/qgsdetaileditemwidget.sip
gui/qgsexpressionbuilderdialog.sip
gui/qgsexpressionbuilderwidget.sip
gui/qgsexpressionhighlighter.sip
gui/qgsexpressionlineedit.sip
gui/qgsexpressionselectiondialog.sip
gui/qgsextentgroupbox.sip
gui/qgsfeatureselectiondlg.sip
gui/qgsfieldvalidator.sip
gui/qgsfieldvalueslineedit.sip
gui/qgsfiledropedit.sip
gui/qgsfloatingwidget.sip
gui/qgsfocuswatcher.sip
gui/qgsformannotation.sip
gui/qgsmaptip.sip
gui/qgsmaptool.sip
gui/qgsmaptooladvanceddigitizing.sip
@@ -1,9 +1,24 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsdetaileditemdata.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsDetailedItemData
{
%TypeHeaderCode
#include <qgsdetaileditemdata.h>
%Docstring
This class is the data only representation of a
QgsDetailedItemWidget, designed to be used in custom views.
%End

%TypeHeaderCode
#include "qgsdetaileditemdata.h"
%End
public:
QgsDetailedItemData();
void setTitle( const QString &title );
@@ -13,20 +28,57 @@ class QgsDetailedItemData
void setCheckable( const bool flag );
void setChecked( const bool flag );
void setEnabled( bool flag );
/** This is a hint to the delegate to render using
* a widget rather than manually painting every
* part of the list item.
* @note the delegate may completely ignore this
* depending on the delegate implementation.
*/

void setRenderAsWidget( bool flag );
%Docstring
This is a hint to the delegate to render using
a widget rather than manually painting every
part of the list item.
.. note::

the delegate may completely ignore this
depending on the delegate implementation.
%End

QString title() const;
%Docstring
:rtype: str
%End
QString detail() const;
%Docstring
:rtype: str
%End
QString category() const;
%Docstring
:rtype: str
%End
QPixmap icon() const;
%Docstring
:rtype: QPixmap
%End
bool isCheckable() const;
%Docstring
:rtype: bool
%End
bool isChecked() const;
%Docstring
:rtype: bool
%End
bool isEnabled() const;
%Docstring
:rtype: bool
%End
bool isRenderedAsWidget() const;
%Docstring
:rtype: bool
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsdetaileditemdata.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -1,30 +1,61 @@
/** \ingroup gui
* A custom model/view delegate that can display an icon, heading
* and detail sections.
* @see also QgsDetailedItemData
*/
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsdetaileditemdelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/




class QgsDetailedItemDelegate : QAbstractItemDelegate
{
%TypeHeaderCode
#include <qgsdetaileditemdelegate.h>
%Docstring
A custom model/view delegate that can display an icon, heading
and detail sections.
.. seealso:: also QgsDetailedItemData
%End

%TypeHeaderCode
#include "qgsdetaileditemdelegate.h"
%End
public:
QgsDetailedItemDelegate( QObject *parent /TransferThis/ = 0 );
~QgsDetailedItemDelegate();
/** Reimplement for parent class */
void paint( QPainter * painter,
const QStyleOptionViewItem & option,
virtual void paint( QPainter *painter,
const QStyleOptionViewItem &option,
const QModelIndex &index ) const;
/** Reimplement for parent class */
QSize sizeHint( const QStyleOptionViewItem & option,
%Docstring
Reimplement for parent class
%End
virtual QSize sizeHint( const QStyleOptionViewItem &option,
const QModelIndex &index ) const;
%Docstring
Reimplement for parent class
:rtype: QSize
%End

void setVerticalSpacing( int value );

int verticalSpacing() const;
%Docstring
:rtype: int
%End

void setHorizontalSpacing( int value );

int horizontalSpacing() const;
%Docstring
:rtype: int
%End

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsdetaileditemdelegate.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -1,11 +1,33 @@
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsdetaileditemwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class QgsDetailedItemWidget : QWidget
{
%Docstring
A widget renderer for detailed item views.
.. seealso:: also QgsDetailedItem and QgsDetailedItemData.
%End

%TypeHeaderCode
#include <qgsdetaileditemwidget.h>
#include "qgsdetaileditemwidget.h"
%End
public:
QgsDetailedItemWidget( QWidget *parent /TransferThis/ = 0 );
~QgsDetailedItemWidget();
void setData( const QgsDetailedItemData &data );
void setChecked( bool flag );
};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsdetaileditemwidget.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
@@ -1,49 +1,84 @@
/** A generic dialog for building expression strings
* @remarks This class also shows an example on how to use QgsExpressionBuilderWidget
*/
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexpressionbuilderdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/



class QgsExpressionBuilderDialog : QDialog
{
%TypeHeaderCode
#include <qgsexpressionbuilderdialog.h>
%Docstring
A generic dialog for building expression strings
@remarks This class also shows an example on how to use QgsExpressionBuilderWidget
%End

%TypeHeaderCode
#include "qgsexpressionbuilderdialog.h"
%End
public:
QgsExpressionBuilderDialog( QgsVectorLayer* layer, const QString& startText = QString(), QWidget* parent /TransferThis/ = NULL, const QString& key = "generic",
QgsExpressionBuilderDialog( QgsVectorLayer *layer,
const QString &startText = QString(),
QWidget *parent /TransferThis/ = 0,
const QString &key = "generic",
const QgsExpressionContext &context = QgsExpressionContext() );

/** The builder widget that is used by the dialog */
QgsExpressionBuilderWidget *expressionBuilder();
%Docstring
The builder widget that is used by the dialog
:rtype: QgsExpressionBuilderWidget
%End

void setExpressionText( const QString &text );

QString expressionText();
%Docstring
:rtype: str
%End

/** Returns the expression context for the dialog. The context is used for the expression
* preview result and for populating the list of available functions and variables.
* @see setExpressionContext
* @note added in QGIS 2.12
*/
QgsExpressionContext expressionContext() const;
%Docstring
Returns the expression context for the dialog. The context is used for the expression
preview result and for populating the list of available functions and variables.
.. seealso:: setExpressionContext
.. versionadded:: 2.12
:rtype: QgsExpressionContext
%End

/** Sets the expression context for the dialog. The context is used for the expression
* preview result and for populating the list of available functions and variables.
* @param context expression context
* @see expressionContext
* @note added in QGIS 2.12
*/
void setExpressionContext( const QgsExpressionContext &context );
%Docstring
Sets the expression context for the dialog. The context is used for the expression
preview result and for populating the list of available functions and variables.
\param context expression context
.. seealso:: expressionContext
.. versionadded:: 2.12
%End

/** Sets geometry calculator used in distance/area calculations. */
void setGeomCalculator( const QgsDistanceArea &da );
%Docstring
Sets geometry calculator used in distance/area calculations.
%End

protected:
/**
* Is called when the dialog get accepted or rejected
* Used to save geometry
*
* @param r result value (unused)
*/

virtual void done( int r );
%Docstring
Is called when the dialog get accepted or rejected
Used to save geometry

\param r result value (unused)
%End

virtual void accept();

};

/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsexpressionbuilderdialog.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/

0 comments on commit 563e7c1

Please sign in to comment.