|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.PdfViewer.PdfInfoWidget</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.PdfViewer.PdfInfoWidget</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing an info widget showing data of a PDF document. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#PdfInfoWidget">PdfInfoWidget</a></td> |
|
25 <td>Class implementing an info widget showing data of a PDF document.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="PdfInfoWidget" ID="PdfInfoWidget"></a> |
|
36 <h2>PdfInfoWidget</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing an info widget showing data of a PDF document. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QWidget |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#PdfInfoWidget.__init__">PdfInfoWidget</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#PdfInfoWidget.__handlePageCountChanged">__handlePageCountChanged</a></td> |
|
63 <td>Private slot to handle a change of the page count.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#PdfInfoWidget.__handlePasswordChanged">__handlePasswordChanged</a></td> |
|
67 <td>Private slot to handle a change of the password.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#PdfInfoWidget.__populateInfoLabels">__populateInfoLabels</a></td> |
|
71 <td>Private slot to populate the info labels upon a change of the document status.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#PdfInfoWidget.setDocument">setDocument</a></td> |
|
75 <td>Public method to set the reference to the PDF document.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#PdfInfoWidget.setFileName">setFileName</a></td> |
|
79 <td>Public method to set the file name info.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 |
|
84 <table> |
|
85 <tr><td>None</td></tr> |
|
86 </table> |
|
87 |
|
88 <a NAME="PdfInfoWidget.__init__" ID="PdfInfoWidget.__init__"></a> |
|
89 <h4>PdfInfoWidget (Constructor)</h4> |
|
90 <b>PdfInfoWidget</b>(<i>document, parent=None</i>) |
|
91 |
|
92 <p> |
|
93 Constructor |
|
94 </p> |
|
95 <dl> |
|
96 |
|
97 <dt><i>document</i> (QPdfDocument)</dt> |
|
98 <dd> |
|
99 reference to the PDF document object |
|
100 </dd> |
|
101 <dt><i>parent</i> (QWidget (optional))</dt> |
|
102 <dd> |
|
103 reference to the parent widget (defaults to None) |
|
104 </dd> |
|
105 </dl> |
|
106 <a NAME="PdfInfoWidget.__handlePageCountChanged" ID="PdfInfoWidget.__handlePageCountChanged"></a> |
|
107 <h4>PdfInfoWidget.__handlePageCountChanged</h4> |
|
108 <b>__handlePageCountChanged</b>(<i>pageCount</i>) |
|
109 |
|
110 <p> |
|
111 Private slot to handle a change of the page count. |
|
112 </p> |
|
113 <dl> |
|
114 |
|
115 <dt><i>pageCount</i> (int)</dt> |
|
116 <dd> |
|
117 changed page count |
|
118 </dd> |
|
119 </dl> |
|
120 <a NAME="PdfInfoWidget.__handlePasswordChanged" ID="PdfInfoWidget.__handlePasswordChanged"></a> |
|
121 <h4>PdfInfoWidget.__handlePasswordChanged</h4> |
|
122 <b>__handlePasswordChanged</b>(<i></i>) |
|
123 |
|
124 <p> |
|
125 Private slot to handle a change of the password. |
|
126 </p> |
|
127 <a NAME="PdfInfoWidget.__populateInfoLabels" ID="PdfInfoWidget.__populateInfoLabels"></a> |
|
128 <h4>PdfInfoWidget.__populateInfoLabels</h4> |
|
129 <b>__populateInfoLabels</b>(<i>status</i>) |
|
130 |
|
131 <p> |
|
132 Private slot to populate the info labels upon a change of the document status. |
|
133 </p> |
|
134 <dl> |
|
135 |
|
136 <dt><i>status</i> (QPdfDocument.Status)</dt> |
|
137 <dd> |
|
138 document status |
|
139 </dd> |
|
140 </dl> |
|
141 <a NAME="PdfInfoWidget.setDocument" ID="PdfInfoWidget.setDocument"></a> |
|
142 <h4>PdfInfoWidget.setDocument</h4> |
|
143 <b>setDocument</b>(<i>document</i>) |
|
144 |
|
145 <p> |
|
146 Public method to set the reference to the PDF document. |
|
147 </p> |
|
148 <dl> |
|
149 |
|
150 <dt><i>document</i> (QPdfDocument)</dt> |
|
151 <dd> |
|
152 reference to the document |
|
153 </dd> |
|
154 </dl> |
|
155 <a NAME="PdfInfoWidget.setFileName" ID="PdfInfoWidget.setFileName"></a> |
|
156 <h4>PdfInfoWidget.setFileName</h4> |
|
157 <b>setFileName</b>(<i>filename</i>) |
|
158 |
|
159 <p> |
|
160 Public method to set the file name info. |
|
161 </p> |
|
162 <dl> |
|
163 |
|
164 <dt><i>filename</i> (TYPE)</dt> |
|
165 <dd> |
|
166 DESCRIPTION |
|
167 </dd> |
|
168 </dl> |
|
169 <div align="right"><a href="#top">Up</a></div> |
|
170 <hr /> |
|
171 </body></html> |