summaryrefslogtreecommitdiffstats
path: root/kcharselect/main.cc
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit2bda8f7717adf28da4af0d34fb82f63d2868c31d (patch)
tree8d927b7b47a90c4adb646482a52613f58acd6f8c /kcharselect/main.cc
downloadtdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.tar.gz
tdeutils-2bda8f7717adf28da4af0d34fb82f63d2868c31d.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcharselect/main.cc')
-rw-r--r--kcharselect/main.cc49
1 files changed, 49 insertions, 0 deletions
diff --git a/kcharselect/main.cc b/kcharselect/main.cc
new file mode 100644
index 0000000..b3477cc
--- /dev/null
+++ b/kcharselect/main.cc
@@ -0,0 +1,49 @@
+/******************************************************************/
+/* KCharSelectDia - (c) by Reginald Stadlbauer 1999 */
+/* Author: Reginald Stadlbauer */
+/* E-Mail: reggie@kde.org */
+/******************************************************************/
+
+#include "kcharselectdia.h"
+
+#include <kapplication.h>
+#include <kconfig.h>
+#include <kcmdlineargs.h>
+#include <kaboutdata.h>
+#include <kglobalsettings.h>
+
+static const char description[] =
+ I18N_NOOP("KDE character selection utility");
+
+/*================================================================*/
+int main(int argc, char **argv)
+{
+ KAboutData aboutData( "kcharselect", I18N_NOOP("KCharSelect"),
+ version, description, KAboutData::License_GPL,
+ "(c) 1999, Reginald Stadlbauer");
+ aboutData.addAuthor("Reginald Stadlbauer",0, "reggie@kde.org");
+ aboutData.addCredit( "Nadeem Hasan", I18N_NOOP( "GUI cleanup and fixes" ),
+ "nhasan@kde.org" );
+ aboutData.addCredit( "Ryan Cumming", I18N_NOOP( "GUI cleanup and fixes" ),
+ "bodnar42@phalynx.dhs.org" );
+ aboutData.addCredit("Benjamin C. Meyer",I18N_NOOP("XMLUI conversion"),"ben+kcharselect@meyerhome.net");
+ KCmdLineArgs::init( argc, argv, &aboutData );
+
+ KApplication app;
+
+ KConfig *config = kapp->config();
+
+ config->setGroup("General");
+ QString font(config->readEntry("selectedFont", KGlobalSettings::generalFont().family()));
+ QChar c = QChar(static_cast<unsigned short>(config->readNumEntry("char",33)));
+ int tn = config->readNumEntry("table",0);
+ bool direction = config->readNumEntry("entryDirection",0);
+
+ KCharSelectDia *dia = new KCharSelectDia(0L,"",c,font,tn,direction);
+
+ app.setMainWidget(dia);
+ dia->show();
+
+ return app.exec();
+}
+