Documentation/Source/eric5.Helpviewer.CookieJar.CookieModel.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Helpviewer.CookieJar.CookieModel</h1> 23 <h1>eric5.Helpviewer.CookieJar.CookieModel</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#111;&#111;&#107;&#105;&#101; &#109;&#111;&#100;&#101;&#108;. 25 Module implementing the cookie model.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#CookieModel">CookieModel</a></td> 34 <td><a href="#CookieModel">CookieModel</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#111;&#111;&#107;&#105;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 35 <td>Class implementing the cookie model.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="CookieModel" ID="CookieModel"></a> 43 <a NAME="CookieModel" ID="CookieModel"></a>
44 <h2>CookieModel</h2> 44 <h2>CookieModel</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#111;&#111;&#107;&#105;&#101; &#109;&#111;&#100;&#101;&#108;. 46 Class implementing the cookie model.
47 </p> 47 </p>
48 <h3>Derived from</h3> 48 <h3>Derived from</h3>
49 QAbstractTableModel 49 QAbstractTableModel
50 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
51 <table> 51 <table>
53 </table> 53 </table>
54 <h3>Methods</h3> 54 <h3>Methods</h3>
55 <table> 55 <table>
56 <tr> 56 <tr>
57 <td><a href="#CookieModel.__init__">CookieModel</a></td> 57 <td><a href="#CookieModel.__init__">CookieModel</a></td>
58 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 58 <td>Constructor</td>
59 </tr><tr> 59 </tr><tr>
60 <td><a href="#CookieModel.__cookiesChanged">__cookiesChanged</a></td> 60 <td><a href="#CookieModel.__cookiesChanged">__cookiesChanged</a></td>
61 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#99;&#104;&#97;&#110;&#103;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#111;&#111;&#107;&#105;&#101;&#115; &#108;&#105;&#115;&#116; &#105;&#110; &#116;&#104;&#101; &#99;&#111;&#111;&#107;&#105;&#101; &#106;&#97;&#114;.</td> 61 <td>Private slot handling changes of the cookies list in the cookie jar.</td>
62 </tr><tr> 62 </tr><tr>
63 <td><a href="#CookieModel.columnCount">columnCount</a></td> 63 <td><a href="#CookieModel.columnCount">columnCount</a></td>
64 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115; &#111;&#102; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 64 <td>Public method to get the number of columns of the model.</td>
65 </tr><tr> 65 </tr><tr>
66 <td><a href="#CookieModel.data">data</a></td> 66 <td><a href="#CookieModel.data">data</a></td>
67 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 67 <td>Public method to get data from the model.</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#CookieModel.headerData">headerData</a></td> 69 <td><a href="#CookieModel.headerData">headerData</a></td>
70 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#104;&#101;&#97;&#100;&#101;&#114; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 70 <td>Public method to get header data from the model.</td>
71 </tr><tr> 71 </tr><tr>
72 <td><a href="#CookieModel.removeRows">removeRows</a></td> 72 <td><a href="#CookieModel.removeRows">removeRows</a></td>
73 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 73 <td>Public method to remove entries from the model.</td>
74 </tr><tr> 74 </tr><tr>
75 <td><a href="#CookieModel.rowCount">rowCount</a></td> 75 <td><a href="#CookieModel.rowCount">rowCount</a></td>
76 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#114;&#111;w&#115; &#111;&#102; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;.</td> 76 <td>Public method to get the number of rows of the model.</td>
77 </tr> 77 </tr>
78 </table> 78 </table>
79 <a NAME="CookieModel.__init__" ID="CookieModel.__init__"></a> 79 <a NAME="CookieModel.__init__" ID="CookieModel.__init__"></a>
80 <h4>CookieModel (Constructor)</h4> 80 <h4>CookieModel (Constructor)</h4>
81 <b>CookieModel</b>(<i>cookieJar, parent = None</i>) 81 <b>CookieModel</b>(<i>cookieJar, parent = None</i>)
82 <p> 82 <p>
83 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 83 Constructor
84 </p><dl> 84 </p><dl>
85 <dt><i>cookieJar</i></dt> 85 <dt><i>cookieJar</i></dt>
86 <dd> 86 <dd>
87 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#99;&#111;&#111;&#107;&#105;&#101; &#106;&#97;&#114; (&#67;&#111;&#111;&#107;&#105;&#101;&#74;&#97;&#114;) 87 reference to the cookie jar (CookieJar)
88 </dd><dt><i>parent</i></dt> 88 </dd><dt><i>parent</i></dt>
89 <dd> 89 <dd>
90 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;) 90 reference to the parent object (QObject)
91 </dd> 91 </dd>
92 </dl><a NAME="CookieModel.__cookiesChanged" ID="CookieModel.__cookiesChanged"></a> 92 </dl><a NAME="CookieModel.__cookiesChanged" ID="CookieModel.__cookiesChanged"></a>
93 <h4>CookieModel.__cookiesChanged</h4> 93 <h4>CookieModel.__cookiesChanged</h4>
94 <b>__cookiesChanged</b>(<i></i>) 94 <b>__cookiesChanged</b>(<i></i>)
95 <p> 95 <p>
96 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#104;&#97;&#110;&#100;&#108;&#105;&#110;&#103; &#99;&#104;&#97;&#110;&#103;&#101;&#115; &#111;&#102; &#116;&#104;&#101; &#99;&#111;&#111;&#107;&#105;&#101;&#115; &#108;&#105;&#115;&#116; &#105;&#110; &#116;&#104;&#101; &#99;&#111;&#111;&#107;&#105;&#101; &#106;&#97;&#114;. 96 Private slot handling changes of the cookies list in the cookie jar.
97 </p><a NAME="CookieModel.columnCount" ID="CookieModel.columnCount"></a> 97 </p><a NAME="CookieModel.columnCount" ID="CookieModel.columnCount"></a>
98 <h4>CookieModel.columnCount</h4> 98 <h4>CookieModel.columnCount</h4>
99 <b>columnCount</b>(<i>parent = QModelIndex()</i>) 99 <b>columnCount</b>(<i>parent = QModelIndex()</i>)
100 <p> 100 <p>
101 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115; &#111;&#102; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 101 Public method to get the number of columns of the model.
102 </p><dl> 102 </p><dl>
103 <dt><i>parent</i></dt> 103 <dt><i>parent</i></dt>
104 <dd> 104 <dd>
105 &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 105 parent index (QModelIndex)
106 </dd> 106 </dd>
107 </dl><dl> 107 </dl><dl>
108 <dt>Returns:</dt> 108 <dt>Returns:</dt>
109 <dd> 109 <dd>
110 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 110 number of columns (integer)
111 </dd> 111 </dd>
112 </dl><a NAME="CookieModel.data" ID="CookieModel.data"></a> 112 </dl><a NAME="CookieModel.data" ID="CookieModel.data"></a>
113 <h4>CookieModel.data</h4> 113 <h4>CookieModel.data</h4>
114 <b>data</b>(<i>index, role</i>) 114 <b>data</b>(<i>index, role</i>)
115 <p> 115 <p>
116 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 116 Public method to get data from the model.
117 </p><dl> 117 </p><dl>
118 <dt><i>index</i></dt> 118 <dt><i>index</i></dt>
119 <dd> 119 <dd>
120 &#105;&#110;&#100;&#101;x &#116;&#111; &#103;&#101;&#116; &#100;&#97;&#116;&#97; &#102;&#111;&#114; (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 120 index to get data for (QModelIndex)
121 </dd><dt><i>role</i></dt> 121 </dd><dt><i>role</i></dt>
122 <dd> 122 <dd>
123 &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#100;&#97;&#116;&#97; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 123 role of the data to retrieve (integer)
124 </dd> 124 </dd>
125 </dl><dl> 125 </dl><dl>
126 <dt>Returns:</dt> 126 <dt>Returns:</dt>
127 <dd> 127 <dd>
128 &#114;&#101;&#113;&#117;&#101;&#115;&#116;&#101;&#100; &#100;&#97;&#116;&#97; 128 requested data
129 </dd> 129 </dd>
130 </dl><a NAME="CookieModel.headerData" ID="CookieModel.headerData"></a> 130 </dl><a NAME="CookieModel.headerData" ID="CookieModel.headerData"></a>
131 <h4>CookieModel.headerData</h4> 131 <h4>CookieModel.headerData</h4>
132 <b>headerData</b>(<i>section, orientation, role</i>) 132 <b>headerData</b>(<i>section, orientation, role</i>)
133 <p> 133 <p>
134 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#104;&#101;&#97;&#100;&#101;&#114; &#100;&#97;&#116;&#97; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 134 Public method to get header data from the model.
135 </p><dl> 135 </p><dl>
136 <dt><i>section</i></dt> 136 <dt><i>section</i></dt>
137 <dd> 137 <dd>
138 &#115;&#101;&#99;&#116;&#105;&#111;&#110; &#110;&#117;&#109;&#98;&#101;&#114; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 138 section number (integer)
139 </dd><dt><i>orientation</i></dt> 139 </dd><dt><i>orientation</i></dt>
140 <dd> 140 <dd>
141 &#111;&#114;&#105;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; (&#81;&#116;.&#79;&#114;&#105;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110;) 141 orientation (Qt.Orientation)
142 </dd><dt><i>role</i></dt> 142 </dd><dt><i>role</i></dt>
143 <dd> 143 <dd>
144 &#114;&#111;&#108;&#101; &#111;&#102; &#116;&#104;&#101; &#100;&#97;&#116;&#97; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 144 role of the data to retrieve (integer)
145 </dd> 145 </dd>
146 </dl><dl> 146 </dl><dl>
147 <dt>Returns:</dt> 147 <dt>Returns:</dt>
148 <dd> 148 <dd>
149 &#114;&#101;&#113;&#117;&#101;&#115;&#116;&#101;&#100; &#100;&#97;&#116;&#97; 149 requested data
150 </dd> 150 </dd>
151 </dl><a NAME="CookieModel.removeRows" ID="CookieModel.removeRows"></a> 151 </dl><a NAME="CookieModel.removeRows" ID="CookieModel.removeRows"></a>
152 <h4>CookieModel.removeRows</h4> 152 <h4>CookieModel.removeRows</h4>
153 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>) 153 <b>removeRows</b>(<i>row, count, parent = QModelIndex()</i>)
154 <p> 154 <p>
155 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#101;&#110;&#116;&#114;&#105;&#101;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 155 Public method to remove entries from the model.
156 </p><dl> 156 </p><dl>
157 <dt><i>row</i></dt> 157 <dt><i>row</i></dt>
158 <dd> 158 <dd>
159 &#115;&#116;&#97;&#114;&#116; &#114;&#111;w (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 159 start row (integer)
160 </dd><dt><i>count</i></dt> 160 </dd><dt><i>count</i></dt>
161 <dd> 161 <dd>
162 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#114;&#111;w&#115; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 162 number of rows to remove (integer)
163 </dd><dt><i>parent</i></dt> 163 </dd><dt><i>parent</i></dt>
164 <dd> 164 <dd>
165 &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 165 parent index (QModelIndex)
166 </dd> 166 </dd>
167 </dl><dl> 167 </dl><dl>
168 <dt>Returns:</dt> 168 <dt>Returns:</dt>
169 <dd> 169 <dd>
170 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 170 flag indicating success (boolean)
171 </dd> 171 </dd>
172 </dl><a NAME="CookieModel.rowCount" ID="CookieModel.rowCount"></a> 172 </dl><a NAME="CookieModel.rowCount" ID="CookieModel.rowCount"></a>
173 <h4>CookieModel.rowCount</h4> 173 <h4>CookieModel.rowCount</h4>
174 <b>rowCount</b>(<i>parent = QModelIndex()</i>) 174 <b>rowCount</b>(<i>parent = QModelIndex()</i>)
175 <p> 175 <p>
176 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#114;&#111;w&#115; &#111;&#102; &#116;&#104;&#101; &#109;&#111;&#100;&#101;&#108;. 176 Public method to get the number of rows of the model.
177 </p><dl> 177 </p><dl>
178 <dt><i>parent</i></dt> 178 <dt><i>parent</i></dt>
179 <dd> 179 <dd>
180 &#112;&#97;&#114;&#101;&#110;&#116; &#105;&#110;&#100;&#101;x (&#81;&#77;&#111;&#100;&#101;&#108;&#73;&#110;&#100;&#101;x) 180 parent index (QModelIndex)
181 </dd> 181 </dd>
182 </dl><dl> 182 </dl><dl>
183 <dt>Returns:</dt> 183 <dt>Returns:</dt>
184 <dd> 184 <dd>
185 &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#99;&#111;&#108;&#117;&#109;&#110;&#115; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 185 number of columns (integer)
186 </dd> 186 </dd>
187 </dl> 187 </dl>
188 <div align="right"><a href="#top">Up</a></div> 188 <div align="right"><a href="#top">Up</a></div>
189 <hr /> 189 <hr />
190 </body></html> 190 </body></html>

eric ide

mercurial