git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
minor tweaks
[sface.git]
/
sface
/
mainwindow.py
diff --git
a/sface/mainwindow.py
b/sface/mainwindow.py
index
fde8ad8
..
fdd52a5
100644
(file)
--- a/
sface/mainwindow.py
+++ b/
sface/mainwindow.py
@@
-100,7
+100,7
@@
class MainWindow(QWidget):
layout.addWidget(self.screens)
layout.addLayout(hlayout)
self.setLayout(layout)
layout.addWidget(self.screens)
layout.addLayout(hlayout)
self.setLayout(layout)
- self.resize(800,
6
00)
+ self.resize(800,
5
00)
for link in (self.nav.main, self.nav.config):
self.connect(link, SIGNAL('linkActivated(QString)'),
for link in (self.nav.main, self.nav.config):
self.connect(link, SIGNAL('linkActivated(QString)'),
@@
-116,7
+116,7
@@
class MainWindow(QWidget):
def showLogWindow(self, link):
self.logWindow.show()
def showLogWindow(self, link):
self.logWindow.show()
- self.logWindow.resize(800,
4
00)
+ self.logWindow.resize(800,
2
00)
self.logWindow.raise_()
self.logWindow.activateWindow()
self.logWindow.raise_()
self.logWindow.activateWindow()
@@
-142,6
+142,9
@@
class MainWindow(QWidget):
self.setStatus("Already showing %s" % curr_screen.getTitleText(), timeout=1000)
return
self.setStatus("Already showing %s" % curr_screen.getTitleText(), timeout=1000)
return
+ # This is an optimization to have a smoother animation. We
+ # render the widget into a pixmap and animate that instead of
+ # moving the whole widget around.
pixmap = QPixmap(self.screens.size())
curr_screen.render(pixmap)
self.screens.setCurrentWidget(self.pix)
pixmap = QPixmap(self.screens.size())
curr_screen.render(pixmap)
self.screens.setCurrentWidget(self.pix)
@@
-172,4
+175,5
@@
class MainWindow(QWidget):
self.status.set(msg, timeout)
def nodeSelectionChanged(self, hostname):
self.status.set(msg, timeout)
def nodeSelectionChanged(self, hostname):
- self.rspecWindow.showNode(hostname)
+ if self.rspecWindow.isVisible():
+ self.rspecWindow.showNode(hostname)