31
32
KCHMMainWindow * mainWindow;
33
35
int main( int argc, char ** argv )
35
37
#if defined (USE_KDE)
36
38
static KCmdLineOptions options[] =
38
{ "autotestmode", I18N_NOOP("Perform auto testing"), 0 },
39
{ "+[chmfile]", I18N_NOOP("A CHM file to show"), 0 },
40
{ "autotestmode", "Perform auto testing", 0 },
41
{ "shortautotestmode", "Perform short auto testing", 0 },
42
{ "+[chmfile]", "A CHM file to show", 0 },
40
43
/* { "search <query>", I18N_NOOP("'--search <query>' specifies the search query to search, and activate the first entry if found"), 0 },
41
44
{ "sindex <word>", I18N_NOOP("'--sindex <word>' specifies the word to find in index, and activate if found"), 0 },
42
45
{ "sbook <word>", I18N_NOOP("'--sbook <text>' specifies the word to find in bookmarks, and activate if found"), 0 },
43
46
*/ KCmdLineLastOption
46
KAboutData aboutdata ( APP_NAME,
49
KAboutData aboutdata ( "kchmviewer",
49
52
I18N_NOOP("CHM file viewer"),
50
53
KAboutData::License_GPL,
51
"(c) 2005 Georgy Yunaev, gyunaev@sourceforge.net",
54
"(c) 2005 George Yunaev, gyunaev@sourceforge.net",
53
56
"http://kchmviewer.sourceforge.net",
54
57
"gyunaev@sourceforge.net");
59
KLocale::setMainCatalogue( "kchmviewer" );
56
60
KCmdLineArgs::init (argc, argv, &aboutdata);
57
61
KCmdLineArgs::addCmdLineOptions( options );