2012-11-12 16:12:43 -08:00
|
|
|
"""
|
|
|
|
A PyQT4 dialog to show ID log and progress
|
|
|
|
"""
|
2015-02-02 08:20:48 -08:00
|
|
|
from comictaggerlib.ui.qtutils import reduceWidgetFontSize
|
2012-11-12 16:12:43 -08:00
|
|
|
|
|
|
|
"""
|
2014-03-23 10:30:23 -07:00
|
|
|
Copyright 2012-2014 Anthony Beville
|
2012-11-12 16:12:43 -08:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
2015-02-12 14:57:46 -08:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2012-11-12 16:12:43 -08:00
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import sys
|
2012-11-13 13:25:15 -08:00
|
|
|
import os
|
2015-02-13 15:08:07 -08:00
|
|
|
|
|
|
|
from PyQt4 import QtCore, QtGui, uic
|
|
|
|
|
2012-11-13 13:25:15 -08:00
|
|
|
from settings import ComicTaggerSettings
|
2013-02-04 20:49:44 -08:00
|
|
|
import utils
|
2012-11-12 16:12:43 -08:00
|
|
|
|
2013-02-04 19:51:50 -08:00
|
|
|
|
2015-02-13 15:08:07 -08:00
|
|
|
class IDProgressWindow(QtGui.QDialog):
|
2013-02-04 19:51:50 -08:00
|
|
|
|
2015-02-12 14:57:46 -08:00
|
|
|
def __init__(self, parent):
|
|
|
|
super(IDProgressWindow, self).__init__(parent)
|
2012-11-12 16:12:43 -08:00
|
|
|
|
2015-02-13 15:08:07 -08:00
|
|
|
uic.loadUi(ComicTaggerSettings.getUIFile('progresswindow.ui'), self)
|
2012-11-12 16:12:43 -08:00
|
|
|
|
2015-02-12 14:57:46 -08:00
|
|
|
self.setWindowFlags(self.windowFlags() |
|
2015-02-15 02:44:00 -08:00
|
|
|
QtCore.Qt.WindowSystemMenuHint |
|
|
|
|
QtCore.Qt.WindowMaximizeButtonHint)
|
2015-02-12 14:57:46 -08:00
|
|
|
|
2015-02-16 07:18:00 -08:00
|
|
|
reduceWidgetFontSize(self.textEdit)
|