In AMCurrentAmplifier, added pure virtual requirement for 'QStringList valuesList()' and 'QStringList unitsList()'. Methods are already defined in CLSKeithley428. Added this basic functionality to CLSSR570 with the introduction of QStringList valueList_/unitsList_ member variables set in the constructor. The two new methods just return these string lists.
Added optional bool argument to the AMCurrentAmplifierView constructor to show/hide the amplifier name in the view. The name is just displayed in a simple label for now, it should be changed to something prettier later.
Added 'None' option to the list of available AmplifierModes in AMCurrentAmplifier. Added call to 'setAmplifierMode(None)' to the interface constructor.
Added call to setAmplifierMode(AMCurrentAmplifier::Sensitivity) to the constructor in CLSSR570.
Restored the order of existing AmplifierModes: Gain = 0, Sensitivity = 1, then None = 2 added to the end. Was taking advantage of the enum to specify indices in the CLSKeithleyValueMap class.
Fixed bug where the unitsList_ returned to the view would only return Gain units in CLSKeithley428. The units wouldn't appear to change if the AmplifierMode was set to Sensitivity.
Added 'onUnitsChanged(const QString &newUnits)' slot to CLSSR570, emits the appropriate signals for both unitsChanged and unitsIndexChanged.
Added new pure virtual function AMCurrentAmplifier::unitsIndex() const. This method allows a view to identify the current units for the amplifier from a given list of unit options.