2
* UGENE - Integrated Bioinformatics Tools.
3
* Copyright (C) 2008-2011 UniPro <ugene@unipro.ru>
4
* http://ugene.unipro.ru
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
22
#ifndef _U2_DISTANCE_MATRIX_MSA_PROFILE_DIALOG_H_
23
#define _U2_DISTANCE_MATRIX_MSA_PROFILE_DIALOG_H_
25
#include "ui/ui_DistanceMatrixMSAProfileDialog.h"
27
#include <U2Core/global.h>
28
#include <U2Core/Task.h>
29
#include <U2Core/MAlignment.h>
31
#include <QtCore/QHash>
32
#include <QtCore/QSet>
38
class DistanceMatrixMSAProfileDialog : public QDialog, public Ui_DistanceMatrixMSAProfileDialog {
42
DistanceMatrixMSAProfileDialog(QWidget* p, MSAEditor* ctx);
44
virtual void accept();
49
void sl_formatChanged(bool);
55
enum DistanceMatrixMSAProfileOutputFormat {
56
DistanceMatrixMSAProfileOutputFormat_Show,
57
DistanceMatrixMSAProfileOutputFormat_CSV,
58
DistanceMatrixMSAProfileOutputFormat_HTML
61
class DistanceMatrixMSAProfileTaskSettings {
63
DistanceMatrixMSAProfileTaskSettings(){
64
outFormat = DistanceMatrixMSAProfileOutputFormat_Show;
68
QString algoName; // selected algorithm
69
QString profileName; // usually object name
70
QString profileURL; // document url
72
bool usePercents; //report percents but not counts
73
DistanceMatrixMSAProfileOutputFormat outFormat;
77
class DistanceMatrixMSAProfileTask : public Task {
80
DistanceMatrixMSAProfileTask(const DistanceMatrixMSAProfileTaskSettings& s);
82
virtual void prepare();
84
QList<Task*> onSubTaskFinished(Task* subTask);
86
ReportResult report();
90
DistanceMatrixMSAProfileTaskSettings s;