|
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.Plugins.DocumentationPlugins.Ericapi.EricapiExecDialog</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.Plugins.DocumentationPlugins.Ericapi.EricapiExecDialog</h1> |
|
12 <p> |
|
13 Module implementing a dialog to show the output of the ericapi process. |
|
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="#EricapiExecDialog">EricapiExecDialog</a></td> |
|
23 <td>Class implementing a dialog to show the output of the ericapi process.</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="EricapiExecDialog" ID="EricapiExecDialog"></a> |
|
32 <h2>EricapiExecDialog</h2> |
|
33 <p> |
|
34 Class implementing a dialog to show the output of the ericapi process. |
|
35 </p><p> |
|
36 This class starts a QProcess and displays a dialog that |
|
37 shows the output of the documentation command process. |
|
38 </p> |
|
39 <h3>Derived from</h3> |
|
40 QDialog, Ui_EricapiExecDialog |
|
41 <h3>Class Attributes</h3> |
|
42 <table> |
|
43 <tr><td>None</td></tr> |
|
44 </table> |
|
45 <h3>Methods</h3> |
|
46 <table> |
|
47 <tr> |
|
48 <td><a href="#EricapiExecDialog.__init__">EricapiExecDialog</a></td> |
|
49 <td>Constructor</td> |
|
50 </tr><tr> |
|
51 <td><a href="#EricapiExecDialog.__finish">__finish</a></td> |
|
52 <td>Private slot called when the process finished.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#EricapiExecDialog.__readStderr">__readStderr</a></td> |
|
55 <td>Private slot to handle the readyReadStandardError signal.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#EricapiExecDialog.__readStdout">__readStdout</a></td> |
|
58 <td>Private slot to handle the readyReadStandardOutput signal.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#EricapiExecDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
61 <td>Private slot called by a button of the button box clicked.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#EricapiExecDialog.start">start</a></td> |
|
64 <td>Public slot to start the ericapi command.</td> |
|
65 </tr> |
|
66 </table> |
|
67 <a NAME="EricapiExecDialog.__init__" ID="EricapiExecDialog.__init__"></a> |
|
68 <h4>EricapiExecDialog (Constructor)</h4> |
|
69 <b>EricapiExecDialog</b>(<i>cmdname, parent = None</i>) |
|
70 <p> |
|
71 Constructor |
|
72 </p><dl> |
|
73 <dt><i>cmdname</i></dt> |
|
74 <dd> |
|
75 name of the ericapi generator (string) |
|
76 </dd><dt><i>parent</i></dt> |
|
77 <dd> |
|
78 parent widget of this dialog (QWidget) |
|
79 </dd> |
|
80 </dl><a NAME="EricapiExecDialog.__finish" ID="EricapiExecDialog.__finish"></a> |
|
81 <h4>EricapiExecDialog.__finish</h4> |
|
82 <b>__finish</b>(<i></i>) |
|
83 <p> |
|
84 Private slot called when the process finished. |
|
85 </p><p> |
|
86 It is called when the process finished or |
|
87 the user pressed the button. |
|
88 </p><a NAME="EricapiExecDialog.__readStderr" ID="EricapiExecDialog.__readStderr"></a> |
|
89 <h4>EricapiExecDialog.__readStderr</h4> |
|
90 <b>__readStderr</b>(<i></i>) |
|
91 <p> |
|
92 Private slot to handle the readyReadStandardError signal. |
|
93 </p><p> |
|
94 It reads the error output of the process and inserts it into the |
|
95 error pane. |
|
96 </p><a NAME="EricapiExecDialog.__readStdout" ID="EricapiExecDialog.__readStdout"></a> |
|
97 <h4>EricapiExecDialog.__readStdout</h4> |
|
98 <b>__readStdout</b>(<i></i>) |
|
99 <p> |
|
100 Private slot to handle the readyReadStandardOutput signal. |
|
101 </p><p> |
|
102 It reads the output of the process, formats it and inserts it into |
|
103 the contents pane. |
|
104 </p><a NAME="EricapiExecDialog.on_buttonBox_clicked" ID="EricapiExecDialog.on_buttonBox_clicked"></a> |
|
105 <h4>EricapiExecDialog.on_buttonBox_clicked</h4> |
|
106 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
107 <p> |
|
108 Private slot called by a button of the button box clicked. |
|
109 </p><dl> |
|
110 <dt><i>button</i></dt> |
|
111 <dd> |
|
112 button that was clicked (QAbstractButton) |
|
113 </dd> |
|
114 </dl><a NAME="EricapiExecDialog.start" ID="EricapiExecDialog.start"></a> |
|
115 <h4>EricapiExecDialog.start</h4> |
|
116 <b>start</b>(<i>args, fn</i>) |
|
117 <p> |
|
118 Public slot to start the ericapi command. |
|
119 </p><dl> |
|
120 <dt><i>args</i></dt> |
|
121 <dd> |
|
122 commandline arguments for ericapi program (list of strings) |
|
123 </dd><dt><i>fn</i></dt> |
|
124 <dd> |
|
125 filename or dirname to be processed by ericapi program (string) |
|
126 </dd> |
|
127 </dl><dl> |
|
128 <dt>Returns:</dt> |
|
129 <dd> |
|
130 flag indicating the successful start of the process (boolean) |
|
131 </dd> |
|
132 </dl> |
|
133 <div align="right"><a href="#top">Up</a></div> |
|
134 <hr /> |
|
135 </body></html> |