Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openairinterface-6g
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
openairinterface-6g
Commits
05570bb8
Commit
05570bb8
authored
Nov 11, 2025
by
Nada Bouknana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move global scope settings to a menu item
parent
530812ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
11 deletions
+20
-11
openair1/PHY/TOOLS/imscope/imscope.cpp
openair1/PHY/TOOLS/imscope/imscope.cpp
+20
-11
No files found.
openair1/PHY/TOOLS/imscope/imscope.cpp
View file @
05570bb8
...
@@ -733,6 +733,7 @@ void *imscope_thread(void *data_void_ptr)
...
@@ -733,6 +733,7 @@ void *imscope_thread(void *data_void_ptr)
static
float
t
=
0
;
static
float
t
=
0
;
static
bool
show_imgui_demo_window
=
false
;
static
bool
show_imgui_demo_window
=
false
;
static
bool
show_implot_demo_window
=
false
;
static
bool
show_implot_demo_window
=
false
;
static
bool
show_scope_settings_window
=
false
;
ImGui
::
DockSpaceOverViewport
();
ImGui
::
DockSpaceOverViewport
();
if
(
ImGui
::
BeginMainMenuBar
())
{
if
(
ImGui
::
BeginMainMenuBar
())
{
if
(
ImGui
::
BeginMenu
(
"File"
))
{
if
(
ImGui
::
BeginMenu
(
"File"
))
{
...
@@ -752,6 +753,12 @@ void *imscope_thread(void *data_void_ptr)
...
@@ -752,6 +753,12 @@ void *imscope_thread(void *data_void_ptr)
}
}
ImGui
::
EndMenu
();
ImGui
::
EndMenu
();
}
}
if
(
ImGui
::
BeginMenu
(
"Settings"
))
{
if
(
ImGui
::
MenuItem
(
"Global scope settings"
))
{
show_scope_settings_window
=
!
show_scope_settings_window
;
}
ImGui
::
EndMenu
();
}
ImGui
::
EndMainMenuBar
();
ImGui
::
EndMainMenuBar
();
}
}
...
@@ -762,16 +769,6 @@ void *imscope_thread(void *data_void_ptr)
...
@@ -762,16 +769,6 @@ void *imscope_thread(void *data_void_ptr)
}
}
ImGui
::
End
();
ImGui
::
End
();
ImGui
::
Begin
(
"Global scope settings"
);
ImGui
::
ShowStyleSelector
(
"ImGui Style"
);
ImPlot
::
ShowStyleSelector
(
"ImPlot Style"
);
ImPlot
::
ShowColormapSelector
(
"ImPlot Colormap"
);
ImGui
::
SliderInt
(
"FPS target"
,
&
target_fps
,
12
,
60
);
if
(
ImGui
::
IsItemHovered
())
{
ImGui
::
SetTooltip
(
"Reduces scope flickering in unfrozen mode. Can reduce impact on perfromance of the modem"
);
}
ImGui
::
End
();
t
+=
ImGui
::
GetIO
().
DeltaTime
;
t
+=
ImGui
::
GetIO
().
DeltaTime
;
iq_procedure_timer
.
UpdateAverage
(
t
);
iq_procedure_timer
.
UpdateAverage
(
t
);
...
@@ -788,7 +785,19 @@ void *imscope_thread(void *data_void_ptr)
...
@@ -788,7 +785,19 @@ void *imscope_thread(void *data_void_ptr)
ImPlot
::
ShowDemoWindow
();
ImPlot
::
ShowDemoWindow
();
if
(
show_imgui_demo_window
)
if
(
show_imgui_demo_window
)
ImGui
::
ShowDemoWindow
();
ImGui
::
ShowDemoWindow
();
// Settings
if
(
show_scope_settings_window
)
{
ImGui
::
SetNextWindowPos
(
ImGui
::
GetMainViewport
()
->
GetCenter
(),
ImGuiCond_FirstUseEver
,
ImVec2
(
0.5
f
,
0.5
f
));
ImGui
::
Begin
(
"Global scope settings"
,
&
show_scope_settings_window
);
ImGui
::
ShowStyleSelector
(
"ImGui Style"
);
ImPlot
::
ShowStyleSelector
(
"ImPlot Style"
);
ImPlot
::
ShowColormapSelector
(
"ImPlot Colormap"
);
ImGui
::
SliderInt
(
"FPS target"
,
&
target_fps
,
12
,
60
);
if
(
ImGui
::
IsItemHovered
())
{
ImGui
::
SetTooltip
(
"Reduces scope flickering in unfrozen mode. Can reduce impact on perfromance of the modem"
);
}
ImGui
::
End
();
}
// Rendering
// Rendering
ImGui
::
Render
();
ImGui
::
Render
();
glViewport
(
0
,
0
,
display_w
,
display_h
);
glViewport
(
0
,
0
,
display_w
,
display_h
);
...
...
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