File: AlignOutputFileNames.h

package info (click to toggle)
clustalx 2.1%2Blgpl-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,868 kB
  • sloc: cpp: 40,050; sh: 163; xml: 102; makefile: 15
file content (111 lines) | stat: -rw-r--r-- 2,794 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/**
 * Changes:
 * 12-4-07, Mark Larkin, Removed destructor. No need to delete QObjects.
 */
#ifndef ALIGNOUTPUTFILENAMES_H
#define ALIGNOUTPUTFILENAMES_H

#include <QDialog>
#include <memory>
#include "ClustalQtParams.h"

class QPushButton;
class QGroupBox;
class QComboBox;
class QLabel;
class QCheckBox;
class QVBoxLayout;
class QGridLayout;
class QLineEdit;

class AlignOutputFileNames : public QDialog
{
    Q_OBJECT
public:
    AlignOutputFileNames(QString inputFileName, FileNameDialogType _type, 
                         AlignType _alignType, QString profileName = ""); 
    clustalw::AlignmentFileNames getNames();
    bool getRealignEndGapPen(){return realignEndGapPen;}
protected:


private slots:
    void accept();
    void cancel();
    void browseGuideTreeSeq();
    void browseGuideTreeProfile();
    void browseInputTreeSeq();
    void browseInputTreeProfile();
    void browseClustal();
    void browseNBRF();
    void browseGCG();
    void browseNexus();
    void browseFasta();
    void browsePhylip();
    void browseGDE();
private:
    void browse(QLineEdit* lineEditName);
    void browseInputTree(QLineEdit* lineEditName);
    void setUpLayout();
    void setUpTopBox(); 
    void setUpOptional();
    void setAllPtrsToNull(); 
    QString getPathFromFileName(QString fileName);  
    
    QVBoxLayout* mainLayout;
    QGridLayout* topBoxLayout;
    QGridLayout* fileLayout;
    QGridLayout* otherParamLayout;
    
    QPushButton* okButton;
    QPushButton* alignOutCancelButton;
    QPushButton* guideTreeSeqBrowseButton;
    QPushButton* guideTreeProfile2BrowseButton;
    QPushButton* clustalBrowseButton;
    QPushButton* nbrfBrowseButton;
    QPushButton* gcgBrowseButton;
    QPushButton* phylipBrowseButton;
    QPushButton* gdeBrowseButton;
    QPushButton* nexusBrowseButton;
    QPushButton* fastaBrowseButton;
    
    QGroupBox* fileBox;
    QGroupBox* topBox;
    
    QComboBox* realignSegEndGapPenalties;
    
    
    QLabel* guideTreeNameLabelSeq;
    QLabel* outputFilesLabel;
    QLabel* clustalNameLabel;
    QLabel* nbrfNameLabel;
    QLabel* gcgNameLabel;
    QLabel* phylipNameLabel;
    QLabel* gdeNameLabel;
    QLabel* nexusNameLabel;
    QLabel* fastaNameLabel;
    QLabel* realignSegEndGapPenaltiesLabel;
    
    QLineEdit* guideTreeNameSeq;
    QLineEdit* guideTreeNameProfile2;
    QLineEdit* clustalName;
    QLineEdit* nbrfName;
    QLineEdit* gcgName;
    QLineEdit* phylipName;
    QLineEdit* gdeName;
    QLineEdit* nexusName;
    QLineEdit* fastaName;
    
    FileNameDialogType type;
    AlignType alignType;
    QString title;
    
    QString filePath;
    QString profile2Path;
    
    auto_ptr<clustalw::AlignmentFileNames> outFileNames; 
    static const int MinLineEditWidth = 250;
    bool realignEndGapPen;  
};

#endif