Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PAPPSO
xtpcpp
Commits
4a96afaa
Commit
4a96afaa
authored
Nov 22, 2019
by
Langella Olivier
Browse files
use MsRunStatisticsHandler as base class
parent
d28717ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/gui/lists/ms_identification_run_list_view/ms_identification_worker/msidlistworkerstatus.cpp
View file @
4a96afaa
...
@@ -28,14 +28,8 @@
...
@@ -28,14 +28,8 @@
#include "msidlistworkerthread.h"
#include "msidlistworkerthread.h"
#include <gui/lists/ms_identification_run_list_view/msidentificationtablemodel.h>
#include <gui/lists/ms_identification_run_list_view/msidentificationtablemodel.h>
MsRunStatisticsHandler
::
MsRunStatisticsHandler
()
:
pappso
::
SpectrumCollectionHandlerInterface
()
{
qDebug
()
<<
"OOOOOO test"
;
}
bool
bool
MsRunStatisticsHandler
::
shouldStop
()
MsIdentificationTable
MsRunStatisticsHandler
::
shouldStop
()
{
{
qDebug
()
<<
"RRRRRR test"
;
qDebug
()
<<
"RRRRRR test"
;
QMutexLocker
locker
(
&
m_mutex
);
QMutexLocker
locker
(
&
m_mutex
);
...
@@ -43,7 +37,7 @@ MsRunStatisticsHandler::shouldStop()
...
@@ -43,7 +37,7 @@ MsRunStatisticsHandler::shouldStop()
}
}
void
void
MsRunStatisticsHandler
::
requireStop
(
bool
stop
)
MsIdentificationTable
MsRunStatisticsHandler
::
requireStop
(
bool
stop
)
{
{
QMutexLocker
locker
(
&
m_mutex
);
QMutexLocker
locker
(
&
m_mutex
);
m_stopRequired
=
stop
;
m_stopRequired
=
stop
;
...
@@ -99,7 +93,7 @@ MsIdListWorkerStatus::getStatus(
...
@@ -99,7 +93,7 @@ MsIdListWorkerStatus::getStatus(
delete
mpa_currentHandler
;
delete
mpa_currentHandler
;
}
}
qDebug
();
qDebug
();
mpa_currentHandler
=
new
MsRunStatisticsHandler
();
mpa_currentHandler
=
new
MsIdentificationTable
MsRunStatisticsHandler
();
qDebug
()
<<
"DDDDDDDDDDDDDD"
<<
mpa_currentHandler
->
shouldStop
();
qDebug
()
<<
"DDDDDDDDDDDDDD"
<<
mpa_currentHandler
->
shouldStop
();
emit
computeMsNumber
(
identificationDataSource
);
emit
computeMsNumber
(
identificationDataSource
);
...
...
src/gui/lists/ms_identification_run_list_view/ms_identification_worker/msidlistworkerstatus.h
View file @
4a96afaa
...
@@ -25,30 +25,24 @@
...
@@ -25,30 +25,24 @@
#pragma once
#pragma once
#include <QObject>
#include <QObject>
#include <pappsomspp/msrun/msrunreader.h>
#include "../../../../utils/msrunstatisticshandler.h"
#include "core/msrun.h"
#include "core/msrun.h"
#include "core/identification_sources/identificationdatasource.h"
#include "core/identification_sources/identificationdatasource.h"
class
MsRunStatisticsHandler
:
public
pappso
::
SpectrumCollectionHandlerInterface
class
MsIdentificationTable
MsRunStatisticsHandler
:
public
MsRunStatisticsHandler
{
{
public:
public:
MsRunStatisticsHandler
()
;
virtual
~
MsRunStatisticsHandler
()
{};
virtual
void
setQualifiedMassSpectrum
(
const
pappso
::
QualifiedMassSpectrum
&
qspectrum
)
override
;
virtual
bool
needPeakList
()
const
override
;
unsigned
long
getMsLevelCount
(
unsigned
int
ms_level
)
const
;
unsigned
long
getMsLevelCount
(
unsigned
int
ms_level
)
const
;
pappso
::
pappso_double
getMsLevelTic
(
unsigned
int
ms_level
)
const
;
pappso
::
pappso_double
getMsLevelTic
(
unsigned
int
ms_level
)
const
;
unsigned
long
getTotalCount
()
const
;
unsigned
long
getTotalCount
()
const
;
virtual
bool
bool
shouldStop
()
override
;
shouldStop
()
override
;
void
void
requireStop
(
bool
stop
);
requireStop
(
bool
stop
);
private:
private:
std
::
vector
<
unsigned
long
>
_count_ms_level_spectrum
;
std
::
vector
<
unsigned
long
>
_count_ms_level_spectrum
;
...
...
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