2009-02-10 20:47:16 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
|
|
|
|
"""
|
|
|
|
OpenLP - Open Source Lyrics Projection
|
|
|
|
Copyright (c) 2008 Raoul Snyman
|
|
|
|
Portions copyright (c) 2008 Martin Thompson, Tim Bentley,
|
|
|
|
|
|
|
|
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; version 2 of the License.
|
|
|
|
|
|
|
|
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; if not, write to the Free Software Foundation, Inc., 59 Temple
|
|
|
|
Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
"""
|
|
|
|
import os
|
|
|
|
from time import sleep
|
|
|
|
from PyQt4 import QtCore, QtGui
|
|
|
|
|
2009-02-20 21:13:04 +00:00
|
|
|
class SlideController(QtGui.QWidget):
|
2009-02-10 20:47:16 +00:00
|
|
|
def __init__(self, control_splitter):
|
2009-02-20 21:13:04 +00:00
|
|
|
QtGui.QWidget.__init__(self)
|
2009-02-10 20:47:16 +00:00
|
|
|
self.Pane = QtGui.QWidget(control_splitter)
|
|
|
|
self.Splitter = QtGui.QSplitter(self.Pane)
|
|
|
|
self.Splitter.setOrientation(QtCore.Qt.Vertical)
|
2009-02-10 20:47:44 +00:00
|
|
|
|
|
|
|
self.PaneLayout = QtGui.QVBoxLayout(self.Pane)
|
|
|
|
self.PaneLayout.addWidget(self.Splitter)
|
|
|
|
self.PaneLayout.setSpacing(50)
|
|
|
|
self.PaneLayout.setMargin(0)
|
|
|
|
|
|
|
|
# self.Controller = QtGui.QGraphicsView(self.Splitter)
|
2009-02-10 20:47:16 +00:00
|
|
|
self.Controller = QtGui.QScrollArea(self.Splitter)
|
|
|
|
self.Controller.setWidgetResizable(True)
|
|
|
|
self.ControllerContents = QtGui.QWidget(self.Controller)
|
|
|
|
self.ControllerContents.setGeometry(QtCore.QRect(0, 0, 228, 536))
|
2009-02-10 20:47:44 +00:00
|
|
|
self.Controller.setGeometry(QtCore.QRect(0, 0, 828, 536))
|
2009-02-10 20:47:16 +00:00
|
|
|
self.Controller.setWidget(self.ControllerContents)
|
2009-02-10 20:47:44 +00:00
|
|
|
|
2009-02-10 20:47:16 +00:00
|
|
|
self.Screen = QtGui.QGraphicsView(self.Splitter)
|
|
|
|
self.Screen.setMaximumSize(QtCore.QSize(16777215, 250))
|
2009-02-10 20:47:44 +00:00
|
|
|
|