You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
159 lines
3.0 KiB
159 lines
3.0 KiB
15 years ago
|
/*
|
||
|
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__
|
||
|
|
||
15 years ago
|
#include <tqpixmap.h>
|
||
15 years ago
|
#include <kdialogbase.h>
|
||
|
|
||
|
#include "knew.h"
|
||
|
#include "utils.h"
|
||
|
#include "properties.h"
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
#include "config.h"
|
||
|
#endif
|
||
|
|
||
12 years ago
|
class TDEAccel;
|
||
15 years ago
|
class KKeyChooser;
|
||
|
class KColorButton;
|
||
|
class KURLRequester;
|
||
15 years ago
|
class TQComboBox;
|
||
15 years ago
|
|
||
|
class KTemplateEditDlg : public KDialogBase
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
15 years ago
|
KTemplateEditDlg(TQWidget *);
|
||
15 years ago
|
~KTemplateEditDlg() {};
|
||
|
|
||
15 years ago
|
TQString name();
|
||
|
TQString path();
|
||
|
void setName(const TQString &);
|
||
|
void setPath(const TQString &);
|
||
15 years ago
|
|
||
|
public slots:
|
||
|
void slotTextChanged();
|
||
|
|
||
|
protected:
|
||
15 years ago
|
TQLineEdit *ln_name;
|
||
15 years ago
|
KURLRequester *ln_path;
|
||
|
};
|
||
|
|
||
14 years ago
|
class KTemplateConfig : public TQWidget
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
15 years ago
|
KTemplateConfig(TQWidget*);
|
||
15 years ago
|
~KTemplateConfig();
|
||
|
|
||
|
void saveSettings();
|
||
|
|
||
|
protected slots:
|
||
|
void add();
|
||
|
void edit();
|
||
|
void remove();
|
||
|
void checkSelection(int);
|
||
|
|
||
|
protected:
|
||
12 years ago
|
TDEIconListBox *templates;
|
||
15 years ago
|
TQPushButton *btadd, *btedit, *btremove;
|
||
15 years ago
|
};
|
||
|
|
||
14 years ago
|
class KBackgroundConfig : public TQWidget
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
13 years ago
|
KBackgroundConfig(TQWidget *parent);
|
||
15 years ago
|
~KBackgroundConfig();
|
||
|
|
||
|
public slots:
|
||
|
void saveSettings();
|
||
15 years ago
|
void selectColor(const TQColor & newColor);
|
||
15 years ago
|
void selectPixmap();
|
||
|
|
||
|
signals:
|
||
|
|
||
|
protected slots:
|
||
|
void slotBackgroundMode(int);
|
||
|
|
||
|
protected:
|
||
|
KColorButton *btcolor;
|
||
15 years ago
|
TQPushButton *btpix;
|
||
|
TQPixmap pix;
|
||
|
TQString pixpath;
|
||
|
TQWidget::BackgroundMode bgmode;
|
||
|
TQLabel *lb_ex;
|
||
15 years ago
|
};
|
||
|
|
||
14 years ago
|
class KMiscConfig : public TQWidget
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
13 years ago
|
KMiscConfig(TQWidget *parent);
|
||
15 years ago
|
~KMiscConfig();
|
||
|
|
||
|
public slots:
|
||
|
void saveSettings();
|
||
|
void pasteMode(bool);
|
||
|
void showRulers(bool);
|
||
|
|
||
|
protected slots:
|
||
|
void slotTransparencyDisplayType(int);
|
||
|
|
||
|
signals:
|
||
|
|
||
|
protected:
|
||
|
bool pastemode, showrulers;
|
||
15 years ago
|
TQRadioButton *rbp;
|
||
15 years ago
|
KColorButton *m_solidColorButton;
|
||
|
KColorButton *m_checkerboardColor1Button;
|
||
|
KColorButton *m_checkerboardColor2Button;
|
||
15 years ago
|
TQComboBox *m_checkerboardSizeCombo;
|
||
15 years ago
|
};
|
||
|
|
||
12 years ago
|
class TDEIconConfig : public KDialogBase
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
|
||
|
public:
|
||
|
|
||
12 years ago
|
TDEIconConfig(TQWidget *parent);
|
||
|
~TDEIconConfig();
|
||
15 years ago
|
|
||
|
protected slots:
|
||
|
void slotApply();
|
||
|
void slotOk();
|
||
|
void finis();
|
||
|
|
||
|
protected:
|
||
|
KTemplateConfig *temps;
|
||
|
KBackgroundConfig *backs;
|
||
|
KMiscConfig *misc;
|
||
|
};
|
||
|
|
||
|
#endif //__KICONCONFIG_H__
|