Changeset View
Changeset View
Standalone View
Standalone View
MainWindow/Window.cpp
| Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Line(s) | 269 | { | |||
|---|---|---|---|---|---|
| 271 | ImportExport::Import::imageImport( importUrl ); | 271 | ImportExport::Import::imageImport( importUrl ); | ||
| 272 | qCInfo(TimingLog) << "MainWindow: imageImport:" << timer.restart() << "ms."; | 272 | qCInfo(TimingLog) << "MainWindow: imageImport:" << timer.restart() << "ms."; | ||
| 273 | } else { | 273 | } else { | ||
| 274 | // I need to postpone this otherwise the tip dialog will not get focus on start up | 274 | // I need to postpone this otherwise the tip dialog will not get focus on start up | ||
| 275 | KTipDialog::showTip( this ); | 275 | KTipDialog::showTip( this ); | ||
| 276 | } | 276 | } | ||
| 277 | 277 | | |||
| 278 | Exif::Database::instance(); // Load the database | 278 | Exif::Database::instance(); // Load the database | ||
| 279 | qCInfo(TimingLog) << "MainWindow: Loading EXIF DB:" << timer.restart() << "ms."; | 279 | qCInfo(TimingLog) << "MainWindow: Loading Exif DB:" << timer.restart() << "ms."; | ||
| 280 | 280 | | |||
| 281 | if (!Options::the()->listen().isNull()) | 281 | if (!Options::the()->listen().isNull()) | ||
| 282 | RemoteControl::RemoteInterface::instance().listen(Options::the()->listen()); | 282 | RemoteControl::RemoteInterface::instance().listen(Options::the()->listen()); | ||
| 283 | else if ( Settings::SettingsData::instance()->listenForAndroidDevicesOnStartup()) | 283 | else if ( Settings::SettingsData::instance()->listenForAndroidDevicesOnStartup()) | ||
| 284 | RemoteControl::RemoteInterface::instance().listen(); | 284 | RemoteControl::RemoteInterface::instance().listen(); | ||
| 285 | 285 | | |||
| 286 | announceAndroidVersion(); | 286 | announceAndroidVersion(); | ||
| 287 | } | 287 | } | ||
| ▲ Show 20 Lines • Show All 589 Lines • ▼ Show 20 Line(s) | 871 | #endif //DOES_STILL_NOT_WORK_IN_KPA4 | |||
| 877 | 877 | | |||
| 878 | a = actionCollection()->addAction( QString::fromLatin1("rescan"), DB::ImageDB::instance(), SLOT(slotRescan()) ); | 878 | a = actionCollection()->addAction( QString::fromLatin1("rescan"), DB::ImageDB::instance(), SLOT(slotRescan()) ); | ||
| 879 | a->setText( i18n("Rescan for Images and Videos") ); | 879 | a->setText( i18n("Rescan for Images and Videos") ); | ||
| 880 | 880 | | |||
| 881 | QAction* recreateExif = actionCollection()->addAction( QString::fromLatin1( "recreateExifDB" ), this, SLOT(slotRecreateExifDB()) ); | 881 | QAction* recreateExif = actionCollection()->addAction( QString::fromLatin1( "recreateExifDB" ), this, SLOT(slotRecreateExifDB()) ); | ||
| 882 | recreateExif->setText( i18n("Recreate Exif Search Database") ); | 882 | recreateExif->setText( i18n("Recreate Exif Search Database") ); | ||
| 883 | 883 | | |||
| 884 | QAction* rereadExif = actionCollection()->addAction( QString::fromLatin1("reReadExifInfo"), this, SLOT(slotReReadExifInfo()) ); | 884 | QAction* rereadExif = actionCollection()->addAction( QString::fromLatin1("reReadExifInfo"), this, SLOT(slotReReadExifInfo()) ); | ||
| 885 | rereadExif->setText( i18n("Read EXIF Info From Files...") ); | 885 | rereadExif->setText( i18n("Read Exif Info from Files...") ); | ||
| 886 | 886 | | |||
| 887 | m_sortAllByDateAndTime = actionCollection()->addAction( QString::fromLatin1("sortAllImages"), this, SLOT(slotSortAllByDateAndTime()) ); | 887 | m_sortAllByDateAndTime = actionCollection()->addAction( QString::fromLatin1("sortAllImages"), this, SLOT(slotSortAllByDateAndTime()) ); | ||
| 888 | m_sortAllByDateAndTime->setText( i18n("Sort All by Date && Time") ); | 888 | m_sortAllByDateAndTime->setText( i18n("Sort All by Date && Time") ); | ||
| 889 | m_sortAllByDateAndTime->setEnabled(true); | 889 | m_sortAllByDateAndTime->setEnabled(true); | ||
| 890 | 890 | | |||
| 891 | m_AutoStackImages = actionCollection()->addAction( QString::fromLatin1( "autoStack" ), this, SLOT (slotAutoStackImages()) ); | 891 | m_AutoStackImages = actionCollection()->addAction( QString::fromLatin1( "autoStack" ), this, SLOT (slotAutoStackImages()) ); | ||
| 892 | m_AutoStackImages->setText( i18n("Automatically Stack Selected Images...") ); | 892 | m_AutoStackImages->setText( i18n("Automatically Stack Selected Images...") ); | ||
| 893 | 893 | | |||
| ▲ Show 20 Lines • Show All 1094 Lines • Show Last 20 Lines | |||||