// ライセンス: GPL2

//
// SKELETON::VIEWのファクトリー
//

#ifndef _VIEWFACTORY_H
#define _VIEWFACTORY_H

#include <gtkmm.h>
#include <string>

namespace SKELETON
{
    class View;
}

namespace CORE
{
    enum
    {
        VIEW_BBSLISTVIEW,
        VIEW_FAVORITELIST,
        VIEW_SELECTLIST,

        VIEW_BOARDVIEW,

        VIEW_ARTICLEVIEW,
        VIEW_ARTICLERES,
        VIEW_ARTICLENAME,
        VIEW_ARTICLEID,
        VIEW_ARTICLEBM,
        VIEW_ARTICLEURL,
        VIEW_ARTICLEREFER,
        VIEW_ARTICLEDRAWOUT,
        VIEW_ARTICLEPREVIEW,
        VIEW_ARTICLESEARCHCAHCE,

        VIEW_ARTICLEPOPUPHTML,
        VIEW_ARTICLEPOPUPRES,
        VIEW_ARTICLEPOPUPNAME,
        VIEW_ARTICLEPOPUPID,
        VIEW_ARTICLEPOPUPREFER,
        VIEW_ARTICLEPOPUPDRAWOUT,

        VIEW_IMAGEVIEW,
        VIEW_IMAGEICON,
        VIEW_IMAGEPOPUP,

        VIEW_MESSAGE,
        VIEW_NEWTHREAD,

        VIEW_NONE
    };

    struct VIEWFACTORY_ARGS
    {
        std::string arg1;
        std::string arg2;
        std::string arg3;
        std::string arg4;
    };
    
    SKELETON::View* ViewFactory( int type, const std::string& url, VIEWFACTORY_ARGS args = VIEWFACTORY_ARGS() );
}

#endif
