blob: 5d5ce250a33a172b6cd1bf2a782e9c68dea10376 (
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
|
/***************************************************************************
printlabeldlg.h - description
-------------------
begin : Mon Jun 30 2003
copyright : (C) 2003 by Dominik Seichter
email : domseichter@web.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 PRINTLABELDLG_H
#define PRINTLABELDLG_H
#include <tqwidget.h>
#include <kdialogbase.h>
class TQCheckBox;
class KIntNumInput;
/**
*@author Dominik Seichter
*
* This small dialogs allows the user to select how many
* pages shall be printed and at which position the first
* label should be printed.
*/
class PrintLabelDlg : public KDialogBase {
Q_OBJECT
public:
PrintLabelDlg(TQWidget *parent=0, const char *name=0);
~PrintLabelDlg();
/**
* Allow/disallow the user to enter the
* numer of labels to print.
* @param b bool
*/
void setLabelsEnabled( bool b );
/**
* returns how many labels should be printed
*/
int labels() const;
/**
* returns at which position the first label shall be printed
* (counting from the first label being number 1 _not_ 0 )
*/
int position() const;
/**
* returns wether crop marks shall be printed or not
*/
bool border() const;
private:
KIntNumInput* numLabels;
KIntNumInput* numPos;
TQCheckBox* checkBorder;
};
#endif
|