1 /** 2 * UGENE - Integrated Bioinformatics Tools. 3 * Copyright (C) 2008-2021 UniPro <ugene@unipro.ru> 4 * http://ugene.net 5 * 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. 10 * 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. 15 * 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, 19 * MA 02110-1301, USA. 20 */ 21 22 #ifndef _U2_GT_RUNNABLES_EXPORT_SEQUENCES_DIALOG_FILLER_H_ 23 #define _U2_GT_RUNNABLES_EXPORT_SEQUENCES_DIALOG_FILLER_H_ 24 25 #include "utils/GTUtilsDialog.h" 26 27 namespace U2 { 28 using namespace HI; 29 30 class ExportSelectedRegionFiller : public Filler { 31 public: 32 ExportSelectedRegionFiller(HI::GUITestOpStatus &_os, const QString &_path, const QString &_name, bool translate = false, const QString &seqName = QString(), bool saveAllAminoFrames = true); 33 ExportSelectedRegionFiller(HI::GUITestOpStatus &os, const QString &filePath); 34 ExportSelectedRegionFiller(HI::GUITestOpStatus &os, CustomScenario *customScenario); 35 36 void commonScenario(); 37 void setPath(const QString &value); 38 void setName(const QString &value); 39 40 static QString defaultExportPath; 41 42 private: 43 QString path, name; 44 QString seqName; 45 bool translate; 46 bool saveAllAminoFrames; 47 }; 48 49 class ExportSequenceOfSelectedAnnotationsFiller : public Filler { 50 public: 51 enum FormatToUse { Fasta, 52 Fastq, 53 Gff, 54 Genbank }; 55 enum MergeOptions { SaveAsSeparate, 56 Merge }; 57 ExportSequenceOfSelectedAnnotationsFiller(HI::GUITestOpStatus &_os, const QString &_path, FormatToUse _format, MergeOptions _options, int _gapLength = 0, bool _addDocToProject = true, bool _exportWithAnnotations = false, GTGlobals::UseMethod method = GTGlobals::UseMouse); 58 void commonScenario(); 59 60 private: 61 QString path; 62 int gapLength; 63 FormatToUse format; 64 bool addToProject; 65 bool exportWithAnnotations; 66 MergeOptions options; 67 GTGlobals::UseMethod useMethod; 68 QMap<FormatToUse, QString> comboBoxItems; 69 QMap<MergeOptions, QString> mergeRadioButtons; 70 }; 71 72 } // namespace U2 73 74 #endif 75