mirror of
https://github.com/DreamSourceLab/DSView.git
synced 2025-01-13 13:32:53 +08:00
Add a capture status for DSO mode
This commit is contained in:
parent
9d5ac99fc2
commit
8671e6d0d9
@ -341,15 +341,36 @@ void Viewport::paintSignals(QPainter &p, QColor fore, QColor back)
|
||||
type = g_variant_get_byte(gvar);
|
||||
g_variant_unref(gvar);
|
||||
|
||||
bool bDot = false;
|
||||
|
||||
if (type == DSO_TRIGGER_AUTO && roll) {
|
||||
type_str = L_S(STR_PAGE_DLG, S_ID(IDS_DLG_AUTO_ROLL), "Auto(Roll)");
|
||||
|
||||
if (_view.session().is_instant()){
|
||||
type_str += ", ";
|
||||
type_str += L_S(STR_PAGE_DLG, S_ID(IDS_DLG_VIEW_CAPTURE), "Capturing");
|
||||
bDot = true;
|
||||
}
|
||||
}
|
||||
else if (type == DSO_TRIGGER_AUTO && !_view.session().trigd()) {
|
||||
type_str = L_S(STR_PAGE_DLG, S_ID(IDS_DLG_AUTO), "Auto");
|
||||
|
||||
if (_view.session().is_instant()){
|
||||
type_str += ", ";
|
||||
type_str += L_S(STR_PAGE_DLG, S_ID(IDS_DLG_VIEW_CAPTURE), "Capturing");
|
||||
bDot = true;
|
||||
}
|
||||
}
|
||||
else if (_waiting_trig > 0) {
|
||||
type_str = L_S(STR_PAGE_DLG, S_ID(IDS_DLG_WAITING_TRIG), "Waiting Trig");
|
||||
bDot = true;
|
||||
}
|
||||
else {
|
||||
type_str = L_S(STR_PAGE_DLG, S_ID(IDS_DLG_TRIG_D), "Trig'd");
|
||||
}
|
||||
|
||||
if (bDot)
|
||||
{
|
||||
for (int i = 0; i < _tigger_wait_times; i++){
|
||||
type_str += ".";
|
||||
}
|
||||
@ -366,9 +387,6 @@ void Viewport::paintSignals(QPainter &p, QColor fore, QColor back)
|
||||
if (_tigger_wait_times > 4)
|
||||
_tigger_wait_times = 0;
|
||||
}
|
||||
else {
|
||||
type_str = L_S(STR_PAGE_DLG, S_ID(IDS_DLG_TRIG_D), "Trig'd");
|
||||
}
|
||||
}
|
||||
p.setPen(fore);
|
||||
p.drawText(_view.get_view_rect(), Qt::AlignLeft | Qt::AlignTop, type_str);
|
||||
|
@ -650,5 +650,9 @@
|
||||
{
|
||||
"id": "IDS_DLG_FILE_THRESHOLD",
|
||||
"text": "阈值: "
|
||||
},
|
||||
{
|
||||
"id": "IDS_DLG_VIEW_CAPTURE",
|
||||
"text": "捕获中"
|
||||
}
|
||||
]
|
@ -650,5 +650,9 @@
|
||||
{
|
||||
"id": "IDS_DLG_FILE_THRESHOLD",
|
||||
"text": "Threshold: "
|
||||
},
|
||||
{
|
||||
"id": "IDS_DLG_VIEW_CAPTURE",
|
||||
"text": "Capturing"
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user