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

# ChooseImporterCommonDialogC.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_CHOOSEIMPORTERCOMMONDIALOGC_H__
    00015 #define __DEMOPAJA_CHOOSEIMPORTERCOMMONDIALOGC_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_CHOOSEIMPORTERCOMMONDIALOG( 0, 1001 );
    00029
    00031
    00032     class ChooseImporterCommonDialogC : public CommonDialogI
    00033     {
    00034     public:
    00035
    00037         static ChooseImporterCommonDialogC* create_new();
    00038
    00040         virtual Edit::DataBlockI*           create();
    00041
    00043         virtual PluginClass::ClassIdC       get_class_id();
    00045         virtual bool                        do_modal();
    00046
    00047         virtual void                        set_file_name( const char* szFilename );
    00048         virtual void                        add_importer( const char* szDesc, PajaTypes::uint32 ui32ID );
    00049         virtual PajaTypes::int32            get_selected_importer() const;
    00050         virtual bool                        get_use_extension_to_all() const;
    00051
    00052     protected:
    00053         ChooseImporterCommonDialogC();
    00054         virtual ~ChooseImporterCommonDialogC();
    00055
    00056         struct ImporterS {
    00057             std::string         m_sDesc;
    00058             PajaTypes::uint32   m_ui32ID;
    00059         };
    00060         std::vector<ImporterS>  m_rImporters;
    00061         std::string             m_sFileName;
    00062         PajaTypes::int32        m_i32SelID;
    00063         bool                    m_bUseToAll;
    00064     };
    00065
    00066 };
    00067
    00068 #endif // __DEMOPAJA_COLORCOMMONDIALOGC_H__