You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.8 KiB
50 lines
1.8 KiB
15 years ago
|
/******************************************************************/
|
||
|
/* KCharSelectDia - (c) by Reginald Stadlbauer 1999 */
|
||
|
/* Author: Reginald Stadlbauer */
|
||
|
/* E-Mail: reggie@kde.org */
|
||
|
/******************************************************************/
|
||
|
|
||
|
#include "kcharselectdia.h"
|
||
|
|
||
12 years ago
|
#include <tdeapplication.h>
|
||
12 years ago
|
#include <tdeconfig.h>
|
||
12 years ago
|
#include <tdecmdlineargs.h>
|
||
|
#include <tdeaboutdata.h>
|
||
12 years ago
|
#include <tdeglobalsettings.h>
|
||
15 years ago
|
|
||
|
static const char description[] =
|
||
13 years ago
|
I18N_NOOP("TDE character selection utility");
|
||
15 years ago
|
|
||
|
/*================================================================*/
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
12 years ago
|
TDEAboutData aboutData( "kcharselect", I18N_NOOP("KCharSelect"),
|
||
|
version, description, TDEAboutData::License_GPL,
|
||
15 years ago
|
"(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");
|
||
12 years ago
|
TDECmdLineArgs::init( argc, argv, &aboutData );
|
||
15 years ago
|
|
||
12 years ago
|
TDEApplication app;
|
||
15 years ago
|
|
||
12 years ago
|
TDEConfig *config = kapp->config();
|
||
15 years ago
|
|
||
|
config->setGroup("General");
|
||
12 years ago
|
TQString font(config->readEntry("selectedFont", TDEGlobalSettings::generalFont().family()));
|
||
15 years ago
|
TQChar c = TQChar(static_cast<unsigned short>(config->readNumEntry("char",33)));
|
||
15 years ago
|
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();
|
||
|
}
|
||
|
|