Value dials: implement Ctl to shift digits by 2. Updated documentation

pull/60/head
f4exb 2017-05-18 01:48:52 +02:00
rodzic 7a36ee716b
commit d842b44c28
24 zmienionych plików z 118 dodań i 52 usunięć

Wyświetl plik

@ -33,13 +33,15 @@ Note: the spectrum view (Channel spectrum) is not presented here.
![Channel Analyzer NG plugin controls](../../../doc/img/ChAnalyzerNG_plugin_settings.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Toggle the rational downsampler</h3>
@ -47,7 +49,9 @@ The input channel sample rate is given by the source device sample rate possibly
<h3>4: Rational downsampler output rate</h3>
Use the wheels to adjust the sample rate that will be used in the rest of the signal processing in the channel. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position. The minimum value is 2000 S/s and the maximum value is the source plugin output sample rate.
Use the wheels to adjust the sample rate that will be used in the rest of the signal processing in the channel. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position. The minimum value is 2000 S/s and the maximum value is the source plugin output sample rate.
<h3>5: Downsampler by a power of two</h3>

Wyświetl plik

@ -8,13 +8,15 @@ This plugin can be used to listen to a narrowband amplitude modulated signal. "N
![AM Demodulator plugin GUI](../../../doc/img/AMDemod_plugin.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Channel power</h3>

Wyświetl plik

@ -24,13 +24,15 @@ Each part is detailed next
![ATV Demodulator plugin GUI RF](../../../doc/img/ATVDemod_pluginA.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Rational downsampler toggle</h3>

Wyświetl plik

@ -54,7 +54,9 @@ For software built fron source if you choose to have `mbelib` support you will n
<h3>1: Frequency shift from center frequency of reception</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Use the "+/-" button on the left side to toggle between positive and negative shift.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>2: Symbol (Baud) rate</h3>

Wyświetl plik

@ -8,13 +8,15 @@ This plugin can be used to listen to a narrowband FM modulated signal. "Narrowba
![NFM Demodulator plugin GUI](../../../doc/img/NFMdemod_plugin.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2..
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Channel power</h3>

Wyświetl plik

@ -8,13 +8,15 @@ This plugin can be used to listen to a single sideband or double sidebands modul
![SSB Demodulator plugin GUI](../../../doc/img/SSBDemod_plugin.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Channel power</h3>

Wyświetl plik

@ -8,13 +8,15 @@ This plugin can be used to listen to a wideband or narrowband FM modulated signa
![WFM Demodulator plugin GUI](../../../doc/img/WFMDemod_plugin.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Channel power</h3>

Wyświetl plik

@ -17,7 +17,9 @@ The receiving application must make sure it acknowledges this block size. UDP ma
<h3>1: Frequency shift from center frequency of reception</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Use the "+/-" button on the left side to toggle between positive and negative shift.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>2: Channel power</h3>

Wyświetl plik

@ -8,13 +8,15 @@ This plugin can be used to generate a narrowband amplitude modulated signal. "Na
![AM Modulator plugin GUI](../../../doc/img/AMMod_plugin.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Channel power</h3>

Wyświetl plik

@ -12,13 +12,15 @@ In practice 4 MS/s with about 300 points per line is the lowest sample rate that
![ATV Modulator plugin GUI](../../../doc/img/ATVMod_plugin.png)
<h2>1: Frequency shift from center frequency of reception direction</h2>
<h2>1: <s>Frequency shift from center frequency of reception direction</s></h2>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h2>2: Frequency shift from center frequency of reception value</h2>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h2>3: Sample rate data</h2>

Wyświetl plik

@ -8,13 +8,15 @@ This plugin can be used to generate a narrowband frequency modulated signal. "Na
![NFM Modulator plugin GUI](../../../doc/img/NFMMod_plugin.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Channel power</h3>

Wyświetl plik

@ -8,13 +8,15 @@ This plugin can be used to generate a single sideband or double sidebands modula
![SSB Modulator plugin GUI](../../../doc/img/SSBMod_plugin.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Channel power</h3>

Wyświetl plik

@ -8,13 +8,15 @@ This plugin can be used to generate a wideband frequency modulated signal. "Wide
![WFM Modulator plugin GUI](../../../doc/img/WFMMod_plugin.png)
<h3>1: Frequency shift from center frequency of reception direction</h3>
<h3>1: <s>Frequency shift from center frequency of reception direction</s></h3>
The "+/-" button on the left side of the dial toggles between positive and negative shift.
<h3>2: Frequency shift from center frequency of reception value</h3>
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the frequency shift in Hz from the center frequency of reception. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>3: Channel power</h3>

Wyświetl plik

@ -62,7 +62,9 @@ This controls the optional XB-200 add-on when it is fitted to the BladeRF main b
This is the BladeRF device DAC sample rate in S/s.
Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>7: Tx filter bandwidth</h3>

Wyświetl plik

@ -52,7 +52,9 @@ The baseband stream is interpolated by this value before being written to file.
This is the baseband sample rate before interpolation in S/s.
Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>8: Time counter</h3>

Wyświetl plik

@ -70,7 +70,9 @@ According to HackRF documentation the output power when the PA is engaged and th
This is the HackRF device DAC sample rate in S/s.
Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>9: Tx filter bandwidth</h3>

Wyświetl plik

@ -65,7 +65,7 @@ Use this push button to reset the NCO frequency to 0 and thus center on the main
<h3>7: Center frequency with NCO engaged</h3>
This is the center frequency of the mix of LO and NCO combined and is the sink passband center frequency when the NCO is engaged. Use the thumbwheels to adjust frequency as done with the LO (1.1). The boundaries are dynamically calculated from the LO center frequency and sample rate.
This is the center frequency of the mix of LO and NCO combined and is the sink passband center frequency when the NCO is engaged. Use the thumbwheels to adjust frequency as done with the LO (1.1). Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2. The boundaries are dynamically calculated from the LO center frequency and sample rate.
<h3>8: LMS7002M hardware interpolation factor</h3>
@ -81,13 +81,15 @@ The I/Q stream from the baseband is upsampled by a power of two by software insi
This is the LMS7002M device to/from host stream sample rate in S/s.
Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
The LMS7002M uses the same clock for both the ADCs and DACs therefore this sample rate affects all of the 2x2 MIMO channels.
<h3>11: Tx hardware filter bandwidth</h3>
This is the Tx hardware filter bandwidth in kHz in the LMS7002M device for the given channel. Boundaries are updated automatically but generally are from 5 to 130 MHz in 1 kHz steps. Use the wheels to adjust the value.
This is the Tx hardware filter bandwidth in kHz in the LMS7002M device for the given channel. Boundaries are updated automatically but generally are from 5 to 130 MHz in 1 kHz steps. Use the wheels to adjust the value. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
<h3>12: TSP FIR filter toggle</h3>
@ -95,7 +97,7 @@ The TSP in the LMS7002M chip has a FIR filter chain per channel. Use this button
<h3>13: TSP FIR filter bandwidth</h3>
Use the wheels to adjust the bandwidth of the hardware TSP FIR filter.
Use the wheels to adjust the bandwidth of the hardware TSP FIR filter. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
<h3>14: Gain</h2>

Wyświetl plik

@ -52,7 +52,9 @@ The baseband stream is interpolated by this value before being written to file.
This is the baseband sample rate before interpolation in S/s.
Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>8: Time counter</h3>

Wyświetl plik

@ -62,7 +62,9 @@ This controls the optional XB-200 add-on when it is fitted to the BladeRF main b
This is the BladeRF device ADC sample rate in S/s.
Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>5: Decimation factor</h3>

Wyświetl plik

@ -65,7 +65,9 @@ Use this checkbox to toggle the extra low noise amplifier (LNA). This gives an a
This is the HackRF device ADC sample rate in S/s.
Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>7: Rx filter bandwidth</h3>

Wyświetl plik

@ -73,7 +73,7 @@ USe this push button to reset the NCO frequency to 0 and thus center on the main
<h3>5: Center frequency with NCO engaged</h3>
This is the center frequency of the mix of LO and NCO combined and is the source passband center frequency when the NCO is engaged. Use the thumbwheels to adjust frequency as done with the LO (1.1). The boundaries are dynamically calculated from the LO center frequency and sample rate.
This is the center frequency of the mix of LO and NCO combined and is the source passband center frequency when the NCO is engaged. Use the thumbwheels to adjust frequency as done with the LO (1.1). Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2. The boundaries are dynamically calculated from the LO center frequency and sample rate.
<h3>6-7: Auto correction options</h3>
@ -96,13 +96,15 @@ The I/Q stream from the LimeSDR is doensampled by a power of two by software ins
This is the LMS7002M device to/from host stream sample rate in S/s.
Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
The LMS7002M uses the same clock for both the ADCs and DACs therefore this sample rate affects all of the 2x2 MIMO channels.
<h3>11: Rx hardware filter bandwidth</h3>
This is the Rx hardware filter bandwidth in kHz in the LMS7002M device for the given channel. Boundaries are updated automatically but generally are from 1.4 to 130 MHz in 1 kHz steps. Use the wheels to adjust the value.
This is the Rx hardware filter bandwidth in kHz in the LMS7002M device for the given channel. Boundaries are updated automatically but generally are from 1.4 to 130 MHz in 1 kHz steps. Use the wheels to adjust the value. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
<h3>12: TSP FIR filter toggle</h3>
@ -110,7 +112,7 @@ The TSP in the LMS7002M chip has a FIR filter chain per channel. Use this button
<h3>13: TSP FIR filter bandwidth</h3>
USe the wheels to adjust the bandwidth of the hardware TSP FIR filter.
USe the wheels to adjust the bandwidth of the hardware TSP FIR filter. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
<h3>14: Gain</h2>

Wyświetl plik

@ -66,7 +66,9 @@ When button is off the sample rate can vary from 950 kS/s to 2400 kS/s
This is the device sample rate in samples per second (S/s).
Use the wheels to adjust the sample rate. Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
Use the wheels to adjust the sample rate. Pressing shift simultanoeusly moves digit by 5 and pressing control moves it by 2.
Left click on a digit sets the cursor position at this digit. Right click on a digit sets all digits on the right to zero. This effectively floors value at the digit position.
<h3>7: Decimation factor</h3>

Wyświetl plik

@ -328,14 +328,20 @@ void ValueDial::wheelEvent(QWheelEvent* event)
if(m_animationState == 0) {
if(event->delta() < 0) {
if(event->modifiers() & Qt::ShiftModifier)
e *= 5;
if (event->modifiers() & Qt::ShiftModifier) {
e *= 5;
} else if (event->modifiers() & Qt::ControlModifier) {
e *= 2;
}
if(m_value < e)
m_valueNew = m_valueMin;
else m_valueNew = m_value - e;
} else {
if(event->modifiers() & Qt::ShiftModifier)
e *= 5;
if (event->modifiers() & Qt::ShiftModifier) {
e *= 5;
} else if (event->modifiers() & Qt::ControlModifier) {
e *= 2;
}
if(m_valueMax - m_value < e)
m_valueNew = m_valueMax;
else m_valueNew = m_value + e;
@ -403,8 +409,11 @@ void ValueDial::keyPressEvent(QKeyEvent* value)
}
} else if(value->key() == Qt::Key_Up) {
quint64 e = findExponent(m_cursor);
if(value->modifiers() & Qt::ShiftModifier)
e *= 5;
if (value->modifiers() & Qt::ShiftModifier) {
e *= 5;
} else if (value->modifiers() & Qt::ControlModifier) {
e *= 2;
}
if(m_animationState != 0)
m_value = m_valueNew;
if(m_valueMax - m_value < e)
@ -414,8 +423,11 @@ void ValueDial::keyPressEvent(QKeyEvent* value)
emit changed(m_valueNew);
} else if(value->key() == Qt::Key_Down) {
quint64 e = findExponent(m_cursor);
if(value->modifiers() & Qt::ShiftModifier)
e *= 5;
if (value->modifiers() & Qt::ShiftModifier) {
e *= 5;
} else if (value->modifiers() & Qt::ControlModifier) {
e *= 2;
}
if(m_animationState != 0)
m_value = m_valueNew;
if(m_value < e)

Wyświetl plik

@ -400,16 +400,20 @@ void ValueDialZ::wheelEvent(QWheelEvent* event)
if(event->delta() < 0)
{
if(event->modifiers() & Qt::ShiftModifier) {
if (event->modifiers() & Qt::ShiftModifier) {
e *= 5;
} else if (event->modifiers() & Qt::ControlModifier) {
e *= 2;
}
m_valueNew = (m_value - e < m_valueMin) ? m_valueMin : m_value - e;
}
else
{
if(event->modifiers() & Qt::ShiftModifier) {
if (event->modifiers() & Qt::ShiftModifier) {
e *= 5;
} else if (event->modifiers() & Qt::ControlModifier) {
e *= 2;
}
m_valueNew = (m_value + e > m_valueMax) ? m_valueMax : m_value + e;
@ -516,8 +520,10 @@ void ValueDialZ::keyPressEvent(QKeyEvent* value)
{
qint64 e = findExponent(m_cursor);
if(value->modifiers() & Qt::ShiftModifier) {
if (value->modifiers() & Qt::ShiftModifier) {
e *= 5;
} else if (value->modifiers() & Qt::ControlModifier) {
e *= 2;
}
if(m_animationState != 0) {
@ -544,8 +550,10 @@ void ValueDialZ::keyPressEvent(QKeyEvent* value)
{
qint64 e = findExponent(m_cursor);
if(value->modifiers() & Qt::ShiftModifier) {
if (value->modifiers() & Qt::ShiftModifier) {
e *= 5;
} else if (value->modifiers() & Qt::ControlModifier) {
e *= 2;
}
if(m_animationState != 0) {