Commit dd4454e9 authored by DreamSourceLab's avatar DreamSourceLab

Fix language and UI issue

parent 9dfea2e3
DSView/icons/dark/start.png

2.83 KB | W: | H:

DSView/icons/dark/start.png

4.19 KB | W: | H:

DSView/icons/dark/start.png
DSView/icons/dark/start.png
DSView/icons/dark/start.png
DSView/icons/dark/start.png
  • 2-up
  • Swipe
  • Onion skin
DSView/icons/dark/stop.png

2.62 KB | W: | H:

DSView/icons/dark/stop.png

2.86 KB | W: | H:

DSView/icons/dark/stop.png
DSView/icons/dark/stop.png
DSView/icons/dark/stop.png
DSView/icons/dark/stop.png
  • 2-up
  • Swipe
  • Onion skin
DSView/icons/light/start.png

1.73 KB | W: | H:

DSView/icons/light/start.png

4.19 KB | W: | H:

DSView/icons/light/start.png
DSView/icons/light/start.png
DSView/icons/light/start.png
DSView/icons/light/start.png
  • 2-up
  • Swipe
  • Onion skin
DSView/icons/light/stop.png

1.64 KB | W: | H:

DSView/icons/light/stop.png

2.86 KB | W: | H:

DSView/icons/light/stop.png
DSView/icons/light/stop.png
DSView/icons/light/stop.png
DSView/icons/light/stop.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -77,6 +77,7 @@ const QColor View::Blue = QColor(17, 133, 209, 255); ...@@ -77,6 +77,7 @@ const QColor View::Blue = QColor(17, 133, 209, 255);
const QColor View::Green = QColor(0, 153, 37, 255); const QColor View::Green = QColor(0, 153, 37, 255);
const QColor View::Purple = QColor(109, 50, 156, 255); const QColor View::Purple = QColor(109, 50, 156, 255);
const QColor View::LightBlue = QColor(17, 133, 209, 200); const QColor View::LightBlue = QColor(17, 133, 209, 200);
const QColor View::LightRed = QColor(213, 15, 37, 200);
View::View(SigSession &session, pv::toolbars::SamplingBar *sampling_bar, QWidget *parent) : View::View(SigSession &session, pv::toolbars::SamplingBar *sampling_bar, QWidget *parent) :
...@@ -206,7 +207,7 @@ View::View(SigSession &session, pv::toolbars::SamplingBar *sampling_bar, QWidget ...@@ -206,7 +207,7 @@ View::View(SigSession &session, pv::toolbars::SamplingBar *sampling_bar, QWidget
fore.setAlpha(View::BackAlpha); fore.setAlpha(View::BackAlpha);
_show_trig_cursor = false; _show_trig_cursor = false;
_trig_cursor = new Cursor(*this, View::Red, 0); _trig_cursor = new Cursor(*this, View::LightRed, 0);
_show_search_cursor = false; _show_search_cursor = false;
_search_pos = 0; _search_pos = 0;
_search_cursor = new Cursor(*this, fore, _search_pos); _search_cursor = new Cursor(*this, fore, _search_pos);
......
...@@ -101,6 +101,7 @@ public: ...@@ -101,6 +101,7 @@ public:
static const QColor Green; static const QColor Green;
static const QColor Purple; static const QColor Purple;
static const QColor LightBlue; static const QColor LightBlue;
static const QColor LightRed;
public: public:
explicit View(SigSession &session, pv::toolbars::SamplingBar *sampling_bar, QWidget *parent = 0); explicit View(SigSession &session, pv::toolbars::SamplingBar *sampling_bar, QWidget *parent = 0);
......
...@@ -329,16 +329,16 @@ void Viewport::paintSignals(QPainter &p, QColor fore, QColor back) ...@@ -329,16 +329,16 @@ void Viewport::paintSignals(QPainter &p, QColor fore, QColor back)
type = g_variant_get_byte(gvar); type = g_variant_get_byte(gvar);
g_variant_unref(gvar); g_variant_unref(gvar);
if (type == DSO_TRIGGER_AUTO && roll) { if (type == DSO_TRIGGER_AUTO && roll) {
type_str = "Auto(Roll)"; type_str = tr("Auto(Roll)");
} else if (type == DSO_TRIGGER_AUTO && !_view.session().trigd()) { } else if (type == DSO_TRIGGER_AUTO && !_view.session().trigd()) {
type_str = "Auto"; type_str = tr("Auto");
} else if (_waiting_trig > 0) { } else if (_waiting_trig > 0) {
type_str = "Waiting Trig"; type_str = tr("Waiting Trig");
for (int i = 1; i < _waiting_trig; i++) for (int i = 1; i < _waiting_trig; i++)
if (i % (WaitLoopTime / SigSession::FeedInterval) == 0) if (i % (WaitLoopTime / SigSession::FeedInterval) == 0)
type_str += "."; type_str += ".";
} else { } else {
type_str = "Trig'd"; type_str = tr("Trig'd");
} }
} }
p.setPen(fore); p.setPen(fore);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment