|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.Utilities.AutoSaver</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.Utilities.AutoSaver</h1> |
|
23 <p> |
|
24 Module implementing an auto saver class. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#AutoSaver">AutoSaver</a></td> |
|
34 <td>Class implementing the auto saver.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="AutoSaver" ID="AutoSaver"></a> |
|
43 <h2>AutoSaver</h2> |
|
44 <p> |
|
45 Class implementing the auto saver. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QObject |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>AUTOSAVE_IN</td></tr><tr><td>MAXWAIT</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#AutoSaver.__init__">AutoSaver</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#AutoSaver.changeOccurred">changeOccurred</a></td> |
|
64 <td>Public slot handling a change.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#AutoSaver.saveIfNeccessary">saveIfNeccessary</a></td> |
|
67 <td>Public method to activate the save operation.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#AutoSaver.timerEvent">timerEvent</a></td> |
|
70 <td>Protected method handling timer events.</td> |
|
71 </tr> |
|
72 </table> |
|
73 <h3>Static Methods</h3> |
|
74 <table> |
|
75 <tr><td>None</td></tr> |
|
76 </table> |
|
77 <a NAME="AutoSaver.__init__" ID="AutoSaver.__init__"></a> |
|
78 <h4>AutoSaver (Constructor)</h4> |
|
79 <b>AutoSaver</b>(<i>parent, save</i>) |
|
80 <p> |
|
81 Constructor |
|
82 </p><dl> |
|
83 <dt><i>parent</i></dt> |
|
84 <dd> |
|
85 reference to the parent object (QObject) |
|
86 </dd><dt><i>save</i></dt> |
|
87 <dd> |
|
88 slot to be called to perform the save operation |
|
89 </dd> |
|
90 </dl><dl> |
|
91 <dt>Raises <b>RuntimeError</b>:</dt> |
|
92 <dd> |
|
93 raised, if no parent is given |
|
94 </dd> |
|
95 </dl><a NAME="AutoSaver.changeOccurred" ID="AutoSaver.changeOccurred"></a> |
|
96 <h4>AutoSaver.changeOccurred</h4> |
|
97 <b>changeOccurred</b>(<i></i>) |
|
98 <p> |
|
99 Public slot handling a change. |
|
100 </p><a NAME="AutoSaver.saveIfNeccessary" ID="AutoSaver.saveIfNeccessary"></a> |
|
101 <h4>AutoSaver.saveIfNeccessary</h4> |
|
102 <b>saveIfNeccessary</b>(<i></i>) |
|
103 <p> |
|
104 Public method to activate the save operation. |
|
105 </p><a NAME="AutoSaver.timerEvent" ID="AutoSaver.timerEvent"></a> |
|
106 <h4>AutoSaver.timerEvent</h4> |
|
107 <b>timerEvent</b>(<i>evt</i>) |
|
108 <p> |
|
109 Protected method handling timer events. |
|
110 </p><dl> |
|
111 <dt><i>evt</i></dt> |
|
112 <dd> |
|
113 reference to the timer event (QTimerEvent) |
|
114 </dd> |
|
115 </dl> |
|
116 <div align="right"><a href="#top">Up</a></div> |
|
117 <hr /> |
|
118 </body></html> |