added more possible internal connector names
[lilass.git] / selector_window.py
index adee7e42c7d70d1771060e674a952e4b3e9e1cc4..98ae8331a0dbeadb78aa02f1084fa1a76efc5f9a 100644 (file)
@@ -1,4 +1,20 @@
 #!/usr/bin/python
+# DSL - easy Display Setup for Laptops
+# Copyright (C) 2012 Ralf Jung <post@ralfj.de>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program (gpl.txt); if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 from PyQt4 import QtCore, QtGui
 
 def makeLayout(layout, members):
@@ -14,10 +30,10 @@ class PositionSelection(QtGui.QDialog):
        RIGHT = 20
        EXTERNAL_ONLY = 30
        
-       def __init__(self, internalResolutions, externalResolutions):
+       def __init__(self, externalName, internalResolutions, externalResolutions):
                # set up main window
                super(PositionSelection, self).__init__()
-               self.setWindowTitle('External screen setup')
+               self.setWindowTitle('External screen setup (connector: %s)' % externalName)
                
                # position selection
                posBox = QtGui.QGroupBox('Position of external screen', self)