-
-
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
25 changed files
with
1,049 additions
and
468 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
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,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 * | ||
************************************************************************/ |
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,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 * | ||
************************************************************************/ |
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,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 * | ||
************************************************************************/ |
Oops, something went wrong.