|
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.Templates.TemplatePropertiesDialog</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.Templates.TemplatePropertiesDialog</h1> |
|
12 <p> |
|
13 Module implementing the templates properties dialog. |
|
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="#TemplatePropertiesDialog">TemplatePropertiesDialog</a></td> |
|
23 <td>Class implementing the templates properties dialog.</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="TemplatePropertiesDialog" ID="TemplatePropertiesDialog"></a> |
|
32 <h2>TemplatePropertiesDialog</h2> |
|
33 <p> |
|
34 Class implementing the templates properties dialog. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QDialog, Ui_TemplatePropertiesDialog |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#TemplatePropertiesDialog.__init__">TemplatePropertiesDialog</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#TemplatePropertiesDialog.getData">getData</a></td> |
|
49 <td>Public method to get the data entered into the dialog.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#TemplatePropertiesDialog.keyPressEvent">keyPressEvent</a></td> |
|
52 <td>Re-implemented to handle the user pressing the escape key.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#TemplatePropertiesDialog.on_helpButton_clicked">on_helpButton_clicked</a></td> |
|
55 <td>Public slot to show some help.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#TemplatePropertiesDialog.setSelectedGroup">setSelectedGroup</a></td> |
|
58 <td>Public method to select a group.</td> |
|
59 </tr> |
|
60 </table> |
|
61 <a NAME="TemplatePropertiesDialog.__init__" ID="TemplatePropertiesDialog.__init__"></a> |
|
62 <h4>TemplatePropertiesDialog (Constructor)</h4> |
|
63 <b>TemplatePropertiesDialog</b>(<i>parent, groupMode = False, itm = None</i>) |
|
64 <p> |
|
65 Constructor |
|
66 </p><dl> |
|
67 <dt><i>parent</i></dt> |
|
68 <dd> |
|
69 the parent widget (QWidget) |
|
70 </dd><dt><i>groupMode</i></dt> |
|
71 <dd> |
|
72 flag indicating group mode (boolean) |
|
73 </dd><dt><i>itm</i></dt> |
|
74 <dd> |
|
75 item (TemplateEntry or TemplateGroup) to |
|
76 read the data from |
|
77 </dd> |
|
78 </dl><a NAME="TemplatePropertiesDialog.getData" ID="TemplatePropertiesDialog.getData"></a> |
|
79 <h4>TemplatePropertiesDialog.getData</h4> |
|
80 <b>getData</b>(<i></i>) |
|
81 <p> |
|
82 Public method to get the data entered into the dialog. |
|
83 </p><dl> |
|
84 <dt>Returns:</dt> |
|
85 <dd> |
|
86 a tuple of two strings (name, language), if the dialog is in group mode, |
|
87 and a tuple of four strings (name, description, group name, template) |
|
88 otherwise. |
|
89 </dd> |
|
90 </dl><a NAME="TemplatePropertiesDialog.keyPressEvent" ID="TemplatePropertiesDialog.keyPressEvent"></a> |
|
91 <h4>TemplatePropertiesDialog.keyPressEvent</h4> |
|
92 <b>keyPressEvent</b>(<i>ev</i>) |
|
93 <p> |
|
94 Re-implemented to handle the user pressing the escape key. |
|
95 </p><dl> |
|
96 <dt><i>ev</i></dt> |
|
97 <dd> |
|
98 key event (QKeyEvent) |
|
99 </dd> |
|
100 </dl><a NAME="TemplatePropertiesDialog.on_helpButton_clicked" ID="TemplatePropertiesDialog.on_helpButton_clicked"></a> |
|
101 <h4>TemplatePropertiesDialog.on_helpButton_clicked</h4> |
|
102 <b>on_helpButton_clicked</b>(<i></i>) |
|
103 <p> |
|
104 Public slot to show some help. |
|
105 </p><a NAME="TemplatePropertiesDialog.setSelectedGroup" ID="TemplatePropertiesDialog.setSelectedGroup"></a> |
|
106 <h4>TemplatePropertiesDialog.setSelectedGroup</h4> |
|
107 <b>setSelectedGroup</b>(<i>name</i>) |
|
108 <p> |
|
109 Public method to select a group. |
|
110 </p><dl> |
|
111 <dt><i>name</i></dt> |
|
112 <dd> |
|
113 name of the group to be selected (string) |
|
114 </dd> |
|
115 </dl> |
|
116 <div align="right"><a href="#top">Up</a></div> |
|
117 <hr /> |
|
118 </body></html> |