summaryrefslogtreecommitdiffstats
path: root/digikam/utilities/setup/setupgeneral.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/utilities/setup/setupgeneral.cpp')
-rw-r--r--digikam/utilities/setup/setupgeneral.cpp158
1 files changed, 79 insertions, 79 deletions
diff --git a/digikam/utilities/setup/setupgeneral.cpp b/digikam/utilities/setup/setupgeneral.cpp
index 45cfff4..9ff04fd 100644
--- a/digikam/utilities/setup/setupgeneral.cpp
+++ b/digikam/utilities/setup/setupgeneral.cpp
@@ -22,22 +22,22 @@
*
* ============================================================ */
-// Qt includes.
-
-#include <qlayout.h>
-#include <qcombobox.h>
-#include <qvbuttongroup.h>
-#include <qvgroupbox.h>
-#include <qhgroupbox.h>
-#include <qgroupbox.h>
-#include <qradiobutton.h>
-#include <qcheckbox.h>
-#include <qlabel.h>
-#include <qdir.h>
-#include <qlistbox.h>
-#include <qwhatsthis.h>
-#include <qtooltip.h>
-#include <qfileinfo.h>
+// TQt includes.
+
+#include <tqlayout.h>
+#include <tqcombobox.h>
+#include <tqvbuttongroup.h>
+#include <tqvgroupbox.h>
+#include <tqhgroupbox.h>
+#include <tqgroupbox.h>
+#include <tqradiobutton.h>
+#include <tqcheckbox.h>
+#include <tqlabel.h>
+#include <tqdir.h>
+#include <tqlistbox.h>
+#include <tqwhatsthis.h>
+#include <tqtooltip.h>
+#include <tqfileinfo.h>
// KDE includes.
@@ -79,134 +79,134 @@ public:
showFolderTreeViewItemsCount = 0;
}
- QLabel *iconTreeThumbLabel;
+ TQLabel *iconTreeThumbLabel;
- QCheckBox *iconShowNameBox;
- QCheckBox *iconShowSizeBox;
- QCheckBox *iconShowDateBox;
- QCheckBox *iconShowModDateBox;
- QCheckBox *iconShowResolutionBox;
- QCheckBox *iconShowCommentsBox;
- QCheckBox *iconShowTagsBox;
- QCheckBox *iconShowRatingBox;
- QCheckBox *previewLoadFullImageSize;
- QCheckBox *showFolderTreeViewItemsCount;
+ TQCheckBox *iconShowNameBox;
+ TQCheckBox *iconShowSizeBox;
+ TQCheckBox *iconShowDateBox;
+ TQCheckBox *iconShowModDateBox;
+ TQCheckBox *iconShowResolutionBox;
+ TQCheckBox *iconShowCommentsBox;
+ TQCheckBox *iconShowTagsBox;
+ TQCheckBox *iconShowRatingBox;
+ TQCheckBox *previewLoadFullImageSize;
+ TQCheckBox *showFolderTreeViewItemsCount;
- QComboBox *iconTreeThumbSize;
- QComboBox *rightClickActionComboBox;
+ TQComboBox *iconTreeThumbSize;
+ TQComboBox *rightClickActionComboBox;
KURLRequester *albumPathEdit;
KDialogBase *mainDialog;
};
-SetupGeneral::SetupGeneral(QWidget* parent, KDialogBase* dialog )
- : QWidget(parent)
+SetupGeneral::SetupGeneral(TQWidget* tqparent, KDialogBase* dialog )
+ : TQWidget(tqparent)
{
d = new SetupGeneralPriv;
d->mainDialog = dialog;
- QVBoxLayout *layout = new QVBoxLayout( parent, 0, KDialog::spacingHint() );
+ TQVBoxLayout *tqlayout = new TQVBoxLayout( tqparent, 0, KDialog::spacingHint() );
// --------------------------------------------------------
- QHGroupBox *albumPathBox = new QHGroupBox(parent);
+ TQHGroupBox *albumPathBox = new TQHGroupBox(tqparent);
albumPathBox->setTitle(i18n("Album &Library Path"));
d->albumPathEdit = new KURLRequester(albumPathBox);
d->albumPathEdit->setMode(KFile::Directory | KFile::LocalOnly | KFile::ExistingOnly);
- QToolTip::add( d->albumPathEdit, i18n("<p>Here you can set the main path to the digiKam album "
+ TQToolTip::add( d->albumPathEdit, i18n("<p>Here you can set the main path to the digiKam album "
"library in your computer."
"<p>Write access is required for this path and do not use a "
"remote path here, like an NFS mounted file system."));
- connect(d->albumPathEdit, SIGNAL(urlSelected(const QString &)),
- this, SLOT(slotChangeAlbumPath(const QString &)));
+ connect(d->albumPathEdit, TQT_SIGNAL(urlSelected(const TQString &)),
+ this, TQT_SLOT(slotChangeAlbumPath(const TQString &)));
- connect(d->albumPathEdit, SIGNAL(textChanged(const QString&)),
- this, SLOT(slotPathEdited(const QString&)) );
+ connect(d->albumPathEdit, TQT_SIGNAL(textChanged(const TQString&)),
+ this, TQT_SLOT(slotPathEdited(const TQString&)) );
- layout->addWidget(albumPathBox);
+ tqlayout->addWidget(albumPathBox);
// --------------------------------------------------------
- QVGroupBox *iconTextGroup = new QVGroupBox(i18n("Thumbnail Information"), parent);
+ TQVGroupBox *iconTextGroup = new TQVGroupBox(i18n("Thumbnail Information"), tqparent);
- d->iconShowNameBox = new QCheckBox(i18n("Show file &name"), iconTextGroup);
- QWhatsThis::add( d->iconShowNameBox, i18n("<p>Set this option to show the file name below the image thumbnail."));
+ d->iconShowNameBox = new TQCheckBox(i18n("Show file &name"), iconTextGroup);
+ TQWhatsThis::add( d->iconShowNameBox, i18n("<p>Set this option to show the file name below the image thumbnail."));
- d->iconShowSizeBox = new QCheckBox(i18n("Show file si&ze"), iconTextGroup);
- QWhatsThis::add( d->iconShowSizeBox, i18n("<p>Set this option to show the file size below the image thumbnail."));
+ d->iconShowSizeBox = new TQCheckBox(i18n("Show file si&ze"), iconTextGroup);
+ TQWhatsThis::add( d->iconShowSizeBox, i18n("<p>Set this option to show the file size below the image thumbnail."));
- d->iconShowDateBox = new QCheckBox(i18n("Show camera creation &date"), iconTextGroup);
- QWhatsThis::add( d->iconShowDateBox, i18n("<p>Set this option to show the camera creation date "
+ d->iconShowDateBox = new TQCheckBox(i18n("Show camera creation &date"), iconTextGroup);
+ TQWhatsThis::add( d->iconShowDateBox, i18n("<p>Set this option to show the camera creation date "
"below the image thumbnail."));
- d->iconShowModDateBox = new QCheckBox(i18n("Show file &modification date"), iconTextGroup);
- QWhatsThis::add( d->iconShowModDateBox, i18n("<p>Set this option to show the file modification date "
+ d->iconShowModDateBox = new TQCheckBox(i18n("Show file &modification date"), iconTextGroup);
+ TQWhatsThis::add( d->iconShowModDateBox, i18n("<p>Set this option to show the file modification date "
"below the image thumbnail."));
- d->iconShowCommentsBox = new QCheckBox(i18n("Show digiKam &captions"), iconTextGroup);
- QWhatsThis::add( d->iconShowCommentsBox, i18n("<p>Set this option to show the digiKam captions "
+ d->iconShowCommentsBox = new TQCheckBox(i18n("Show digiKam &captions"), iconTextGroup);
+ TQWhatsThis::add( d->iconShowCommentsBox, i18n("<p>Set this option to show the digiKam captions "
"below the image thumbnail."));
- d->iconShowTagsBox = new QCheckBox(i18n("Show digiKam &tags"), iconTextGroup);
- QWhatsThis::add( d->iconShowTagsBox, i18n("<p>Set this option to show the digiKam tags "
+ d->iconShowTagsBox = new TQCheckBox(i18n("Show digiKam &tags"), iconTextGroup);
+ TQWhatsThis::add( d->iconShowTagsBox, i18n("<p>Set this option to show the digiKam tags "
"below the image thumbnail."));
- d->iconShowRatingBox = new QCheckBox(i18n("Show digiKam &rating"), iconTextGroup);
- QWhatsThis::add( d->iconShowRatingBox, i18n("<p>Set this option to show the digiKam rating "
+ d->iconShowRatingBox = new TQCheckBox(i18n("Show digiKam &rating"), iconTextGroup);
+ TQWhatsThis::add( d->iconShowRatingBox, i18n("<p>Set this option to show the digiKam rating "
"below the image thumbnail."));
- d->iconShowResolutionBox = new QCheckBox(i18n("Show ima&ge dimensions (warning: slow)"), iconTextGroup);
- QWhatsThis::add( d->iconShowResolutionBox, i18n("<p>Set this option to show the image size in pixels "
+ d->iconShowResolutionBox = new TQCheckBox(i18n("Show ima&ge dimensions (warning: slow)"), iconTextGroup);
+ TQWhatsThis::add( d->iconShowResolutionBox, i18n("<p>Set this option to show the image size in pixels "
"below the image thumbnail."));
- layout->addWidget(iconTextGroup);
+ tqlayout->addWidget(iconTextGroup);
// --------------------------------------------------------
- QVGroupBox *interfaceOptionsGroup = new QVGroupBox(i18n("Interface Options"), parent);
+ TQVGroupBox *interfaceOptionsGroup = new TQVGroupBox(i18n("Interface Options"), tqparent);
interfaceOptionsGroup->setColumnLayout(0, Qt::Vertical );
- interfaceOptionsGroup->layout()->setMargin(KDialog::marginHint());
- QGridLayout* ifaceSettingsLayout = new QGridLayout(interfaceOptionsGroup->layout(), 3, 4, KDialog::spacingHint());
+ interfaceOptionsGroup->tqlayout()->setMargin(KDialog::marginHint());
+ TQGridLayout* ifaceSettingsLayout = new TQGridLayout(interfaceOptionsGroup->tqlayout(), 3, 4, KDialog::spacingHint());
- d->iconTreeThumbLabel = new QLabel(i18n("Sidebar thumbnail size:"), interfaceOptionsGroup);
- d->iconTreeThumbSize = new QComboBox(false, interfaceOptionsGroup);
+ d->iconTreeThumbLabel = new TQLabel(i18n("Sidebar thumbnail size:"), interfaceOptionsGroup);
+ d->iconTreeThumbSize = new TQComboBox(false, interfaceOptionsGroup);
d->iconTreeThumbSize->insertItem("16");
d->iconTreeThumbSize->insertItem("22");
d->iconTreeThumbSize->insertItem("32");
d->iconTreeThumbSize->insertItem("48");
- QToolTip::add( d->iconTreeThumbSize, i18n("<p>Set this option to configure the size "
+ TQToolTip::add( d->iconTreeThumbSize, i18n("<p>Set this option to configure the size "
"in pixels of the thumbnails in digiKam's sidebars. "
"This option will take effect when you restart "
"digiKam."));
ifaceSettingsLayout->addMultiCellWidget(d->iconTreeThumbLabel, 0, 0, 0, 0);
ifaceSettingsLayout->addMultiCellWidget(d->iconTreeThumbSize, 0, 0, 1, 1);
- d->showFolderTreeViewItemsCount = new QCheckBox(i18n("Show count of items in all tree-view"), interfaceOptionsGroup);
+ d->showFolderTreeViewItemsCount = new TQCheckBox(i18n("Show count of items in all tree-view"), interfaceOptionsGroup);
ifaceSettingsLayout->addMultiCellWidget(d->showFolderTreeViewItemsCount, 1, 1, 0, 4);
- QLabel *rightClickLabel = new QLabel(i18n("Thumbnail click action:"), interfaceOptionsGroup);
- d->rightClickActionComboBox = new QComboBox(false, interfaceOptionsGroup);
+ TQLabel *rightClickLabel = new TQLabel(i18n("Thumbnail click action:"), interfaceOptionsGroup);
+ d->rightClickActionComboBox = new TQComboBox(false, interfaceOptionsGroup);
d->rightClickActionComboBox->insertItem(i18n("Show embedded preview"), AlbumSettings::ShowPreview);
d->rightClickActionComboBox->insertItem(i18n("Start image editor"), AlbumSettings::StartEditor);
- QToolTip::add( d->rightClickActionComboBox, i18n("<p>Here, choose what should happen when you "
+ TQToolTip::add( d->rightClickActionComboBox, i18n("<p>Here, choose what should happen when you "
"click on a thumbnail."));
ifaceSettingsLayout->addMultiCellWidget(rightClickLabel, 2 ,2, 0, 0);
ifaceSettingsLayout->addMultiCellWidget(d->rightClickActionComboBox, 2, 2, 1, 4);
- d->previewLoadFullImageSize = new QCheckBox(i18n("Embedded preview loads full image size"), interfaceOptionsGroup);
- QWhatsThis::add( d->previewLoadFullImageSize, i18n("<p>Set this option to load the full image size "
+ d->previewLoadFullImageSize = new TQCheckBox(i18n("Embedded preview loads full image size"), interfaceOptionsGroup);
+ TQWhatsThis::add( d->previewLoadFullImageSize, i18n("<p>Set this option to load the full image size "
"with an embedded preview, instead a reduced one. Because this option will take more time "
"to load images, use it only if you have a fast computer."));
ifaceSettingsLayout->addMultiCellWidget(d->previewLoadFullImageSize, 3, 3, 0, 4);
- layout->addWidget(interfaceOptionsGroup);
+ tqlayout->addWidget(interfaceOptionsGroup);
// --------------------------------------------------------
- layout->addStretch();
+ tqlayout->addStretch();
readSettings();
adjustSize();
@@ -274,15 +274,15 @@ void SetupGeneral::readSettings()
d->showFolderTreeViewItemsCount->setChecked(settings->getShowFolderTreeViewItemsCount());
}
-void SetupGeneral::slotChangeAlbumPath(const QString &result)
+void SetupGeneral::slotChangeAlbumPath(const TQString &result)
{
- if (KURL(result).equals(KURL(QDir::homeDirPath()), true))
+ if (KURL(result).equals(KURL(TQDir::homeDirPath()), true))
{
KMessageBox::sorry(0, i18n("Sorry you can't use your home directory as album library."));
return;
}
- QFileInfo targetPath(result);
+ TQFileInfo targetPath(result);
if (!result.isEmpty() && !targetPath.isWritable())
{
@@ -291,7 +291,7 @@ void SetupGeneral::slotChangeAlbumPath(const QString &result)
}
}
-void SetupGeneral::slotPathEdited(const QString& newPath)
+void SetupGeneral::slotPathEdited(const TQString& newPath)
{
if (newPath.isEmpty())
{
@@ -301,12 +301,12 @@ void SetupGeneral::slotPathEdited(const QString& newPath)
if (!newPath.startsWith("/"))
{
- d->albumPathEdit->setURL(QDir::homeDirPath() + '/' + newPath);
+ d->albumPathEdit->setURL(TQDir::homeDirPath() + '/' + newPath);
}
- QFileInfo targetPath(newPath);
- QDir dir(newPath);
- d->mainDialog->enableButtonOK(dir.exists() && dir.path() != QDir::homeDirPath());
+ TQFileInfo targetPath(newPath);
+ TQDir dir(newPath);
+ d->mainDialog->enableButtonOK(dir.exists() && dir.path() != TQDir::homeDirPath());
}
} // namespace Digikam