[Kst] kdeextragear-2/kst/kst/extensions/rana
Andrew Walker
arwalker at sumusltd.com
Wed Feb 2 01:21:09 CET 2005
CVS commit by arwalker:
Add linearity, gain, and isolation.
Only the UI - functionality remains
to be implemented.
A linearitygainisolation.ui 1.1
A linearitygainisolation_i.cpp 1.1 [GPL (v2+)]
A linearitygainisolation_i.h 1.1 [GPL (v2+)]
M +2 -0 .cvsignore 1.3
M +1 -1 Makefile.am 1.3
M +1 -0 kstextension_rana.rc 1.3
M +12 -0 rana.cpp 1.3
M +3 -0 rana.h 1.3
--- kdeextragear-2/kst/kst/extensions/rana/.cvsignore #1.2:1.3
@@ -10,4 +10,6 @@
receiverinputoffset.cpp
receiverinputoffset.h
+linearitygainisolation.cpp
+linearitygainisolation.h
*.bb
*.bbg
--- kdeextragear-2/kst/kst/extensions/rana/kstextension_rana.rc #1.2:1.3
@@ -5,4 +5,5 @@
<Action name="noise_temperature_calculation"/>
<Action name="receiver_input_offset"/>
+ <Action name="linearity_gain_isolation"/>
</Menu>
</MenuBar>
--- kdeextragear-2/kst/kst/extensions/rana/Makefile.am #1.2:1.3
@@ -5,5 +5,5 @@
kstextension_rana_la_LDFLAGS=$(all_libraries) -module -avoid-version
kstextension_rana_la_LIBADD=../../libkst.la $(LIB_KPARTS)
-kstextension_rana_la_SOURCES=rana.cpp noisetemperaturecalculation_i.cpp receiverinputoffset_i.cpp noisetemperaturecalculation.ui receiverinputoffset.ui
+kstextension_rana_la_SOURCES=rana.cpp noisetemperaturecalculation_i.cpp receiverinputoffset_i.cpp linearitygainisolation_i.cpp noisetemperaturecalculation.ui receiverinputoffset.ui linearitygainisolation.ui
METASOURCES=AUTO
--- kdeextragear-2/kst/kst/extensions/rana/rana.cpp #1.2:1.3
@@ -30,4 +30,5 @@ K_EXPORT_COMPONENT_FACTORY(kstextension_
KstRANA::KstRANA(QObject *parent, const char *name, const QStringList& list) : KstExtension(parent, name, list), KXMLGUIClient() {
+ new KAction(i18n("Linearity, Gain, and Isolation..."), 0L, CTRL+ALT+Key_L, this, SLOT(doLinearityGainIsolation()), actionCollection(), "linearity_gain_isolation");
new KAction(i18n("Noise Temperature Calculation..."), 0L, CTRL+ALT+Key_N, this, SLOT(doNoiseTemperatureCalculation()), actionCollection(), "noise_temperature_calculation");
new KAction(i18n("Receiver Input Offset..."), 0L, CTRL+ALT+Key_R, this, SLOT(doReceiverInputOffset()), actionCollection(), "receiver_input_offset");
@@ -38,4 +39,5 @@ KstRANA::KstRANA(QObject *parent, const
_noiseTemperatureCalculation = new NoiseTemperatureCalculationI(this, app());
_receiverInputOffset = new ReceiverInputOffsetI(this, app());
+ _linearityGainIsolation = new LinearityGainIsolationI(this, app());
}
@@ -50,4 +52,5 @@ KstRANA::~KstRANA() {
delete _noiseTemperatureCalculation;
delete _receiverInputOffset;
+ delete _linearityGainIsolation;
}
@@ -71,4 +74,13 @@ void KstRANA::doReceiverInputOffset() {
+void KstRANA::doLinearityGainIsolation() {
+ if (_linearityGainIsolation) {
+ _linearityGainIsolation->initialize();
+ _linearityGainIsolation->show();
+ _linearityGainIsolation->raise();
+ }
+}
+
+
void KstRANA::convertToAntennaTemperature( double dSky, double dSkySigma, double dFreqGHz, double& dAntenna, double& dAntennaSigma) {
double dX;
--- kdeextragear-2/kst/kst/extensions/rana/rana.h #1.2:1.3
@@ -24,4 +24,5 @@
#include "noisetemperaturecalculation_i.h"
#include "receiverinputoffset_i.h"
+#include "linearitygainisolation_i.h"
class KstRANA : public KstExtension, public KXMLGUIClient {
@@ -39,8 +40,10 @@ class KstRANA : public KstExtension, pub
void doNoiseTemperatureCalculation();
void doReceiverInputOffset();
+ void doLinearityGainIsolation();
private:
NoiseTemperatureCalculationI* _noiseTemperatureCalculation;
ReceiverInputOffsetI* _receiverInputOffset;
+ LinearityGainIsolationI* _linearityGainIsolation;
};
More information about the Kst
mailing list