moving more files
20
makefile
@ -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 $@
|
@ -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
|
||||
|
@ -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'])
|
@ -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)
|
@ -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
|
Before Width: | Height: | Size: 733 B After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 655 B |
Before Width: | Height: | Size: 641 B After Width: | Height: | Size: 641 B |
Before Width: | Height: | Size: 659 B After Width: | Height: | Size: 659 B |
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 778 B After Width: | Height: | Size: 778 B |
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 143 B |
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 182 B |
Before Width: | Height: | Size: 111 B After Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 657 B After Width: | Height: | Size: 657 B |
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 680 B After Width: | Height: | Size: 680 B |
Before Width: | Height: | Size: 663 B After Width: | Height: | Size: 663 B |
Before Width: | Height: | Size: 537 B After Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 944 B After Width: | Height: | Size: 944 B |
Before Width: | Height: | Size: 610 B After Width: | Height: | Size: 610 B |
@ -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:
|
||||
|