[qcookboob] tab navigation implemented (closes #1290)

This commit is contained in:
Julien Veyssier 2014-11-30 15:36:25 +01:00
commit e153109f2c
5 changed files with 458 additions and 255 deletions

View file

@ -21,18 +21,122 @@ import os
import codecs import codecs
from PyQt4.QtCore import SIGNAL, Qt, QStringList from PyQt4.QtCore import SIGNAL, Qt, QStringList
from PyQt4.QtGui import QApplication, QCompleter from PyQt4.QtGui import QApplication, QCompleter, QFrame, QShortcut, QKeySequence
from weboob.capabilities.recipe import CapRecipe from weboob.capabilities.recipe import CapRecipe
from weboob.tools.application.qt import QtMainWindow, QtDo from weboob.tools.application.qt import QtMainWindow, QtDo
from weboob.tools.application.qt.backendcfg import BackendCfg from weboob.tools.application.qt.backendcfg import BackendCfg
from weboob.applications.qcookboob.ui.main_window_ui import Ui_MainWindow from weboob.applications.qcookboob.ui.main_window_ui import Ui_MainWindow
from weboob.applications.qcookboob.ui.result_ui import Ui_Result
from .minirecipe import MiniRecipe from .minirecipe import MiniRecipe
from .recipe import Recipe from .recipe import Recipe
class Result(QFrame):
def __init__(self, weboob, app, parent=None):
QFrame.__init__(self, parent)
self.ui = Ui_Result()
self.ui.setupUi(self)
self.parent = parent
self.weboob = weboob
self.app = app
self.minis = []
self.current_info_widget = None
# action history is composed by the last action and the action list
# An action is a function, a list of arguments and a description string
self.action_history = {'last_action': None, 'action_list': []}
self.connect(self.ui.backButton, SIGNAL("clicked()"), self.doBack)
self.ui.backButton.hide()
def doAction(self, description, fun, args):
''' Call fun with args as arguments
and save it in the action history
'''
self.ui.currentActionLabel.setText(description)
if self.action_history['last_action'] is not None:
self.action_history['action_list'].append(self.action_history['last_action'])
self.ui.backButton.setToolTip(self.action_history['last_action']['description'])
self.ui.backButton.show()
self.action_history['last_action'] = {'function': fun, 'args': args, 'description': description}
return fun(*args)
def doBack(self):
''' Go back in action history
Basically call previous function and update history
'''
if len(self.action_history['action_list']) > 0:
todo = self.action_history['action_list'].pop()
self.ui.currentActionLabel.setText(todo['description'])
self.action_history['last_action'] = todo
if len(self.action_history['action_list']) == 0:
self.ui.backButton.hide()
else:
self.ui.backButton.setToolTip(self.action_history['action_list'][-1]['description'])
return todo['function'](*todo['args'])
def processFinished(self):
self.parent.ui.searchEdit.setEnabled(True)
QApplication.restoreOverrideCursor()
self.process = None
self.parent.ui.stopButton.hide()
def searchRecipe(self,pattern):
if not pattern:
return
self.doAction(u'Search recipe "%s"' % pattern, self.searchRecipeAction, [pattern])
def searchRecipeAction(self, pattern):
self.ui.stackedWidget.setCurrentWidget(self.ui.list_page)
for mini in self.minis:
self.ui.list_content.layout().removeWidget(mini)
mini.hide()
mini.deleteLater()
self.minis = []
self.parent.ui.searchEdit.setEnabled(False)
QApplication.setOverrideCursor(Qt.WaitCursor)
backend_name = str(self.parent.ui.backendEdit.itemData(self.parent.ui.backendEdit.currentIndex()).toString())
self.process = QtDo(self.weboob, self.addRecipe, fb=self.processFinished)
self.process.do(self.app._do_complete, self.parent.getCount(), ('title'), 'iter_recipes', pattern, backends=backend_name, caps=CapRecipe)
self.parent.ui.stopButton.show()
def addRecipe(self, recipe):
minirecipe = MiniRecipe(self.weboob, self.weboob[recipe.backend], recipe, self)
self.ui.list_content.layout().insertWidget(self.ui.list_content.layout().count()-1,minirecipe)
self.minis.append(minirecipe)
def displayRecipe(self, recipe, backend):
self.ui.stackedWidget.setCurrentWidget(self.ui.info_page)
if self.current_info_widget is not None:
self.ui.info_content.layout().removeWidget(self.current_info_widget)
self.current_info_widget.hide()
self.current_info_widget.deleteLater()
wrecipe = Recipe(recipe, backend, self)
self.ui.info_content.layout().addWidget(wrecipe)
self.current_info_widget = wrecipe
QApplication.restoreOverrideCursor()
def searchId(self, id):
QApplication.setOverrideCursor(Qt.WaitCursor)
if '@' in id:
backend_name = id.split('@')[1]
id = id.split('@')[0]
else:
backend_name = None
for backend in self.weboob.iter_backends():
if (backend_name and backend.name == backend_name) or not backend_name:
recipe = backend.get_recipe(id)
if recipe:
self.doAction('Details of recipe "%s"' % recipe.title, self.displayRecipe, [recipe, backend])
QApplication.restoreOverrideCursor()
class MainWindow(QtMainWindow): class MainWindow(QtMainWindow):
def __init__(self, config, weboob, app, parent=None): def __init__(self, config, weboob, app, parent=None):
QtMainWindow.__init__(self, parent) QtMainWindow.__init__(self, parent)
@ -49,22 +153,32 @@ class MainWindow(QtMainWindow):
self.search_history = self.loadSearchHistory() self.search_history = self.loadSearchHistory()
self.updateCompletion() self.updateCompletion()
# action history is composed by the last action and the action list
# An action is a function, a list of arguments and a description string
self.action_history = {'last_action': None, 'action_list': []}
self.connect(self.ui.backButton, SIGNAL("clicked()"), self.doBack)
self.ui.backButton.hide()
self.connect(self.ui.stopButton, SIGNAL("clicked()"), self.stopProcess)
self.ui.stopButton.hide()
self.connect(self.ui.searchEdit, SIGNAL("returnPressed()"), self.search) self.connect(self.ui.searchEdit, SIGNAL("returnPressed()"), self.search)
self.connect(self.ui.idEdit, SIGNAL("returnPressed()"), self.searchId) self.connect(self.ui.idEdit, SIGNAL("returnPressed()"), self.searchId)
count = self.config.get('settings', 'maxresultsnumber') count = self.config.get('settings', 'maxresultsnumber')
self.ui.countSpin.setValue(int(count)) self.ui.countSpin.setValue(int(count))
showT = self.config.get('settings', 'showthumbnails')
self.ui.showTCheck.setChecked(showT == '1')
self.connect(self.ui.stopButton, SIGNAL("clicked()"), self.stopProcess)
self.ui.stopButton.hide()
self.connect(self.ui.actionBackends, SIGNAL("triggered()"), self.backendsConfig) self.connect(self.ui.actionBackends, SIGNAL("triggered()"), self.backendsConfig)
self.connect(self.ui.actionQuit, SIGNAL("triggered()"), self.close) q = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_Q), self)
self.connect(q, SIGNAL("activated()"), self.close)
n = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_PageDown), self)
self.connect(n, SIGNAL("activated()"), self.nextTab)
p = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_PageUp), self)
self.connect(p, SIGNAL("activated()"), self.prevTab)
w = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_W), self)
self.connect(w, SIGNAL("activated()"), self.closeCurrentTab)
l = QShortcut(QKeySequence(Qt.CTRL + Qt.Key_L), self)
self.connect(l, SIGNAL("activated()"), self.ui.searchEdit.setFocus)
self.connect(l, SIGNAL("activated()"), self.ui.searchEdit.selectAll)
self.connect(self.ui.resultsTab, SIGNAL("tabCloseRequested(int)"), self.closeTab)
self.loadBackendsList() self.loadBackendsList()
@ -127,31 +241,34 @@ class MainWindow(QtMainWindow):
def stopProcess(self): def stopProcess(self):
self.process.process.finish_event.set() self.process.process.finish_event.set()
def doAction(self, description, fun, args): def closeTab(self, index):
''' Call fun with args as arguments if self.ui.resultsTab.widget(index) != 0:
and save it in the action history tabToClose = self.ui.resultsTab.widget(index)
''' self.ui.resultsTab.removeTab(index)
self.ui.currentActionLabel.setText(description) del(tabToClose)
if self.action_history['last_action'] is not None:
self.action_history['action_list'].append(self.action_history['last_action'])
self.ui.backButton.setToolTip(self.action_history['last_action']['description'])
self.ui.backButton.show()
self.action_history['last_action'] = {'function': fun, 'args': args, 'description': description}
return fun(*args)
def doBack(self): def closeCurrentTab(self):
''' Go back in action history self.closeTab(self.ui.resultsTab.currentIndex())
Basically call previous function and update history
''' def prevTab(self):
if len(self.action_history['action_list']) > 0: index = self.ui.resultsTab.currentIndex() - 1
todo = self.action_history['action_list'].pop() size = self.ui.resultsTab.count()
self.ui.currentActionLabel.setText(todo['description']) if size != 0:
self.action_history['last_action'] = todo self.ui.resultsTab.setCurrentIndex(index % size)
if len(self.action_history['action_list']) == 0:
self.ui.backButton.hide() def nextTab(self):
else: index = self.ui.resultsTab.currentIndex() + 1
self.ui.backButton.setToolTip(self.action_history['action_list'][-1]['description']) size = self.ui.resultsTab.count()
return todo['function'](*todo['args']) if size != 0:
self.ui.resultsTab.setCurrentIndex(index % size)
def newTab(self, txt, backend, recipe=None):
id = ''
if recipe is not None:
id = recipe.id
new_res = Result(self.weboob, self.app, self)
self.ui.resultsTab.addTab(new_res, txt)
new_res.searchId(id)
def search(self): def search(self):
pattern = unicode(self.ui.searchEdit.text()) pattern = unicode(self.ui.searchEdit.text())
@ -162,67 +279,18 @@ class MainWindow(QtMainWindow):
self.search_history.append(pattern) self.search_history.append(pattern)
self.updateCompletion() self.updateCompletion()
self.searchRecipe() new_res = Result(self.weboob, self.app, self)
self.ui.resultsTab.addTab(new_res, pattern)
def searchRecipe(self): self.ui.resultsTab.setCurrentWidget(new_res)
pattern = unicode(self.ui.searchEdit.text()) new_res.searchRecipe(pattern)
if not pattern:
return
self.doAction(u'Search recipe "%s"' % pattern, self.searchRecipeAction, [pattern])
def searchRecipeAction(self, pattern):
self.ui.stackedWidget.setCurrentWidget(self.ui.list_page)
for mini in self.minis:
self.ui.list_content.layout().removeWidget(mini)
mini.hide()
mini.deleteLater()
self.minis = []
self.ui.searchEdit.setEnabled(False)
QApplication.setOverrideCursor(Qt.WaitCursor)
backend_name = str(self.ui.backendEdit.itemData(self.ui.backendEdit.currentIndex()).toString())
self.process = QtDo(self.weboob, self.addRecipe, fb=self.addRecipeEnd)
self.process.do(self.app._do_complete, self.getCount(), ('title'), 'iter_recipes', pattern, backends=backend_name, caps=CapRecipe)
self.ui.stopButton.show()
def addRecipeEnd(self):
self.ui.searchEdit.setEnabled(True)
QApplication.restoreOverrideCursor()
self.process = None
self.ui.stopButton.hide()
def addRecipe(self, recipe):
minirecipe = MiniRecipe(self.weboob, self.weboob[recipe.backend], recipe, self)
self.ui.list_content.layout().addWidget(minirecipe)
self.minis.append(minirecipe)
def displayRecipe(self, recipe, backend):
self.ui.stackedWidget.setCurrentWidget(self.ui.info_page)
if self.current_info_widget is not None:
self.ui.info_content.layout().removeWidget(self.current_info_widget)
self.current_info_widget.hide()
self.current_info_widget.deleteLater()
wrecipe = Recipe(recipe, backend, self)
self.ui.info_content.layout().addWidget(wrecipe)
self.current_info_widget = wrecipe
QApplication.restoreOverrideCursor()
def searchId(self): def searchId(self):
QApplication.setOverrideCursor(Qt.WaitCursor)
id = unicode(self.ui.idEdit.text()) id = unicode(self.ui.idEdit.text())
if '@' in id: new_res = Result(self.weboob, self.app, self)
backend_name = id.split('@')[1] self.ui.resultsTab.addTab(new_res, id)
id = id.split('@')[0] self.ui.resultsTab.setCurrentWidget(new_res)
else: new_res.searchId(id)
backend_name = None
for backend in self.weboob.iter_backends():
if (backend_name and backend.name == backend_name) or not backend_name:
recipe = backend.get_recipe(id)
if recipe:
self.doAction('Details of recipe "%s"' % recipe.title, self.displayRecipe, [recipe, backend])
QApplication.restoreOverrideCursor()
def closeEvent(self, ev): def closeEvent(self, ev):
self.config.set('settings', 'backend', str(self.ui.backendEdit.itemData( self.config.set('settings', 'backend', str(self.ui.backendEdit.itemData(

View file

@ -20,7 +20,7 @@
import urllib import urllib
from PyQt4.QtGui import QFrame, QImage, QPixmap, QApplication from PyQt4.QtGui import QFrame, QImage, QPixmap, QApplication
from PyQt4.QtCore import Qt from PyQt4.QtCore import Qt, SIGNAL
from weboob.applications.qcookboob.ui.minirecipe_ui import Ui_MiniRecipe from weboob.applications.qcookboob.ui.minirecipe_ui import Ui_MiniRecipe
from weboob.capabilities.base import empty from weboob.capabilities.base import empty
@ -46,7 +46,12 @@ class MiniRecipe(QFrame):
self.ui.shortDescLabel.setText('') self.ui.shortDescLabel.setText('')
self.ui.backendLabel.setText(backend.name) self.ui.backendLabel.setText(backend.name)
self.gotThumbnail() self.connect(self.ui.newTabButton, SIGNAL("clicked()"), self.newTabPressed)
self.connect(self.ui.viewButton, SIGNAL("clicked()"), self.viewPressed)
self.connect(self.ui.viewThumbnailButton, SIGNAL("clicked()"), self.gotThumbnail)
if self.parent.parent.ui.showTCheck.isChecked():
self.gotThumbnail()
def gotThumbnail(self): def gotThumbnail(self):
if not empty(self.recipe.thumbnail_url): if not empty(self.recipe.thumbnail_url):
@ -54,6 +59,18 @@ class MiniRecipe(QFrame):
img = QImage.fromData(data) img = QImage.fromData(data)
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToHeight(100,Qt.SmoothTransformation)) self.ui.imageLabel.setPixmap(QPixmap.fromImage(img).scaledToHeight(100,Qt.SmoothTransformation))
def viewPressed(self):
QApplication.setOverrideCursor(Qt.WaitCursor)
recipe = self.backend.get_recipe(self.recipe.id)
if recipe:
self.parent.doAction('Details of recipe "%s"' %
recipe.title, self.parent.displayRecipe, [recipe, self.backend])
def newTabPressed(self):
recipe = self.backend.get_recipe(self.recipe.id)
self.parent.parent.newTab(u'Details of recipe "%s"' %
recipe.title, self.backend, recipe=recipe)
def enterEvent(self, event): def enterEvent(self, event):
self.setFrameShadow(self.Sunken) self.setFrameShadow(self.Sunken)
QFrame.enterEvent(self, event) QFrame.enterEvent(self, event)
@ -65,8 +82,9 @@ class MiniRecipe(QFrame):
def mousePressEvent(self, event): def mousePressEvent(self, event):
QFrame.mousePressEvent(self, event) QFrame.mousePressEvent(self, event)
QApplication.setOverrideCursor(Qt.WaitCursor) if event.button() == 2:
recipe = self.backend.get_recipe(self.recipe.id) self.gotThumbnail()
if recipe: elif event.button() == 4:
self.parent.doAction('Details of recipe "%s"' % self.newTabPressed()
recipe.title, self.parent.displayRecipe, [recipe, self.backend]) else:
self.viewPressed()

View file

@ -83,131 +83,27 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QFrame" name="frame"> <widget class="QTabWidget" name="resultsTab">
<property name="frameShape"> <property name="currentIndex">
<enum>QFrame::NoFrame</enum> <number>-1</number>
</property> </property>
<property name="frameShadow"> <property name="tabsClosable">
<enum>QFrame::Raised</enum> <bool>true</bool>
</property>
<property name="movable">
<bool>true</bool>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="backButton">
<property name="maximumSize">
<size>
<width>60</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>&lt;&lt;back</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="currentActionLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QStackedWidget" name="stackedWidget">
<widget class="QWidget" name="list_page">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="list_content">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>708</width>
<height>261</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2"/>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="info_page">
<layout class="QVBoxLayout" name="movieInfoLayout">
<item>
<widget class="QScrollArea" name="scrollArea_2">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="info_content">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>96</width>
<height>26</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8"/>
</widget>
</widget>
</item>
</layout>
</widget>
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout_3"> <layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QCheckBox" name="showTCheck">
<property name="text">
<string>Show thumbnails</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="text"> <property name="text">
@ -228,7 +124,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>748</width> <width>748</width>
<height>23</height> <height>27</height>
</rect> </rect>
</property> </property>
</widget> </widget>
@ -244,21 +140,12 @@
<bool>false</bool> <bool>false</bool>
</attribute> </attribute>
<addaction name="actionBackends"/> <addaction name="actionBackends"/>
<addaction name="actionQuit"/>
</widget> </widget>
<action name="actionBackends"> <action name="actionBackends">
<property name="text"> <property name="text">
<string>Backends</string> <string>Backends</string>
</property> </property>
</action> </action>
<action name="actionQuit">
<property name="text">
<string>Quit</string>
</property>
<property name="shortcut">
<string>Ctrl+Q</string>
</property>
</action>
</widget> </widget>
<resources/> <resources/>
<connections/> <connections/>

View file

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>464</width> <width>578</width>
<height>136</height> <height>136</height>
</rect> </rect>
</property> </property>
@ -43,20 +43,21 @@
</widget> </widget>
</item> </item>
<item> <item>
<layout class="QFormLayout" name="formLayout"> <layout class="QGridLayout" name="gridLayout">
<property name="fieldGrowthPolicy"> <item row="2" column="1">
<enum>QFormLayout::ExpandingFieldsGrow</enum> <widget class="QLabel" name="backendLabel">
</property>
<item row="0" column="0">
<widget class="QLabel" name="label_5">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text"> <property name="text">
<string>Title</string> <string>TextLabel</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="shortDescLabel">
<property name="text">
<string>TextLabel</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
@ -96,16 +97,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1">
<widget class="QLabel" name="shortDescLabel">
<property name="text">
<string>TextLabel</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="font"> <property name="font">
@ -119,13 +110,75 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="0" column="0">
<widget class="QLabel" name="backendLabel"> <widget class="QLabel" name="label_5">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text"> <property name="text">
<string>TextLabel</string> <string>Title</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QPushButton" name="viewButton">
<property name="maximumSize">
<size>
<width>120</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>View</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="newTabButton">
<property name="maximumSize">
<size>
<width>120</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>View in new tab</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="viewThumbnailButton">
<property name="maximumSize">
<size>
<width>120</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>View thumbnail</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout> </layout>
</item> </item>
</layout> </layout>

View file

@ -0,0 +1,177 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Result</class>
<widget class="QFrame" name="Result">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>645</width>
<height>733</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>10000</width>
<height>10000</height>
</size>
</property>
<property name="windowTitle">
<string>Frame</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QFrame" name="frame">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="topMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="backButton">
<property name="maximumSize">
<size>
<width>60</width>
<height>20</height>
</size>
</property>
<property name="text">
<string>&lt;&lt;back</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="currentActionLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QStackedWidget" name="stackedWidget">
<widget class="QWidget" name="list_page">
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="list_content">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>605</width>
<height>667</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="info_page">
<layout class="QVBoxLayout" name="movieInfoLayout">
<item>
<widget class="QScrollArea" name="scrollArea_2">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="info_content">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>605</width>
<height>667</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8"/>
</widget>
</widget>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>