Tizen 2.0 Release
[framework/uifw/ise-engine-hangul.git] / skim / setupui / scimhangulsettingloader.cpp
1 /***************************************************************************
2  *   Copyright (C) 2003-2005 by liuspider                                          *
3  *   sharecash@163.net                                                     *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  ***************************************************************************/
10 #include "scimhangulsettingloader.h"
11
12 #include "scim_hangul.h"
13 #include "scim_hangul_ui.h"
14
15 #include <kgenericfactory.h>
16 #include <klocale.h>
17
18 typedef KGenericFactory<ScimHangulSettingLoader> ScimHangulSettingLoaderFactory;
19
20 K_EXPORT_COMPONENT_FACTORY( kcm_skimplugin_scim_hangul, 
21     ScimHangulSettingLoaderFactory( "kcm_skimplugin_scim_hangul" ) )
22
23 class ScimHangulSettingLoader::ScimHangulSettingLoaderPrivate {
24 public:
25     ScimHangulSetting * ui;
26 };
27
28 ScimHangulSettingLoader::ScimHangulSettingLoader(QWidget *parent, 
29   const char */*name*/, const QStringList &args)
30  : KAutoCModule( ScimHangulSettingLoaderFactory::instance(), 
31      parent, args, ScimHangulConfig::self() ),
32    d(new ScimHangulSettingLoaderPrivate)
33 {
34     KGlobal::locale()->insertCatalogue("skim-scim-hangul");
35     d->ui = new ScimHangulSetting(this);
36     setMainWidget(d->ui);
37 }
38
39 ScimHangulSettingLoader::~ScimHangulSettingLoader()
40 {
41     KGlobal::locale()->removeCatalogue("skim-scim-hangul");
42 }
43 #include "scimhangulsettingloader.moc"