From 47d455dd55be855e4cc691c32f687f723d9247ee Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kpovmodeler/pmimagemapedit.h | 121 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 kpovmodeler/pmimagemapedit.h (limited to 'kpovmodeler/pmimagemapedit.h') diff --git a/kpovmodeler/pmimagemapedit.h b/kpovmodeler/pmimagemapedit.h new file mode 100644 index 00000000..86055ea2 --- /dev/null +++ b/kpovmodeler/pmimagemapedit.h @@ -0,0 +1,121 @@ +//-*-C++-*- +/* +************************************************************************** + description + -------------------- + copyright : (C) 2002 by Luis Passos Carvalho + email : lpassos@mail.telepac.pt +************************************************************************** + +************************************************************************** +* * +* 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 PMIMAGEMAPEDIT_H +#define PMIMAGEMAPEDIT_H + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include "pmpalettevalueedit.h" +#include "pmdialogeditbase.h" + +class PMImageMap; +class PMPaletteValue; +class PMVectorEdit; +class QComboBox; +class PMFloatEdit; +class PMIntEdit; +class QLabel; +class QCheckBox; +class QWidget; +class QLineEdit; +class QPushButton; + +/** + * Dialog edit class for @ref PMImageMap. + */ +class PMImageMapEdit : public PMDialogEditBase +{ + Q_OBJECT + typedef PMDialogEditBase Base; +public: + /** + * Creates a PMImageMapEdit with parent and name + */ + PMImageMapEdit( QWidget* parent, const char* name = 0 ); + + /** */ + virtual void displayObject( PMObject* o ); + + /** */ + virtual bool isDataValid( ); +protected: + /** */ + virtual void createTopWidgets( ); + /** */ + virtual void createBottomWidgets( ); + /** */ + virtual void saveContents( ); + /** */ + QValueList filters( ); + /** */ + QValueList transmits( ); + /** */ + void displayPaletteEntries( const QValueList& filters, + const QValueList& transmits ); + +private slots: + /** */ + void slotImageFileTypeChanged( int a ); + /** */ + void slotMapTypeChanged( int a ); + /** */ + void slotInterpolateTypeChanged( int a ); + /** */ + void slotImageFileNameChanged( const QString& a ); + /** */ + void slotImageFileBrowseClicked( ); + /** */ + void slotFilterAllClicked( ); + /** */ + void slotTransmitAllClicked( ); + /** */ + void slotAddFilterEntry( ); + /** */ + void slotRemoveFilterEntry( ); + /** */ + void slotAddTransmitEntry( ); + /** */ + void slotRemoveTransmitEntry( ); +private: + PMImageMap* m_pDisplayedObject; + QComboBox* m_pImageFileTypeEdit; + QLineEdit* m_pImageFileNameEdit; + QPushButton* m_pImageFileNameBrowse; + QCheckBox* m_pOnceEdit; + QComboBox* m_pMapTypeEdit; + QComboBox* m_pInterpolateTypeEdit; + QCheckBox* m_pEnableFilterAllEdit; + QCheckBox* m_pEnableTransmitAllEdit; + PMFloatEdit* m_pFilterAllEdit; + PMFloatEdit* m_pTransmitAllEdit; + QWidget* m_pFiltersWidget; + QWidget* m_pTransmitsWidget; + + QPtrList m_filterEntries; + QPtrList m_filterAddButtons; + QPtrList m_filterRemoveButtons; + QPtrList m_transmitEntries; + QPtrList m_transmitAddButtons; + QPtrList m_transmitRemoveButtons; +}; + +#endif -- cgit v1.2.1