summaryrefslogtreecommitdiffstats
path: root/src/knutpanelmeter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/knutpanelmeter.cpp')
-rw-r--r--src/knutpanelmeter.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/knutpanelmeter.cpp b/src/knutpanelmeter.cpp
index ab1b921..1c0acb8 100644
--- a/src/knutpanelmeter.cpp
+++ b/src/knutpanelmeter.cpp
@@ -192,7 +192,7 @@ void KNutPanelMeter::setSize (bool showPanels) {
tqrepaint();
}
-void KNutPanelMeter::tqrepaintScaleAnalogPanel (int panelNumber, float value) {
+void KNutPanelMeter::repaintScaleAnalogPanel (int panelNumber, float value) {
if (m_analogPanels->upsAnalogs[panelNumber] != 0L){
switch (m_activeUpsInfo->record.upsVarCode[panelNumber]) {
@@ -229,7 +229,7 @@ void KNutPanelMeter::tqrepaintScaleAnalogPanel (int panelNumber, float value) {
m_analogPanels->upsAnalogs[panelNumber]->setPointer(value); // jistota pokud by nam to nekde propadlo
m_analogPanels->upsAnalogs[panelNumber]->hide();// schovame analogovy panel hides analog panel
m_analogPanels->upsAnalogs[panelNumber]->setRange (m_analogPanels->scaleStart[panelNumber],m_analogPanels->scaleEnd[panelNumber]);
- m_analogPanels->upsAnalogs[panelNumber]->tqrepaint(); // prekreslime , tqrepaints panel
+ m_analogPanels->upsAnalogs[panelNumber]->tqrepaint(); // prekreslime , repaints panel
m_analogPanels->upsAnalogs[panelNumber]->show(); //zobrazime merak shows analog panel
}
}
@@ -241,7 +241,7 @@ void KNutPanelMeter::tqrepaintScaleAnalogPanel (int panelNumber, float value) {
-void KNutPanelMeter::tqrepaintAnalogPointer (int panelNumber, float value, bool run) {
+void KNutPanelMeter::repaintAnalogPointer (int panelNumber, float value, bool run) {
if (m_analogPanels->upsAnalogs[panelNumber] != 0L)
m_analogPanels->upsAnalogs[panelNumber]->setPointer (value,run); // nastavi hodnotu rucicky
}
@@ -269,7 +269,7 @@ void KNutPanelMeter::changeAnalogPanelsDigProcessing (void) {
}
-void KNutPanelMeter::tqrepaintAnalogPanels (bool tqrepaintFrequencyPanels, bool tqrepaintVoltagePanels, bool tqrepaintAllPanels) {
+void KNutPanelMeter::repaintAnalogPanels (bool repaintFrequencyPanels, bool repaintVoltagePanels, bool repaintAllPanels) {
KNutVarData::VarStrucDef analogMemberData;
@@ -281,10 +281,10 @@ KNutVarData::VarStrucDef analogMemberData;
//if upsAnalogs[x] is set to zero, this upsAnalog is not used
// record.upsVarCode contain list of code of analog meter
// 0 is code for none analog meter, 1 for Input Voltage, 2 for Battery Charge,
- if (((m_activeUpsInfo->record.upsVarCode[i] == knc::VarAcfreq) && (tqrepaintFrequencyPanels)) ||
- ((m_activeUpsInfo->record.upsVarCode[i] == knc::VarOutFreq) && (tqrepaintFrequencyPanels)) ||
+ if (((m_activeUpsInfo->record.upsVarCode[i] == knc::VarAcfreq) && (repaintFrequencyPanels)) ||
+ ((m_activeUpsInfo->record.upsVarCode[i] == knc::VarOutFreq) && (repaintFrequencyPanels)) ||
(((m_activeUpsInfo->record.upsVarCode[i] == knc::VarUtility) ||
- (m_activeUpsInfo->record.upsVarCode[i] == knc::VarOutVolt)) && (tqrepaintVoltagePanels))) {
+ (m_activeUpsInfo->record.upsVarCode[i] == knc::VarOutVolt)) && (repaintVoltagePanels))) {
analogMemberData=m_analogRecords->getData (m_activeUpsInfo->record.upsVarCode[i]); // nacteme data
@@ -297,12 +297,12 @@ KNutVarData::VarStrucDef analogMemberData;
} // end if (!
}// end for (int i=0
- m_analogPanels->upsAnalogs[i]->makeBackground(false); // tqrepaints analog meter
- m_analogPanels->upsAnalogs[i]->tqrepaintPointer(false); // tqrepaints analog meter
- m_analogPanels->upsAnalogs[i]->tqrepaint(); // tqrepaints analog meter
+ m_analogPanels->upsAnalogs[i]->makeBackground(false); // repaints analog meter
+ m_analogPanels->upsAnalogs[i]->repaintPointer(false); // repaints analog meter
+ m_analogPanels->upsAnalogs[i]->tqrepaint(); // repaints analog meter
m_analogPanels->upsAnalogs[i]->show(); // shows analog meter
} // end if (((activeUpsInfo
- if (tqrepaintAllPanels) {
+ if (repaintAllPanels) {
if (m_settingData->customOAnalogColor) {
m_analogPanels->upsAnalogs[i]->setPointerColor(m_settingData->analogFingerColor);
m_analogPanels->upsAnalogs[i]->setArcColor(1,m_settingData->analogOKColor);
@@ -317,7 +317,7 @@ KNutVarData::VarStrucDef analogMemberData;
m_analogPanels->upsAnalogs[i]->setScaleColor (DEFAULT_SCALE_COLOR);
m_analogPanels->upsAnalogs[i]->setFontColor (DEFAULT_FONT_COLOR);
}
- m_analogPanels->upsAnalogs[i]->tqrepaintAll();
+ m_analogPanels->upsAnalogs[i]->repaintAll();
}
}
} // end for