def __init__(self,usrlist,tsklist,conc_tasklist,parent=None):
super(TEMReflexionWidget,self).__init__(parent)
self.leftview.setFixedSize(550,600)
self.rightview.setFixedSize(550,600)
self.
leftview.
setFrameStyle(QtGui.
QFrame.
NoFrame) self.
rightview.
setFrameStyle(QtGui.
QFrame.
NoFrame) self.leftview.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.leftview.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.rightview.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.rightview.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
leftrect
= QtCore.
QRectF(self.
leftview.
rect()) rightrect
= QtCore.
QRectF(self.
rightview.
rect()) leftrect.adjust(1,1,-1,-1)
rightrect.adjust(1,1,-1,-1)
self.leftscene = TEMDrawer.DiagramScene(leftrect)
self.rightscene = TEMDrawer.DiagramScene(rightrect)
self.leftview.setScene(self.leftscene)
self.rightview.setScene(self.rightscene)
self.
qcheckbox = QtGui.
QCheckBox("Hide convergences") self.reflexInfo = QReflexionReportWidget()
self.qlist = QTaskList(self.reflexInfo,self.conceptual_tasklist,self.impltasklist,self.leftscene,self.rightscene,self,self.qcheckbox)
self.qinfow = TEMDrawer.TEMInfoWidget()
self.innerlayout.addWidget(self.leftview)
self.innerlayout.addWidget(self.rightview)
self.testwidget.setLayout(self.innerlayout)
self.splitterwidget.addWidget(self.testwidget)
self.splitterwidget.addWidget(self.reflexInfo)
self.rightlayout.addWidget(self.qlist)
self.
rightlayout.
addWidget(QtGui.
QLabel("Filter:")) self.rightlayout.addWidget(self.qline)
self.rightlayout.addWidget(self.qinfow)
self.rightlayout.addWidget(self.qcheckbox)
self.connect(self.qcheckbox, QtCore.SIGNAL('stateChanged(int)'), self.reflexInfo.convergences_toggled)
self.connect(self.qline, QtCore.SIGNAL('textChanged(QString)'), self.qlist.filter_items)
#self.leftlayout.addLayout(self.innerlayout)
self.mainlayout.addWidget(self.splitterwidget,5)
#self.mainlayout.addLayout(self.leftlayout)
self.mainlayout.addLayout(self.rightlayout)
self.setLayout(self.mainlayout)
self.draw_lanes(self.userlist,self.leftscene,0)
self.draw_lanes(self.userlist,self.rightscene,1)
def __init__(self,usrlist,tsklist,conc_tasklist,parent=None):
super(TEMReflexionWidget,self).__init__(parent)
self.mainlayout = QtGui.QHBoxLayout()
self.leftlayout = QtGui.QVBoxLayout()
self.innerlayout = QtGui.QHBoxLayout()
self.rightlayout = QtGui.QVBoxLayout()
self.leftview = QtGui.QGraphicsView()
self.rightview = QtGui.QGraphicsView()
self.leftview.setFixedSize(550,600)
self.rightview.setFixedSize(550,600)
self.leftview.setFrameStyle(QtGui.QFrame.NoFrame)
self.rightview.setFrameStyle(QtGui.QFrame.NoFrame)
self.leftview.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.leftview.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.rightview.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
self.rightview.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
leftrect = QtCore.QRectF(self.leftview.rect())
rightrect = QtCore.QRectF(self.rightview.rect())
leftrect.adjust(1,1,-1,-1)
rightrect.adjust(1,1,-1,-1)
self.leftscene = TEMDrawer.DiagramScene(leftrect)
self.rightscene = TEMDrawer.DiagramScene(rightrect)
self.leftview.setScene(self.leftscene)
self.rightview.setScene(self.rightscene)
self.qcheckbox = QtGui.QCheckBox("Hide convergences")
self.reflexInfo = QReflexionReportWidget()
self.qlist = QTaskList(self.reflexInfo,self.conceptual_tasklist,self.impltasklist,self.leftscene,self.rightscene,self,self.qcheckbox)
self.qinfow = TEMDrawer.TEMInfoWidget()
self.innerlayout.addWidget(self.leftview)
self.innerlayout.addWidget(self.rightview)
self.testwidget = QtGui.QWidget()
self.testwidget.setLayout(self.innerlayout)
self.splitterwidget = QtGui.QSplitter(0)
self.splitterwidget.addWidget(self.testwidget)
self.splitterwidget.addWidget(self.reflexInfo)
self.rightlayout.addWidget(self.qlist)
self.qline = QtGui.QLineEdit()
self.rightlayout.addWidget(QtGui.QLabel("Filter:"))
self.rightlayout.addWidget(self.qline)
self.rightlayout.addWidget(self.qinfow)
self.rightlayout.addWidget(self.qcheckbox)
self.connect(self.qcheckbox, QtCore.SIGNAL('stateChanged(int)'), self.reflexInfo.convergences_toggled)
self.connect(self.qline, QtCore.SIGNAL('textChanged(QString)'), self.qlist.filter_items)
#self.leftlayout.addLayout(self.innerlayout)
self.mainlayout.addWidget(self.splitterwidget,5)
#self.mainlayout.addLayout(self.leftlayout)
self.mainlayout.addLayout(self.rightlayout)
self.setLayout(self.mainlayout)
self.draw_lanes(self.userlist,self.leftscene,0)
self.draw_lanes(self.userlist,self.rightscene,1)
To copy to clipboard, switch view to plain text mode
Bookmarks