summaryrefslogtreecommitdiffstats
path: root/kbarcode/barcodedialog.h
blob: ea1e603944e708ee2a8d85ee5494ade47014934d (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
/***************************************************************************
                          barcodedialog.h  -  description
                             -------------------
    begin                : Son Dez 29 2002
    copyright            : (C) 2002 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 BARCODEDIALOG_H
#define BARCODEDIALOG_H

#include <tqdialog.h>

class BarcodeCombo;
class BarcodeWidget;
class TDEAction;
class KColorButton;
class KMenuBar;
class TDEToolBar;
class KIntNumInput;
class KLineEdit;
class KPushButton;
class TDEPopupMenu;
class TQCheckBox;
class TQLabel;
class TQPixmap;
class TQVBoxLayout;
class TQHBoxLayout; 
class TQGridLayout;
class TokenProvider;

/** This class provides a dialog, where the user can create a single barcode
  * and print it, copy it to the clipboard or save it in various image formats.
  * This dialog can also be seen as a powerful replacement for e.g. xbarcode.
  *
  * All barcoding features are available for the user. This dialog allows also
  * to just experiment a little bit with barcodes.
  */
class BarCodeDialog : public TQDialog
{ 
    TQ_OBJECT
  

    public:
        BarCodeDialog( TQWidget* parent = 0, const char* name = 0 );
        ~BarCodeDialog();

    private:
        BarcodeWidget* widget;
        TokenProvider* m_token;

        KPushButton* buttonGenerate;
        KPushButton* buttonPrint;
        KPushButton* buttonSave;
        KPushButton* buttonCopy;
        KPushButton* buttonClose;
        TQLabel* barcode;

    private slots:
        void generate();
        void save();
        void print();
        void copy();

    protected:
        TQHBoxLayout* BarCodeDialogLayout;
        TQVBoxLayout* Layout6;
        TQVBoxLayout* Layout5;
};

#endif // BARCODEDIALOG_H