summaryrefslogtreecommitdiffstats
path: root/kbarcode/configdialog.h
blob: 02b31a789d49358c47d49749fa6ceab63d10dad2 (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
/***************************************************************************
                          configdialog.h  -  description
                             -------------------
    begin                : Fre Apr 26 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 CONFIGDIALOG_H
#define CONFIGDIALOG_H

#include <kdialogbase.h>

struct labelprinterdata;
struct mysqldata;
class KComboBox;
class KColorButton;
class KIntNumInput;
class KDoubleNumInput;
class KLineEdit;
class KPushButton;
class TQRadioButton;
class TQCheckBox;
class TQLabel;
class TQString;
class TQWidget;
class SqlWidget;
/** KBarcodes configuration dialog for advanced settings.
  */

class ConfigDialog : public KDialogBase  {
    Q_OBJECT
  TQ_OBJECT
    public:
        ConfigDialog( TQWidget* tqparent );
        ~ConfigDialog();

        KLineEdit* comment;
        KLineEdit* separator;
        KLineEdit* quote;
        KLineEdit* date;

        KIntNumInput* spinGrid;

        KComboBox* printerQuality;
        KComboBox* pageFormat;

        TQLabel* labelDate;

        TQCheckBox* checkNewDlg;
        TQCheckBox* checkUseCustomNo;

        KComboBox* combo1;
        KComboBox* combo2;
        KComboBox* combo3;

        KComboBox* onNewArticle1;
        KComboBox* onNewArticle2;
        KComboBox* onNewArticle3;
        KComboBox* onNewArticle4;

        KComboBox* onNewGroup1;
        KComboBox* onNewGroup2;
        KComboBox* onNewGroup3;
        KComboBox* onNewGroup4;

        KColorButton* colorGrid;

    private:
        void accept();

        void setupTab1();
        void setupTab2();
        void setupTab3();
        void setupTab4();
        void setupTab5();

    private slots:
        void updateDatePreview();

    protected:
        KComboBox* comboDataMatrix;

        SqlWidget* sqlwidget;
};

#endif