diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 47d455dd55be855e4cc691c32f687f723d9247ee (patch) | |
tree | 52e236aaa2576bdb3840ebede26619692fed6d7d /kpovmodeler/pmblendmapmodifiersedit.h | |
download | tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.tar.gz tdegraphics-47d455dd55be855e4cc691c32f687f723d9247ee.zip |
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
Diffstat (limited to 'kpovmodeler/pmblendmapmodifiersedit.h')
-rw-r--r-- | kpovmodeler/pmblendmapmodifiersedit.h | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/kpovmodeler/pmblendmapmodifiersedit.h b/kpovmodeler/pmblendmapmodifiersedit.h new file mode 100644 index 00000000..eb4e40b5 --- /dev/null +++ b/kpovmodeler/pmblendmapmodifiersedit.h @@ -0,0 +1,100 @@ +//-*-C++-*- +/* +************************************************************************** + description + -------------------- + copyright : (C) 2002 by Luis 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 PMBLENDMAPMODIFIERSEDIT_H +#define PMBLENDMAPMODIFIERSEDIT_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "pmdialogeditbase.h" + +class PMBlendMapModifiers; +class PMVectorEdit; +class QComboBox; +class PMFloatEdit; +class PMIntEdit; +class QLabel; +class QCheckBox; +class QWidget; +class QLineEdit; +class QPushButton; + +/** + * Dialog edit class for @ref PMBlendMapModifiers. + */ +class PMBlendMapModifiersEdit : public PMDialogEditBase +{ + Q_OBJECT + typedef PMDialogEditBase Base; +public: + /** + * Creates a PMBlendMapModifiersEdit with parent and name + */ + PMBlendMapModifiersEdit( QWidget* parent, const char* name = 0 ); + + /** */ + virtual void displayObject( PMObject* o ); + + /** */ + virtual bool isDataValid( ); +protected: + /** */ + virtual void createTopWidgets( ); + /** */ + virtual void saveContents( ); + +protected slots: + /** + * Slot called whenever a new Wave Form type is selected. + */ + void slotTypeComboChanged( int c ); + /** + * Slot called when frequency is activated/deactivated. + */ + void slotFrequencyClicked( ); + /** + * Slot called when phase is activated/deactivated. + */ + void slotPhaseClicked( ); + /** + * Slot called when wave form is activated/deactivated. + */ + void slotWaveFormClicked( ); + +private: + /** + * Set's the combo box and enables/disables widgets. + */ + void setBlendMapModifiersType( int i ); + PMBlendMapModifiers* m_pDisplayedObject; + + QComboBox* m_pWaveTypeCombo; + PMFloatEdit* m_pFrequencyEdit; + PMFloatEdit* m_pPhaseEdit; + PMFloatEdit* m_pWaveExponentEdit; + QLabel* m_pWaveExponentLabel; + QCheckBox* m_pEnableFrequencyEdit; + QCheckBox* m_pEnablePhaseEdit; + QCheckBox* m_pEnableWaveFormEdit; +}; + + +#endif |