|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.Utilities.AutoSaver</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.Utilities.AutoSaver</h1> |
|
12 <p> |
|
13 Module implementing an auto saver class. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#AutoSaver">AutoSaver</a></td> |
|
23 <td>Class implementing the auto saver.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="AutoSaver" ID="AutoSaver"></a> |
|
32 <h2>AutoSaver</h2> |
|
33 <p> |
|
34 Class implementing the auto saver. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QObject |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>AUTOSAVE_IN</td></tr><tr><td>MAXWAIT</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#AutoSaver.__init__">AutoSaver</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#AutoSaver.changeOccurred">changeOccurred</a></td> |
|
49 <td>Public slot handling a change.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#AutoSaver.saveIfNeccessary">saveIfNeccessary</a></td> |
|
52 <td>Public method to activate the save operation.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#AutoSaver.timerEvent">timerEvent</a></td> |
|
55 <td>Protected method handling timer events.</td> |
|
56 </tr> |
|
57 </table> |
|
58 <a NAME="AutoSaver.__init__" ID="AutoSaver.__init__"></a> |
|
59 <h4>AutoSaver (Constructor)</h4> |
|
60 <b>AutoSaver</b>(<i>parent, save</i>) |
|
61 <p> |
|
62 Constructor |
|
63 </p><dl> |
|
64 <dt><i>parent</i></dt> |
|
65 <dd> |
|
66 reference to the parent object (QObject) |
|
67 </dd><dt><i>save</i></dt> |
|
68 <dd> |
|
69 slot to be called to perform the save operation |
|
70 </dd> |
|
71 </dl><a NAME="AutoSaver.changeOccurred" ID="AutoSaver.changeOccurred"></a> |
|
72 <h4>AutoSaver.changeOccurred</h4> |
|
73 <b>changeOccurred</b>(<i></i>) |
|
74 <p> |
|
75 Public slot handling a change. |
|
76 </p><a NAME="AutoSaver.saveIfNeccessary" ID="AutoSaver.saveIfNeccessary"></a> |
|
77 <h4>AutoSaver.saveIfNeccessary</h4> |
|
78 <b>saveIfNeccessary</b>(<i></i>) |
|
79 <p> |
|
80 Public method to activate the save operation. |
|
81 </p><a NAME="AutoSaver.timerEvent" ID="AutoSaver.timerEvent"></a> |
|
82 <h4>AutoSaver.timerEvent</h4> |
|
83 <b>timerEvent</b>(<i>evt</i>) |
|
84 <p> |
|
85 Protected method handling timer events. |
|
86 </p><dl> |
|
87 <dt><i>evt</i></dt> |
|
88 <dd> |
|
89 reference to the timer event (QTimerEvent) |
|
90 </dd> |
|
91 </dl> |
|
92 <div align="right"><a href="#top">Up</a></div> |
|
93 <hr /> |
|
94 </body></html> |