Skip to content

Commit

Permalink
Partly closes iss #7. Color of feedback lights and font properties ar…
Browse files Browse the repository at this point in the history
…e now user configurable. Need to add mixed feedback options (e.g. light and text)
  • Loading branch information
sam81 committed Nov 6, 2015
1 parent 6a75d6b commit 987ad04
Show file tree
Hide file tree
Showing 13 changed files with 452 additions and 335 deletions.
12 changes: 6 additions & 6 deletions prep-release/pysoundanalyser_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,12 @@ Bits: {3}</source>
<context>
<name>applyChanges</name>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="303"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="302"/>
<source>There are unsaved changes. Apply Changes?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="312"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="311"/>
<source>Apply Changes</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -1720,22 +1720,22 @@ Bits: {3}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>Warning</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="203"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="202"/>
<source>dpi value not valid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>dpi value too small</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="266"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="265"/>
<source>custom</source>
<translation type="unfinished"></translation>
</message>
Expand Down
12 changes: 6 additions & 6 deletions prep-release/pysoundanalyser_el.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,12 @@ Bits: {3}</source>
<context>
<name>applyChanges</name>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="303"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="302"/>
<source>There are unsaved changes. Apply Changes?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="312"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="311"/>
<source>Apply Changes</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -1720,22 +1720,22 @@ Bits: {3}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>Warning</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="203"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="202"/>
<source>dpi value not valid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>dpi value too small</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="266"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="265"/>
<source>custom</source>
<translation type="unfinished"></translation>
</message>
Expand Down
12 changes: 6 additions & 6 deletions prep-release/pysoundanalyser_en_GB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,12 @@ Bits: {3}</source>
<context>
<name>applyChanges</name>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="303"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="302"/>
<source>There are unsaved changes. Apply Changes?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="312"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="311"/>
<source>Apply Changes</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -1720,22 +1720,22 @@ Bits: {3}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>Warning</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="203"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="202"/>
<source>dpi value not valid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>dpi value too small</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="266"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="265"/>
<source>custom</source>
<translation type="unfinished"></translation>
</message>
Expand Down
12 changes: 6 additions & 6 deletions prep-release/pysoundanalyser_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,12 @@ Bits: {3}</source>
<context>
<name>applyChanges</name>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="303"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="302"/>
<source>There are unsaved changes. Apply Changes?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="312"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="311"/>
<source>Apply Changes</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -1720,22 +1720,22 @@ Bits: {3}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>Warning</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="203"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="202"/>
<source>dpi value not valid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>dpi value too small</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="266"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="265"/>
<source>custom</source>
<translation type="unfinished"></translation>
</message>
Expand Down
12 changes: 6 additions & 6 deletions prep-release/pysoundanalyser_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,12 +678,12 @@ Bits: {3}</source>
<context>
<name>applyChanges</name>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="303"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="302"/>
<source>There are unsaved changes. Apply Changes?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="312"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="311"/>
<source>Apply Changes</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -1750,22 +1750,22 @@ Bits: {3}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>Warning</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="203"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="202"/>
<source>dpi value not valid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>dpi value too small</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="266"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="265"/>
<source>custom</source>
<translation type="unfinished"></translation>
</message>
Expand Down
12 changes: 6 additions & 6 deletions prep-release/pysoundanalyser_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -777,12 +777,12 @@ Bits: {3}</source>
<context>
<name>applyChanges</name>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="303"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="302"/>
<source>There are unsaved changes. Apply Changes?</source>
<translation>Ci sono modifiche non salvate. Applicare le modifiche?</translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="312"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="311"/>
<source>Apply Changes</source>
<translation>Applica le modifiche</translation>
</message>
Expand Down Expand Up @@ -1894,22 +1894,22 @@ Bits: {3}</source>
<translation>Comando:</translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>Warning</source>
<translation>Avviso</translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="203"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="202"/>
<source>dpi value not valid</source>
<translation>valore dpi non valido</translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>dpi value too small</source>
<translation>valore dpi troppo piccolo</translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="266"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="265"/>
<source>custom</source>
<translation>personalizzato</translation>
</message>
Expand Down
12 changes: 6 additions & 6 deletions prep-release/pysoundanalyser_ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -668,12 +668,12 @@ Bits: {3}</source>
<context>
<name>applyChanges</name>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="303"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="302"/>
<source>There are unsaved changes. Apply Changes?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="312"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="311"/>
<source>Apply Changes</source>
<translation type="unfinished"></translation>
</message>
Expand Down Expand Up @@ -1720,22 +1720,22 @@ Bits: {3}</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>Warning</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="203"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="202"/>
<source>dpi value not valid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="208"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="207"/>
<source>dpi value too small</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="266"/>
<location filename="../pysoundanalyser/dialog_edit_preferences.py" line="265"/>
<source>custom</source>
<translation type="unfinished"></translation>
</message>
Expand Down
9 changes: 4 additions & 5 deletions pysoundanalyser/dialog_edit_preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
if pyqtversion == 4:
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import QLocale
from PyQt4.QtGui import QCheckBox, QComboBox, QDialog, QDialogButtonBox, QDoubleValidator, QGridLayout, QIntValidator, QLabel, QLineEdit, QPushButton, QTabWidget, QVBoxLayout, QWidget
from PyQt4.QtGui import QCheckBox, QColorDialog, QComboBox, QDialog, QDialogButtonBox, QDoubleValidator, QGridLayout, QIntValidator, QLabel, QLineEdit, QPushButton, QTabWidget, QVBoxLayout, QWidget
elif pyqtversion == -4:
from PySide import QtGui, QtCore
from PySide.QtCore import QLocale
from PySide.QtGui import QCheckBox, QComboBox, QDialog, QDialogButtonBox, QDoubleValidator, QGridLayout, QIntValidator, QLabel, QLineEdit, QPushButton, QTabWidget, QVBoxLayout, QWidget
from PySide.QtGui import QCheckBox, QColorDialog, QComboBox, QDialog, QDialogButtonBox, QDoubleValidator, QGridLayout, QIntValidator, QLabel, QLineEdit, QPushButton, QTabWidget, QVBoxLayout, QWidget
elif pyqtversion == 5:
from PyQt5 import QtGui, QtCore
from PyQt5.QtCore import QLocale
from PyQt5.QtGui import QDoubleValidator, QIntValidator
from PyQt5.QtWidgets import QCheckBox, QComboBox, QDialog, QDialogButtonBox, QGridLayout, QLabel, QLineEdit, QPushButton, QTabWidget, QVBoxLayout, QWidget
from PyQt5.QtWidgets import QCheckBox, QColorDialog, QComboBox, QDialog, QDialogButtonBox, QGridLayout, QLabel, QLineEdit, QPushButton, QTabWidget, QVBoxLayout, QWidget

import copy, pickle

Expand Down Expand Up @@ -193,8 +193,7 @@ def __init__(self, parent):
layout.addWidget(self.tabWidget)
layout.addWidget(buttonBox)
self.setLayout(layout)
#grid = QGridLayout()
#n = 0


def ondpiChange(self):
try:
Expand Down
3 changes: 3 additions & 0 deletions pysoundanalyser/global_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def def_prefs(prm):
if platform.system() == 'Windows':
prm["pref"]["playCommand"] = 'winsound'
prm["pref"]["playCommandType"] = 'winsound'
elif platform.system() == "Darwin":
prm["pref"]["playCommand"] = 'afplay'
prm["pref"]["playCommandType"] = QApplication.translate("Preferences Window","custom","")
else:
prm["pref"]["playCommand"] = 'aplay'
prm["pref"]["playCommandType"] = 'aplay'
Expand Down
Loading

0 comments on commit 987ad04

Please sign in to comment.