File: WritePostscriptFile.h

package info (click to toggle)
clustalx 2.1%2Blgpl-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,332 kB
  • ctags: 3,424
  • sloc: cpp: 40,050; sh: 163; xml: 102; makefile: 11
file content (92 lines) | stat: -rw-r--r-- 2,035 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
/**
 * Changes: 
 * 12-4-07, Mark Larkin, Removed destructor. No need to delete QObjects. 
 */
#ifndef WRITEPOSTSCRIPTFILE_H
#define WRITEPOSTSCRIPTFILE_H

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

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

class WritePostscriptFile : public QDialog
{
    Q_OBJECT
public:
    WritePostscriptFile(QString inputFileName, int type, int lengthLongest);
    QString getFileName(){return fileName;}
    PostscriptFileParams getParams();
protected:


private slots:
    void accept();
    void cancel();
    void browse();
    void changeBlockSize();
private:
    void setUpLayout();
    void setFileBox(); 
    void setUpOtherParams();   
    int getSuggestedBlockSize();
    QVBoxLayout* mainLayout;
    QGridLayout* fileLayout;
    QGridLayout* otherParamLayout;
    
    QPushButton* okButton;
    QPushButton* cancelButton;
    QPushButton* browseButton;
    
    QGroupBox* otherParams;
    QGroupBox* fileBox;
    
    QComboBox* pageSize;
    QComboBox* orientation;
    QComboBox* printHeader;
    QComboBox* printQualityCurve;
    QComboBox* printRuler;
    QComboBox* printResidueNumbers;
    QComboBox* resizeToFit;
    
    QLabel* writeSeqsToLabel;
    QLabel* psColorsFileLabel;
    QLabel* pageSizeLabel;
    QLabel* orientationLabel;
    QLabel* printHeaderLabel;
    QLabel* printQualityCurveLabel;
    QLabel* printRulerLabel;
    QLabel* printResidueNumbersLabel;
    QLabel* resizeToFitLabel;
    QLabel* printFromPosLabel;
    QLabel* printToPosLabel;
    QLabel* useBlockLengthLabel;
    
    QLineEdit* writeSeqsTo;
    QLineEdit* psColorsFile;
    QLineEdit* printFromPos;
    QLineEdit* printToPos;
    QLineEdit* useBlockLength;
    
    int type;
    QString title;
    QString label;
    
    QString fileName;
    
    int blockLength;
    int lengthLongestSeq;
    auto_ptr<PostscriptFileParams> params;
    
};

#endif