summaryrefslogtreecommitdiffstats
path: root/kcharselect/main.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-08 12:30:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-08 13:14:02 +0900
commit4ff709afede2f49e6165ec52699acc98b0c928fc (patch)
tree15f0185f2e9f5334c4e87ca60772f5c0a583e9dd /kcharselect/main.cpp
parent30e5a0862d88b5bd524acfe35ced4b8c86c08d2a (diff)
downloadtdeutils-4ff709afede2f49e6165ec52699acc98b0c928fc.tar.gz
tdeutils-4ff709afede2f49e6165ec52699acc98b0c928fc.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 7ec5a57fc3f04526f36477e22066199372beb0ee)
Diffstat (limited to 'kcharselect/main.cpp')
-rw-r--r--kcharselect/main.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/kcharselect/main.cpp b/kcharselect/main.cpp
new file mode 100644
index 0000000..cb74af5
--- /dev/null
+++ b/kcharselect/main.cpp
@@ -0,0 +1,49 @@
+/******************************************************************/
+/* KCharSelectDia - (c) by Reginald Stadlbauer 1999 */
+/* Author: Reginald Stadlbauer */
+/* E-Mail: reggie@kde.org */
+/******************************************************************/
+
+#include "kcharselectdia.h"
+
+#include <tdeapplication.h>
+#include <tdeconfig.h>
+#include <tdecmdlineargs.h>
+#include <tdeaboutdata.h>
+#include <tdeglobalsettings.h>
+
+static const char description[] =
+ I18N_NOOP("TDE character selection utility");
+
+/*================================================================*/
+int main(int argc, char **argv)
+{
+ TDEAboutData aboutData( "kcharselect", I18N_NOOP("KCharSelect"),
+ version, description, TDEAboutData::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");
+ TDECmdLineArgs::init( argc, argv, &aboutData );
+
+ TDEApplication app;
+
+ TDEConfig *config = kapp->config();
+
+ config->setGroup("General");
+ TQString font(config->readEntry("selectedFont", TDEGlobalSettings::generalFont().family()));
+ TQChar c = TQChar(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();
+}
+