Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ColorCommonDialogC.h

00001 //-------------------------------------------------------------------------
00002 //
00003 // File:        ColorCommonDialogC.h
00004 // Desc:        Color common dialog.
00005 // Author:      memon <memon@inside.org>
00006 //
00007 //-------------------------------------------------------------------------
00008 //  Copyright (c) 2000 Moppi Productions. All Rights Reserved.
00009 //  This file is part of Moppi Demopaja SDK. For conditions of 
00010 //  distribution and use, see the accompanying license.txt file.
00011 //  http://moppi.inside.org/demopaja/
00012 //-------------------------------------------------------------------------
00013 
00014 #ifndef __DEMOPAJA_COLORCOMMONDIALOGC_H__
00015 #define __DEMOPAJA_COLORCOMMONDIALOGC_H__
00016 
00017 #include <windows.h>
00018 #include "PajaTypes.h"
00019 #include "ColorC.h"
00020 #include "ClassIdC.h"
00021 #include "DataBlockI.h"
00022 #include "CommonDialogI.h"
00023 #include <string>
00024 
00025 namespace PajaSystem {
00026 
00028     const PluginClass::ClassIdC     CLASS_COLORCOMMONDIALOG( 0, 1000 );
00029 
00031 
00053     class ColorCommonDialogC : public CommonDialogI
00054     {
00055     public:
00056 
00058         static ColorCommonDialogC*          create_new();
00059 
00061         virtual Edit::DataBlockI*           create();
00062 
00064         virtual PluginClass::ClassIdC       get_class_id();
00066         virtual bool                        do_modal();
00067 
00069         virtual void                        set_parent_wnd( HWND hParent );
00071         virtual void                        set_caption( const char* szName );
00073         virtual void                        set_color( const PajaTypes::ColorC& rCol );
00075         virtual const PajaTypes::ColorC&    get_color() const;
00076 
00077     protected:
00078         ColorCommonDialogC();
00079         virtual ~ColorCommonDialogC();
00080 
00081         PajaTypes::ColorC   m_rColor;
00082         std::string         m_sCaption;
00083         HWND                m_hWndParent;
00084     };
00085 
00086 };
00087 
00088 #endif // __DEMOPAJA_COLORCOMMONDIALOGC_H__

Moppi Demopaja SDK Documentation -- Copyright © 2000-2002 Moppi Productions