Project

General

Profile

Files » interface_ansible.py

Legrand François, 07/18/2017 05:22 PM

 
1
# -*- coding: utf-8 -*-
2

    
3
# Form implementation generated from reading ui file 'interface-ansible.ui'
4
#
5
# Created: Tue Jul 18 11:30:31 2017
6
#      by: PyQt4 UI code generator 4.10.4
7
#
8
# WARNING! All changes made in this file will be lost!
9

    
10
from PyQt4 import QtCore, QtGui
11

    
12
try:
13
    _fromUtf8 = QtCore.QString.fromUtf8
14
except AttributeError:
15
    def _fromUtf8(s):
16
        return s
17

    
18
try:
19
    _encoding = QtGui.QApplication.UnicodeUTF8
20
    def _translate(context, text, disambig):
21
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
22
except AttributeError:
23
    def _translate(context, text, disambig):
24
        return QtGui.QApplication.translate(context, text, disambig)
25

    
26
class Ui_MainWindow(object):
27
    def setupUi(self, MainWindow):
28
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
29
        MainWindow.resize(967, 902)
30
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
31
        sizePolicy.setHorizontalStretch(0)
32
        sizePolicy.setVerticalStretch(0)
33
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
34
        MainWindow.setSizePolicy(sizePolicy)
35
        MainWindow.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
36
        self.centralwidget = QtGui.QWidget(MainWindow)
37
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
38
        sizePolicy.setHorizontalStretch(0)
39
        sizePolicy.setVerticalStretch(0)
40
        sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
41
        self.centralwidget.setSizePolicy(sizePolicy)
42
        self.centralwidget.setMinimumSize(QtCore.QSize(0, 0))
43
        self.centralwidget.setAutoFillBackground(False)
44
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
45
        self.Loadhostfile = QtGui.QPushButton(self.centralwidget)
46
        self.Loadhostfile.setGeometry(QtCore.QRect(0, 10, 141, 27))
47
        self.Loadhostfile.setObjectName(_fromUtf8("Loadhostfile"))
48
        self.tabs = QtGui.QTabWidget(self.centralwidget)
49
        self.tabs.setGeometry(QtCore.QRect(10, 50, 921, 751))
50
        self.tabs.setObjectName(_fromUtf8("tabs"))
51
        self.tab_hosts = QtGui.QWidget()
52
        self.tab_hosts.setObjectName(_fromUtf8("tab_hosts"))
53
        self.hostslist = MyQListWidget(self.tab_hosts)
54
        self.hostslist.setGeometry(QtCore.QRect(100, 60, 310, 200))
55
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
56
        sizePolicy.setHorizontalStretch(0)
57
        sizePolicy.setVerticalStretch(0)
58
        sizePolicy.setHeightForWidth(self.hostslist.sizePolicy().hasHeightForWidth())
59
        self.hostslist.setSizePolicy(sizePolicy)
60
        self.hostslist.setBatchSize(100)
61
        self.hostslist.setObjectName(_fromUtf8("hostslist"))
62
        self.addhost = QtGui.QPushButton(self.tab_hosts)
63
        self.addhost.setGeometry(QtCore.QRect(380, 10, 31, 27))
64
        self.addhost.setObjectName(_fromUtf8("addhost"))
65
        self.hosttoadd = QtGui.QLineEdit(self.tab_hosts)
66
        self.hosttoadd.setGeometry(QtCore.QRect(104, 11, 279, 27))
67
        self.hosttoadd.setObjectName(_fromUtf8("hosttoadd"))
68
        self.hostgroupslist = MyQListWidget(self.tab_hosts)
69
        self.hostgroupslist.setGeometry(QtCore.QRect(100, 290, 310, 200))
70
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
71
        sizePolicy.setHorizontalStretch(0)
72
        sizePolicy.setVerticalStretch(0)
73
        sizePolicy.setHeightForWidth(self.hostgroupslist.sizePolicy().hasHeightForWidth())
74
        self.hostgroupslist.setSizePolicy(sizePolicy)
75
        self.hostgroupslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
76
        self.hostgroupslist.setObjectName(_fromUtf8("hostgroupslist"))
77
        self.availablegroupslist = MyQListWidget(self.tab_hosts)
78
        self.availablegroupslist.setGeometry(QtCore.QRect(440, 290, 310, 200))
79
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
80
        sizePolicy.setHorizontalStretch(0)
81
        sizePolicy.setVerticalStretch(0)
82
        sizePolicy.setHeightForWidth(self.availablegroupslist.sizePolicy().hasHeightForWidth())
83
        self.availablegroupslist.setSizePolicy(sizePolicy)
84
        self.availablegroupslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
85
        self.availablegroupslist.setObjectName(_fromUtf8("availablegroupslist"))
86
        self.HostsLabel = QtGui.QLabel(self.tab_hosts)
87
        self.HostsLabel.setGeometry(QtCore.QRect(10, 140, 71, 20))
88
        self.HostsLabel.setObjectName(_fromUtf8("HostsLabel"))
89
        self.label_2 = QtGui.QLabel(self.tab_hosts)
90
        self.label_2.setGeometry(QtCore.QRect(10, 330, 91, 100))
91
        self.label_2.setWordWrap(True)
92
        self.label_2.setObjectName(_fromUtf8("label_2"))
93
        self.label_3 = QtGui.QLabel(self.tab_hosts)
94
        self.label_3.setGeometry(QtCore.QRect(770, 340, 81, 81))
95
        self.label_3.setWordWrap(True)
96
        self.label_3.setObjectName(_fromUtf8("label_3"))
97
        self.label_4 = QtGui.QLabel(self.tab_hosts)
98
        self.label_4.setGeometry(QtCore.QRect(770, 540, 81, 81))
99
        self.label_4.setWordWrap(True)
100
        self.label_4.setObjectName(_fromUtf8("label_4"))
101
        self.hostattributeslist = MyQListWidget(self.tab_hosts)
102
        self.hostattributeslist.setGeometry(QtCore.QRect(100, 500, 310, 200))
103
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
104
        sizePolicy.setHorizontalStretch(0)
105
        sizePolicy.setVerticalStretch(0)
106
        sizePolicy.setHeightForWidth(self.hostattributeslist.sizePolicy().hasHeightForWidth())
107
        self.hostattributeslist.setSizePolicy(sizePolicy)
108
        self.hostattributeslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
109
        self.hostattributeslist.setObjectName(_fromUtf8("hostattributeslist"))
110
        self.label_5 = QtGui.QLabel(self.tab_hosts)
111
        self.label_5.setGeometry(QtCore.QRect(10, 540, 91, 100))
112
        self.label_5.setWordWrap(True)
113
        self.label_5.setObjectName(_fromUtf8("label_5"))
114
        self.availableattributeslist = MyQListWidget(self.tab_hosts)
115
        self.availableattributeslist.setGeometry(QtCore.QRect(440, 500, 310, 200))
116
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
117
        sizePolicy.setHorizontalStretch(0)
118
        sizePolicy.setVerticalStretch(0)
119
        sizePolicy.setHeightForWidth(self.availableattributeslist.sizePolicy().hasHeightForWidth())
120
        self.availableattributeslist.setSizePolicy(sizePolicy)
121
        self.availableattributeslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
122
        self.availableattributeslist.setObjectName(_fromUtf8("availableattributeslist"))
123
        self.label_6 = QtGui.QLabel(self.tab_hosts)
124
        self.label_6.setGeometry(QtCore.QRect(10, 0, 91, 51))
125
        self.label_6.setWordWrap(True)
126
        self.label_6.setObjectName(_fromUtf8("label_6"))
127
        self.tabs.addTab(self.tab_hosts, _fromUtf8(""))
128
        self.tab_groups = QtGui.QWidget()
129
        self.tab_groups.setObjectName(_fromUtf8("tab_groups"))
130
        self.grouptoadd = QtGui.QLineEdit(self.tab_groups)
131
        self.grouptoadd.setGeometry(QtCore.QRect(104, 11, 279, 27))
132
        self.grouptoadd.setObjectName(_fromUtf8("grouptoadd"))
133
        self.addgroup = QtGui.QPushButton(self.tab_groups)
134
        self.addgroup.setGeometry(QtCore.QRect(380, 10, 31, 27))
135
        self.addgroup.setObjectName(_fromUtf8("addgroup"))
136
        self.groupslist = MyQListWidget(self.tab_groups)
137
        self.groupslist.setGeometry(QtCore.QRect(100, 60, 310, 200))
138
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
139
        sizePolicy.setHorizontalStretch(0)
140
        sizePolicy.setVerticalStretch(0)
141
        sizePolicy.setHeightForWidth(self.groupslist.sizePolicy().hasHeightForWidth())
142
        self.groupslist.setSizePolicy(sizePolicy)
143
        self.groupslist.setDragDropMode(QtGui.QAbstractItemView.NoDragDrop)
144
        self.groupslist.setObjectName(_fromUtf8("groupslist"))
145
        self.label_7 = QtGui.QLabel(self.tab_groups)
146
        self.label_7.setGeometry(QtCore.QRect(10, 0, 91, 51))
147
        self.label_7.setWordWrap(True)
148
        self.label_7.setObjectName(_fromUtf8("label_7"))
149
        self.GroupsLabel = QtGui.QLabel(self.tab_groups)
150
        self.GroupsLabel.setGeometry(QtCore.QRect(10, 140, 71, 20))
151
        self.GroupsLabel.setObjectName(_fromUtf8("GroupsLabel"))
152
        self.label_8 = QtGui.QLabel(self.tab_groups)
153
        self.label_8.setGeometry(QtCore.QRect(770, 540, 91, 100))
154
        self.label_8.setWordWrap(True)
155
        self.label_8.setObjectName(_fromUtf8("label_8"))
156
        self.label_9 = QtGui.QLabel(self.tab_groups)
157
        self.label_9.setGeometry(QtCore.QRect(770, 330, 91, 100))
158
        self.label_9.setWordWrap(True)
159
        self.label_9.setObjectName(_fromUtf8("label_9"))
160
        self.label_10 = QtGui.QLabel(self.tab_groups)
161
        self.label_10.setGeometry(QtCore.QRect(10, 540, 91, 100))
162
        self.label_10.setWordWrap(True)
163
        self.label_10.setObjectName(_fromUtf8("label_10"))
164
        self.groupattributeslist = MyQListWidget(self.tab_groups)
165
        self.groupattributeslist.setGeometry(QtCore.QRect(100, 500, 310, 200))
166
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
167
        sizePolicy.setHorizontalStretch(0)
168
        sizePolicy.setVerticalStretch(0)
169
        sizePolicy.setHeightForWidth(self.groupattributeslist.sizePolicy().hasHeightForWidth())
170
        self.groupattributeslist.setSizePolicy(sizePolicy)
171
        self.groupattributeslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
172
        self.groupattributeslist.setObjectName(_fromUtf8("groupattributeslist"))
173
        self.label_11 = QtGui.QLabel(self.tab_groups)
174
        self.label_11.setGeometry(QtCore.QRect(10, 330, 91, 100))
175
        self.label_11.setWordWrap(True)
176
        self.label_11.setObjectName(_fromUtf8("label_11"))
177
        self.availablehostslist_2 = MyQListWidget(self.tab_groups)
178
        self.availablehostslist_2.setGeometry(QtCore.QRect(440, 290, 310, 200))
179
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
180
        sizePolicy.setHorizontalStretch(0)
181
        sizePolicy.setVerticalStretch(0)
182
        sizePolicy.setHeightForWidth(self.availablehostslist_2.sizePolicy().hasHeightForWidth())
183
        self.availablehostslist_2.setSizePolicy(sizePolicy)
184
        self.availablehostslist_2.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
185
        self.availablehostslist_2.setObjectName(_fromUtf8("availablehostslist_2"))
186
        self.grouphostslist = MyQListWidget(self.tab_groups)
187
        self.grouphostslist.setGeometry(QtCore.QRect(100, 290, 310, 200))
188
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
189
        sizePolicy.setHorizontalStretch(0)
190
        sizePolicy.setVerticalStretch(0)
191
        sizePolicy.setHeightForWidth(self.grouphostslist.sizePolicy().hasHeightForWidth())
192
        self.grouphostslist.setSizePolicy(sizePolicy)
193
        self.grouphostslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
194
        self.grouphostslist.setObjectName(_fromUtf8("grouphostslist"))
195
        self.availableattributeslist_2 = MyQListWidget(self.tab_groups)
196
        self.availableattributeslist_2.setGeometry(QtCore.QRect(440, 500, 310, 200))
197
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
198
        sizePolicy.setHorizontalStretch(0)
199
        sizePolicy.setVerticalStretch(0)
200
        sizePolicy.setHeightForWidth(self.availableattributeslist_2.sizePolicy().hasHeightForWidth())
201
        self.availableattributeslist_2.setSizePolicy(sizePolicy)
202
        self.availableattributeslist_2.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
203
        self.availableattributeslist_2.setObjectName(_fromUtf8("availableattributeslist_2"))
204
        self.tabs.addTab(self.tab_groups, _fromUtf8(""))
205
        self.tab_cgroups = QtGui.QWidget()
206
        self.tab_cgroups.setObjectName(_fromUtf8("tab_cgroups"))
207
        self.addcgroup = QtGui.QPushButton(self.tab_cgroups)
208
        self.addcgroup.setGeometry(QtCore.QRect(380, 10, 31, 27))
209
        self.addcgroup.setObjectName(_fromUtf8("addcgroup"))
210
        self.label_13 = QtGui.QLabel(self.tab_cgroups)
211
        self.label_13.setGeometry(QtCore.QRect(10, 0, 91, 51))
212
        self.label_13.setWordWrap(True)
213
        self.label_13.setObjectName(_fromUtf8("label_13"))
214
        self.cgrouptoadd = QtGui.QLineEdit(self.tab_cgroups)
215
        self.cgrouptoadd.setGeometry(QtCore.QRect(104, 11, 279, 27))
216
        self.cgrouptoadd.setObjectName(_fromUtf8("cgrouptoadd"))
217
        self.cgroupslist = MyQListWidget(self.tab_cgroups)
218
        self.cgroupslist.setGeometry(QtCore.QRect(100, 60, 310, 200))
219
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
220
        sizePolicy.setHorizontalStretch(0)
221
        sizePolicy.setVerticalStretch(0)
222
        sizePolicy.setHeightForWidth(self.cgroupslist.sizePolicy().hasHeightForWidth())
223
        self.cgroupslist.setSizePolicy(sizePolicy)
224
        self.cgroupslist.setObjectName(_fromUtf8("cgroupslist"))
225
        self.GroupsLabel_2 = QtGui.QLabel(self.tab_cgroups)
226
        self.GroupsLabel_2.setGeometry(QtCore.QRect(10, 140, 91, 20))
227
        self.GroupsLabel_2.setObjectName(_fromUtf8("GroupsLabel_2"))
228
        self.label_14 = QtGui.QLabel(self.tab_cgroups)
229
        self.label_14.setGeometry(QtCore.QRect(10, 540, 91, 100))
230
        self.label_14.setWordWrap(True)
231
        self.label_14.setObjectName(_fromUtf8("label_14"))
232
        self.cgroupattributeslist = MyQListWidget(self.tab_cgroups)
233
        self.cgroupattributeslist.setGeometry(QtCore.QRect(100, 500, 310, 200))
234
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
235
        sizePolicy.setHorizontalStretch(0)
236
        sizePolicy.setVerticalStretch(0)
237
        sizePolicy.setHeightForWidth(self.cgroupattributeslist.sizePolicy().hasHeightForWidth())
238
        self.cgroupattributeslist.setSizePolicy(sizePolicy)
239
        self.cgroupattributeslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
240
        self.cgroupattributeslist.setObjectName(_fromUtf8("cgroupattributeslist"))
241
        self.label_15 = QtGui.QLabel(self.tab_cgroups)
242
        self.label_15.setGeometry(QtCore.QRect(10, 330, 91, 100))
243
        self.label_15.setWordWrap(True)
244
        self.label_15.setObjectName(_fromUtf8("label_15"))
245
        self.availablegroupslist_2 = MyQListWidget(self.tab_cgroups)
246
        self.availablegroupslist_2.setGeometry(QtCore.QRect(440, 290, 310, 200))
247
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
248
        sizePolicy.setHorizontalStretch(0)
249
        sizePolicy.setVerticalStretch(0)
250
        sizePolicy.setHeightForWidth(self.availablegroupslist_2.sizePolicy().hasHeightForWidth())
251
        self.availablegroupslist_2.setSizePolicy(sizePolicy)
252
        self.availablegroupslist_2.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
253
        self.availablegroupslist_2.setObjectName(_fromUtf8("availablegroupslist_2"))
254
        self.groupcgroupslist = MyQListWidget(self.tab_cgroups)
255
        self.groupcgroupslist.setGeometry(QtCore.QRect(100, 290, 310, 200))
256
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
257
        sizePolicy.setHorizontalStretch(0)
258
        sizePolicy.setVerticalStretch(0)
259
        sizePolicy.setHeightForWidth(self.groupcgroupslist.sizePolicy().hasHeightForWidth())
260
        self.groupcgroupslist.setSizePolicy(sizePolicy)
261
        self.groupcgroupslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
262
        self.groupcgroupslist.setObjectName(_fromUtf8("groupcgroupslist"))
263
        self.availableattributeslist_3 = MyQListWidget(self.tab_cgroups)
264
        self.availableattributeslist_3.setGeometry(QtCore.QRect(440, 500, 310, 200))
265
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
266
        sizePolicy.setHorizontalStretch(0)
267
        sizePolicy.setVerticalStretch(0)
268
        sizePolicy.setHeightForWidth(self.availableattributeslist_3.sizePolicy().hasHeightForWidth())
269
        self.availableattributeslist_3.setSizePolicy(sizePolicy)
270
        self.availableattributeslist_3.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
271
        self.availableattributeslist_3.setObjectName(_fromUtf8("availableattributeslist_3"))
272
        self.label_18 = QtGui.QLabel(self.tab_cgroups)
273
        self.label_18.setGeometry(QtCore.QRect(770, 330, 91, 100))
274
        self.label_18.setWordWrap(True)
275
        self.label_18.setObjectName(_fromUtf8("label_18"))
276
        self.label_19 = QtGui.QLabel(self.tab_cgroups)
277
        self.label_19.setGeometry(QtCore.QRect(770, 540, 91, 100))
278
        self.label_19.setWordWrap(True)
279
        self.label_19.setObjectName(_fromUtf8("label_19"))
280
        self.tabs.addTab(self.tab_cgroups, _fromUtf8(""))
281
        self.tab_attributes = QtGui.QWidget()
282
        self.tab_attributes.setObjectName(_fromUtf8("tab_attributes"))
283
        self.addattribute = QtGui.QPushButton(self.tab_attributes)
284
        self.addattribute.setGeometry(QtCore.QRect(380, 10, 31, 27))
285
        self.addattribute.setObjectName(_fromUtf8("addattribute"))
286
        self.attributeslist = MyQListWidget(self.tab_attributes)
287
        self.attributeslist.setGeometry(QtCore.QRect(100, 60, 310, 150))
288
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
289
        sizePolicy.setHorizontalStretch(0)
290
        sizePolicy.setVerticalStretch(0)
291
        sizePolicy.setHeightForWidth(self.attributeslist.sizePolicy().hasHeightForWidth())
292
        self.attributeslist.setSizePolicy(sizePolicy)
293
        self.attributeslist.setObjectName(_fromUtf8("attributeslist"))
294
        self.attributetoadd = QtGui.QLineEdit(self.tab_attributes)
295
        self.attributetoadd.setGeometry(QtCore.QRect(104, 11, 279, 27))
296
        self.attributetoadd.setObjectName(_fromUtf8("attributetoadd"))
297
        self.HostsLabel_2 = QtGui.QLabel(self.tab_attributes)
298
        self.HostsLabel_2.setGeometry(QtCore.QRect(10, 140, 91, 20))
299
        self.HostsLabel_2.setObjectName(_fromUtf8("HostsLabel_2"))
300
        self.label_12 = QtGui.QLabel(self.tab_attributes)
301
        self.label_12.setGeometry(QtCore.QRect(10, 0, 91, 51))
302
        self.label_12.setWordWrap(True)
303
        self.label_12.setObjectName(_fromUtf8("label_12"))
304
        self.availablegroupslist_3 = MyQListWidget(self.tab_attributes)
305
        self.availablegroupslist_3.setGeometry(QtCore.QRect(440, 390, 310, 150))
306
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
307
        sizePolicy.setHorizontalStretch(0)
308
        sizePolicy.setVerticalStretch(0)
309
        sizePolicy.setHeightForWidth(self.availablegroupslist_3.sizePolicy().hasHeightForWidth())
310
        self.availablegroupslist_3.setSizePolicy(sizePolicy)
311
        self.availablegroupslist_3.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
312
        self.availablegroupslist_3.setObjectName(_fromUtf8("availablegroupslist_3"))
313
        self.attributegroupslist = MyQListWidget(self.tab_attributes)
314
        self.attributegroupslist.setGeometry(QtCore.QRect(100, 390, 310, 150))
315
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
316
        sizePolicy.setHorizontalStretch(0)
317
        sizePolicy.setVerticalStretch(0)
318
        sizePolicy.setHeightForWidth(self.attributegroupslist.sizePolicy().hasHeightForWidth())
319
        self.attributegroupslist.setSizePolicy(sizePolicy)
320
        self.attributegroupslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
321
        self.attributegroupslist.setObjectName(_fromUtf8("attributegroupslist"))
322
        self.availablecgroupslist = MyQListWidget(self.tab_attributes)
323
        self.availablecgroupslist.setGeometry(QtCore.QRect(440, 550, 310, 150))
324
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
325
        sizePolicy.setHorizontalStretch(0)
326
        sizePolicy.setVerticalStretch(0)
327
        sizePolicy.setHeightForWidth(self.availablecgroupslist.sizePolicy().hasHeightForWidth())
328
        self.availablecgroupslist.setSizePolicy(sizePolicy)
329
        self.availablecgroupslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
330
        self.availablecgroupslist.setObjectName(_fromUtf8("availablecgroupslist"))
331
        self.attributecgroupslist = MyQListWidget(self.tab_attributes)
332
        self.attributecgroupslist.setGeometry(QtCore.QRect(100, 550, 310, 150))
333
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
334
        sizePolicy.setHorizontalStretch(0)
335
        sizePolicy.setVerticalStretch(0)
336
        sizePolicy.setHeightForWidth(self.attributecgroupslist.sizePolicy().hasHeightForWidth())
337
        self.attributecgroupslist.setSizePolicy(sizePolicy)
338
        self.attributecgroupslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
339
        self.attributecgroupslist.setObjectName(_fromUtf8("attributecgroupslist"))
340
        self.label_16 = QtGui.QLabel(self.tab_attributes)
341
        self.label_16.setGeometry(QtCore.QRect(10, 430, 91, 100))
342
        self.label_16.setWordWrap(True)
343
        self.label_16.setObjectName(_fromUtf8("label_16"))
344
        self.label_17 = QtGui.QLabel(self.tab_attributes)
345
        self.label_17.setGeometry(QtCore.QRect(10, 590, 91, 100))
346
        self.label_17.setWordWrap(True)
347
        self.label_17.setObjectName(_fromUtf8("label_17"))
348
        self.label_20 = QtGui.QLabel(self.tab_attributes)
349
        self.label_20.setGeometry(QtCore.QRect(770, 440, 81, 81))
350
        self.label_20.setWordWrap(True)
351
        self.label_20.setObjectName(_fromUtf8("label_20"))
352
        self.label_21 = QtGui.QLabel(self.tab_attributes)
353
        self.label_21.setGeometry(QtCore.QRect(770, 590, 81, 81))
354
        self.label_21.setWordWrap(True)
355
        self.label_21.setObjectName(_fromUtf8("label_21"))
356
        self.attributehostslist = MyQListWidget(self.tab_attributes)
357
        self.attributehostslist.setGeometry(QtCore.QRect(100, 230, 310, 150))
358
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
359
        sizePolicy.setHorizontalStretch(0)
360
        sizePolicy.setVerticalStretch(0)
361
        sizePolicy.setHeightForWidth(self.attributehostslist.sizePolicy().hasHeightForWidth())
362
        self.attributehostslist.setSizePolicy(sizePolicy)
363
        self.attributehostslist.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
364
        self.attributehostslist.setObjectName(_fromUtf8("attributehostslist"))
365
        self.label_22 = QtGui.QLabel(self.tab_attributes)
366
        self.label_22.setGeometry(QtCore.QRect(770, 270, 81, 81))
367
        self.label_22.setWordWrap(True)
368
        self.label_22.setObjectName(_fromUtf8("label_22"))
369
        self.availablehostslist_3 = MyQListWidget(self.tab_attributes)
370
        self.availablehostslist_3.setGeometry(QtCore.QRect(440, 230, 310, 150))
371
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
372
        sizePolicy.setHorizontalStretch(0)
373
        sizePolicy.setVerticalStretch(0)
374
        sizePolicy.setHeightForWidth(self.availablehostslist_3.sizePolicy().hasHeightForWidth())
375
        self.availablehostslist_3.setSizePolicy(sizePolicy)
376
        self.availablehostslist_3.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
377
        self.availablehostslist_3.setObjectName(_fromUtf8("availablehostslist_3"))
378
        self.label_23 = QtGui.QLabel(self.tab_attributes)
379
        self.label_23.setGeometry(QtCore.QRect(10, 270, 91, 100))
380
        self.label_23.setWordWrap(True)
381
        self.label_23.setObjectName(_fromUtf8("label_23"))
382
        self.tabs.addTab(self.tab_attributes, _fromUtf8(""))
383
        self.tab_view = QtGui.QWidget()
384
        self.tab_view.setObjectName(_fromUtf8("tab_view"))
385
        self.textEdit = QtGui.QTextEdit(self.tab_view)
386
        self.textEdit.setGeometry(QtCore.QRect(10, 10, 891, 691))
387
        self.textEdit.setReadOnly(True)
388
        self.textEdit.setObjectName(_fromUtf8("textEdit"))
389
        self.tabs.addTab(self.tab_view, _fromUtf8(""))
390
        self.Savehostfile = QtGui.QPushButton(self.centralwidget)
391
        self.Savehostfile.setGeometry(QtCore.QRect(757, 810, 141, 27))
392
        self.Savehostfile.setObjectName(_fromUtf8("Savehostfile"))
393
        MainWindow.setCentralWidget(self.centralwidget)
394
        self.menubar = QtGui.QMenuBar(MainWindow)
395
        self.menubar.setEnabled(True)
396
        self.menubar.setGeometry(QtCore.QRect(0, 0, 967, 25))
397
        self.menubar.setObjectName(_fromUtf8("menubar"))
398
        self.menuMenu = QtGui.QMenu(self.menubar)
399
        self.menuMenu.setObjectName(_fromUtf8("menuMenu"))
400
        MainWindow.setMenuBar(self.menubar)
401
        self.statusbar = QtGui.QStatusBar(MainWindow)
402
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
403
        MainWindow.setStatusBar(self.statusbar)
404
        self.toolBar = QtGui.QToolBar(MainWindow)
405
        self.toolBar.setEnabled(True)
406
        self.toolBar.setObjectName(_fromUtf8("toolBar"))
407
        MainWindow.addToolBar(QtCore.Qt.LeftToolBarArea, self.toolBar)
408
        self.actionload_hostsfile = QtGui.QAction(MainWindow)
409
        self.actionload_hostsfile.setObjectName(_fromUtf8("actionload_hostsfile"))
410
        self.actionQuitter = QtGui.QAction(MainWindow)
411
        self.actionQuitter.setObjectName(_fromUtf8("actionQuitter"))
412
        self.actionSauver = QtGui.QAction(MainWindow)
413
        self.actionSauver.setObjectName(_fromUtf8("actionSauver"))
414
        self.menuMenu.addAction(self.actionload_hostsfile)
415
        self.menuMenu.addAction(self.actionSauver)
416
        self.menuMenu.addSeparator()
417
        self.menuMenu.addAction(self.actionQuitter)
418
        self.menubar.addAction(self.menuMenu.menuAction())
419

    
420
        self.retranslateUi(MainWindow)
421
        self.tabs.setCurrentIndex(3)
422
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
423

    
424
    def retranslateUi(self, MainWindow):
425
        MainWindow.setWindowTitle(_translate("MainWindow", "AHM - Ansible Hosts Manager", None))
426
        self.Loadhostfile.setText(_translate("MainWindow", "Load hosts file", None))
427
        self.hostslist.setSortingEnabled(True)
428
        self.addhost.setText(_translate("MainWindow", "+", None))
429
        self.hostgroupslist.setSortingEnabled(True)
430
        self.availablegroupslist.setSortingEnabled(True)
431
        self.HostsLabel.setText(_translate("MainWindow", "Hosts", None))
432
        self.label_2.setText(_translate("MainWindow", "Groups for selected host", None))
433
        self.label_3.setText(_translate("MainWindow", "Available Groups", None))
434
        self.label_4.setText(_translate("MainWindow", "Available Attributes", None))
435
        self.hostattributeslist.setSortingEnabled(True)
436
        self.label_5.setText(_translate("MainWindow", "Attributes for selected host", None))
437
        self.availableattributeslist.setSortingEnabled(True)
438
        self.label_6.setText(_translate("MainWindow", "Add hosts", None))
439
        self.tabs.setTabText(self.tabs.indexOf(self.tab_hosts), _translate("MainWindow", "Hosts", None))
440
        self.addgroup.setText(_translate("MainWindow", "+", None))
441
        self.groupslist.setSortingEnabled(True)
442
        self.label_7.setText(_translate("MainWindow", "Add group", None))
443
        self.GroupsLabel.setText(_translate("MainWindow", "Groups", None))
444
        self.label_8.setText(_translate("MainWindow", "Available Attributes", None))
445
        self.label_9.setText(_translate("MainWindow", "Available hosts", None))
446
        self.label_10.setText(_translate("MainWindow", "Attributes for selected group", None))
447
        self.groupattributeslist.setSortingEnabled(True)
448
        self.label_11.setText(_translate("MainWindow", "Hosts for selected group", None))
449
        self.availablehostslist_2.setSortingEnabled(True)
450
        self.grouphostslist.setSortingEnabled(False)
451
        self.availableattributeslist_2.setSortingEnabled(True)
452
        self.tabs.setTabText(self.tabs.indexOf(self.tab_groups), _translate("MainWindow", "Groups", None))
453
        self.addcgroup.setText(_translate("MainWindow", "+", None))
454
        self.label_13.setText(_translate("MainWindow", "Add Cgroup", None))
455
        self.cgroupslist.setSortingEnabled(True)
456
        self.GroupsLabel_2.setText(_translate("MainWindow", "CGroups", None))
457
        self.label_14.setText(_translate("MainWindow", "Attributes for selected Cgroup", None))
458
        self.cgroupattributeslist.setSortingEnabled(True)
459
        self.label_15.setText(_translate("MainWindow", "Groups for selected Cgroup", None))
460
        self.availablegroupslist_2.setSortingEnabled(True)
461
        self.groupcgroupslist.setSortingEnabled(False)
462
        self.availableattributeslist_3.setSortingEnabled(True)
463
        self.label_18.setText(_translate("MainWindow", "Available groups", None))
464
        self.label_19.setText(_translate("MainWindow", "Available attributes", None))
465
        self.tabs.setTabText(self.tabs.indexOf(self.tab_cgroups), _translate("MainWindow", "Cgroups", None))
466
        self.addattribute.setText(_translate("MainWindow", "+", None))
467
        self.attributeslist.setSortingEnabled(True)
468
        self.HostsLabel_2.setText(_translate("MainWindow", "Attributes", None))
469
        self.label_12.setText(_translate("MainWindow", "Add attribute", None))
470
        self.availablegroupslist_3.setSortingEnabled(True)
471
        self.attributegroupslist.setSortingEnabled(True)
472
        self.availablecgroupslist.setSortingEnabled(True)
473
        self.attributecgroupslist.setSortingEnabled(True)
474
        self.label_16.setText(_translate("MainWindow", "Groups for selected attribute", None))
475
        self.label_17.setText(_translate("MainWindow", "Cgroups for selected attribute", None))
476
        self.label_20.setText(_translate("MainWindow", "Available groups", None))
477
        self.label_21.setText(_translate("MainWindow", "Available cgroups", None))
478
        self.attributehostslist.setSortingEnabled(True)
479
        self.label_22.setText(_translate("MainWindow", "Available hosts", None))
480
        self.availablehostslist_3.setSortingEnabled(True)
481
        self.label_23.setText(_translate("MainWindow", "Hosts for selected attribute", None))
482
        self.tabs.setTabText(self.tabs.indexOf(self.tab_attributes), _translate("MainWindow", "Attributes", None))
483
        self.tabs.setTabText(self.tabs.indexOf(self.tab_view), _translate("MainWindow", "View hosts file", None))
484
        self.Savehostfile.setText(_translate("MainWindow", "Save hosts file", None))
485
        self.menuMenu.setTitle(_translate("MainWindow", "Menu", None))
486
        self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None))
487
        self.actionload_hostsfile.setText(_translate("MainWindow", "Load", None))
488
        self.actionQuitter.setText(_translate("MainWindow", "Quit", None))
489
        self.actionSauver.setText(_translate("MainWindow", "Save", None))
490

    
491
from ansiblehostsmanager import MyQListWidget
492

    
493
class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
494
    def __init__(self, parent=None, f=QtCore.Qt.WindowFlags()):
495
        QtGui.QMainWindow.__init__(self, parent, f)
496

    
497
        self.setupUi(self)
498

    
(1-1/2)