summaryrefslogtreecommitdiffstats
path: root/kbarcode/barcodeprinterdlg.h
blob: fe0e6e365f0d150b008fa013219a8a42b11574e6 (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
/***************************************************************************
                         barcodeprinterdlg.h  -  description
                             -------------------
    begin                : Fri Oct 01 2004
    copyright            : (C) 2004 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 BARCODEPRINTERDLG_H
#define BARCODEPRINTERDLG_H

#include <kdialogbase.h>

class KComboBox;
class KURLRequester;
class QCheckBox;
class QLabel;

/**
@author Dominik Seichter
*/
class BarcodePrinterDlg : public KDialogBase
{
    Q_OBJECT
    public:
        BarcodePrinterDlg(QWidget *parent = 0, const char *name = 0);
        ~BarcodePrinterDlg();

        int outputFormat() const;
        bool printToFile() const;
        const QString deviceName() const;
        const QString fileName() const;
        
    private slots:
        void enableControls();
        
    private:
        KComboBox* comboFormat;
        KComboBox* comboDevice;
        KURLRequester* requester;
        
        QCheckBox* checkFile;
        QLabel* label2;
        QLabel* label3;
};

#endif