Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
xtpcpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
A compter du 1er avril, attention à vos pipelines :
Nouvelles limitations de Docker Hub
Show more breadcrumbs
PAPPSO
xtpcpp
Commits
883028fb
Commit
883028fb
authored
6 years ago
by
Langella Olivier
Browse files
Options
Downloads
Patches
Plain Diff
writing protein list in ODS file
parent
679e38e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/gui/mainwindow.cpp
+5
-5
5 additions, 5 deletions
src/gui/mainwindow.cpp
src/gui/protein_list_view/proteinlistwindow.cpp
+12
-0
12 additions, 0 deletions
src/gui/protein_list_view/proteinlistwindow.cpp
src/gui/workerthread.cpp
+4
-4
4 additions, 4 deletions
src/gui/workerthread.cpp
with
21 additions
and
9 deletions
src/gui/mainwindow.cpp
+
5
−
5
View file @
883028fb
...
...
@@ -110,7 +110,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::Main)
MainWindow
::~
MainWindow
()
{
qDebug
()
<<
"MainWindow::~MainWindow"
;
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
_worker_thread
.
quit
();
_worker_thread
.
wait
();
// if (_p_ms_data_file != nullptr) delete _p_ms_data_file;
...
...
@@ -123,7 +123,7 @@ MainWindow::~MainWindow()
{
delete
_p_export_masschroq_dialog
;
}
qDebug
()
<<
"MainWindow::~MainWindow end"
;
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
}
bool
...
...
@@ -191,7 +191,7 @@ MainWindow::doWorkerAppendText(char *text)
void
MainWindow
::
doActionQuit
()
{
qDebug
()
<<
"MainWindow::doActionQuit begin"
;
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
this
->
close
();
}
...
...
@@ -791,7 +791,7 @@ MainWindow::run()
try
{
qDebug
()
<<
"MainWindow::run() begin"
;
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
QCommandLineParser
parser
;
// throw pappso::PappsoException("test");
...
...
@@ -803,7 +803,7 @@ MainWindow::run()
"XPIP project file"
,
QCoreApplication
::
translate
(
"main"
,
"Project file to open."
));
qDebug
()
<<
"MainWindow::run() 1"
;
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
// Process the actual command line arguments given by the user
parser
.
process
(
*
_p_app
);
...
...
This diff is collapsed.
Click to expand it.
src/gui/protein_list_view/proteinlistwindow.cpp
+
12
−
0
View file @
883028fb
...
...
@@ -27,6 +27,8 @@
#include
"ui_protein_view.h"
#include
"../mainwindow.h"
#include
<QSettings>
#include
<odsstream/odsdocwriter.h>
#include
<odsstream/qtablewriter.h>
ProteinListQactionColumn
::
ProteinListQactionColumn
(
ProteinListWindow
*
parent
,
ProteinListColumn
column
)
...
...
@@ -475,4 +477,14 @@ void
ProteinListWindow
::
doExportAsOdsFile
()
{
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
CalcWriterInterface
*
p_writer
=
new
OdsDocWriter
(
"/tmp/test.ods"
);
const
QAbstractProxyModel
*
p_table_model
=
_p_proxy_model
;
QtableWriter
table_writer
(
p_writer
,
p_table_model
);
table_writer
.
writeSheet
(
"protein list"
);
p_writer
->
close
();
delete
p_writer
;
}
This diff is collapsed.
Click to expand it.
src/gui/workerthread.cpp
+
4
−
4
View file @
883028fb
...
...
@@ -51,7 +51,7 @@
WorkerThread
::
WorkerThread
(
MainWindow
*
p_main_window
)
{
_p_main_window
=
p_main_window
;
qDebug
()
<<
"WorkerThread::WorkerThread begin MainWindow"
;
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
_p_work_monitor
=
new
WorkMonitor
();
...
...
@@ -237,7 +237,7 @@ WorkerThread::WorkerThread(MainWindow *p_main_window)
SLOT
(
doOperationFinished
()));
#endif
qDebug
()
<<
"WorkerThread::WorkerThread end MainWindow"
;
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
}
WorkerThread
::
WorkerThread
(
ProjectWindow
*
p_project_window
)
...
...
@@ -374,7 +374,7 @@ WorkerThread::~WorkerThread()
void
WorkerThread
::
doXpipFileLoad
(
QString
filename
)
{
qDebug
()
<<
"WorkerThread::doXpipFileLoad begin "
<<
filename
;
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
<<
filename
;
try
{
QFileInfo
new_xpip_file
(
filename
);
...
...
@@ -392,7 +392,7 @@ WorkerThread::doXpipFileLoad(QString filename)
tr
(
"Error while reading XPIP file :
\n
%1"
).
arg
(
error
.
qwhat
()));
}
qDebug
()
<<
"WorkerThread::doXpipFileLoad end"
;
qDebug
()
<<
__FILE__
<<
" "
<<
__FUNCTION__
<<
" "
<<
__LINE__
;
}
void
...
...
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