7
7
* Description : mics configuration setup tab
9
9
* Copyright (C) 2004 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
10
* Copyright (C) 2005-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
10
* Copyright (C) 2005-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
12
12
* This program is free software; you can redistribute it
13
13
* and/or modify it under the terms of the GNU General
78
78
SetupMisc::SetupMisc(QWidget* parent)
79
79
: QScrollArea(parent), d(new SetupMiscPriv)
81
QWidget *panel = new QWidget(viewport());
81
QWidget* panel = new QWidget(viewport());
83
83
setWidgetResizable(true);
85
QVBoxLayout *layout = new QVBoxLayout(panel);
85
QVBoxLayout* layout = new QVBoxLayout(panel);
86
86
d->showTrashDeleteDialogCheck = new QCheckBox(i18n("Confirm when moving items to the &trash."), panel);
87
87
d->showPermanentDeleteDialogCheck = new QCheckBox(i18n("Confirm when permanently deleting items."), panel);
88
88
d->sidebarApplyDirectlyCheck = new QCheckBox(i18n("Do not confirm when applying changes in the &right sidebar."), panel);
89
89
d->showSplashCheck = new QCheckBox(i18n("&Show splash screen at startup."), panel);
90
90
d->scanAtStart = new QCheckBox(i18n("&Scan for new items at startup (makes startup slower.)"), panel);
92
KHBox *tabStyleHbox = new KHBox(panel);
92
KHBox* tabStyleHbox = new KHBox(panel);
93
93
d->sidebarTypeLabel = new QLabel(i18n("Sidebar tab title:"), tabStyleHbox);
94
94
d->sidebarType = new KComboBox(tabStyleHbox);
95
95
d->sidebarType->addItem(i18n("Only For Active Tab"), 0);
96
96
d->sidebarType->addItem(i18n("For All Tabs"), 1);
97
97
d->sidebarType->setToolTip(i18n("Set this option to configure how sidebar tab titles are visible."));
99
KHBox *stringComparisonHbox = new KHBox(panel);
99
KHBox* stringComparisonHbox = new KHBox(panel);
100
100
d->stringComparisonTypeLabel = new QLabel(i18n("String comparison type:"), stringComparisonHbox);
101
101
d->stringComparisonType = new KComboBox(stringComparisonHbox);
102
102
d->stringComparisonType->addItem(i18nc("method to compare strings", "Natural"), AlbumSettings::Natural);
103
103
d->stringComparisonType->addItem(i18nc("method to compare strings", "Normal"), AlbumSettings::Normal);
104
d->stringComparisonType->setToolTip(i18n("Sets the way in which strings are compared inside digiKam. "
104
d->stringComparisonType->setToolTip(i18n("<qt>Sets the way in which strings are compared inside digiKam. "
105
105
"This eg. influences the sorting of the tree views.<br/>"
106
106
"<b>Natural</b> tries to compare strings in a way that regards some normal conventions "
107
107
"and will eg. result in sorting numbers naturally even if they have a different number of digits.<br/>"
108
108
"<b>Normal</b> uses a more technical approach. "
109
109
"Use this style if you eg. want to entitle albums with ISO dates (201006 or 20090523) "
110
"and the albums should be sorted according to these dates."));
110
"and the albums should be sorted according to these dates.</qt>"));
112
112
// --------------------------------------------------------