Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
vite
Commits
ebf84712
Commit
ebf84712
authored
16 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Remove toto and add delete
parent
0a5dbedb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/statistics/Stats_window.cpp
+7
-5
7 additions, 5 deletions
src/statistics/Stats_window.cpp
with
7 additions
and
5 deletions
src/statistics/Stats_window.cpp
+
7
−
5
View file @
ebf84712
...
@@ -79,9 +79,8 @@ void Stats_window::init_window() {
...
@@ -79,9 +79,8 @@ void Stats_window::init_window() {
void
Stats_window
::
on_reload_button_clicked
()
{
void
Stats_window
::
on_reload_button_clicked
()
{
std
::
string
kind_of_diagram
=
_kind_of_diagram_box
->
currentText
().
toStdString
();
int
kind_of_diagram
=
_kind_of_diagram_box
->
currentIndex
();
int
toto
=
_kind_of_diagram_box
->
currentIndex
();
std
::
cout
<<
toto
<<
endl
;
// We delete the previous selected containers
// We delete the previous selected containers
if
(
!
_selected_containers
.
empty
())
{
if
(
!
_selected_containers
.
empty
())
{
_selected_containers
.
clear
();
_selected_containers
.
clear
();
...
@@ -111,7 +110,7 @@ void Stats_window::on_reload_button_clicked() {
...
@@ -111,7 +110,7 @@ void Stats_window::on_reload_button_clicked() {
// We create a drawer
// We create a drawer
DrawStats
<
Render_stats_opengl
>
*
drawer
;
DrawStats
<
Render_stats_opengl
>
*
drawer
;
switch
(
toto
)
switch
(
kind_of_diagram
)
{
{
case
_HDIAGRAM_INDEX
:
case
_HDIAGRAM_INDEX
:
drawer
=
new
DrawHDiagram
<
Render_stats_opengl
>
();
drawer
=
new
DrawHDiagram
<
Render_stats_opengl
>
();
...
@@ -121,13 +120,16 @@ void Stats_window::on_reload_button_clicked() {
...
@@ -121,13 +120,16 @@ void Stats_window::on_reload_button_clicked() {
break
;
break
;
case
_CHART_INDEX
:
case
_CHART_INDEX
:
default:
default:
*
Message
::
get_instance
()
<<
kind_of_diagram
<<
" not yet implemented"
<<
Message
::
endw
;
*
Message
::
get_instance
()
<<
_kind_of_diagram_box
->
currentText
().
toStdString
()
<<
" not yet implemented"
<<
Message
::
endw
;
drawer
=
new
DrawHDiagram
<
Render_stats_opengl
>
();
drawer
=
new
DrawHDiagram
<
Render_stats_opengl
>
();
}
}
drawer
->
set_times
(
_start_time
,
_end_time
);
drawer
->
set_times
(
_start_time
,
_end_time
);
drawer
->
build
(
_ui_stats_area
,
_selected_containers
);
drawer
->
build
(
_ui_stats_area
,
_selected_containers
);
_ui_stats_area
->
updateGL
();
_ui_stats_area
->
updateGL
();
delete
drawer
;
}
}
void
Stats_window
::
close_window
(){
void
Stats_window
::
close_window
(){
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment