blob: 31a8ec9b1553e40d8248503c882b60e0fd772171 (
plain)
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
|
/***************************************************************************
date : Mar 12 2007
version : 0.20
copyright : (C) 2005-2007 by Holger Danielsson
email : holger.danielsson@versanet.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef POSTSCRIPTDIALOG_H
#define POSTSCRIPTDIALOG_H
#include <kdialogbase.h>
#include <tqcombobox.h>
#include <tqcheckbox.h>
#include <tqspinbox.h>
#include <tqlineedit.h>
#include <tqstring.h>
#include <kprocess.h>
#include "kilelogwidget.h"
#include "kileoutputwidget.h"
#define PS_A5_EMPTY 0
#define PS_A5_DUPLICATE 1
#define PS_2xA5 2
#define PS_2xA5L 3
#define PS_4xA5 4
#define PS_A4_EMPTY 5
#define PS_A4_DUPLICATE 6
#define PS_2xA4 7
#define PS_2xA4L 8
#define PS_EVEN 9
#define PS_ODD 10
#define PS_EVEN_REV 11
#define PS_ODD_REV 12
#define PS_REVERSE 13
#define PS_COPY_SORTED 14
#define PS_COPY_UNSORTED 15
#define PS_PSTOPS_FREE 16
#define PS_PSSELECT_FREE 17
class KShellProcess;
namespace KileDialog
{
class PostscriptDialog : public KDialogBase
{
Q_OBJECT
public:
PostscriptDialog(TQWidget *parent,
const TQString &texfilename,const TQString &startdir,
const TQString &latexextensions,
KileWidget::LogMsg *log, KileWidget::Output *output);
~PostscriptDialog();
signals:
void output(const TQString &);
private slots:
void chooseInfile();
void chooseOutfile();
void comboboxChanged(int index);
void slotUser1();
void slotProcessOutput(KProcess*,char* buf,int len);
void slotProcessExited (KProcess *proc);
private:
bool checkParameter();
TQString buildTempfile();
TQString duplicateParameter(const TQString ¶m);
void showError(const TQString &text);
void execute();
TQLineEdit *m_edInfile, *m_edOutfile, *m_edParameter;
TQComboBox *m_cbTask;
TQCheckBox *m_cbView;
TQSpinBox *m_spCopies;
TQLabel *m_lbParameter;
TQString m_startdir;
KileWidget::LogMsg *m_log;
KileWidget::Output *m_output;
TQString m_tempfile;
TQString m_program;
TQString m_param;
KShellProcess* m_proc;
};
}
#endif
|