diff --git a/Audio/AudioFileSaver.cpp b/Audio/AudioFileSaver.cpp index b64db60..117e380 100644 --- a/Audio/AudioFileSaver.cpp +++ b/Audio/AudioFileSaver.cpp @@ -73,6 +73,10 @@ AudioFileWriter::prepare(void) case LSB: modulation = "LSB"; break; + + case RAW: + modulation = "RAW"; + break; } do { diff --git a/Default/Audio/AudioWidgetFactory.cpp b/Default/Audio/AudioWidgetFactory.cpp index 52a82b9..8c505d8 100644 --- a/Default/Audio/AudioWidgetFactory.cpp +++ b/Default/Audio/AudioWidgetFactory.cpp @@ -22,7 +22,7 @@ using namespace SigDigger; const char * -AudioWidgetFactory::name(void) const +AudioWidgetFactory::name() const { return "AudioWidget"; } @@ -36,8 +36,14 @@ AudioWidgetFactory::make(UIMediator *mediator) AudioWidgetFactory::AudioWidgetFactory(Suscan::Plugin *plugin) : ToolWidgetFactory(plugin) { } +const char * +AudioWidgetFactory::desc() const +{ + return "Audio preview"; +} + std::string AudioWidgetFactory::getTitle() const { - return "Audio preview"; + return desc(); } diff --git a/Default/Audio/AudioWidgetFactory.h b/Default/Audio/AudioWidgetFactory.h index e005add..d08812d 100644 --- a/Default/Audio/AudioWidgetFactory.h +++ b/Default/Audio/AudioWidgetFactory.h @@ -26,7 +26,8 @@ namespace SigDigger { { public: // FeatureFactory overrides - const char *name(void) const override; + const char *name() const override; + const char *desc() const override; // ToolWidgetFactory overrides ToolWidget *make(UIMediator *) override; diff --git a/Default/Inspection/InspToolWidgetFactory.cpp b/Default/Inspection/InspToolWidgetFactory.cpp index 9111da4..810db60 100644 --- a/Default/Inspection/InspToolWidgetFactory.cpp +++ b/Default/Inspection/InspToolWidgetFactory.cpp @@ -23,7 +23,7 @@ using namespace SigDigger; const char * -InspToolWidgetFactory::name(void) const +InspToolWidgetFactory::name() const { return "InspToolWidget"; } @@ -37,8 +37,14 @@ InspToolWidgetFactory::make(UIMediator *mediator) InspToolWidgetFactory::InspToolWidgetFactory(Suscan::Plugin *plugin) : ToolWidgetFactory(plugin) { } +const char * +InspToolWidgetFactory::desc() const +{ + return "Channel inspection"; +} + std::string InspToolWidgetFactory::getTitle() const { - return "Channel inspection"; + return desc(); } diff --git a/Default/Inspection/InspToolWidgetFactory.h b/Default/Inspection/InspToolWidgetFactory.h index f478b1d..7eb8b0b 100644 --- a/Default/Inspection/InspToolWidgetFactory.h +++ b/Default/Inspection/InspToolWidgetFactory.h @@ -26,7 +26,8 @@ namespace SigDigger { { public: // FeatureFactory overrides - const char *name(void) const override; + const char *name() const override; + const char *desc() const override; // ToolWidgetFactory overrides ToolWidget *make(UIMediator *) override; diff --git a/Suscan/FeatureFactory.cpp b/Suscan/FeatureFactory.cpp index 437a3c2..ee26a1d 100644 --- a/Suscan/FeatureFactory.cpp +++ b/Suscan/FeatureFactory.cpp @@ -63,6 +63,12 @@ FeatureFactory::FeatureFactory(Plugin *plugin) plugin->registerFactory(this); } +const char * +FeatureFactory::desc() const +{ + return name(); +} + FeatureFactory::~FeatureFactory() { // Destruction of a FeatureFactory: notify the plugin about this removal diff --git a/UIMediator/UIMediator.cpp b/UIMediator/UIMediator.cpp index 6280557..3210c36 100644 --- a/UIMediator/UIMediator.cpp +++ b/UIMediator/UIMediator.cpp @@ -380,7 +380,7 @@ UIMediator::registerComponentActions(UIComponent *comp) auto &actions = comp->actions(); if (!actions.isEmpty()) { - QToolBar *toolBar = new QToolBar(comp->factory()->name()); + QToolBar *toolBar = new QToolBar(comp->factory()->desc()); getMainWindow()->insertToolBar(m_lastToolBar, toolBar); m_lastToolBar = toolBar; diff --git a/i18n/SigDigger_zh_CN.ts b/i18n/SigDigger_zh_CN.ts index 6bd228d..f9e26db 100644 --- a/i18n/SigDigger_zh_CN.ts +++ b/i18n/SigDigger_zh_CN.ts @@ -1553,4 +1553,272 @@ 选框频率 + + AudioPanel + + + Form + + + + + Baseband audio preview + 音频侦听 + + + + Disk usage + 硬盘使用量 + + + + Audio cutoff + 音频截止频率 + + + + Audio recorder + 音频记录器 + + + + Sample rate + 采样率 + + + + &Record + 记录 + + + + Folder + 文件夹 + + + + 22222 Hz + + + + + 0 bytes + + + + + Gain control + 增益控制 + + + + Capture size + 捕获大小 + + + + Volume + 音量 + + + + Disabled + 不使能 + + + + Slow + + + + + Normal + + + + + Fast + + + + + 0% + + + + + Demodulator + 解调器 + + + + &Browse... + 浏览... + + + + &Doppler settings + 多普勒设置 + + + + &SQL + 静噪 + + + + Squelch at + 静噪阈值 + + + + Correction + 修正 + + + + None + + + + + AM + + + + + FM + + + + + USB + + + + + LSB + + + + + RAW + + + + + Lock to current frequency + 锁定到当前频率 + + + + SourcePanel + + + Form + + + + + Swap I/Q + 互换I/Q + + + + ppm + + + + + + + N/A + 不可用 + + + + Use gain presets + 使用增益预设值 + + + + Processing rate + 处理速率 + + + + Throttle override + 复写采样率 + + + + Hardware AGC + 硬件AGC + + + + Sample rate + 采样率 + + + + DC remove + 去除直流 + + + + Freq. correction + 频率修正 + + + + Bandwidth + 带宽 + + + + Effective rate + 实际速率 + + + + Antenna + 天线 + + + + Allocate replay history + 分配历史暂留内存 + + + + MiB + + + + + Replay time + 回放时长 + + + + History allocation + 历史暂留分配 + + + + &Replay + 回放 + + + + Ctrl+H + + + + + Max replay time + 最大回放时长 + + diff --git a/include/FeatureFactory.h b/include/FeatureFactory.h index 776d3e1..dc9a8ed 100644 --- a/include/FeatureFactory.h +++ b/include/FeatureFactory.h @@ -54,6 +54,7 @@ namespace Suscan { public: virtual const char *name() const = 0; + virtual const char *desc() const; bool canBeRemoved() const;