File: qgsbookmarkmodel.sip.in

package info (click to toggle)
qgis 3.40.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,183,800 kB
  • sloc: cpp: 1,595,841; python: 372,637; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 154
file content (114 lines) | stat: -rw-r--r-- 3,870 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/qgsbookmarkmodel.h                                          *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/




class QgsBookmarkManagerModel: QAbstractTableModel
{
%Docstring(signature="appended")
Implements a model for the contents of :py:class:`QgsBookmarkManager`
objects.

:py:class:`QgsBookmarkModel` provides a Qt table model for displaying
and manipulating the bookmarks managed by a
:py:class:`QgsBookmarkManager` object. The model requires both a main
manager (usually the application bookmark manager, accessed via
:py:func:`QgsApplication.bookmarkManager()`) and a project-based
manager. The resultant model data is a merge of the bookmarks stored in
both managers.

.. versionadded:: 3.10
%End

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


    enum class CustomRole /BaseType=IntEnum/
    {
      Extent,
      Name,
      Id,
      Group,
      Rotation,
    };

    enum Columns /BaseType=IntEnum/
    {
      ColumnName,
      ColumnGroup,
      ColumnXMin,
      ColumnYMin,
      ColumnXMax,
      ColumnYMax,
      ColumnRotation,
      ColumnCrs,
      ColumnStore,
    };

    QgsBookmarkManagerModel( QgsBookmarkManager *manager, QgsBookmarkManager *projectManager = 0, QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsBookmarkManagerModel, associated with a main
``manager`` (usually the application bookmark manager, accessed via
:py:func:`QgsApplication.bookmarkManager()`) and a secondary
``projectManager`` (a project based bookmark manager).
%End

    virtual int rowCount( const QModelIndex &parent = QModelIndex() ) const;

    virtual int columnCount( const QModelIndex &parent = QModelIndex() ) const;

    virtual QVariant data( const QModelIndex &index, int role = Qt::DisplayRole ) const;

    virtual Qt::ItemFlags flags( const QModelIndex &index ) const;

    virtual bool setData( const QModelIndex &index, const QVariant &value, int role = Qt::EditRole );

    virtual bool insertRows( int row, int count, const QModelIndex &parent = QModelIndex() );

    virtual bool removeRows( int row, int count, const QModelIndex &parent = QModelIndex() );

    virtual QVariant headerData( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const;


};

class QgsBookmarkManagerProxyModel : QSortFilterProxyModel
{
%Docstring(signature="appended")
A QSortFilterProxyModel subclass for sorting the entries in a
:py:class:`QgsBookmarkManagerModel`.

.. versionadded:: 3.10
%End

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

    QgsBookmarkManagerProxyModel( QgsBookmarkManager *manager, QgsBookmarkManager *projectManager = 0, QObject *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsBookmarkManagerProxyModel, associated with a main
``manager`` (usually the application bookmark manager, accessed via
:py:func:`QgsApplication.bookmarkManager()`) and a secondary
``projectManager`` (a project based bookmark manager).
%End

};

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