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
+
+
+
+
+
+
+
+
+ 音频侦听
+
+
+
+
+ 硬盘使用量
+
+
+
+
+ 音频截止频率
+
+
+
+
+ 音频记录器
+
+
+
+
+ 采样率
+
+
+
+
+ 记录
+
+
+
+
+ 文件夹
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 增益控制
+
+
+
+
+ 捕获大小
+
+
+
+
+ 音量
+
+
+
+
+ 不使能
+
+
+
+
+ 慢
+
+
+
+
+ 中
+
+
+
+
+ 快
+
+
+
+
+
+
+
+
+
+ 解调器
+
+
+
+
+ 浏览...
+
+
+
+
+ 多普勒设置
+
+
+
+
+ 静噪
+
+
+
+
+ 静噪阈值
+
+
+
+
+ 修正
+
+
+
+
+ 无
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 锁定到当前频率
+
+
+
+ SourcePanel
+
+
+
+
+
+
+
+
+ 互换I/Q
+
+
+
+
+
+
+
+
+
+
+
+ 不可用
+
+
+
+
+ 使用增益预设值
+
+
+
+
+ 处理速率
+
+
+
+
+ 复写采样率
+
+
+
+
+ 硬件AGC
+
+
+
+
+ 采样率
+
+
+
+
+ 去除直流
+
+
+
+
+ 频率修正
+
+
+
+
+ 带宽
+
+
+
+
+ 实际速率
+
+
+
+
+ 天线
+
+
+
+
+ 分配历史暂留内存
+
+
+
+
+
+
+
+
+
+ 回放时长
+
+
+
+
+ 历史暂留分配
+
+
+
+
+ 回放
+
+
+
+
+
+
+
+
+
+ 最大回放时长
+
+
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;