Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Raptor Engineering Public Development
dsview
Commits
705819fa
Commit
705819fa
authored
Oct 20, 2015
by
DreamSourceLab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor issues of sesion load and/display/drag-and-drop
parent
63772095
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
130 additions
and
130 deletions
+130
-130
DSView/pv/dock/triggerdock.cpp
DSView/pv/dock/triggerdock.cpp
+2
-2
DSView/pv/mainwindow.cpp
DSView/pv/mainwindow.cpp
+1
-3
DSView/pv/view/dsosignal.cpp
DSView/pv/view/dsosignal.cpp
+120
-119
DSView/pv/view/dsosignal.h
DSView/pv/view/dsosignal.h
+1
-3
DSView/pv/view/viewport.cpp
DSView/pv/view/viewport.cpp
+6
-3
No files found.
DSView/pv/dock/triggerdock.cpp
View file @
705819fa
...
...
@@ -116,7 +116,7 @@ TriggerDock::TriggerDock(QWidget *parent, SigSession &session) :
_inv1_comboBox
->
addItem
(
tr
(
"!="
));
_inv1_comboBox_list
.
push_back
(
_inv1_comboBox
);
QLabel
*
value_exp_label
=
new
QLabel
(
"1 1 1 1 1 1
\n
5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0"
,
_widget
);
QLabel
*
value_exp_label
=
new
QLabel
(
"1 1 1 1 1 1
\n
5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
"
,
_widget
);
QLabel
*
inv_exp_label
=
new
QLabel
(
"Inv"
,
_widget
);
QLabel
*
count_exp_label
=
new
QLabel
(
"Counter"
,
_widget
);
value_exp_label
->
setFont
(
font
);
...
...
@@ -256,7 +256,7 @@ TriggerDock::TriggerDock(QWidget *parent, SigSession &session) :
_widget
->
setLayout
(
layout
);
this
->
setWidget
(
_widget
);
_widget
->
setGeometry
(
0
,
0
,
sizeHint
().
width
(),
1000
);
//
_widget->setGeometry(0, 0, sizeHint().width(), 1000);
_widget
->
setObjectName
(
"triggerWidget"
);
}
...
...
DSView/pv/mainwindow.cpp
View file @
705819fa
...
...
@@ -683,10 +683,8 @@ bool MainWindow::load_session(QString name)
s
->
set_trig
(
obj
[
"strigger"
].
toDouble
());
boost
::
shared_ptr
<
view
::
DsoSignal
>
dsoSig
;
if
(
dsoSig
=
dynamic_pointer_cast
<
view
::
DsoSignal
>
(
s
))
{
dsoSig
->
update_hDial
();
//dsoSig->update_vDial();
dsoSig
->
load_settings
();
dsoSig
->
set_zeroRate
(
obj
[
"zeroPos"
].
toDouble
());
dsoSig
->
set_enable
(
obj
[
"enabled"
].
toBool
());
dsoSig
->
set_trigRate
(
obj
[
"trigValue"
].
toDouble
());
}
break
;
...
...
DSView/pv/view/dsosignal.cpp
View file @
705819fa
This diff is collapsed.
Click to expand it.
DSView/pv/view/dsosignal.h
View file @
705819fa
...
...
@@ -121,9 +121,7 @@ public:
void
set_factor
(
uint64_t
factor
);
uint64_t
get_factor
();
bool
update_vDial
();
bool
update_hDial
();
bool
update_acCoupling
();
bool
load_settings
();
/**
*
...
...
DSView/pv/view/viewport.cpp
View file @
705819fa
...
...
@@ -538,11 +538,14 @@ void Viewport::mouseReleaseEvent(QMouseEvent *event)
if
(
_view
.
session
().
get_device
()
->
dev_inst
()
->
mode
==
LOGIC
&&
_measure_type
!=
LOGIC_EDGE
)
{
const
double
strength
=
_drag_strength
*
DragTimerInterval
*
1.0
/
_time
.
elapsed
();
if
(
abs
(
_drag_strength
)
<
MinorDragOffsetUp
&&
abs
(
strength
)
>
MinorDragRateUp
)
{
if
(
_time
.
elapsed
()
<
200
&&
abs
(
_drag_strength
)
<
MinorDragOffsetUp
&&
abs
(
strength
)
>
MinorDragRateUp
)
{
_drag_strength
=
_drag_strength
;
_drag_timer
.
start
(
DragTimerInterval
);
_measure_type
=
LOGIC_MOVE
;
}
else
if
(
abs
(
strength
)
>
DragTimerInterval
)
{
}
else
if
(
_time
.
elapsed
()
<
200
&&
abs
(
strength
)
>
DragTimerInterval
)
{
_drag_strength
=
strength
*
5
;
_drag_timer
.
start
(
DragTimerInterval
);
_measure_type
=
LOGIC_MOVE
;
...
...
@@ -623,7 +626,7 @@ void Viewport::leaveEvent(QEvent *)
_measure_shown
=
_dso_xm
||
_dso_ym
;
_mouse_point
=
QPoint
(
-
1
,
-
1
);
//_view.show_cursors(false);
if
(
_measure_type
==
LOGIC_EDGE
)
{
if
(
_measure_type
==
LOGIC_EDGE
||
_measure_type
==
LOGIC_MOVE
)
{
_measure_type
=
NO_MEASURE
;
_measure_shown
=
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment