-
-
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
19 changed files
with
1,294 additions
and
866 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
115 changes: 74 additions & 41 deletions
115
python/gui/attributetable/qgsattributetabledelegate.sip
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,53 +1,86 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/attributetable/qgsattributetabledelegate.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsAttributeTableDelegate : QItemDelegate | ||
{ | ||
%TypeHeaderCode | ||
#include <qgsattributetabledelegate.h> | ||
%Docstring | ||
A delegate item class for QgsAttributeTable (see Qt documentation for | ||
QItemDelegate). | ||
%End | ||
QgsVectorLayer *layer( const QAbstractItemModel *model ) const; | ||
|
||
%TypeHeaderCode | ||
#include "qgsattributetabledelegate.h" | ||
%End | ||
public: | ||
/** Constructor | ||
* @param parent parent object | ||
*/ | ||
|
||
QgsAttributeTableDelegate( QObject *parent /TransferThis/ = 0 ); | ||
/** Used to create an editor for when the user tries to | ||
* change the contents of a cell */ | ||
QWidget * createEditor( | ||
QWidget *parent, | ||
const QStyleOptionViewItem &option, | ||
const QModelIndex &index ) const; | ||
|
||
/** Overloads the paint method form the QItemDelegate bas class */ | ||
void paint( | ||
QPainter * painter, | ||
const QStyleOptionViewItem & option, | ||
const QModelIndex &index ) const; | ||
|
||
/** | ||
* Sets data from editor back to model. Overloads default method | ||
* @param editor editor which was created by create editor function in this class | ||
* @param model model where data should be updated | ||
* @param index index of field which is to be modified | ||
*/ | ||
void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const; | ||
|
||
/** | ||
* Sets data from model into the editor. Overloads default method | ||
* @param editor editor which was created by create editor function in this class | ||
* @param index index of field which is to be retrieved | ||
*/ | ||
void setEditorData( QWidget *editor, const QModelIndex &index ) const; | ||
%Docstring | ||
Constructor | ||
\param parent parent object | ||
%End | ||
|
||
virtual QWidget *createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index ) const; | ||
|
||
%Docstring | ||
Used to create an editor for when the user tries to | ||
change the contents of a cell | ||
:rtype: QWidget | ||
%End | ||
|
||
virtual void paint( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const; | ||
|
||
%Docstring | ||
Overloads the paint method form the QItemDelegate base class | ||
%End | ||
|
||
virtual void setModelData( QWidget *editor, QAbstractItemModel *model, const QModelIndex &index ) const; | ||
|
||
%Docstring | ||
Sets data from editor back to model. Overloads default method | ||
\param editor editor which was created by create editor function in this class | ||
\param model model where data should be updated | ||
\param index index of field which is to be modified | ||
%End | ||
|
||
virtual void setEditorData( QWidget *editor, const QModelIndex &index ) const; | ||
|
||
%Docstring | ||
Sets data from model into the editor. Overloads default method | ||
\param editor editor which was created by create editor function in this class | ||
\param index index of field which is to be retrieved | ||
%End | ||
|
||
void setFeatureSelectionModel( QgsFeatureSelectionModel *featureSelectionModel ); | ||
|
||
signals: | ||
/** | ||
* Is emitted when an action column item is painted. | ||
* The consumer of this signal can initialize the index widget. | ||
* | ||
* @note This signal is emitted repeatedly whenever the item is being painted. | ||
* It is the consumers responsibility to check if initialization has already | ||
* happened before. | ||
*/ | ||
|
||
void actionColumnItemPainted( const QModelIndex &index ) const; | ||
%Docstring | ||
Is emitted when an action column item is painted. | ||
The consumer of this signal can initialize the index widget. | ||
|
||
.. note:: | ||
|
||
This signal is emitted repeatedly whenever the item is being painted. | ||
It is the consumers responsibility to check if initialization has already | ||
happened before. | ||
%End | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/attributetable/qgsattributetabledelegate.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.