summaryrefslogtreecommitdiffstats
path: root/kiconedit/knew.h
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2014-02-06 17:28:41 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2014-02-06 17:28:41 -0600
commit7ad9c00daa716f90e6b71af463c50eebc93f4250 (patch)
treef472270f99cab538f9db00a80e09d35f4d351d6b /kiconedit/knew.h
parent00af0dfbf87c62e25b5050102b7bd8df2ddcc1d0 (diff)
downloadtdegraphics-7ad9c00daa716f90e6b71af463c50eebc93f4250.tar.gz
tdegraphics-7ad9c00daa716f90e6b71af463c50eebc93f4250.zip
Finish renaming kiconedit->tdeiconedit.
Diffstat (limited to 'kiconedit/knew.h')
-rw-r--r--kiconedit/knew.h168
1 files changed, 0 insertions, 168 deletions
diff --git a/kiconedit/knew.h b/kiconedit/knew.h
deleted file mode 100644
index faae9684..00000000
--- a/kiconedit/knew.h
+++ /dev/null
@@ -1,168 +0,0 @@
-/*
- KDE Draw - a small graphics 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 __KNEWICON_H__
-#define __KNEWICON_H__
-
-#include <tqwidget.h>
-#include <tqpixmap.h>
-#include <tqimage.h>
-#include <tqlistbox.h>
-
-#include <kwizard.h>
-
-#include "kresize.h"
-
-class TDEIconListBox;
-class TDEIconTemplateContainer;
-class TQButtonGroup;
-class TQRadioButton;
-class TQGroupBox;
-
-struct TDEIconTemplate
-{
- TQString path;
- TQString title;
-};
-
-class TDEIconListBoxItem : public TQListBoxItem
-{
-public:
- TDEIconListBoxItem( TDEIconTemplate );
-
-
- const TQString path() { return icontemplate.path; }
- TDEIconTemplate& iconTemplate() { return icontemplate; }
- void reloadIcon();
-
-protected:
- virtual void paint( TQPainter * );
- virtual int height( const TQListBox * ) const;
- virtual int width( const TQListBox * ) const;
-private:
- TQPixmap pm;
- TDEIconTemplate icontemplate;
-};
-
-class TDEIconListBox : public TQListBox
-{
- Q_OBJECT
-
-public:
- TDEIconListBox( TQWidget *parent ) : TQListBox(parent) {} ;
- const TQString path(int idx) { return ((TDEIconListBoxItem*)item(idx))->path(); }
- TDEIconTemplate& iconTemplate(int idx) { return ((TDEIconListBoxItem*)item(idx))->iconTemplate(); }
-
-};
-
-class TDEIconTemplateContainer : public TQValueList<TDEIconTemplate>
-{
-public:
- static TDEIconTemplateContainer* self()
- {
- if (!instance)
- instance = new TDEIconTemplateContainer;
- return instance;
- }
-
- void save();
-
-private:
- static TDEIconTemplateContainer* instance;
-
- const TDEIconTemplateContainer operator = (const TDEIconTemplateContainer&);
- TDEIconTemplateContainer(const TDEIconTemplateContainer&);
-
- TDEIconTemplateContainer();
- ~TDEIconTemplateContainer();
-};
-
-class NewSelect : public TQWidget
-{
- Q_OBJECT
-
-public:
- NewSelect(TQWidget *parent);
- ~NewSelect();
-
-signals:
- void iconopenstyle(int);
-
-protected slots:
- void buttonClicked(int);
-
-protected:
- KWizard *wiz;
- TQButtonGroup *grp;
- TQRadioButton *rbscratch, *rbtempl;
-};
-
-class NewFromTemplate : public TQWidget
-{
- Q_OBJECT
-
-public:
- NewFromTemplate(TQWidget *parent);
- ~NewFromTemplate();
-
- const TQString path() { return TQString(templates->path(templates->currentItem())); }
-
-public slots:
- void checkSelection(int);
-
-protected:
- TDEIconListBox *templates;
- KWizard *wiz;
- TQGroupBox *grp;
-};
-
-class KNewIcon : public KWizard
-{
- Q_OBJECT
-
-public:
- KNewIcon(TQWidget *parent);
- ~KNewIcon();
-
- enum { Blank = 0, Template = 1};
- int openStyle() { return openstyle; }
- const TQString templatePath() { return TQString(templ->path()); }
- const TQSize templateSize() { return scratch->getSize(); }
-
-protected slots:
- void okClicked();
- void cancelClicked();
- void iconOpenStyle(int);
- void checkPage(bool);
- void checkPage(const TQString &);
-
-signals:
- void newicon(const TQSize);
- void newicon(const TQString);
-
-protected:
- NewSelect *select;
- KResizeWidget *scratch;
- NewFromTemplate *templ;
- TQWidget *act;
- int openstyle;
-};
-
-#endif // __KNEWICON_H__