2015-12-21 10:41:35 +01:00
|
|
|
class QgsOrderByDialog : QDialog
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsorderbydialog.h"
|
|
|
|
%End
|
|
|
|
public:
|
2016-01-04 22:51:18 +11:00
|
|
|
/**
|
|
|
|
* Create a new order by dialog. This helps building order by structures.
|
|
|
|
*
|
|
|
|
* @param layer The vector layer for which the order by should be produced
|
|
|
|
* @param parent The parent widget, optional
|
|
|
|
*/
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsOrderByDialog( QgsVectorLayer *layer, QWidget *parent /TransferThis/ = 0 );
|
2015-12-21 10:41:35 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the order by to manage
|
|
|
|
*/
|
2017-05-01 16:42:33 +02:00
|
|
|
void setOrderBy( const QgsFeatureRequest::OrderBy &orderBy );
|
2015-12-21 10:41:35 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the order by defined in the dialog
|
|
|
|
*/
|
2016-01-04 22:51:18 +11:00
|
|
|
QgsFeatureRequest::OrderBy orderBy();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
bool eventFilter( QObject *obj, QEvent *e );
|
|
|
|
};
|