diff options
Diffstat (limited to 'kpovmodeler/pmquickcoloredit.h')
-rw-r--r-- | kpovmodeler/pmquickcoloredit.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/kpovmodeler/pmquickcoloredit.h b/kpovmodeler/pmquickcoloredit.h new file mode 100644 index 00000000..78759a88 --- /dev/null +++ b/kpovmodeler/pmquickcoloredit.h @@ -0,0 +1,65 @@ +//-*-C++-*- +/* +************************************************************************** + description + -------------------- + copyright : (C) 2000-2001 by Leonardo Skorianez + email : lsk@if.ufrj.br +************************************************************************** + +************************************************************************** +* * +* 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 PMQUICKCOLOREDIT_H +#define PMQUICKCOLOREDIT_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include <kcolordialog.h> + +#include "pmdialogeditbase.h" + +class PMQuickColor; +class PMColorEdit; + +/** + * Dialog edit class for @ref PMQuickColor. + */ +class PMQuickColorEdit : public PMDialogEditBase +{ + Q_OBJECT + typedef PMDialogEditBase Base; +public: + /** + * Creates a PMQuickColorEdit with parent and name + */ + PMQuickColorEdit( QWidget* parent, const char* name = 0 ); + + /** */ + virtual void displayObject( PMObject* o ); + + /** */ + virtual bool isDataValid( ); + +protected: + /** */ + virtual void createTopWidgets( ); + /** */ + virtual void saveContents( ); + +private: + PMQuickColor* m_pDisplayedObject; + PMColorEdit* m_pColorEdit; +}; + + +#endif |