|
|
@@ -563,14 +563,20 @@ class AbstractPluginSlot(QFrame): |
|
|
|
|
|
|
|
if index in (PARAMETER_DRYWET, PARAMETER_VOLUME): |
|
|
|
default = 1.0 |
|
|
|
resetText = self.tr("Reset (%i%%)" % int(default*100.0)) |
|
|
|
minimText = self.tr("Set to Minimum (%i%%)" % int(minimum*100.0)) |
|
|
|
maximText = self.tr("Set to Maximum (%i%%)" % int(maximum*100.0)) |
|
|
|
else: |
|
|
|
default = gCarla.host.get_default_parameter_value(self.fPluginId, index) |
|
|
|
resetText = self.tr("Reset (%f)" % default) |
|
|
|
minimText = self.tr("Set to Minimum (%f)" % minimum) |
|
|
|
maximText = self.tr("Set to Maximum (%f)" % maximum) |
|
|
|
|
|
|
|
menu = QMenu(self) |
|
|
|
actReset = menu.addAction(self.tr("Reset (%f)" % (default))) |
|
|
|
actReset = menu.addAction(resetText) |
|
|
|
menu.addSeparator() |
|
|
|
actMinimum = menu.addAction(self.tr("Set to Minimum (%f)" % (minimum))) |
|
|
|
actMaximum = menu.addAction(self.tr("Set to Maximum (%f)" % (maximum))) |
|
|
|
actMinimum = menu.addAction(minimText) |
|
|
|
actMaximum = menu.addAction(maximText) |
|
|
|
menu.addSeparator() |
|
|
|
actSet = menu.addAction(self.tr("Set value...")) |
|
|
|
|
|
|
|