|
|
@ -46,7 +46,7 @@ static KCmdLineOptions options[] = {
|
|
|
|
static const char version[] = "1.4.2";
|
|
|
|
static const char version[] = "1.4.2";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void applyFilterArgs(KCmdLineArgs* args, FileViewController* controller) {
|
|
|
|
void applyFilterArgs(TDECmdLineArgs* args, FileViewController* controller) {
|
|
|
|
TQString filterType = args->getOption("filter-type");
|
|
|
|
TQString filterType = args->getOption("filter-type");
|
|
|
|
TQString filterName = args->getOption("filter-name");
|
|
|
|
TQString filterName = args->getOption("filter-name");
|
|
|
|
TQString filterFrom = args->getOption("filter-from");
|
|
|
|
TQString filterFrom = args->getOption("filter-from");
|
|
|
@ -126,15 +126,15 @@ KDE_EXPORT int kdemain (int argc, char *argv[]) {
|
|
|
|
aboutData.addCredit("Michael Spanier", I18N_NOOP("Patch for mouse navigation (v0.7.0)"), "mail@michael-spanier.de");
|
|
|
|
aboutData.addCredit("Michael Spanier", I18N_NOOP("Patch for mouse navigation (v0.7.0)"), "mail@michael-spanier.de");
|
|
|
|
aboutData.addCredit("Christian A Strømmen", I18N_NOOP("Integration in Konqueror folder context menu"), "number1@realityx.net");
|
|
|
|
aboutData.addCredit("Christian A Strømmen", I18N_NOOP("Integration in Konqueror folder context menu"), "number1@realityx.net");
|
|
|
|
|
|
|
|
|
|
|
|
KCmdLineArgs::init( argc, argv, &aboutData );
|
|
|
|
TDECmdLineArgs::init( argc, argv, &aboutData );
|
|
|
|
KCmdLineArgs::addCmdLineOptions( options );
|
|
|
|
TDECmdLineArgs::addCmdLineOptions( options );
|
|
|
|
|
|
|
|
|
|
|
|
KApplication kapplication;
|
|
|
|
KApplication kapplication;
|
|
|
|
|
|
|
|
|
|
|
|
if (kapplication.isRestored()) {
|
|
|
|
if (kapplication.isRestored()) {
|
|
|
|
RESTORE(MainWindow)
|
|
|
|
RESTORE(MainWindow)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
|
|
|
|
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
|
|
|
|
|
|
|
|
|
|
|
|
MainWindow *mainWindow = new MainWindow;
|
|
|
|
MainWindow *mainWindow = new MainWindow;
|
|
|
|
applyFilterArgs(args, mainWindow->fileViewController());
|
|
|
|
applyFilterArgs(args, mainWindow->fileViewController());
|
|
|
|