1

moving more files

This commit is contained in:
Alex Yatskov 2011-11-05 09:52:44 -07:00
parent 26c2275f59
commit 9ad64af0f4
46 changed files with 9 additions and 29 deletions

View File

@ -1,20 +0,0 @@
all: \
core/resources_rc.py \
core/reader_ui.py \
core/preferences_ui.py \
core/about_ui.py
clean:
git clean -f -x
core/resources_rc.py: dev/resources.qrc
pyrcc4 $< -o $@
core/reader_ui.py: dev/reader.ui
pyuic4 $< -o $@
core/preferences_ui.py: dev/preferences.ui
pyuic4 $< -o $@
core/about_ui.py: dev/about.ui
pyuic4 $< -o $@

View File

@ -18,8 +18,8 @@
import sys
from PyQt4 import QtGui
from lang import japanese
from core.reader import MainWindowReader
from yomichan.lang import japanese
from yomichan.core.reader import MainWindowReader
filename = sys.argv[1] if len(sys.argv) >= 2 else None

View File

@ -24,7 +24,7 @@ from util import buildResPath
class DialogAbout(QtGui.QDialog):
def __init__(self, parent):
QtGui.QDialog.__init__(self, parent)
uic.loadUi(buildResPath('ui/about.ui'), self)
uic.loadUi(buildResPath('yomichan/ui/about.ui'), self)
text = unicode(self.labelVersion.text())
text = text.format(constants['version'])

View File

@ -23,7 +23,7 @@ from util import buildResPath
class DialogPreferences(QtGui.QDialog):
def __init__(self, parent, preferences, anki):
QtGui.QDialog.__init__(self, parent)
uic.loadUi(buildResPath('ui/preferences.ui'), self)
uic.loadUi(buildResPath('yomichan/ui/preferences.ui'), self)
self.accepted.connect(self.onAccept)
self.buttonContentColorFg.clicked.connect(self.onButtonColorFgClicked)

View File

@ -40,7 +40,7 @@ class MainWindowReader(QtGui.QMainWindow):
def __init__(self, parent=None, languages=None, filename=None, preferences=None, anki=None, closed=None, updated=None):
QtGui.QMainWindow.__init__(self, parent)
uic.loadUi(buildResPath('ui/reader.ui'), self)
uic.loadUi(buildResPath('yomichan/ui/reader.ui'), self)
self.textContent.mouseMoveEvent = self.onContentMouseMove
self.textContent.mousePressEvent = self.onContentMousePress

View File

Before

Width:  |  Height:  |  Size: 733 B

After

Width:  |  Height:  |  Size: 733 B

View File

Before

Width:  |  Height:  |  Size: 286 B

After

Width:  |  Height:  |  Size: 286 B

View File

Before

Width:  |  Height:  |  Size: 655 B

After

Width:  |  Height:  |  Size: 655 B

View File

Before

Width:  |  Height:  |  Size: 641 B

After

Width:  |  Height:  |  Size: 641 B

View File

Before

Width:  |  Height:  |  Size: 659 B

After

Width:  |  Height:  |  Size: 659 B

View File

Before

Width:  |  Height:  |  Size: 688 B

After

Width:  |  Height:  |  Size: 688 B

View File

Before

Width:  |  Height:  |  Size: 778 B

After

Width:  |  Height:  |  Size: 778 B

View File

Before

Width:  |  Height:  |  Size: 143 B

After

Width:  |  Height:  |  Size: 143 B

View File

Before

Width:  |  Height:  |  Size: 182 B

After

Width:  |  Height:  |  Size: 182 B

View File

Before

Width:  |  Height:  |  Size: 111 B

After

Width:  |  Height:  |  Size: 111 B

View File

Before

Width:  |  Height:  |  Size: 657 B

After

Width:  |  Height:  |  Size: 657 B

View File

Before

Width:  |  Height:  |  Size: 615 B

After

Width:  |  Height:  |  Size: 615 B

View File

Before

Width:  |  Height:  |  Size: 680 B

After

Width:  |  Height:  |  Size: 680 B

View File

Before

Width:  |  Height:  |  Size: 663 B

After

Width:  |  Height:  |  Size: 663 B

View File

Before

Width:  |  Height:  |  Size: 537 B

After

Width:  |  Height:  |  Size: 537 B

View File

Before

Width:  |  Height:  |  Size: 944 B

After

Width:  |  Height:  |  Size: 944 B

View File

Before

Width:  |  Height:  |  Size: 610 B

After

Width:  |  Height:  |  Size: 610 B

View File

@ -17,10 +17,10 @@
from PyQt4 import QtGui, QtCore
from lang import japanese
from core import anki_host
from core.preference_data import Preferences
from core.reader import MainWindowReader
from yomichan.lang import japanese
from yomichan.core import anki_host
from yomichan.core.preference_data import Preferences
from yomichan.core.reader import MainWindowReader
class YomichanPlugin: