diff options
author | Darrell Anderson <[email protected]> | 2014-02-06 17:28:41 -0600 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2014-02-06 17:28:41 -0600 |
commit | 7ad9c00daa716f90e6b71af463c50eebc93f4250 (patch) | |
tree | f472270f99cab538f9db00a80e09d35f4d351d6b /tdeiconedit/tdeiconconfig.h | |
parent | 00af0dfbf87c62e25b5050102b7bd8df2ddcc1d0 (diff) | |
download | tdegraphics-7ad9c00daa716f90e6b71af463c50eebc93f4250.tar.gz tdegraphics-7ad9c00daa716f90e6b71af463c50eebc93f4250.zip |
Finish renaming kiconedit->tdeiconedit.
Diffstat (limited to 'tdeiconedit/tdeiconconfig.h')
-rw-r--r-- | tdeiconedit/tdeiconconfig.h | 158 |
1 files changed, 158 insertions, 0 deletions
diff --git a/tdeiconedit/tdeiconconfig.h b/tdeiconedit/tdeiconconfig.h new file mode 100644 index 00000000..62f7938c --- /dev/null +++ b/tdeiconedit/tdeiconconfig.h @@ -0,0 +1,158 @@ +/* + KDE Icon Editor - a small icon drawing program for the KDE. + Copyright (C) 1998 Thomas Tanghus ([email protected]) + + 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 TDEAccel; +class KKeyChooser; +class KColorButton; +class KURLRequester; +class TQComboBox; + +class KTemplateEditDlg : public KDialogBase +{ + Q_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 + +public: + KTemplateConfig(TQWidget*); + ~KTemplateConfig(); + + void saveSettings(); + +protected slots: + void add(); + void edit(); + void remove(); + void checkSelection(int); + +protected: + TDEIconListBox *templates; + TQPushButton *btadd, *btedit, *btremove; +}; + +class KBackgroundConfig : public TQWidget +{ + Q_OBJECT + +public: + KBackgroundConfig(TQWidget *parent); + ~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 + +public: + KMiscConfig(TQWidget *parent); + ~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 TDEIconConfig : public KDialogBase +{ + Q_OBJECT + + +public: + + TDEIconConfig(TQWidget *parent); + ~TDEIconConfig(); + +protected slots: + void slotApply(); + void slotOk(); + void finis(); + +protected: + KTemplateConfig *temps; + KBackgroundConfig *backs; + KMiscConfig *misc; +}; + +#endif //__KICONCONFIG_H__ |