summaryrefslogtreecommitdiffstats
path: root/kiconedit/kiconconfig.h
blob: df143c54489d460a07841d74ed326f8ab039629f (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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/*
    KDE Icon Editor - a small icon drawing program for the KDE.
    Copyright (C) 1998  Thomas Tanghus (tanghus@kde.org)

    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.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    General Public License for more details.

    You should have received a copy of the GNU Library General Public License
    along with this library; see the file COPYING.LIB.  If not, write to
    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
    Boston, MA 02110-1301, USA.
*/  

#ifndef __KICONCONFIG_H__
#define __KICONCONFIG_H__

#include <tqpixmap.h>
#include <kdialogbase.h>

#include "knew.h"
#include "utils.h"
#include "properties.h"

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

class KAccel;
class KKeyChooser;
class KColorButton;
class KURLRequester;
class TQComboBox;

class KTemplateEditDlg : public KDialogBase
{
  Q_OBJECT
  TQ_OBJECT
public:
  KTemplateEditDlg(TQWidget *);
  ~KTemplateEditDlg() {};

  TQString name();
  TQString path();
  void setName(const TQString &);
  void setPath(const TQString &);
  
public slots:
  void slotTextChanged();

protected:
  TQLineEdit *ln_name;
  KURLRequester *ln_path;
};

class KTemplateConfig : public TQWidget
{
  Q_OBJECT
  TQ_OBJECT
public:
  KTemplateConfig(TQWidget*);
  ~KTemplateConfig();

  void saveSettings();

protected slots:
  void add();
  void edit();
  void remove();
  void checkSelection(int);

protected:
  KIconListBox *templates;
  TQPushButton *btadd, *btedit, *btremove;
};

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

public slots:
  void saveSettings();
  void selectColor(const TQColor & newColor);
  void selectPixmap();

signals:

protected slots:
  void slotBackgroundMode(int);

protected:
  KColorButton *btcolor;
  TQPushButton *btpix;
  TQPixmap pix;
  TQString pixpath;
  TQWidget::BackgroundMode bgmode;
  TQLabel *lb_ex;
};

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

public slots:
  void saveSettings();
  void pasteMode(bool);
  void showRulers(bool);

protected slots:
  void slotTransparencyDisplayType(int);

signals:

protected:
  bool pastemode, showrulers;
  TQRadioButton *rbp;
  KColorButton *m_solidColorButton;
  KColorButton *m_checkerboardColor1Button;
  KColorButton *m_checkerboardColor2Button;
  TQComboBox *m_checkerboardSizeCombo;
};

class KIconConfig : public KDialogBase
{
  Q_OBJECT
  TQ_OBJECT

public:
  
  KIconConfig(TQWidget *tqparent);
  ~KIconConfig();

protected slots:
  void slotApply();
  void slotOk();
  void finis();

protected:
  KTemplateConfig *temps;
  KBackgroundConfig *backs;
  KMiscConfig *misc;
};

#endif //__KICONCONFIG_H__