[Pymoul-svn] SF.net SVN: pymoul: [91] pymoul/trunk/src/moul/qt
Status: Alpha
Brought to you by:
tiran
|
From: <ti...@us...> - 2007-01-28 15:49:23
|
Revision: 91
http://pymoul.svn.sourceforge.net/pymoul/?rev=91&view=rev
Author: tiran
Date: 2007-01-28 07:49:22 -0800 (Sun, 28 Jan 2007)
Log Message:
-----------
Added pymoul translation file
Changed doc strings - pylupdate4's parser doesn't understand some constructs with triple quotes
Modified Paths:
--------------
pymoul/trunk/src/moul/qt/localization.py
pymoul/trunk/src/moul/qt/mainwindow.py
pymoul/trunk/src/moul/qt/moulqt.py
pymoul/trunk/src/moul/qt/ui/__init__.py
Added Paths:
-----------
pymoul/trunk/src/moul/qt/i18n/pymoul_de.ts
Added: pymoul/trunk/src/moul/qt/i18n/pymoul_de.ts
===================================================================
--- pymoul/trunk/src/moul/qt/i18n/pymoul_de.ts (rev 0)
+++ pymoul/trunk/src/moul/qt/i18n/pymoul_de.ts 2007-01-28 15:49:22 UTC (rev 91)
@@ -0,0 +1,248 @@
+<!DOCTYPE TS><TS>
+<context>
+ <name>MainWindow</name>
+ <message>
+ <source>MOUL is running</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>MOUL</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>MOUL is not running</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Not Implemented</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Sorry, this feature is not implemented yet!</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Error opening graphics.ini</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Error opening audio.ini</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Tool for Myst Online</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Configure</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Windowed</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Vertical Sync</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Display Shadows</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Screen Resolution</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>800x600 (4:3)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Quality</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Texture Quality</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Low</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>High</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Anti-Aliasing</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Graphics Quality</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Med.</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Ultra</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Shadow Quality</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Anisotropic-Filtering</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Graphics</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Level</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>NPC Voices</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Sound FX</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Ambience Sound</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Music</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Mute all</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Hardware</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Sound Priority</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Audio Modes</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Generic Software</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Enable EAX</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Voice chat</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Microphon Level</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Enable Voice Chat</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Audio</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Time zones</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Cavern time:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Cyan time:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>UTC -0</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>(Mountain Standard Time)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>(Pacific Standard Time)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>D'ni time</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Time</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Ping servers</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Ping</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source><html><head><meta name="qrichtext" content="1" /><style type="text/css">
+p, li { white-space: pre-wrap; }
+</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal; text-decoration:none;">
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p></body></html></source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Servers</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Browse in game documents</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Age</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Element</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Language</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Set</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Documents</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>pyMoul tools</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>About</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+</TS>
Modified: pymoul/trunk/src/moul/qt/localization.py
===================================================================
--- pymoul/trunk/src/moul/qt/localization.py 2007-01-28 15:23:44 UTC (rev 90)
+++ pymoul/trunk/src/moul/qt/localization.py 2007-01-28 15:49:22 UTC (rev 91)
@@ -15,6 +15,7 @@
# with this program; if not, write to the Free Software Foundation, Inc., 59
# Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+
"""Moul localization / documents
"""
__author__ = "Christian Heimes"
@@ -43,8 +44,9 @@
return QtCore.QStringList(dummy+lst)
class LocalizationMixin(object):
- """Mixin for documents tab
"""
+ Mixin for documentation tab
+ """
def _documents_init(self):
locDir = lookupDir('loc')
if not os.path.isdir(locDir):
Modified: pymoul/trunk/src/moul/qt/mainwindow.py
===================================================================
--- pymoul/trunk/src/moul/qt/mainwindow.py 2007-01-28 15:23:44 UTC (rev 90)
+++ pymoul/trunk/src/moul/qt/mainwindow.py 2007-01-28 15:49:22 UTC (rev 91)
@@ -15,6 +15,7 @@
# with this program; if not, write to the Free Software Foundation, Inc., 59
# Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+
"""Moul QT GUI main windows
"""
from __future__ import with_statement
@@ -47,8 +48,9 @@
LOG = getLogger('moul.qt')
def criticalMessageBox(self, title, text):
- """Critical warning!
"""
+ Critical warning!
+ """
mb = QtGui.QMessageBox()
mb.setWindowIcon(QtGui.QIcon(":/resources/uru_icon_32x32.png"))
mb.setIcon(QtGui.QMessageBox.Critical)
@@ -110,14 +112,16 @@
QtGui.QSystemTrayIcon.Information, 10000)
def _notimplemented(self):
- """TODO: remove me
"""
+ TODO: remove me
+ """
QtGui.QMessageBox.information(self,
self.trUtf8("Not Implemented"),
self.trUtf8("""Sorry, this feature is not implemented yet!"""))
def closeEvent(self, event):
- """Close event handler
+ """
+ Close event handler
@param event close event (QCloseEvent)
"""
@@ -129,7 +133,8 @@
event.accept()
def keyPressEvent(self, event):
- """Key event handler
+ """
+ Key event handler
@param event key event (QKeyEvent)
@@ -141,8 +146,9 @@
event.ignore()
def setDirty(self, boolean):
- """Sets the save state
"""
+ Sets the save state
+ """
self._dirty = bool(boolean)
#self.main_buttonbox_reset.setEnabled(boolean)
#self.main_buttonbox_save.setEnabled(boolean)
@@ -164,8 +170,9 @@
# graphics settings
def _graphics_init(self):
- """init graphics tab
"""
+ init graphics tab
+ """
self.connect(self, SIGNAL("graphicsini_loaded()"), self.on_graphicsini_loaded)
self.connect(self, SIGNAL("graphicsini_reset()"), self.on_graphicsini_reset)
self.connect(self, SIGNAL("graphicsini_save()"), self.on_graphicsini_save)
@@ -175,8 +182,9 @@
@signalLogDecorator(LOG)
def on_graphicsini_loaded(self):
- """SIGNAL graphicsini_loaded()
"""
+ SIGNAL graphicsini_loaded()
+ """
inipath = lookupDir('ini')
self._graphics_ini = gini = GraphicsIni()
try:
@@ -191,22 +199,25 @@
@signalLogDecorator(LOG)
def on_graphicsini_reset(self):
- """SIGNAL graphicsini_reset()
"""
+ SIGNAL graphicsini_reset()
+ """
self._graphics_ini.reset()
self._graphicsini_setstate()
@signalLogDecorator(LOG)
def on_graphicsini_save(self):
- """SIGNAL graphicsini_save()
"""
+ SIGNAL graphicsini_save()
+ """
#self._notimplemented()
self._graphics_ini.write()
self.setDirty(False)
def _graphicsini_setstate(self):
- """Set sliders according to graphics ini settings
"""
+ Set sliders according to graphics ini settings
+ """
gini = self._graphics_ini
length = len(videoModes) - 1
self.sl_gra_screenres.setMaximum(length)
@@ -224,8 +235,9 @@
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_gra_screenres_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
"""
+ SIGNAL: valueChanged (int)
+ """
# XXX: fixme
txt = videoModes.getVidModeHuman(idx)
self.lb_screenres.setText(QtCore.QString(txt))
@@ -234,73 +246,83 @@
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_gra_screenres_sliderMoved(self, idx):
- """SIGNAL: sliderMoved(int)
"""
+ SIGNAL: sliderMoved(int)
+ """
txt = videoModes.getVidModeHuman(idx)
self.lb_screenres.setText(QtCore.QString(txt))
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_gra_quality_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
"""
+ SIGNAL: valueChanged (int)
+ """
self._graphics_ini.quality = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_gra_texture_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
"""
+ SIGNAL: valueChanged (int)
+ """
self._graphics_ini.texture = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_gra_antialias_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
"""
+ SIGNAL: valueChanged (int)
+ """
self._graphics_ini.antialias = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_gra_anisotropic_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
"""
+ SIGNAL: valueChanged (int)
+ """
self._graphics_ini.anisotropic = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_gra_shadow_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
"""
+ SIGNAL: valueChanged (int)
+ """
self._graphics_ini.shadow = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_cb_gra_windowed_stateChanged(self, state):
- """SIGNAL: stateChanged(int)
"""
+ SIGNAL: stateChanged(int)
+ """
self._graphics_ini.windowed = state
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_cb_gra_vsync_stateChanged (self, state):
- """SIGNAL: stateChanged(int)
"""
+ SIGNAL: stateChanged(int)
+ """
self._graphics_ini.vsync = state
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_cb_gra_shadow_stateChanged (self, state):
- """SIGNAL: stateChanged(int)
"""
+ SIGNAL: stateChanged(int)
+ """
self._graphics_ini.shadow_enabled = state
# ************************************************************************
# audio settings
def _audio_init(self):
- """init graphics tab
"""
+ init graphics tab
+ """
self.connect(self, SIGNAL("audioini_loaded()"), self.on_audioini_loaded)
self.connect(self, SIGNAL("audiini_reset()"), self.on_audioini_reset)
self.connect(self, SIGNAL("audiini_save()"), self.on_audioini_save)
@@ -310,8 +332,9 @@
@signalLogDecorator(LOG)
def on_audioini_loaded(self):
- """SIGNAL: audioini_loaded()
"""
+ SIGNAL: audioini_loaded()
+ """
inipath = lookupDir('ini')
self._audio_ini = aini = AudioIni()
try:
@@ -326,22 +349,25 @@
@signalLogDecorator(LOG)
def on_audioini_reset(self):
- """SIGNAL audioini_reset()
"""
+ SIGNAL audioini_reset()
+ """
self._audio_ini.reset()
self._audioini_setstate()
@signalLogDecorator(LOG)
def on_audioini_save(self):
- """SIGNAL audioini_save()
"""
+ SIGNAL audioini_save()
+ """
#self._notimplemented()
self._audio_ini.write()
self.setDirty(False) # urks
def _audioini_setstate(self):
- """Set sliders according to audio ini settings
"""
+ Set sliders according to audio ini settings
+ """
aini = self._audio_ini
self.sl_aud_device.setMaximum(aini.numberOfDevices()-1)
@@ -358,8 +384,6 @@
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_aud_device_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
- """
self._audio_ini.device = idx
txt = self._audio_ini.getDeviceName(idx)
self.lb_aud_device.setText(QtCore.QString(txt[1:-1]))
@@ -367,72 +391,55 @@
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_aud_device_sliderMoved(self, idx):
- """SIGNAL: sliderMoved(int)
- """
txt = self._audio_ini.getDeviceName(idx)
self.lb_aud_device.setText(QtCore.QString(txt[1:-1]))
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_aud_npc_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
- """
self._audio_ini.npc = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_aud_music_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
- """
self._audio_ini.music = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_aud_fx_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
- """
self._audio_ini.fx = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_aud_ambience_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
- """
self._audio_ini.ambience = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_sl_aud_priority_valueChanged(self, idx):
- """SIGNAL: valueChanged (int)
- """
self._audio_ini.priority = idx
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_cb_aud_eax_stateChanged (self, state):
- """SIGNAL: stateChanged(int)
- """
self._audio_ini.eax = state
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_cb_aud_mute_stateChanged (self, state):
- """SIGNAL: stateChanged(int)
- """
self._audio_ini.mute = state
@signalLogDecorator(LOG)
@pyqtSignature("int")
def on_cb_aud_voicechat_stateChanged (self, state):
- """SIGNAL: stateChanged(int)
- """
self._audio_ini.voicechat = state
# ************************************************************************
# time zones
def _timezone_init(self):
- """Init time zone tab"""
+ """
+ Init time zone tab"""
# create info object and update display the first time
self._caverntime = CavernTime()
self._timezone_update()
@@ -445,7 +452,9 @@
timer.start()
def _timezone_update(self):
- """Update datetime widgets"""
+ """
+ Update datetime widgets
+ """
ct = self._caverntime.info()
self.dt_cavern.setDateTime(ct['cavern']['datetime'])
@@ -461,8 +470,9 @@
@pyqtSignature("")
def on_timezone_timer_timeout(self):
- """SIGNAL: QTimer timeout
"""
+ SIGNAL: QTimer timeout
+ """
ct = self._caverntime()
self.dt_cavern.setDateTime(ct['cavern'])
self.dt_pacific.setDateTime(ct['pacific'])
@@ -470,8 +480,9 @@
# ************************************************************************
# ping
def _ping_init(self):
- """init ping tab
"""
+ init ping tab
+ """
self._ping_thread = thread = PingServerThread()
self.connect(thread, SIGNAL("started"),
@@ -597,3 +608,4 @@
self.mutex.unlock()
if not self._running:
return
+
Modified: pymoul/trunk/src/moul/qt/moulqt.py
===================================================================
--- pymoul/trunk/src/moul/qt/moulqt.py 2007-01-28 15:23:44 UTC (rev 90)
+++ pymoul/trunk/src/moul/qt/moulqt.py 2007-01-28 15:49:22 UTC (rev 91)
@@ -16,6 +16,7 @@
# with this program; if not, write to the Free Software Foundation, Inc., 59
# Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+
"""Moul QT GUI main module
"""
__author__ = "Christian Heimes"
Modified: pymoul/trunk/src/moul/qt/ui/__init__.py
===================================================================
--- pymoul/trunk/src/moul/qt/ui/__init__.py 2007-01-28 15:23:44 UTC (rev 90)
+++ pymoul/trunk/src/moul/qt/ui/__init__.py 2007-01-28 15:49:22 UTC (rev 91)
@@ -15,6 +15,7 @@
# with this program; if not, write to the Free Software Foundation, Inc., 59
# Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
+
"""
"""
__author__ = "Christian Heimes"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|