588
591
actionCollection(),
589
592
"gamma_adjustment");
594
// -- Rating actions ---------------------------------------------------------------
596
m_0Star = new KAction(i18n("No Star"), CTRL+Key_0,
597
mView, SLOT(slotAssignRatingNoStar()),
598
actionCollection(), "imageview_ratenostar");
599
m_1Star = new KAction(i18n("One Star"), CTRL+Key_1,
600
mView, SLOT(slotAssignRatingOneStar()),
601
actionCollection(), "imageview_rateonestar");
602
m_2Star = new KAction(i18n("Two Star"), CTRL+Key_2,
603
mView, SLOT(slotAssignRatingTwoStar()),
604
actionCollection(), "imageview_ratetwostar");
605
m_3Star = new KAction(i18n("Three Star"), CTRL+Key_3,
606
mView, SLOT(slotAssignRatingThreeStar()),
607
actionCollection(), "imageview_ratethreestar");
608
m_4Star = new KAction(i18n("Four Star"), CTRL+Key_4,
609
mView, SLOT(slotAssignRatingFourStar()),
610
actionCollection(), "imageview_ratefourstar");
611
m_5Star = new KAction(i18n("Five Star"), CTRL+Key_5,
612
mView, SLOT(slotAssignRatingFiveStar()),
613
actionCollection(), "imageview_ratefivestar");
591
615
// -----------------------------------------------------------
593
617
KAction* findAction = KStdAction::find(mView, SLOT(slotNewQuickSearch()),
924
948
// Fetch the contents of the device. This is needed to make sure that the
925
949
// media:/device gets mounted.
926
KIO::ListJob *job = KIO::listDir(KURL(mCameraGuiPath), false, false);
927
KIO::NetAccess::synchronousRun(job,0);
950
// KIO::ListJob *job = KIO::listDir(KURL(mCameraGuiPath), false, false);
952
// cant use this, as this is not in old kdelibs
953
// KIO::NetAccess::synchronousRun(job,0);
929
955
QString cameraGuiPath = convertToLocalUrl(mCameraGuiPath);
930
956
kdDebug() << "IN: " << mCameraGuiPath << " OUT: " << cameraGuiPath << endl;
974
1000
// Ok, item is now mounted and not before, umount it.
975
1001
kdDebug() << "Trying to umount device" << endl;
976
1002
KIO::SimpleJob *job = KIO::unmount(convertToLocalUrl(mCameraGuiPath));
977
KIO::NetAccess::synchronousRun(job,0);
1003
// cant use this, as this is not in old kdelibs
1004
// KIO::NetAccess::synchronousRun(job,0);
1339
1366
void DigikamApp::populateThemes()
1341
ThemeEngine::instance()->scanThemes();
1342
QStringList themes(ThemeEngine::instance()->themeNames());
1368
Digikam::ThemeEngine::instance()->scanThemes();
1369
QStringList themes(Digikam::ThemeEngine::instance()->themeNames());
1344
1371
mThemeMenuAction->setItems(themes);
1345
1372
int index = themes.findIndex(mAlbumSettings->getCurrentTheme());
1346
1373
if (index == -1)
1347
1374
index = themes.findIndex(i18n("Default"));
1348
1375
mThemeMenuAction->setCurrentItem(index);
1349
ThemeEngine::instance()->slotChangeTheme(mThemeMenuAction->currentText());
1376
Digikam::ThemeEngine::instance()->slotChangeTheme(mThemeMenuAction->currentText());
1352
1379
void DigikamApp::slotChangeTheme(const QString& theme)
1354
1381
mAlbumSettings->setCurrentTheme(theme);
1355
ThemeEngine::instance()->slotChangeTheme(theme);
1382
Digikam::ThemeEngine::instance()->slotChangeTheme(theme);
1358
1385
void DigikamApp::updateDeleteTrashMenu()