Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent a92eb96172
commit 85d50dfcd1

@ -22703,7 +22703,7 @@ v0.9.1-beta1 - 11-Feb-2007
Disable the use of the DImg raw loader when loading as DImg from
digikamthumbnail ioslave.
We are using KProcess for the raw loader and make two
We are using TDEProcess for the raw loader and make two
assumptions:
- there is an event loop (not for ioslaves)
- the loader is not called from the event loop thread (currently
@ -22711,7 +22711,7 @@ v0.9.1-beta1 - 11-Feb-2007
The DImg raw loader is not needed - DcrawIface is called before.
So the problem of the loader entering an endless loop (because no
events from KProcess
events from TDEProcess
are delivered) arises only if a file is identified as RAW, but
dcraw does not
support it.
@ -32079,10 +32079,10 @@ v0.9.0-beta1 - 20/07/2006
the app is closed
while a raw image is being loaded in the histogram side bar.
The KProcess-based raw loader is waiting for the dcraw process
The TDEProcess-based raw loader is waiting for the dcraw process
to finish,
but the main thread is wait()ing for the thread to finish,
and no KProcess events are delivered.
and no TDEProcess events are delivered.
This hack can be removed when we port to Qt4 and use the
synchronous QProcess.
@ -35473,7 +35473,7 @@ v0.9.0-beta1 - 20/07/2006
- Fix broken loading with dcraw and all parameter witch require
a value.
Since we use KProcess, implementation need to use QString at
Since we use TDEProcess, implementation need to use QString at
all, especially to add space between option and value. The
better way is to use QString::arg() method.
- Add comments about dcraw Quality rules with digiKam.
@ -35512,12 +35512,12 @@ v0.9.0-beta1 - 20/07/2006
* trunk/extragear/graphics/digikam/libs/dimg/loaders/rawloader.cpp,
trunk/extragear/graphics/digikam/libs/dimg/loaders/rawloader.h:
digikam from trunk:
Use KProcess for RAW image loader.
Use TDEProcess for RAW image loader.
Loading can now be cleanly aborted.
This is a good example that KProcess is not the perfect tool for
This is a good example that TDEProcess is not the perfect tool for
use
with our shiny new multithreaded loader because KProcess is not
with our shiny new multithreaded loader because TDEProcess is not
reentrant,
but there are more advantages (wraps all system programming) so
that

@ -162,7 +162,7 @@ void AlbumFileTip::reposition()
// should the tooltip be shown to the left or to the right of the ivi ?
#if KDE_IS_VERSION(3,2,0)
TQRect desk = KGlobalSettings::desktopGeometry(rect.center());
TQRect desk = TDEGlobalSettings::desktopGeometry(rect.center());
#else
TQRect desk = TQApplication::desktop()->screenGeometry(
TQApplication::desktop()->screenNumber(rect.center()) );
@ -358,7 +358,7 @@ void AlbumFileTip::updateText()
if (settings->getToolTipsShowFileDate())
{
TQDateTime modifiedDate = fileInfo.lastModified();
str = KGlobal::locale()->formatDateTime(modifiedDate, true, true);
str = TDEGlobal::locale()->formatDateTime(modifiedDate, true, true);
tip += cellBeg + i18n("Modified:") + cellMid + str + cellEnd;
}
@ -366,7 +366,7 @@ void AlbumFileTip::updateText()
{
tip += cellBeg + i18n("Size:") + cellMid;
str = i18n("%1 (%2)").arg(KIO::convertSize(fi.size()))
.arg(KGlobal::locale()->formatNumber(fi.size(), 0));
.arg(TDEGlobal::locale()->formatNumber(fi.size(), 0));
tip += str + cellEnd;
}
@ -444,7 +444,7 @@ void AlbumFileTip::updateText()
{
if (photoInfo.dateTime.isValid())
{
str = KGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
str = TDEGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
if (str.length() > d->maxStringLen) str = str.left(d->maxStringLen-3) + "...";
metaStr += cellBeg + i18n("Created:") + cellMid + TQStyleSheet::escape( str ) + cellEnd;
}

@ -1490,7 +1490,7 @@ AlbumFolderViewItem* AlbumFolderView::findParentByDate(PAlbum* album, bool& fail
TQDate date = album->date();
TQString timeString = TQString::number(date.year()) + ", " +
KGlobal::locale()->calendar()->monthName(date, false);
TDEGlobal::locale()->calendar()->monthName(date, false);
AlbumFolderViewItem* parent = 0;

@ -101,8 +101,8 @@ void AlbumIconGroupItem::paintBanner()
TQDate date = album->date();
dateAndComments = i18n("%1 %2 - 1 Item", "%1 %2 - %n Items", count())
.arg(KGlobal::locale()->calendar()->monthName(date, false))
.arg(KGlobal::locale()->calendar()->year(date));
.arg(TDEGlobal::locale()->calendar()->monthName(date, false))
.arg(TDEGlobal::locale()->calendar()->year(date));
if (!album->caption().isEmpty())
{

@ -77,7 +77,7 @@ public:
static void dateToString(const TQDateTime& datetime, TQString& str)
{
str = KGlobal::locale()->formatDateTime(datetime, true, false);
str = TDEGlobal::locale()->formatDateTime(datetime, true, false);
}
AlbumIconItem::AlbumIconItem(IconGroupItem* parent, ImageInfo* info)

@ -205,9 +205,9 @@ AlbumIconView::AlbumIconView(TQWidget* parent)
// -- Load rating Pixmap ------------------------------------------
KGlobal::dirs()->addResourceType("digikam_rating", KGlobal::dirs()->kde_default("data")
TDEGlobal::dirs()->addResourceType("digikam_rating", TDEGlobal::dirs()->kde_default("data")
+ "digikam/data");
TQString ratingPixPath = KGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
TQString ratingPixPath = TDEGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
ratingPixPath += "/rating.png";
d->ratingPixmap = TQPixmap(ratingPixPath);

@ -277,7 +277,7 @@ void AlbumManager::setLibraryPath(const TQString& path, SplashScreen *splash)
// Copy an existing locale from the settings file (used < 0.8)
// to the database.
KConfig* config = KGlobal::config();
KConfig* config = TDEGlobal::config();
config->setGroup("General Settings");
if (config->hasKey("Locale"))
{
@ -352,7 +352,7 @@ void AlbumManager::setLibraryPath(const TQString& path, SplashScreen *splash)
// -- Check if we need to do scanning -------------------------------------
KConfig* config = KGlobal::config();
KConfig* config = TDEGlobal::config();
config->setGroup("General Settings");
if (config->readBoolEntry("Scan At Start", true) ||
d->db->getSetting("Scanned").isEmpty())

@ -103,9 +103,9 @@ DateFolderItem::DateFolderItem(TQListViewItem* parent, DAlbum* album)
m_count = 0;
m_album = album;
#if KDE_IS_VERSION(3,2,0)
m_name = KGlobal::locale()->calendar()->monthName(m_album->date(), false);
m_name = TDEGlobal::locale()->calendar()->monthName(m_album->date(), false);
#else
m_name = KGlobal::locale()->monthName(m_album->date(), false);
m_name = TDEGlobal::locale()->monthName(m_album->date(), false);
#endif
setText(0, m_name);
}

@ -1720,13 +1720,13 @@ void DigikamApp::slotEditKeys()
void DigikamApp::slotConfToolbars()
{
saveMainWindowSettings(KGlobal::config());
saveMainWindowSettings(TDEGlobal::config());
KEditToolbar *dlg = new KEditToolbar(actionCollection(), "digikamui.rc");
if(dlg->exec())
{
createGUI(TQString::fromLatin1( "digikamui.rc" ), false);
applyMainWindowSettings(KGlobal::config());
applyMainWindowSettings(TDEGlobal::config());
plugActionList( TQString::fromLatin1("file_actions_import"), d->kipiFileActionsImport );
plugActionList( TQString::fromLatin1("image_actions"), d->kipiImageActions );
plugActionList( TQString::fromLatin1("tool_actions"), d->kipiToolsActions );
@ -2073,7 +2073,7 @@ void DigikamApp::slotTogglePreview(bool t)
void DigikamApp::slotAlbumAddImages()
{
TQString path = KFileDialog::getExistingDirectory(KGlobalSettings::documentPath(), this,
TQString path = KFileDialog::getExistingDirectory(TDEGlobalSettings::documentPath(), this,
i18n("Select folder to parse"));
if(path.isEmpty())

@ -105,7 +105,7 @@ KIO::Job* del(const KURL& src, bool useTrash)
if (!KProtocolInfo::isKnownProtocol(dest))
{
dest = KGlobalSettings::trashPath();
dest = TDEGlobalSettings::trashPath();
}
job = KIO::move( src, dest );
@ -129,7 +129,7 @@ KIO::Job* del(const KURL::List& srcList, bool useTrash)
if (!KProtocolInfo::isKnownProtocol(dest))
{
dest = KGlobalSettings::trashPath();
dest = TDEGlobalSettings::trashPath();
}
job = KIO::move( srcList, dest );

@ -174,7 +174,7 @@ void FolderView::contentsMouseMoveEvent(TQMouseEvent *e)
if(e->state() == NoButton)
{
if(KGlobalSettings::changeCursorOverIcon())
if(TDEGlobalSettings::changeCursorOverIcon())
{
TQPoint vp = contentsToViewport(e->pos());
TQListViewItem *item = itemAt(vp);

@ -1111,7 +1111,7 @@ void IconView::contentsMouseMoveEvent(TQMouseEvent* e)
}
}
if (KGlobalSettings::changeCursorOverIcon())
if (TDEGlobalSettings::changeCursorOverIcon())
{
if (item && item->clickToOpenRect().contains(e->pos()))
setCursor(KCursor::handCursor());
@ -1259,7 +1259,7 @@ void IconView::contentsMouseReleaseEvent(TQMouseEvent* e)
d->anchorItem = item;
if (prevCurrItem)
prevCurrItem->repaint();
if (KGlobalSettings::singleClick())
if (TDEGlobalSettings::singleClick())
{
if (item->clickToOpenRect().contains(e->pos()))
{
@ -1282,7 +1282,7 @@ void IconView::contentsWheelEvent(TQWheelEvent* e)
void IconView::contentsMouseDoubleClickEvent(TQMouseEvent *e)
{
if (KGlobalSettings::singleClick())
if (TDEGlobalSettings::singleClick())
return;
IconItem *item = findItem(e->pos());

@ -62,7 +62,7 @@ class DateValidator : public TQValidator
return Acceptable;
bool ok = false;
KGlobal::locale()->readDate( str, &ok );
TDEGlobal::locale()->readDate( str, &ok );
if ( ok )
return Acceptable;
else
@ -82,7 +82,7 @@ KDateEdit::KDateEdit( TQWidget *parent, const char *name )
setMaxCount( 1 );
mDate = TQDate::currentDate();
TQString today = KGlobal::locale()->formatDate( mDate, true );
TQString today = TDEGlobal::locale()->formatDate( mDate, true );
insertItem( today );
setCurrentItem( 0 );
@ -143,7 +143,7 @@ void KDateEdit::popup()
if ( mReadOnly )
return;
TQRect desk = KGlobalSettings::desktopGeometry( this );
TQRect desk = TDEGlobalSettings::desktopGeometry( this );
TQPoint popupPoint = mapToGlobal( TQPoint( 0,0 ) );
@ -253,7 +253,7 @@ TQDate KDateEdit::parseDate( bool *replaced ) const
if ( replaced )
(*replaced) = true;
} else {
result = KGlobal::locale()->readDate( text );
result = TDEGlobal::locale()->readDate( text );
}
return result;
@ -348,7 +348,7 @@ void KDateEdit::setupKeywords()
TQString dayName;
for ( int i = 1; i <= 7; ++i ) {
dayName = KGlobal::locale()->calendar()->weekDayName( i ).lower();
dayName = TDEGlobal::locale()->calendar()->weekDayName( i ).lower();
mKeywordMap.insert( dayName, i + 100 );
}
}
@ -364,7 +364,7 @@ void KDateEdit::updateView()
{
TQString dateString;
if ( mDate.isValid() )
dateString = KGlobal::locale()->formatDate( mDate, true );
dateString = TDEGlobal::locale()->formatDate( mDate, true );
// We do not want to generate a signal here,
// since we explicitly setting the date

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
TDEApplication app;
KConfig* config = KGlobal::config();
KConfig* config = TDEGlobal::config();
config->setGroup("General Settings");
TQString version = config->readEntry("Version");
@ -126,8 +126,8 @@ int main(int argc, char *argv[])
tipsFiles.append("digikam/tips");
tipsFiles.append("kipi/tips");
KGlobal::locale()->insertCatalogue("kipiplugins");
KGlobal::locale()->insertCatalogue("libkdcraw");
TDEGlobal::locale()->insertCatalogue("kipiplugins");
TDEGlobal::locale()->insertCatalogue("libkdcraw");
KTipDialog::showMultiTip(0, tipsFiles, false);
#else

@ -214,7 +214,7 @@ void MonthWidget::drawContents(TQPainter *)
if(!weekvisible)
{
int weeknr = KGlobal::locale()->calendar()->weekNumber(TQDate(d->year,
int weeknr = TDEGlobal::locale()->calendar()->weekNumber(TQDate(d->year,
d->month, d->days[index].day));
p.setPen(d->active ? TQt::black : TQt::gray);
p.setFont(fnBold);
@ -244,11 +244,11 @@ void MonthWidget::drawContents(TQPainter *)
rsmall.setHeight(r.height() - 2);
#if KDE_IS_VERSION(3,2,0)
p.drawText(rsmall, TQt::AlignVCenter|TQt::AlignHCenter,
KGlobal::locale()->calendar()->weekDayName(i, true)
TDEGlobal::locale()->calendar()->weekDayName(i, true)
.remove(2,1));
#else
p.drawText(rsmall, TQt::AlignVCenter|TQt::AlignHCenter,
KGlobal::locale()->weekDayName(i, true).remove(2,1));
TDEGlobal::locale()->weekDayName(i, true).remove(2,1));
#endif
index++;
}
@ -261,12 +261,12 @@ void MonthWidget::drawContents(TQPainter *)
#if KDE_IS_VERSION(3,2,0)
p.drawText(r, TQt::AlignCenter,
TQString("%1 %2")
.arg(KGlobal::locale()->calendar()->monthName(d->month, false))
.arg(KGlobal::locale()->calendar()->year(TQDate(d->year,d->month,1))));
.arg(TDEGlobal::locale()->calendar()->monthName(d->month, false))
.arg(TDEGlobal::locale()->calendar()->year(TQDate(d->year,d->month,1))));
#else
p.drawText(r, TQt::AlignCenter,
TQString("%1 %2")
.arg(KGlobal::locale()->monthName(d->month))
.arg(TDEGlobal::locale()->monthName(d->month))
.arg(TQString::number(d->year)));
#endif

@ -47,8 +47,8 @@ namespace Digikam
RatingPopupMenu::RatingPopupMenu(TQWidget* parent)
: TQPopupMenu(parent)
{
KGlobal::dirs()->addResourceType("digikam_rating", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString ratingPixPath = KGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
TDEGlobal::dirs()->addResourceType("digikam_rating", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString ratingPixPath = TDEGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
ratingPixPath += "/rating.png";
insertItem(i18n("None"), 0);

@ -66,9 +66,9 @@ RatingWidget::RatingWidget(TQWidget* parent)
{
d = new RatingWidgetPriv;
KGlobal::dirs()->addResourceType("digikam_rating",
KGlobal::dirs()->kde_default("data") + "digikam/data");
d->ratingPixPath = KGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
TDEGlobal::dirs()->addResourceType("digikam_rating",
TDEGlobal::dirs()->kde_default("data") + "digikam/data");
d->ratingPixPath = TDEGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
d->ratingPixPath.append("/rating.png");
slotThemeChanged();

@ -119,7 +119,7 @@ bool SyncJob::trashPriv(const KURL::List& urls)
if (!KProtocolInfo::isKnownProtocol(dest))
{
dest = KGlobalSettings::trashPath();
dest = TDEGlobalSettings::trashPath();
}
KIO::Job* job = KIO::move( urls, dest );

@ -155,16 +155,16 @@ TimeLineView::TimeLineView(TQWidget *parent)
TQPushButton *linHistoButton = new TQPushButton( d->scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
d->scaleBG->insert(linHistoButton, TimeLineWidget::LinScale);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( d->scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
d->scaleBG->insert(logHistoButton, TimeLineWidget::LogScale);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);

@ -74,7 +74,7 @@ public:
nbItems = 10;
timeUnit = TimeLineWidget::Month;
scaleMode = TimeLineWidget::LinScale;
calendar = KGlobal::locale()->calendar();
calendar = TDEGlobal::locale()->calendar();
}
bool validMouseEvent; // Current mouse enter event is valid to set cursor position or selection.
@ -274,7 +274,7 @@ int TimeLineWidget::cursorInfo(TQString& infoDate)
{
case Day:
{
infoDate = KGlobal::locale()->formatDate(dt.date());
infoDate = TDEGlobal::locale()->formatDate(dt.date());
break;
}
case Week:
@ -721,7 +721,7 @@ void TimeLineWidget::updatePixmap()
p.setPen(dateColor);
p.drawLine(barRect.left(), barRect.bottom(),
barRect.left(), barRect.bottom()+d->bottomMargin/2);
TQString txt = KGlobal::locale()->formatDate(ref.date(), true);
TQString txt = TDEGlobal::locale()->formatDate(ref.date(), true);
TQRect br = p.fontMetrics().boundingRect(0, 0, width(), height(), 0, txt);
p.drawText(barRect.left()-br.width()/2, barRect.bottom() + d->bottomMargin, txt);
}
@ -748,7 +748,7 @@ void TimeLineWidget::updatePixmap()
{
p.drawLine(barRect.left(), barRect.bottom(),
barRect.left(), barRect.bottom()+d->bottomMargin/2);
TQString txt = KGlobal::locale()->formatDate(ref.date(), true);
TQString txt = TDEGlobal::locale()->formatDate(ref.date(), true);
TQRect br = p.fontMetrics().boundingRect(0, 0, width(), height(), 0, txt);
if (week != 50)
p.drawText(barRect.left()-br.width()/2, barRect.bottom() + d->bottomMargin, txt);
@ -905,7 +905,7 @@ void TimeLineWidget::updatePixmap()
p.setPen(dateColor);
p.drawLine(barRect.left(), barRect.bottom(),
barRect.left(), barRect.bottom()+d->bottomMargin/2);
TQString txt = KGlobal::locale()->formatDate(ref.date(), true);
TQString txt = TDEGlobal::locale()->formatDate(ref.date(), true);
TQRect br = p.fontMetrics().boundingRect(0, 0, width(), height(), 0, txt);
p.drawText(barRect.left()-br.width()/2, barRect.bottom() + d->bottomMargin, txt);
}
@ -932,7 +932,7 @@ void TimeLineWidget::updatePixmap()
{
p.drawLine(barRect.left(), barRect.bottom(),
barRect.left(), barRect.bottom()+d->bottomMargin/2);
TQString txt = KGlobal::locale()->formatDate(ref.date(), true);
TQString txt = TDEGlobal::locale()->formatDate(ref.date(), true);
TQRect br = p.fontMetrics().boundingRect(0, 0, width(), height(), 0, txt);
if (week != 50)
p.drawText(barRect.left()-br.width()/2, barRect.bottom() + d->bottomMargin, txt);
@ -1611,7 +1611,7 @@ TQDateTime TimeLineWidget::dateTimeForPoint(const TQPoint& pt, bool &isOnSelecti
TQDateTime ref = d->refDateTime;
ref.setTime(TQTime(0, 0, 0, 0));
TQRect deskRect = KGlobalSettings::desktopGeometry(this);
TQRect deskRect = TDEGlobalSettings::desktopGeometry(this);
int items = deskRect.width() / d->barWidth;
for (int i = 0 ; i < items ; i++)

@ -153,16 +153,16 @@ AdjustCurveDialog::AdjustCurveDialog(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::CurvesWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::CurvesWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -222,18 +222,18 @@ AdjustCurveDialog::AdjustCurveDialog(TQWidget* parent)
m_curveType = new TQHButtonGroup(gboxSettings);
m_curveFree = new TQPushButton(m_curveType);
m_curveType->insert(m_curveFree, FreeDrawing);
KGlobal::dirs()->addResourceType("curvefree", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("curvefree", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("curvefree", "curvefree.png");
directory = TDEGlobal::dirs()->findResourceDir("curvefree", "curvefree.png");
m_curveFree->setPixmap( TQPixmap( directory + "curvefree.png" ) );
m_curveFree->setToggleButton(true);
TQToolTip::add( m_curveFree, i18n( "Curve free mode" ) );
TQWhatsThis::add( m_curveFree, i18n("<p>With this button, you can draw your curve free-hand with the mouse."));
m_curveSmooth = new TQPushButton(m_curveType);
m_curveType->insert(m_curveSmooth, SmoothDrawing);
KGlobal::dirs()->addResourceType("curvemooth", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("curvemooth", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("curvemooth", "curvemooth.png");
directory = TDEGlobal::dirs()->findResourceDir("curvemooth", "curvemooth.png");
m_curveSmooth->setPixmap( TQPixmap( directory + "curvemooth.png" ) );
m_curveSmooth->setToggleButton(true);
TQToolTip::add( m_curveSmooth, i18n( "Curve smooth mode" ) );
@ -247,9 +247,9 @@ AdjustCurveDialog::AdjustCurveDialog(TQWidget* parent)
m_pickerColorButtonGroup = new TQHButtonGroup(gboxSettings);
m_pickBlack = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickBlack, BlackTonal);
KGlobal::dirs()->addResourceType("color-picker-black", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-black", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
m_pickBlack->setPixmap( TQPixmap( directory + "color-picker-black.png" ) );
m_pickBlack->setToggleButton(true);
TQToolTip::add( m_pickBlack, i18n( "All channels shadow tone color picker" ) );
@ -257,9 +257,9 @@ AdjustCurveDialog::AdjustCurveDialog(TQWidget* parent)
"smooth curves point on Red, Green, Blue, and Luminosity channels."));
m_pickGray = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickGray, GrayTonal);
KGlobal::dirs()->addResourceType("color-picker-grey", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-grey", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
m_pickGray->setPixmap( TQPixmap( directory + "color-picker-grey.png" ) );
m_pickGray->setToggleButton(true);
TQToolTip::add( m_pickGray, i18n( "All channels middle tone color picker" ) );
@ -267,9 +267,9 @@ AdjustCurveDialog::AdjustCurveDialog(TQWidget* parent)
"smooth curves point on Red, Green, Blue, and Luminosity channels."));
m_pickWhite = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickWhite, WhiteTonal);
KGlobal::dirs()->addResourceType("color-picker-white", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-white", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
m_pickWhite->setPixmap( TQPixmap( directory + "color-picker-white.png" ) );
m_pickWhite->setToggleButton(true);
TQToolTip::add( m_pickWhite, i18n( "All channels highlight tone color picker" ) );
@ -635,7 +635,7 @@ void AdjustCurveDialog::slotUser3()
{
KURL loadCurvesFile;
loadCurvesFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
loadCurvesFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Select Gimp Curves File to Load")) );
if( loadCurvesFile.isEmpty() )
@ -657,7 +657,7 @@ void AdjustCurveDialog::slotUser2()
{
KURL saveCurvesFile;
saveCurvesFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
saveCurvesFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Gimp Curves File to Save")) );
if( saveCurvesFile.isEmpty() )

@ -144,16 +144,16 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, CurvesWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, CurvesWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -209,18 +209,18 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
m_curveType = new TQHButtonGroup(m_gboxSettings->plainPage());
m_curveFree = new TQPushButton(m_curveType);
m_curveType->insert(m_curveFree, FreeDrawing);
KGlobal::dirs()->addResourceType("curvefree", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("curvefree", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("curvefree", "curvefree.png");
directory = TDEGlobal::dirs()->findResourceDir("curvefree", "curvefree.png");
m_curveFree->setPixmap( TQPixmap( directory + "curvefree.png" ) );
m_curveFree->setToggleButton(true);
TQToolTip::add( m_curveFree, i18n( "Curve free mode" ) );
TQWhatsThis::add( m_curveFree, i18n("<p>With this button, you can draw your curve free-hand with the mouse."));
m_curveSmooth = new TQPushButton(m_curveType);
m_curveType->insert(m_curveSmooth, SmoothDrawing);
KGlobal::dirs()->addResourceType("curvemooth", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("curvemooth", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("curvemooth", "curvemooth.png");
directory = TDEGlobal::dirs()->findResourceDir("curvemooth", "curvemooth.png");
m_curveSmooth->setPixmap( TQPixmap( directory + "curvemooth.png" ) );
m_curveSmooth->setToggleButton(true);
TQToolTip::add( m_curveSmooth, i18n( "Curve smooth mode" ) );
@ -234,9 +234,9 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
m_pickerColorButtonGroup = new TQHButtonGroup(m_gboxSettings->plainPage());
m_pickBlack = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickBlack, BlackTonal);
KGlobal::dirs()->addResourceType("color-picker-black", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-black", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
m_pickBlack->setPixmap( TQPixmap( directory + "color-picker-black.png" ) );
m_pickBlack->setToggleButton(true);
TQToolTip::add( m_pickBlack, i18n( "All channels shadow tone color picker" ) );
@ -244,9 +244,9 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
"smooth curves point on Red, Green, Blue, and Luminosity channels."));
m_pickGray = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickGray, GrayTonal);
KGlobal::dirs()->addResourceType("color-picker-grey", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-grey", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
m_pickGray->setPixmap( TQPixmap( directory + "color-picker-grey.png" ) );
m_pickGray->setToggleButton(true);
TQToolTip::add( m_pickGray, i18n( "All channels middle tone color picker" ) );
@ -254,9 +254,9 @@ AdjustCurvesTool::AdjustCurvesTool(TQObject* parent)
"smooth curves point on Red, Green, Blue, and Luminosity channels."));
m_pickWhite = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickWhite, WhiteTonal);
KGlobal::dirs()->addResourceType("color-picker-white", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-white", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
m_pickWhite->setPixmap( TQPixmap( directory + "color-picker-white.png" ) );
m_pickWhite->setToggleButton(true);
TQToolTip::add( m_pickWhite, i18n( "All channels highlight tone color picker" ) );
@ -619,7 +619,7 @@ void AdjustCurvesTool::slotLoadSettings()
{
KURL loadCurvesFile;
loadCurvesFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
loadCurvesFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Select Gimp Curves File to Load")) );
if( loadCurvesFile.isEmpty() )
@ -640,7 +640,7 @@ void AdjustCurvesTool::slotSaveAsSettings()
{
KURL saveCurvesFile;
saveCurvesFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
saveCurvesFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Gimp Curves File to Save")) );
if( saveCurvesFile.isEmpty() )

@ -155,16 +155,16 @@ AdjustLevelDialog::AdjustLevelDialog(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -256,9 +256,9 @@ AdjustLevelDialog::AdjustLevelDialog(TQWidget* parent)
m_pickerColorButtonGroup = new TQHButtonGroup(gboxSettings);
m_pickBlack = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickBlack, BlackTonal);
KGlobal::dirs()->addResourceType("color-picker-black", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-black", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
m_pickBlack->setPixmap( TQPixmap( directory + "color-picker-black.png" ) );
m_pickBlack->setToggleButton(true);
TQToolTip::add( m_pickBlack, i18n( "All channels shadow tone color picker" ) );
@ -266,9 +266,9 @@ AdjustLevelDialog::AdjustLevelDialog(TQWidget* parent)
"levels input on Red, Green, Blue, and Luminosity channels."));
m_pickGray = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickGray, GrayTonal);
KGlobal::dirs()->addResourceType("color-picker-gray", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-gray", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-gray", "color-picker-gray.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-gray", "color-picker-gray.png");
m_pickGray->setPixmap( TQPixmap( directory + "color-picker-gray.png" ) );
m_pickGray->setToggleButton(true);
TQToolTip::add( m_pickGray, i18n( "All channels middle tone color picker" ) );
@ -276,9 +276,9 @@ AdjustLevelDialog::AdjustLevelDialog(TQWidget* parent)
"levels input on Red, Green, Blue, and Luminosity channels."));
m_pickWhite = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickWhite, WhiteTonal);
KGlobal::dirs()->addResourceType("color-picker-white", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-white", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
m_pickWhite->setPixmap( TQPixmap( directory + "color-picker-white.png" ) );
m_pickWhite->setToggleButton(true);
TQToolTip::add( m_pickWhite, i18n( "All channels highlight tone color picker" ) );
@ -768,7 +768,7 @@ void AdjustLevelDialog::slotUser3()
{
KURL loadLevelsFile;
loadLevelsFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
loadLevelsFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Select Gimp Levels File to Load")) );
if( loadLevelsFile.isEmpty() )
@ -789,7 +789,7 @@ void AdjustLevelDialog::slotUser2()
{
KURL saveLevelsFile;
saveLevelsFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
saveLevelsFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Gimp Levels File to Save")) );
if( saveLevelsFile.isEmpty() )

@ -148,16 +148,16 @@ AdjustLevelsTool::AdjustLevelsTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -253,9 +253,9 @@ AdjustLevelsTool::AdjustLevelsTool(TQObject* parent)
m_pickerColorButtonGroup = new TQHButtonGroup(m_gboxSettings->plainPage());
m_pickBlack = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickBlack, BlackTonal);
KGlobal::dirs()->addResourceType("color-picker-black", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-black", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png");
m_pickBlack->setPixmap( TQPixmap( directory + "color-picker-black.png" ) );
m_pickBlack->setToggleButton(true);
TQToolTip::add( m_pickBlack, i18n( "All channels shadow tone color picker" ) );
@ -263,9 +263,9 @@ AdjustLevelsTool::AdjustLevelsTool(TQObject* parent)
"levels input on Red, Green, Blue, and Luminosity channels."));
m_pickGray = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickGray, GrayTonal);
KGlobal::dirs()->addResourceType("color-picker-gray", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-gray", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
m_pickGray->setPixmap( TQPixmap( directory + "color-picker-grey.png" ) );
m_pickGray->setToggleButton(true);
TQToolTip::add( m_pickGray, i18n( "All channels middle tone color picker" ) );
@ -273,9 +273,9 @@ AdjustLevelsTool::AdjustLevelsTool(TQObject* parent)
"levels input on Red, Green, Blue, and Luminosity channels."));
m_pickWhite = new TQPushButton(m_pickerColorButtonGroup);
m_pickerColorButtonGroup->insert(m_pickWhite, WhiteTonal);
KGlobal::dirs()->addResourceType("color-picker-white", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("color-picker-white", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png");
m_pickWhite->setPixmap( TQPixmap( directory + "color-picker-white.png" ) );
m_pickWhite->setToggleButton(true);
TQToolTip::add( m_pickWhite, i18n( "All channels highlight tone color picker" ) );
@ -751,7 +751,7 @@ void AdjustLevelsTool::slotLoadSettings()
{
KURL loadLevelsFile;
loadLevelsFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
loadLevelsFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Select Gimp Levels File to Load")) );
if( loadLevelsFile.isEmpty() )
@ -771,7 +771,7 @@ void AdjustLevelsTool::slotSaveAsSettings()
{
KURL saveLevelsFile;
saveLevelsFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
saveLevelsFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Gimp Levels File to Save")) );
if( saveLevelsFile.isEmpty() )

@ -646,9 +646,9 @@ TQString BorderTool::getBorderPath(int border)
return TQString();
}
KGlobal::dirs()->addResourceType(pattern.ascii(), KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType(pattern.ascii(), TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
return (KGlobal::dirs()->findResourceDir(pattern.ascii(), pattern + ".png") + pattern + ".png" );
return (TDEGlobal::dirs()->findResourceDir(pattern.ascii(), pattern + ".png") + pattern + ".png" );
}
void BorderTool::slotPreserveAspectRatioToggled(bool b)

@ -644,9 +644,9 @@ TQString ImageEffect_Border::getBorderPath(int border)
return TQString();
}
KGlobal::dirs()->addResourceType(pattern.ascii(), KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType(pattern.ascii(), TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
return (KGlobal::dirs()->findResourceDir(pattern.ascii(), pattern + ".png") + pattern + ".png" );
return (TDEGlobal::dirs()->findResourceDir(pattern.ascii(), pattern + ".png") + pattern + ".png" );
}
void ImageEffect_Border::slotPreserveAspectRatioToggled(bool b)

@ -147,16 +147,16 @@ ChannelMixerDialog::ChannelMixerDialog(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -626,7 +626,7 @@ void ChannelMixerDialog::slotUser3()
int currentOutputChannel;
bool monochrome;
loadGainsFileUrl = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
loadGainsFileUrl = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Select Gimp Gains Mixer File to Load")) );
if( loadGainsFileUrl.isEmpty() )
@ -711,7 +711,7 @@ void ChannelMixerDialog::slotUser2()
KURL saveGainsFileUrl;
FILE *fp = 0L;
saveGainsFileUrl = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
saveGainsFileUrl = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Gimp Gains Mixer File to Save")) );
if( saveGainsFileUrl.isEmpty() )

@ -141,16 +141,16 @@ ChannelMixerTool::ChannelMixerTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -618,7 +618,7 @@ void ChannelMixerTool::slotLoadSettings()
int currentOutputChannel;
bool monochrome;
loadGainsFileUrl = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
loadGainsFileUrl = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Select Gimp Gains Mixer File to Load")) );
if( loadGainsFileUrl.isEmpty() )
@ -702,7 +702,7 @@ void ChannelMixerTool::slotSaveAsSettings()
KURL saveGainsFileUrl;
FILE *fp = 0L;
saveGainsFileUrl = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
saveGainsFileUrl = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Gimp Gains Mixer File to Save")) );
if( saveGainsFileUrl.isEmpty() )

@ -125,16 +125,16 @@ ColorFXTool::ColorFXTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(linHistoButton, i18n("<p>Linear"));
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap(TQPixmap(directory + "histogram-lin.png"));
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap(TQPixmap(directory + "histogram-log.png"));
logHistoButton->setToggleButton(true);

@ -131,16 +131,16 @@ ImageEffect_ColorFX::ImageEffect_ColorFX(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);

@ -125,16 +125,16 @@ AutoCorrectionTool::AutoCorrectionTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(linHistoButton, i18n("<p>Linear"));
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap(TQPixmap(directory + "histogram-log.png"));
logHistoButton->setToggleButton(true);

@ -124,16 +124,16 @@ BCGTool::BCGTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(linHistoButton, i18n("<p>Linear"));
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap(TQPixmap(directory + "histogram-lin.png"));
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap(TQPixmap(directory + "histogram-log.png"));
logHistoButton->setToggleButton(true);

@ -215,16 +215,16 @@ BWSepiaTool::BWSepiaTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(linHistoButton, i18n("<p>Linear"));
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap(TQPixmap(directory + "histogram-lin.png"));
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap(TQPixmap(directory + "histogram-log.png"));
logHistoButton->setToggleButton(true);
@ -1063,7 +1063,7 @@ void BWSepiaTool::blackAndWhiteConversion(uchar *data, int w, int h, bool sb, in
void BWSepiaTool::slotLoadSettings()
{
KURL loadFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Black & White Settings File to Load")) );
if( loadFile.isEmpty() )
@ -1139,7 +1139,7 @@ void BWSepiaTool::slotLoadSettings()
void BWSepiaTool::slotSaveAsSettings()
{
KURL saveFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Black & White Settings File to Save")));
if( saveFile.isEmpty() )

@ -128,16 +128,16 @@ HSLTool::HSLTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(linHistoButton, i18n("<p>Linear"));
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap(TQPixmap(directory + "histogram-lin.png"));
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap(TQPixmap(directory + "histogram-log.png"));
logHistoButton->setToggleButton(true);

@ -111,16 +111,16 @@ ImageEffect_HSL::ImageEffect_HSL(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);

@ -153,16 +153,16 @@ ICCProofTool::ICCProofTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(linHistoButton, i18n("<p>Linear"));
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap(TQPixmap(directory + "histogram-lin.png"));
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap(TQPixmap(directory + "histogram-log.png"));
logHistoButton->setToggleButton(true);
@ -270,8 +270,8 @@ ICCProofTool::ICCProofTool(TQObject* parent)
lcmsLogoLabel->setAlignment(AlignTop | AlignRight);
lcmsLogoLabel->setText(TQString());
lcmsLogoLabel->setURL("http://www.littlecms.com");
KGlobal::dirs()->addResourceType("logo-lcms", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("logo-lcms", "logo-lcms.png");
TDEGlobal::dirs()->addResourceType("logo-lcms", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("logo-lcms", "logo-lcms.png");
lcmsLogoLabel->setPixmap(TQPixmap(directory + "logo-lcms.png"));
TQToolTip::add(lcmsLogoLabel, i18n("Visit Little CMS project website"));
@ -537,7 +537,7 @@ ICCProofTool::~ICCProofTool()
void ICCProofTool::readSettings()
{
TQString defaultICCPath = KGlobalSettings::documentPath();
TQString defaultICCPath = TDEGlobalSettings::documentPath();
KConfig* config = kapp->config();
// General settings of digiKam Color Management
@ -1186,7 +1186,7 @@ bool ICCProofTool::useDefaultProofProfile()
void ICCProofTool::slotLoadSettings()
{
KURL loadColorManagementFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadColorManagementFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString("*"), kapp->activeWindow(),
TQString(i18n("Color Management Settings File to Load")));
if (loadColorManagementFile.isEmpty())
@ -1263,7 +1263,7 @@ void ICCProofTool::slotLoadSettings()
void ICCProofTool::slotSaveAsSettings()
{
KURL saveColorManagementFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveColorManagementFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString(i18n("Color Management Settings File to Save")));
if (saveColorManagementFile.isEmpty())

@ -118,16 +118,16 @@ ImageEffect_AutoCorrection::ImageEffect_AutoCorrection(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);

@ -111,16 +111,16 @@ ImageEffect_BCG::ImageEffect_BCG(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);

@ -213,16 +213,16 @@ ImageEffect_BWSepia::ImageEffect_BWSepia(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -1069,7 +1069,7 @@ void ImageEffect_BWSepia::blackAndWhiteConversion(uchar *data, int w, int h, boo
void ImageEffect_BWSepia::slotUser3()
{
KURL loadFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Black & White Settings File to Load")) );
if( loadFile.isEmpty() )
@ -1144,7 +1144,7 @@ void ImageEffect_BWSepia::slotUser3()
void ImageEffect_BWSepia::slotUser2()
{
KURL saveFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Black & White Settings File to Save")) );
if( saveFile.isEmpty() )

@ -140,16 +140,16 @@ ImageEffect_ICCProof::ImageEffect_ICCProof(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -256,8 +256,8 @@ ImageEffect_ICCProof::ImageEffect_ICCProof(TQWidget* parent)
lcmsLogoLabel->setAlignment( AlignTop | AlignRight );
lcmsLogoLabel->setText(TQString());
lcmsLogoLabel->setURL("http://www.littlecms.com");
KGlobal::dirs()->addResourceType("logo-lcms", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("logo-lcms", "logo-lcms.png");
TDEGlobal::dirs()->addResourceType("logo-lcms", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("logo-lcms", "logo-lcms.png");
lcmsLogoLabel->setPixmap( TQPixmap( directory + "logo-lcms.png" ) );
TQToolTip::add(lcmsLogoLabel, i18n("Visit Little CMS project website"));
@ -527,7 +527,7 @@ ImageEffect_ICCProof::~ImageEffect_ICCProof()
void ImageEffect_ICCProof::readUserSettings()
{
TQString defaultICCPath = KGlobalSettings::documentPath();
TQString defaultICCPath = TDEGlobalSettings::documentPath();
KConfig* config = kapp->config();
// General settings of digiKam Color Management
@ -1162,7 +1162,7 @@ bool ImageEffect_ICCProof::useDefaultProofProfile()
void ImageEffect_ICCProof::slotUser3()
{
KURL loadColorManagementFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadColorManagementFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Color Management Settings File to Load")) );
if( loadColorManagementFile.isEmpty() )
@ -1238,7 +1238,7 @@ void ImageEffect_ICCProof::slotUser3()
void ImageEffect_ICCProof::slotUser2()
{
KURL saveColorManagementFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveColorManagementFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Color Management Settings File to Save")) );
if( saveColorManagementFile.isEmpty() )

@ -110,16 +110,16 @@ ImageEffect_RedEye::ImageEffect_RedEye(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);

@ -109,16 +109,16 @@ ImageEffect_RGB::ImageEffect_RGB(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);

@ -168,8 +168,8 @@ ImageEffect_RatioCrop::ImageEffect_RatioCrop(TQWidget* parent)
m_imageSelectionWidget->getWidthStep(), true);
m_centerWidth = new TQPushButton(cropSelection);
KGlobal::dirs()->addResourceType("centerwidth", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("centerwidth", "centerwidth.png");
TDEGlobal::dirs()->addResourceType("centerwidth", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("centerwidth", "centerwidth.png");
m_centerWidth->setPixmap( TQPixmap( directory + "centerwidth.png" ) );
TQWhatsThis::add( m_centerWidth, i18n("<p>Set width position to center."));
@ -192,8 +192,8 @@ ImageEffect_RatioCrop::ImageEffect_RatioCrop(TQWidget* parent)
m_imageSelectionWidget->getHeightStep(), true);
m_centerHeight = new TQPushButton(cropSelection);
KGlobal::dirs()->addResourceType("centerheight", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("centerheight", "centerheight.png");
TDEGlobal::dirs()->addResourceType("centerheight", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("centerheight", "centerheight.png");
m_centerHeight->setPixmap( TQPixmap( directory + "centerheight.png" ) );
TQWhatsThis::add( m_centerHeight, i18n("<p>Set height position to center."));

@ -189,8 +189,8 @@ RatioCropTool::RatioCropTool(TQObject* parent)
TQWhatsThis::add( m_widthInput, i18n("<p>Set here the width selection for cropping."));
m_centerWidth = new TQToolButton(cropSelection);
KGlobal::dirs()->addResourceType("centerwidth", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("centerwidth", "centerwidth.png");
TDEGlobal::dirs()->addResourceType("centerwidth", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("centerwidth", "centerwidth.png");
m_centerWidth->setPixmap(TQPixmap(directory + "centerwidth.png"));
TQWhatsThis::add(m_centerWidth, i18n("<p>Set width position to center."));
@ -211,8 +211,8 @@ RatioCropTool::RatioCropTool(TQObject* parent)
TQWhatsThis::add( m_heightInput, i18n("<p>Set here the height selection for cropping."));
m_centerHeight = new TQToolButton(cropSelection);
KGlobal::dirs()->addResourceType("centerheight", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("centerheight", "centerheight.png");
TDEGlobal::dirs()->addResourceType("centerheight", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("centerheight", "centerheight.png");
m_centerHeight->setPixmap(TQPixmap(directory + "centerheight.png"));
TQWhatsThis::add(m_centerHeight, i18n("<p>Set height position to center."));

@ -125,16 +125,16 @@ RedEyeTool::RedEyeTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(linHistoButton, i18n("<p>Linear"));
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap(TQPixmap(directory + "histogram-lin.png"));
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap(TQPixmap(directory + "histogram-log.png"));
logHistoButton->setToggleButton(true);

@ -122,16 +122,16 @@ RGBTool::RGBTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(linHistoButton, i18n("<p>Linear"));
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap(TQPixmap(directory + "histogram-lin.png"));
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton(m_scaleBG);
TQToolTip::add(logHistoButton, i18n("<p>Logarithmic"));
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap(TQPixmap(directory + "histogram-log.png"));
logHistoButton->setToggleButton(true);

@ -633,7 +633,7 @@ void ImageEffect_Sharpen::putFinalData(void)
void ImageEffect_Sharpen::slotUser3()
{
KURL loadRestorationFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadRestorationFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Refocus Settings File to Load")) );
if ( loadRestorationFile.isEmpty() )
@ -669,7 +669,7 @@ void ImageEffect_Sharpen::slotUser3()
void ImageEffect_Sharpen::slotUser2()
{
KURL saveRestorationFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveRestorationFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Refocus Settings File to Save")) );
if ( saveRestorationFile.isEmpty() )

@ -678,7 +678,7 @@ void SharpenTool::putFinalData()
void SharpenTool::slotLoadSettings()
{
KURL loadRestorationFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadRestorationFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), TQT_TQWIDGET(kapp->activeWindow()),
TQString( i18n("Photograph Refocus Settings File to Load")) );
if ( loadRestorationFile.isEmpty() )
@ -714,7 +714,7 @@ void SharpenTool::slotLoadSettings()
void SharpenTool::slotSaveAsSettings()
{
KURL saveRestorationFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveRestorationFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), TQT_TQWIDGET(kapp->activeWindow()),
TQString( i18n("Photograph Refocus Settings File to Save")) );
if ( saveRestorationFile.isEmpty() )

@ -167,8 +167,8 @@ ImageEffect_InPainting_Dialog::ImageEffect_InPainting_Dialog(TQWidget* parent)
KURLLabel *cimgLogoLabel = new KURLLabel(firstPage);
cimgLogoLabel->setText(TQString());
cimgLogoLabel->setURL("http://cimg.sourceforge.net");
KGlobal::dirs()->addResourceType("logo-cimg", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
TDEGlobal::dirs()->addResourceType("logo-cimg", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
cimgLogoLabel->setPixmap( TQPixmap( directory + "logo-cimg.png" ) );
TQToolTip::add(cimgLogoLabel, i18n("Visit CImg library website"));
@ -415,7 +415,7 @@ void ImageEffect_InPainting_Dialog::putFinalData(void)
void ImageEffect_InPainting_Dialog::slotUser3()
{
KURL loadInpaintingFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadInpaintingFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Inpainting Settings File to Load")) );
if( loadInpaintingFile.isEmpty() )
@ -446,7 +446,7 @@ void ImageEffect_InPainting_Dialog::slotUser3()
void ImageEffect_InPainting_Dialog::slotUser2()
{
KURL saveRestorationFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveRestorationFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Inpainting Settings File to Save")) );
if( saveRestorationFile.isEmpty() )

@ -115,8 +115,8 @@ InPaintingTool::InPaintingTool(TQObject* parent)
KURLLabel *cimgLogoLabel = new KURLLabel(firstPage);
cimgLogoLabel->setText(TQString());
cimgLogoLabel->setURL("http://cimg.sourceforge.net");
KGlobal::dirs()->addResourceType("logo-cimg", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
TDEGlobal::dirs()->addResourceType("logo-cimg", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
cimgLogoLabel->setPixmap( TQPixmap( directory + "logo-cimg.png" ) );
TQToolTip::add(cimgLogoLabel, i18n("Visit CImg library website"));
@ -380,7 +380,7 @@ void InPaintingTool::putFinalData()
void InPaintingTool::slotLoadSettings()
{
KURL loadInpaintingFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadInpaintingFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Photograph Inpainting Settings File to Load")) );
if( loadInpaintingFile.isEmpty() )
@ -411,7 +411,7 @@ void InPaintingTool::slotLoadSettings()
void InPaintingTool::slotSaveAsSettings()
{
KURL saveRestorationFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveRestorationFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Photograph Inpainting Settings File to Save")) );
if( saveRestorationFile.isEmpty() )

@ -294,13 +294,13 @@ FontChooserWidget::FontChooserWidget(TQWidget *parent, const char *name,
vbox->addWidget( xlfdEdit );
// lets initialize the display if possible
setFont( KGlobalSettings::generalFont(), usingFixed );
setFont( TDEGlobalSettings::generalFont(), usingFixed );
// check or uncheck or gray out the "relative" checkbox
if( sizeIsRelativeState && sizeIsRelativeCheckBox )
setSizeIsRelative( *sizeIsRelativeState );
KConfig *config = KGlobal::config();
KConfig *config = TDEGlobal::config();
KConfigGroupSaver saver(config, TQString::fromLatin1("General"));
showXLFDArea(config->readBoolEntry(TQString::fromLatin1("fontSelectorShowXLFD"), false));
}

@ -477,7 +477,7 @@ void ImageEffect_NoiseReduction::putFinalData(void)
void ImageEffect_NoiseReduction::slotUser3()
{
KURL loadRestorationFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadRestorationFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Noise Reduction Settings File to Load")) );
if ( loadRestorationFile.isEmpty() )
@ -519,7 +519,7 @@ void ImageEffect_NoiseReduction::slotUser3()
void ImageEffect_NoiseReduction::slotUser2()
{
KURL saveRestorationFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveRestorationFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Noise Reduction Settings File to Save")) );
if ( saveRestorationFile.isEmpty() )

@ -462,7 +462,7 @@ void NoiseReductionTool::putFinalData()
void NoiseReductionTool::slotLoadSettings()
{
KURL loadRestorationFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadRestorationFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Photograph Noise Reduction Settings File to Load")) );
if ( loadRestorationFile.isEmpty() )
@ -503,7 +503,7 @@ void NoiseReductionTool::slotLoadSettings()
void NoiseReductionTool::slotSaveAsSettings()
{
KURL saveRestorationFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveRestorationFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Photograph Noise Reduction Settings File to Save")) );
if ( saveRestorationFile.isEmpty() )

@ -99,8 +99,8 @@ ImageEffect_Restoration::ImageEffect_Restoration(TQWidget* parent)
KURLLabel *cimgLogoLabel = new KURLLabel(firstPage);
cimgLogoLabel->setText(TQString());
cimgLogoLabel->setURL("http://cimg.sourceforge.net");
KGlobal::dirs()->addResourceType("logo-cimg", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
TDEGlobal::dirs()->addResourceType("logo-cimg", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
cimgLogoLabel->setPixmap( TQPixmap( directory + "logo-cimg.png" ) );
TQToolTip::add(cimgLogoLabel, i18n("Visit CImg library website"));
@ -296,7 +296,7 @@ void ImageEffect_Restoration::putFinalData(void)
void ImageEffect_Restoration::slotUser3()
{
KURL loadRestorationFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadRestorationFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Restoration Settings File to Load")) );
if( loadRestorationFile.isEmpty() )
@ -329,7 +329,7 @@ void ImageEffect_Restoration::slotUser3()
void ImageEffect_Restoration::slotUser2()
{
KURL saveRestorationFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveRestorationFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Restoration Settings File to Save")) );
if( saveRestorationFile.isEmpty() )

@ -90,8 +90,8 @@ RestorationTool::RestorationTool(TQObject* parent)
KURLLabel *cimgLogoLabel = new KURLLabel(firstPage);
cimgLogoLabel->setText(TQString());
cimgLogoLabel->setURL("http://cimg.sourceforge.net");
KGlobal::dirs()->addResourceType("logo-cimg", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
TDEGlobal::dirs()->addResourceType("logo-cimg", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
cimgLogoLabel->setPixmap( TQPixmap( directory + "logo-cimg.png" ) );
TQToolTip::add(cimgLogoLabel, i18n("Visit CImg library website"));
@ -303,7 +303,7 @@ void RestorationTool::putFinalData()
void RestorationTool::slotLoadSettings()
{
KURL loadRestorationFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadRestorationFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Photograph Restoration Settings File to Load")) );
if( loadRestorationFile.isEmpty() )
@ -336,7 +336,7 @@ void RestorationTool::slotLoadSettings()
void RestorationTool::slotSaveAsSettings()
{
KURL saveRestorationFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveRestorationFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("Photograph Restoration Settings File to Save")) );
if( saveRestorationFile.isEmpty() )

@ -213,7 +213,7 @@ void ImageEffect_SuperImpose::readUserSettings()
{
KConfig* config = kapp->config();
config->setGroup("Album Settings");
KURL albumDBUrl( config->readPathEntry("Album Path", KGlobalSettings::documentPath()) );
KURL albumDBUrl( config->readPathEntry("Album Path", TDEGlobalSettings::documentPath()) );
config->setGroup("superimpose Tool Dialog");
config->setGroup("Template Superimpose Tool Settings");
m_templatesRootUrl.setPath( config->readEntry("Templates Root URL", albumDBUrl.path()) );

@ -205,7 +205,7 @@ void SuperImposeTool::readSettings()
{
KConfig* config = kapp->config();
config->setGroup("Album Settings");
KURL albumDBUrl( config->readPathEntry("Album Path", KGlobalSettings::documentPath()) );
KURL albumDBUrl( config->readPathEntry("Album Path", TDEGlobalSettings::documentPath()) );
config->setGroup("superimpose Tool");
config->setGroup("Template Superimpose Tool Settings");
m_templatesRootUrl.setPath( config->readEntry("Templates Root URL", albumDBUrl.path()) );

@ -282,9 +282,9 @@ TQString ImageEffect_Texture::getTexturePath(int texture)
break;
}
KGlobal::dirs()->addResourceType(pattern.ascii(), KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType(pattern.ascii(), TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
return (KGlobal::dirs()->findResourceDir(pattern.ascii(), pattern + ".png") + pattern + ".png" );
return (TDEGlobal::dirs()->findResourceDir(pattern.ascii(), pattern + ".png") + pattern + ".png" );
}
} // NameSpace DigikamTextureImagesPlugin

@ -287,8 +287,8 @@ TQString TextureTool::getTexturePath(int texture)
break;
}
KGlobal::dirs()->addResourceType(pattern.ascii(), KGlobal::dirs()->kde_default("data") + "digikam/data");
return (KGlobal::dirs()->findResourceDir(pattern.ascii(), pattern + ".png") + pattern + ".png" );
TDEGlobal::dirs()->addResourceType(pattern.ascii(), TDEGlobal::dirs()->kde_default("data") + "digikam/data");
return (TDEGlobal::dirs()->findResourceDir(pattern.ascii(), pattern + ".png") + pattern + ".png" );
}
} // NameSpace DigikamTextureImagesPlugin

@ -148,16 +148,16 @@ ImageEffect_WhiteBalance::ImageEffect_WhiteBalance(TQWidget* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -229,8 +229,8 @@ ImageEffect_WhiteBalance::ImageEffect_WhiteBalance(TQWidget* parent)
"<b>Daylight D65</b>: overcast sky light (6500K).<p>"
"<b>None</b>: no preset value."));
m_pickTemperature = new TQPushButton(gboxSettings);
KGlobal::dirs()->addResourceType("color-picker-grey", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
TDEGlobal::dirs()->addResourceType("color-picker-grey", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
m_pickTemperature->setPixmap( TQPixmap( directory + "color-picker-grey.png" ) );
m_pickTemperature->setToggleButton(true);
TQToolTip::add( m_pickTemperature, i18n( "Temperature tone color picker." ) );
@ -768,7 +768,7 @@ void ImageEffect_WhiteBalance::writeUserSettings()
// Load all settings.
void ImageEffect_WhiteBalance::slotUser3()
{
KURL loadWhiteBalanceFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadWhiteBalanceFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("White Color Balance Settings File to Load")) );
if( loadWhiteBalanceFile.isEmpty() )
@ -811,7 +811,7 @@ void ImageEffect_WhiteBalance::slotUser3()
// Save all settings.
void ImageEffect_WhiteBalance::slotUser2()
{
KURL saveWhiteBalanceFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveWhiteBalanceFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("White Color Balance Settings File to Save")) );
if( saveWhiteBalanceFile.isEmpty() )

@ -144,16 +144,16 @@ WhiteBalanceTool::WhiteBalanceTool(TQObject* parent)
TQPushButton *linHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
m_scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( m_scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
m_scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -228,8 +228,8 @@ WhiteBalanceTool::WhiteBalanceTool(TQObject* parent)
"<b>Daylight D65</b>: overcast sky light (6500K).<p>"
"<b>None</b>: no preset value."));
m_pickTemperature = new TQPushButton(m_gboxSettings->plainPage());
KGlobal::dirs()->addResourceType("color-picker-grey", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
TDEGlobal::dirs()->addResourceType("color-picker-grey", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("color-picker-grey", "color-picker-grey.png");
m_pickTemperature->setPixmap( TQPixmap( directory + "color-picker-grey.png" ) );
m_pickTemperature->setToggleButton(true);
TQToolTip::add( m_pickTemperature, i18n( "Temperature tone color picker." ) );
@ -778,7 +778,7 @@ void WhiteBalanceTool::writeSettings()
void WhiteBalanceTool::slotLoadSettings()
{
KURL loadWhiteBalanceFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadWhiteBalanceFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("White Color Balance Settings File to Load")) );
if( loadWhiteBalanceFile.isEmpty() )
@ -820,7 +820,7 @@ void WhiteBalanceTool::slotLoadSettings()
void WhiteBalanceTool::slotSaveAsSettings()
{
KURL saveWhiteBalanceFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveWhiteBalanceFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), kapp->activeWindow(),
TQString( i18n("White Color Balance Settings File to Save")) );
if( saveWhiteBalanceFile.isEmpty() )

@ -1953,7 +1953,7 @@ extern "C"
{
KLocale::setMainCatalogue("digikam");
TDEInstance instance( "kio_digikamalbums" );
KGlobal::locale();
TDEGlobal::locale();
if (argc != 4) {
kdDebug() << "Usage: kio_digikamalbums protocol domain-socket1 domain-socket2"

@ -296,7 +296,7 @@ extern "C"
{
KLocale::setMainCatalogue("digikam");
TDEInstance instance( "kio_digikamdates" );
KGlobal::locale();
TDEGlobal::locale();
if (argc != 4) {
kdDebug() << "Usage: kio_digikamdates protocol domain-socket1 domain-socket2"

@ -73,7 +73,7 @@ kio_digikamsearch::kio_digikamsearch(const TQCString &pool_socket,
: SlaveBase("kio_digikamsearch", pool_socket, app_socket)
{
// build a lookup table for month names
const KCalendarSystem* cal = KGlobal::locale()->calendar();
const KCalendarSystem* cal = TDEGlobal::locale()->calendar();
for (int i=1; i<=12; ++i)
{
m_shortMonths[i-1] = cal->monthName(i, 2000, true).lower();
@ -676,7 +676,7 @@ extern "C"
{
KLocale::setMainCatalogue("digikam");
TDEInstance instance( "kio_digikamsearch" );
KGlobal::locale();
TDEGlobal::locale();
if (argc != 4)
{

@ -305,7 +305,7 @@ extern "C"
{
KLocale::setMainCatalogue("digikam");
TDEInstance instance( "kio_digikamtags" );
( void ) KGlobal::locale();
( void ) TDEGlobal::locale();
kdDebug() << "*** kio_digikamtag started ***" << endl;

@ -616,7 +616,7 @@ extern "C"
{
KLocale::setMainCatalogue("digikam");
TDEInstance instance( "kio_digikamthumbnail" );
( void ) KGlobal::locale();
( void ) TDEGlobal::locale();
if (argc != 4)
{

@ -114,13 +114,13 @@ void DeleteWidget::updateText()
{
ddDeleteText->setText(i18n("<qt>These items will be <b>permanently "
"deleted</b> from your hard disk.</qt>"));
ddWarningIcon->setPixmap(KGlobal::iconLoader()->loadIcon("messagebox_warning",
ddWarningIcon->setPixmap(TDEGlobal::iconLoader()->loadIcon("messagebox_warning",
KIcon::Desktop, KIcon::SizeLarge));
}
else
{
ddDeleteText->setText(i18n("<qt>These items will be moved to Trash.</qt>"));
ddWarningIcon->setPixmap(KGlobal::iconLoader()->loadIcon("trashcan_full",
ddWarningIcon->setPixmap(TDEGlobal::iconLoader()->loadIcon("trashcan_full",
KIcon::Desktop, KIcon::SizeLarge));
}
ddNumFiles->setText(i18n("<b>1</b> file selected.", "<b>%n</b> files selected.", ddFileList->count()));
@ -134,13 +134,13 @@ void DeleteWidget::updateText()
{
ddDeleteText->setText(i18n("<qt>These albums will be <b>permanently "
"deleted</b> from your hard disk.</qt>"));
ddWarningIcon->setPixmap(KGlobal::iconLoader()->loadIcon("messagebox_warning",
ddWarningIcon->setPixmap(TDEGlobal::iconLoader()->loadIcon("messagebox_warning",
KIcon::Desktop, KIcon::SizeLarge));
}
else
{
ddDeleteText->setText(i18n("<qt>These albums will be moved to Trash.</qt>"));
ddWarningIcon->setPixmap(KGlobal::iconLoader()->loadIcon("trashcan_full",
ddWarningIcon->setPixmap(TDEGlobal::iconLoader()->loadIcon("trashcan_full",
KIcon::Desktop, KIcon::SizeLarge));
}
ddNumFiles->setText(i18n("<b>1</b> album selected.", "<b>%n</b> albums selected.", ddFileList->count()));
@ -157,7 +157,7 @@ void DeleteWidget::updateText()
"Note that <b>all subalbums</b> "
"are included in this list and will "
"be deleted permanently as well.</qt>"));
ddWarningIcon->setPixmap(KGlobal::iconLoader()->loadIcon("messagebox_warning",
ddWarningIcon->setPixmap(TDEGlobal::iconLoader()->loadIcon("messagebox_warning",
KIcon::Desktop, KIcon::SizeLarge));
}
else
@ -166,7 +166,7 @@ void DeleteWidget::updateText()
"Note that <b>all subalbums</b> "
"are included in this list and will "
"be moved to Trash as well.</qt>"));
ddWarningIcon->setPixmap(KGlobal::iconLoader()->loadIcon("trashcan_full",
ddWarningIcon->setPixmap(TDEGlobal::iconLoader()->loadIcon("trashcan_full",
KIcon::Desktop, KIcon::SizeLarge));
}
ddNumFiles->setText(i18n("<b>1</b> album selected.", "<b>%n</b> albums selected.", ddFileList->count()));

@ -140,7 +140,7 @@ void DProgressDlg::addedAction(const TQPixmap& pix, const TQString &text)
if (pix.isNull())
{
TQString dir = KGlobal::dirs()->findResourceDir("digikam_imagebroken",
TQString dir = TDEGlobal::dirs()->findResourceDir("digikam_imagebroken",
"image-broken.png");
dir = dir + "/image-broken.png";
TQPixmap pixbi(dir);

@ -180,7 +180,7 @@ void ImageDialogPreview::showPreview(const KURL& url)
else model = info.model;
if (!info.dateTime.isValid()) dateTime = unavailable;
else dateTime = KGlobal::locale()->formatDateTime(info.dateTime, true, true);
else dateTime = TDEGlobal::locale()->formatDateTime(info.dateTime, true, true);
if (info.aperture.isEmpty()) aperture = unavailable;
else aperture = info.aperture;

@ -52,7 +52,7 @@ Ddbgstream::Ddbgstream(kdbgstream stream)
// leak the mutex object for simplicity
_ddebug_mutex_ = new TQMutex;
//deleter.setObject(mutex, new TQMutex);
//KGlobal::unregisterStaticDeleter(&deleter);
//TDEGlobal::unregisterStaticDeleter(&deleter);
}
_ddebug_mutex_->lock();
}
@ -72,7 +72,7 @@ Dndbgstream::Dndbgstream(kndbgstream stream)
// leak the mutex object for simplicity
_ddebug_mutex_ = new TQMutex;
//deleter.setObject(mutex, new TQMutex);
//KGlobal::unregisterStaticDeleter(&deleter);
//TDEGlobal::unregisterStaticDeleter(&deleter);
}
_ddebug_mutex_->lock();
}

@ -168,13 +168,13 @@ bool DImgLoader::checkExifWorkingColorSpace()
}
// Else check the Exif color-space tag and use a default profiles available in digiKam.
KGlobal::dirs()->addResourceType("profiles", KGlobal::dirs()->kde_default("data") + "digikam/profiles");
TDEGlobal::dirs()->addResourceType("profiles", TDEGlobal::dirs()->kde_default("data") + "digikam/profiles");
switch(metaData.getImageColorWorkSpace())
{
case DMetadata::WORKSPACE_SRGB:
{
TQString directory = KGlobal::dirs()->findResourceDir("profiles", "srgb-d65.icm");
TQString directory = TDEGlobal::dirs()->findResourceDir("profiles", "srgb-d65.icm");
m_image->getICCProfilFromFile(directory + "srgb-d65.icm");
DDebug() << "Exif color-space tag is sRGB. Using default sRGB ICC profile." << endl;
return true;
@ -183,7 +183,7 @@ bool DImgLoader::checkExifWorkingColorSpace()
case DMetadata::WORKSPACE_ADOBERGB:
{
TQString directory = KGlobal::dirs()->findResourceDir("profiles", "adobergb.icm");
TQString directory = TDEGlobal::dirs()->findResourceDir("profiles", "adobergb.icm");
m_image->getICCProfilFromFile(directory + "adobergb.icm");
DDebug() << "Exif color-space tag is AdobeRGB. Using default AdobeRGB ICC profile." << endl;
return true;

@ -52,9 +52,9 @@ public:
virtual float granularity()
{ return 1.0; };
// This is a hack needed to prevent hanging when a KProcess-based loader (raw loader)
// This is a hack needed to prevent hanging when a TDEProcess-based loader (raw loader)
// is waiting for the process to finish, but the main thread is waiting
// for the thread to finish and no KProcess events are delivered.
// for the thread to finish and no TDEProcess events are delivered.
// Remove when porting to TQt4.
virtual bool isShuttingDown()
{ return false; }

@ -63,7 +63,7 @@ bool RAWLoader::load(const TQString& filePath, DImgLoaderObserver *observer)
{
m_observer = observer;
// We are using KProcess here, and make two assumptions:
// We are using TDEProcess here, and make two assumptions:
// - there is an event loop (not for ioslaves)
// - we are not called from the event loop thread
// These assumptions are currently true for all use cases in digikam,
@ -261,30 +261,30 @@ bool RAWLoader::loadedFromDcraw(TQByteArray data, int width, int height, int rgb
//----------------------------------------------------------
// Assign the right color-space profile.
KGlobal::dirs()->addResourceType("profiles", KGlobal::dirs()->kde_default("data") + "digikam/profiles");
TDEGlobal::dirs()->addResourceType("profiles", TDEGlobal::dirs()->kde_default("data") + "digikam/profiles");
switch(m_rawDecodingSettings.outputColorSpace)
{
case DRawDecoding::SRGB:
{
TQString directory = KGlobal::dirs()->findResourceDir("profiles", "srgb.icm");
TQString directory = TDEGlobal::dirs()->findResourceDir("profiles", "srgb.icm");
m_image->getICCProfilFromFile(directory + "srgb.icm");
break;
}
case DRawDecoding::ADOBERGB:
{
TQString directory = KGlobal::dirs()->findResourceDir("profiles", "adobergb.icm");
TQString directory = TDEGlobal::dirs()->findResourceDir("profiles", "adobergb.icm");
m_image->getICCProfilFromFile(directory + "adobergb.icm");
break;
}
case DRawDecoding::WIDEGAMMUT:
{
TQString directory = KGlobal::dirs()->findResourceDir("profiles", "widegamut.icm");
TQString directory = TDEGlobal::dirs()->findResourceDir("profiles", "widegamut.icm");
m_image->getICCProfilFromFile(directory + "widegamut.icm");
break;
}
case DRawDecoding::PROPHOTO:
{
TQString directory = KGlobal::dirs()->findResourceDir("profiles", "prophoto.icm");
TQString directory = TDEGlobal::dirs()->findResourceDir("profiles", "prophoto.icm");
m_image->getICCProfilFromFile(directory + "prophoto.icm");
break;
}

@ -397,10 +397,10 @@ void CameraItemPropertiesTab::setCurrentItem(const GPItemInfo* itemInfo,
TQDateTime date;
date.setTime_t(itemInfo->mtime);
d->labelFileDate->setText(KGlobal::locale()->formatDateTime(date, true, true));
d->labelFileDate->setText(TDEGlobal::locale()->formatDateTime(date, true, true));
str = i18n("%1 (%2)").arg(KIO::convertSize(itemInfo->size))
.arg(KGlobal::locale()->formatNumber(itemInfo->size, 0));
.arg(TDEGlobal::locale()->formatNumber(itemInfo->size, 0));
d->labelFileSize->setText(str);
// -- Image Properties --------------------------------------------------
@ -517,7 +517,7 @@ void CameraItemPropertiesTab::setCurrentItem(const GPItemInfo* itemInfo,
if (photoInfo.dateTime.isValid())
{
str = KGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
str = TDEGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
d->labelPhotoDateTime->setText(str);
}
else

@ -196,16 +196,16 @@ ImagePropertiesColorsTab::ImagePropertiesColorsTab(TQWidget* parent, bool navBar
TQPushButton *linHistoButton = new TQPushButton( d->scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
d->scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( d->scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
d->scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
@ -234,16 +234,16 @@ ImagePropertiesColorsTab::ImagePropertiesColorsTab(TQWidget* parent, bool navBar
TQPushButton *fullImageButton = new TQPushButton( d->regionBG );
TQToolTip::add( fullImageButton, i18n( "<p>Full Image" ) );
d->regionBG->insert(fullImageButton, HistogramWidget::FullImageHistogram);
KGlobal::dirs()->addResourceType("image-full", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("image-full", "image-full.png");
TDEGlobal::dirs()->addResourceType("image-full", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("image-full", "image-full.png");
fullImageButton->setPixmap( TQPixmap( directory + "image-full.png" ) );
fullImageButton->setToggleButton(true);
TQPushButton *SelectionImageButton = new TQPushButton( d->regionBG );
TQToolTip::add( SelectionImageButton, i18n( "<p>Selection" ) );
d->regionBG->insert(SelectionImageButton, HistogramWidget::ImageSelectionHistogram);
KGlobal::dirs()->addResourceType("image-selection", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("image-selection", "image-selection.png");
TDEGlobal::dirs()->addResourceType("image-selection", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("image-selection", "image-selection.png");
SelectionImageButton->setPixmap( TQPixmap( directory + "image-selection.png" ) );
SelectionImageButton->setToggleButton(true);

@ -422,11 +422,11 @@ void ImagePropertiesTab::setCurrentURL(const KURL& url)
d->labelFolder->setText(url.directory());
TQDateTime modifiedDate = fileInfo.lastModified();
str = KGlobal::locale()->formatDateTime(modifiedDate, true, true);
str = TDEGlobal::locale()->formatDateTime(modifiedDate, true, true);
d->labelFileModifiedDate->setText(str);
str = TQString("%1 (%2)").arg(KIO::convertSize(fi.size()))
.arg(KGlobal::locale()->formatNumber(fi.size(), 0));
.arg(TDEGlobal::locale()->formatNumber(fi.size(), 0));
d->labelFileSize->setText(str);
d->labelFileOwner->setText( TQString("%1 - %2").arg(fi.user()).arg(fi.group()) );
@ -563,7 +563,7 @@ void ImagePropertiesTab::setCurrentURL(const KURL& url)
if (photoInfo.dateTime.isValid())
{
str = KGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
str = TDEGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
d->labelPhotoDateTime->setText(str);
}
else

@ -88,8 +88,8 @@ ThemeEngine* ThemeEngine::instance()
ThemeEngine::ThemeEngine()
{
m_instance = this;
KGlobal::dirs()->addResourceType("themes",
KGlobal::dirs()->kde_default("data")
TDEGlobal::dirs()->addResourceType("themes",
TDEGlobal::dirs()->kde_default("data")
+ "digikam/themes");
d = new ThemeEnginePriv;
@ -195,7 +195,7 @@ void ThemeEngine::scanThemes()
d->themeDict.clear();
d->currTheme = 0;
TQStringList themes = KGlobal::dirs()->findAllResources( "themes", TQString(), false, true );
TQStringList themes = TDEGlobal::dirs()->findAllResources( "themes", TQString(), false, true );
for (TQStringList::iterator it=themes.begin(); it != themes.end();
++it)

@ -110,9 +110,9 @@ void LoadingTask::setStatus(LoadingTaskStatus status)
}
// This is a hack needed to prevent hanging when a KProcess-based loader (raw loader)
// This is a hack needed to prevent hanging when a TDEProcess-based loader (raw loader)
// is waiting for the process to finish, but the main thread is waiting
// for the thread to finish and no KProcess events are delivered.
// for the thread to finish and no TDEProcess events are delivered.
// Remove when porting to TQt4.
bool LoadingTask::isShuttingDown()
{

@ -192,9 +192,9 @@ bool LoadSaveThread::querySendNotifyEvent()
}
// This is a hack needed to prevent hanging when a KProcess-based loader (raw loader)
// This is a hack needed to prevent hanging when a TDEProcess-based loader (raw loader)
// is waiting for the process to finish, but the main thread is waiting
// for the thread to finish and no KProcess events are delivered.
// for the thread to finish and no TDEProcess events are delivered.
// Remove when porting to TQt4.
bool LoadSaveThread::isShuttingDown()
{

@ -952,7 +952,7 @@ TQString ThumbBarToolTip::tipContent(ThumbBarItem* item)
if (settings.showFileDate)
{
TQDateTime modifiedDate = fileInfo.lastModified();
str = KGlobal::locale()->formatDateTime(modifiedDate, true, true);
str = TDEGlobal::locale()->formatDateTime(modifiedDate, true, true);
tipText += m_cellBeg + i18n("Modified:") + m_cellMid + str + m_cellEnd;
}
@ -960,7 +960,7 @@ TQString ThumbBarToolTip::tipContent(ThumbBarItem* item)
{
tipText += m_cellBeg + i18n("Size:") + m_cellMid;
str = i18n("%1 (%2)").arg(KIO::convertSize(fi.size()))
.arg(KGlobal::locale()->formatNumber(fi.size(), 0));
.arg(TDEGlobal::locale()->formatNumber(fi.size(), 0));
tipText += str + m_cellEnd;
}
@ -1037,7 +1037,7 @@ TQString ThumbBarToolTip::tipContent(ThumbBarItem* item)
{
if (photoInfo.dateTime.isValid())
{
str = KGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
str = TDEGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
if (str.length() > m_maxStringLen) str = str.left(m_maxStringLen-3) + "...";
metaStr += m_cellBeg + i18n("Created:") + m_cellMid + TQStyleSheet::escape( str ) + m_cellEnd;
}

@ -64,8 +64,8 @@ int DLogoAction::plug(TQWidget *widget, int index)
pixmapLogo->setScaledContents(false);
pixmapLogo->setSizePolicy(TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum));
TQToolTip::add(pixmapLogo, i18n("Visit digiKam project website"));
KGlobal::dirs()->addResourceType("banner-digikam", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("banner-digikam", "banner-digikam.png");
TDEGlobal::dirs()->addResourceType("banner-digikam", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("banner-digikam", "banner-digikam.png");
pixmapLogo->setPixmap(TQPixmap( directory + "banner-digikam.png" ));
pixmapLogo->setFocusPolicy(TQ_NoFocus);

@ -187,8 +187,8 @@ SearchTextBar::SearchTextBar(TQWidget *parent, const char* name, const TQString
KConfig *config = kapp->config();
config->setGroup(name + TQString(" Search Text Tool"));
d->searchEdit->setCompletionMode((KGlobalSettings::Completion)config->readNumEntry("AutoCompletionMode",
(int)KGlobalSettings::CompletionAuto));
d->searchEdit->setCompletionMode((TDEGlobalSettings::Completion)config->readNumEntry("AutoCompletionMode",
(int)TDEGlobalSettings::CompletionAuto));
}
SearchTextBar::~SearchTextBar()

@ -135,7 +135,7 @@ void SplashScreen::drawContents(TQPainter* painter)
painter->setPen(d->color);
TQFont fnt(KGlobalSettings::generalFont());
TQFont fnt(TDEGlobalSettings::generalFont());
int fntSize = fnt.pointSize();
if (fntSize > 0)
{

@ -70,8 +70,8 @@ void StatusLed::setLedColor(LedColor color)
break;
}
KGlobal::dirs()->addResourceType(file.ascii(), KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir(file.ascii(), file + TQString(".png"));
TDEGlobal::dirs()->addResourceType(file.ascii(), TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir(file.ascii(), file + TQString(".png"));
setPixmap(TQPixmap(directory + file + TQString(".png")));
}

@ -112,8 +112,8 @@ ImagePanelWidget::ImagePanelWidget(uint w, uint h, const TQString& settingsSecti
{
TQPushButton *duplicateHorButton = new TQPushButton( d->separateView );
d->separateView->insert(duplicateHorButton, ImageRegionWidget::SeparateViewDuplicateHorz);
KGlobal::dirs()->addResourceType("duplicatebothhorz", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("duplicatebothhorz", "duplicatebothhorz.png");
TDEGlobal::dirs()->addResourceType("duplicatebothhorz", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("duplicatebothhorz", "duplicatebothhorz.png");
duplicateHorButton->setPixmap( TQPixmap( directory + "duplicatebothhorz.png" ) );
duplicateHorButton->setToggleButton(true);
TQWhatsThis::add( duplicateHorButton, i18n("<p>If you enable this option, you will separate the preview area "
@ -123,8 +123,8 @@ ImagePanelWidget::ImagePanelWidget(uint w, uint h, const TQString& settingsSecti
TQPushButton *duplicateVerButton = new TQPushButton( d->separateView );
d->separateView->insert(duplicateVerButton, ImageRegionWidget::SeparateViewDuplicateVert);
KGlobal::dirs()->addResourceType("duplicatebothvert", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("duplicatebothvert", "duplicatebothvert.png");
TDEGlobal::dirs()->addResourceType("duplicatebothvert", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("duplicatebothvert", "duplicatebothvert.png");
duplicateVerButton->setPixmap( TQPixmap( directory + "duplicatebothvert.png" ) );
duplicateVerButton->setToggleButton(true);
TQWhatsThis::add( duplicateVerButton, i18n("<p>If you enable this option, you will separate the preview area "
@ -138,8 +138,8 @@ ImagePanelWidget::ImagePanelWidget(uint w, uint h, const TQString& settingsSecti
{
TQPushButton *separateHorButton = new TQPushButton( d->separateView );
d->separateView->insert(separateHorButton, ImageRegionWidget::SeparateViewHorizontal);
KGlobal::dirs()->addResourceType("bothhorz", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("bothhorz", "bothhorz.png");
TDEGlobal::dirs()->addResourceType("bothhorz", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("bothhorz", "bothhorz.png");
separateHorButton->setPixmap( TQPixmap( directory + "bothhorz.png" ) );
separateHorButton->setToggleButton(true);
TQWhatsThis::add( separateHorButton, i18n( "<p>If you enable this option, you will separate the preview area "
@ -149,8 +149,8 @@ ImagePanelWidget::ImagePanelWidget(uint w, uint h, const TQString& settingsSecti
TQPushButton *separateVerButton = new TQPushButton( d->separateView );
d->separateView->insert(separateVerButton, ImageRegionWidget::SeparateViewVertical);
KGlobal::dirs()->addResourceType("bothvert", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("bothvert", "bothvert.png");
TDEGlobal::dirs()->addResourceType("bothvert", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("bothvert", "bothvert.png");
separateVerButton->setPixmap( TQPixmap( directory + "bothvert.png" ) );
separateVerButton->setToggleButton(true);
TQWhatsThis::add( separateVerButton, i18n( "<p>If you enable this option, you will separate the preview area "
@ -161,8 +161,8 @@ ImagePanelWidget::ImagePanelWidget(uint w, uint h, const TQString& settingsSecti
TQPushButton *noSeparateButton = new TQPushButton( d->separateView );
d->separateView->insert(noSeparateButton, ImageRegionWidget::SeparateViewNone);
KGlobal::dirs()->addResourceType("target", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("target", "target.png");
TDEGlobal::dirs()->addResourceType("target", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("target", "target.png");
noSeparateButton->setPixmap( TQPixmap( directory + "target.png" ) );
noSeparateButton->setToggleButton(true);
TQWhatsThis::add( noSeparateButton, i18n( "<p>If you enable this option, the preview area will not "

@ -152,8 +152,8 @@ ImagePannelWidget::ImagePannelWidget(uint w, uint h, const TQString& settingsSec
{
TQPushButton *duplicateHorButton = new TQPushButton( d->separateView );
d->separateView->insert(duplicateHorButton, ImageRegionWidget::SeparateViewDuplicateHorz);
KGlobal::dirs()->addResourceType("duplicatebothhorz", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("duplicatebothhorz", "duplicatebothhorz.png");
TDEGlobal::dirs()->addResourceType("duplicatebothhorz", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("duplicatebothhorz", "duplicatebothhorz.png");
duplicateHorButton->setPixmap( TQPixmap( directory + "duplicatebothhorz.png" ) );
duplicateHorButton->setToggleButton(true);
TQWhatsThis::add( duplicateHorButton, i18n("<p>If you enable this option, you will separate the preview area "
@ -163,8 +163,8 @@ ImagePannelWidget::ImagePannelWidget(uint w, uint h, const TQString& settingsSec
TQPushButton *duplicateVerButton = new TQPushButton( d->separateView );
d->separateView->insert(duplicateVerButton, ImageRegionWidget::SeparateViewDuplicateVert);
KGlobal::dirs()->addResourceType("duplicatebothvert", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("duplicatebothvert", "duplicatebothvert.png");
TDEGlobal::dirs()->addResourceType("duplicatebothvert", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("duplicatebothvert", "duplicatebothvert.png");
duplicateVerButton->setPixmap( TQPixmap( directory + "duplicatebothvert.png" ) );
duplicateVerButton->setToggleButton(true);
TQWhatsThis::add( duplicateVerButton, i18n("<p>If you enable this option, you will separate the preview area "
@ -178,8 +178,8 @@ ImagePannelWidget::ImagePannelWidget(uint w, uint h, const TQString& settingsSec
{
TQPushButton *separateHorButton = new TQPushButton( d->separateView );
d->separateView->insert(separateHorButton, ImageRegionWidget::SeparateViewHorizontal);
KGlobal::dirs()->addResourceType("bothhorz", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("bothhorz", "bothhorz.png");
TDEGlobal::dirs()->addResourceType("bothhorz", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("bothhorz", "bothhorz.png");
separateHorButton->setPixmap( TQPixmap( directory + "bothhorz.png" ) );
separateHorButton->setToggleButton(true);
TQWhatsThis::add( separateHorButton, i18n( "<p>If you enable this option, you will separate the preview area "
@ -189,8 +189,8 @@ ImagePannelWidget::ImagePannelWidget(uint w, uint h, const TQString& settingsSec
TQPushButton *separateVerButton = new TQPushButton( d->separateView );
d->separateView->insert(separateVerButton, ImageRegionWidget::SeparateViewVertical);
KGlobal::dirs()->addResourceType("bothvert", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("bothvert", "bothvert.png");
TDEGlobal::dirs()->addResourceType("bothvert", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("bothvert", "bothvert.png");
separateVerButton->setPixmap( TQPixmap( directory + "bothvert.png" ) );
separateVerButton->setToggleButton(true);
TQWhatsThis::add( separateVerButton, i18n( "<p>If you enable this option, you will separate the preview area "
@ -201,8 +201,8 @@ ImagePannelWidget::ImagePannelWidget(uint w, uint h, const TQString& settingsSec
TQPushButton *noSeparateButton = new TQPushButton( d->separateView );
d->separateView->insert(noSeparateButton, ImageRegionWidget::SeparateViewNone);
KGlobal::dirs()->addResourceType("target", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("target", "target.png");
TDEGlobal::dirs()->addResourceType("target", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("target", "target.png");
noSeparateButton->setPixmap( TQPixmap( directory + "target.png" ) );
noSeparateButton->setToggleButton(true);
TQWhatsThis::add( noSeparateButton, i18n( "<p>If you enable this option, the preview area will not "

@ -98,8 +98,8 @@ ImageWidget::ImageWidget(const TQString& settingsSection, TQWidget *parent,
TQPushButton *previewOriginalButton = new TQPushButton( d->previewButtons );
d->previewButtons->insert(previewOriginalButton, ImageGuideWidget::PreviewOriginalImage);
KGlobal::dirs()->addResourceType("original", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("original", "original.png");
TDEGlobal::dirs()->addResourceType("original", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("original", "original.png");
previewOriginalButton->setPixmap( TQPixmap( directory + "original.png" ) );
previewOriginalButton->setToggleButton(true);
TQWhatsThis::add( previewOriginalButton, i18n( "<p>If you enable this option, you will see "
@ -107,8 +107,8 @@ ImageWidget::ImageWidget(const TQString& settingsSection, TQWidget *parent,
TQPushButton *previewBothButtonVert = new TQPushButton( d->previewButtons );
d->previewButtons->insert(previewBothButtonVert, ImageGuideWidget::PreviewBothImagesVertCont);
KGlobal::dirs()->addResourceType("bothvert", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("bothvert", "bothvert.png");
TDEGlobal::dirs()->addResourceType("bothvert", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("bothvert", "bothvert.png");
previewBothButtonVert->setPixmap( TQPixmap( directory + "bothvert.png" ) );
previewBothButtonVert->setToggleButton(true);
TQWhatsThis::add( previewBothButtonVert, i18n( "<p>If you enable this option, the preview area will "
@ -119,8 +119,8 @@ ImageWidget::ImageWidget(const TQString& settingsSection, TQWidget *parent,
TQPushButton *previewBothButtonHorz = new TQPushButton( d->previewButtons );
d->previewButtons->insert(previewBothButtonHorz, ImageGuideWidget::PreviewBothImagesHorzCont);
KGlobal::dirs()->addResourceType("bothhorz", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("bothhorz", "bothhorz.png");
TDEGlobal::dirs()->addResourceType("bothhorz", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("bothhorz", "bothhorz.png");
previewBothButtonHorz->setPixmap( TQPixmap( directory + "bothhorz.png" ) );
previewBothButtonHorz->setToggleButton(true);
TQWhatsThis::add( previewBothButtonHorz, i18n( "<p>If you enable this option, the preview area will "
@ -131,8 +131,8 @@ ImageWidget::ImageWidget(const TQString& settingsSection, TQWidget *parent,
TQPushButton *previewDuplicateBothButtonVert = new TQPushButton( d->previewButtons );
d->previewButtons->insert(previewDuplicateBothButtonVert, ImageGuideWidget::PreviewBothImagesVert);
KGlobal::dirs()->addResourceType("duplicatebothvert", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("duplicatebothvert", "duplicatebothvert.png");
TDEGlobal::dirs()->addResourceType("duplicatebothvert", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("duplicatebothvert", "duplicatebothvert.png");
previewDuplicateBothButtonVert->setPixmap( TQPixmap( directory + "duplicatebothvert.png" ) );
previewDuplicateBothButtonVert->setToggleButton(true);
TQWhatsThis::add( previewDuplicateBothButtonVert, i18n( "<p>If you enable this option, the preview area will "
@ -142,8 +142,8 @@ ImageWidget::ImageWidget(const TQString& settingsSection, TQWidget *parent,
TQPushButton *previewDupplicateBothButtonHorz = new TQPushButton( d->previewButtons );
d->previewButtons->insert(previewDupplicateBothButtonHorz, ImageGuideWidget::PreviewBothImagesHorz);
KGlobal::dirs()->addResourceType("duplicatebothhorz", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("duplicatebothhorz", "duplicatebothhorz.png");
TDEGlobal::dirs()->addResourceType("duplicatebothhorz", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("duplicatebothhorz", "duplicatebothhorz.png");
previewDupplicateBothButtonHorz->setPixmap( TQPixmap( directory + "duplicatebothhorz.png" ) );
previewDupplicateBothButtonHorz->setToggleButton(true);
TQWhatsThis::add( previewDupplicateBothButtonHorz, i18n( "<p>If you enable this option, the preview area will "
@ -153,8 +153,8 @@ ImageWidget::ImageWidget(const TQString& settingsSection, TQWidget *parent,
TQPushButton *previewtargetButton = new TQPushButton( d->previewButtons );
d->previewButtons->insert(previewtargetButton, ImageGuideWidget::PreviewTargetImage);
KGlobal::dirs()->addResourceType("target", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("target", "target.png");
TDEGlobal::dirs()->addResourceType("target", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("target", "target.png");
previewtargetButton->setPixmap( TQPixmap( directory + "target.png" ) );
previewtargetButton->setToggleButton(true);
TQWhatsThis::add( previewtargetButton, i18n( "<p>If you enable this option, you will see "
@ -162,8 +162,8 @@ ImageWidget::ImageWidget(const TQString& settingsSection, TQWidget *parent,
TQPushButton *previewToggleMouseOverButton = new TQPushButton( d->previewButtons );
d->previewButtons->insert(previewToggleMouseOverButton, ImageGuideWidget::PreviewToggleOnMouseOver);
KGlobal::dirs()->addResourceType("togglemouseover", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("togglemouseover", "togglemouseover.png");
TDEGlobal::dirs()->addResourceType("togglemouseover", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("togglemouseover", "togglemouseover.png");
previewToggleMouseOverButton->setPixmap( TQPixmap( directory + "togglemouseover.png" ) );
previewToggleMouseOverButton->setToggleButton(true);
TQWhatsThis::add( previewToggleMouseOverButton, i18n( "<p>If you enable this option, you will see "

@ -373,7 +373,7 @@ void MetadataWidget::slotPrintMetadata()
KURL MetadataWidget::saveMetadataToFile(const TQString& caption, const TQString& fileFilter)
{
KFileDialog fileSaveDialog(KGlobalSettings::documentPath(),
KFileDialog fileSaveDialog(TDEGlobalSettings::documentPath(),
TQString(),
this,
"MetadataFileSaveDialog",

@ -102,8 +102,8 @@ TQPixmap &WorldMapWidget::worldMapPixmap()
{
if (!d->worldMap)
{
KGlobal::dirs()->addResourceType("worldmap", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("worldmap", "worldmap.jpg");
TDEGlobal::dirs()->addResourceType("worldmap", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("worldmap", "worldmap.jpg");
pixmapDeleter.setObject(d->worldMap, new TQPixmap(directory + "worldmap.jpg"));
}
return *d->worldMap;

@ -85,8 +85,8 @@ int main(int argc, char *argv[])
app.setMainWidget(w);
w->show();
KGlobal::locale()->setMainCatalogue("digikam");
KGlobal::locale()->insertCatalogue("libkdcraw");
TDEGlobal::locale()->setMainCatalogue("digikam");
TDEGlobal::locale()->insertCatalogue("libkdcraw");
int ret = app.exec();

@ -164,8 +164,8 @@ ShowFoto::ShowFoto(const KURL::List& urlList)
KConfig* config = kapp->config();
config->setGroup("ImageViewer Settings");
KGlobal::dirs()->addResourceType("data", KGlobal::dirs()->kde_default("data") + "digikam");
KGlobal::iconLoader()->addAppDir("digikam");
TDEGlobal::dirs()->addResourceType("data", TDEGlobal::dirs()->kde_default("data") + "digikam");
TDEGlobal::iconLoader()->addAppDir("digikam");
if(config->readBoolEntry("ShowSplash", true) && !kapp->isRestored())
{
@ -516,7 +516,7 @@ void ShowFoto::readSettings()
slotToggleShowBar();
d->lastOpenedDirectory.setPath( config->readEntry("Last Opened Directory",
KGlobalSettings::documentPath()) );
TDEGlobalSettings::documentPath()) );
TQSizePolicy szPolicy(TQSizePolicy::Preferred, TQSizePolicy::Expanding, 2, 1);
if(config->hasKey("Vertical Splitter Sizes") && d->vSplitter)
@ -1124,7 +1124,7 @@ void ShowFoto::slotDeleteCurrentItem()
if (!KProtocolInfo::isKnownProtocol(dest))
{
dest = KGlobalSettings::trashPath();
dest = TDEGlobalSettings::trashPath();
}
KIO::Job* job = KIO::move( urlCurrent, dest );

@ -63,7 +63,7 @@ int main(int argc, char** argv)
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KGlobal::locale()->setMainCatalogue( "digikam" );
TDEGlobal::locale()->setMainCatalogue( "digikam" );
TDEApplication app;
Digikam::MainWindow *im = new Digikam::MainWindow();

@ -49,7 +49,7 @@ namespace Digikam
static void dateToString(const TQDateTime& datetime, TQString& str)
{
str = KGlobal::locale()->formatDateTime(datetime, true, false);
str = TDEGlobal::locale()->formatDateTime(datetime, true, false);
}
static TQString squeezedText(TQPainter* p, int width, const TQString& text)

@ -372,8 +372,8 @@ CameraUI::CameraUI(TQWidget* /*parent*/, const TQString& cameraTitle,
pixmapLogo->setScaledContents( false );
pixmapLogo->setSizePolicy(TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum));
TQToolTip::add(pixmapLogo, i18n("Visit digiKam project website"));
KGlobal::dirs()->addResourceType("logo-digikam", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("logo-digikam", "logo-digikam.png");
TDEGlobal::dirs()->addResourceType("logo-digikam", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("logo-digikam", "logo-digikam.png");
pixmapLogo->setPixmap( TQPixmap( directory + "logo-digikam.png" ) );
pixmapLogo->setFocusPolicy(TQ_NoFocus);

@ -66,7 +66,7 @@ UndoCache::UndoCache()
TQString cacheDir;
cacheDir = locateLocal("cache",
KGlobal::instance()->aboutData()->programName() + '/');
TDEGlobal::instance()->aboutData()->programName() + '/');
d->cachePrefix = TQString("%1undocache-%2")
.arg(cacheDir)

@ -254,7 +254,7 @@ TQSize EditorToolSettings::minimumSizeHint() const
// Do not touch vertical size hint.
// Limit to 40% of the desktop width.
TQSize hint = TQScrollView::minimumSizeHint();
TQRect desktopRect = KGlobalSettings::desktopGeometry(d->mainVBox);
TQRect desktopRect = TDEGlobalSettings::desktopGeometry(d->mainVBox);
hint.setWidth(TQMIN(d->mainVBox->minimumSizeHint().width(), desktopRect.width() * 2 / 5));
return hint;
}

@ -699,7 +699,7 @@ void EditorWindow::slotAboutToShowRedoMenu()
void EditorWindow::slotConfToolbars()
{
saveMainWindowSettings(KGlobal::config(), "ImageViewer Settings");
saveMainWindowSettings(TDEGlobal::config(), "ImageViewer Settings");
KEditToolbar dlg(factory(), this);
connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
@ -710,7 +710,7 @@ void EditorWindow::slotConfToolbars()
void EditorWindow::slotNewToolbarConfig()
{
applyMainWindowSettings(KGlobal::config(), "ImageViewer Settings");
applyMainWindowSettings(TDEGlobal::config(), "ImageViewer Settings");
}
void EditorWindow::slotIncreaseZoom()
@ -757,7 +757,7 @@ void EditorWindow::slotZoomSelected()
void EditorWindow::slotZoomTextChanged(const TQString &txt)
{
bool r = false;
double zoom = KGlobal::locale()->readNumber(txt, &r) / 100.0;
double zoom = TDEGlobal::locale()->readNumber(txt, &r) / 100.0;
if (r && zoom > 0.0)
m_stackView->setZoomFactor(zoom);
}

@ -197,16 +197,16 @@ RawSettingsBox::RawSettingsBox(const KURL& url, TQWidget *parent)
TQPushButton *linHistoButton = new TQPushButton( d->scaleBG );
TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
d->scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
TQPushButton *logHistoButton = new TQPushButton( d->scaleBG );
TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
d->scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);

@ -149,7 +149,7 @@ bool ImagePrint::printImageWithTQt()
p.begin( &m_printer );
TQPaintDeviceMetrics metrics( &m_printer );
p.setFont( KGlobalSettings::generalFont() );
p.setFont( TDEGlobalSettings::generalFont() );
TQFontMetrics fm = p.fontMetrics();
int w, h; // will be set to the width and height of the printer

@ -212,9 +212,9 @@ ImageResize::ImageResize(TQWidget* parent)
d->cimgLogoLabel = new KURLLabel(firstPage);
d->cimgLogoLabel->setText(TQString());
d->cimgLogoLabel->setURL("http://cimg.sourceforge.net");
KGlobal::dirs()->addResourceType("logo-cimg", KGlobal::dirs()->kde_default("data") +
TDEGlobal::dirs()->addResourceType("logo-cimg", TDEGlobal::dirs()->kde_default("data") +
"digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
TQString directory = TDEGlobal::dirs()->findResourceDir("logo-cimg", "logo-cimg.png");
d->cimgLogoLabel->setPixmap( TQPixmap( directory + "logo-cimg.png" ) );
TQToolTip::add(d->cimgLogoLabel, i18n("Visit CImg library website"));
@ -603,7 +603,7 @@ void ImageResize::customEvent(TQCustomEvent *event)
void ImageResize::slotUser3()
{
KURL loadBlowupFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(),
KURL loadBlowupFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Resizing Settings File to Load")) );
if( loadBlowupFile.isEmpty() )
@ -630,7 +630,7 @@ void ImageResize::slotUser3()
void ImageResize::slotUser2()
{
KURL saveBlowupFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(),
KURL saveBlowupFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
TQString( "*" ), this,
TQString( i18n("Photograph Resizing Settings File to Save")) );
if( saveBlowupFile.isEmpty() )

@ -100,9 +100,9 @@ LightTableBar::LightTableBar(TQWidget* parent, int orientation, bool exifRotate)
// -- Load rating Pixmap ------------------------------------------
KGlobal::dirs()->addResourceType("digikam_rating", KGlobal::dirs()->kde_default("data")
TDEGlobal::dirs()->addResourceType("digikam_rating", TDEGlobal::dirs()->kde_default("data")
+ "digikam/data");
TQString ratingPixPath = KGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
TQString ratingPixPath = TDEGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
ratingPixPath += "/rating.png";
d->ratingPixmap = TQPixmap(ratingPixPath);
@ -766,9 +766,9 @@ void LightTableBar::contentsDropEvent(TQDropEvent *e)
void LightTableBar::slotThemeChanged()
{
KGlobal::dirs()->addResourceType("digikam_rating", KGlobal::dirs()->kde_default("data")
TDEGlobal::dirs()->addResourceType("digikam_rating", TDEGlobal::dirs()->kde_default("data")
+ "digikam/data");
TQString ratingPixPath = KGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
TQString ratingPixPath = TDEGlobal::dirs()->findResourceDir("digikam_rating", "rating.png");
ratingPixPath += "/rating.png";
d->ratingPixmap = TQPixmap(ratingPixPath);

@ -1508,7 +1508,7 @@ void LightTableWindow::slotEditKeys()
void LightTableWindow::slotConfToolbars()
{
saveMainWindowSettings(KGlobal::config(), "LightTable Settings");
saveMainWindowSettings(TDEGlobal::config(), "LightTable Settings");
KEditToolbar dlg(factory(), this);
connect(&dlg, TQT_SIGNAL(newToolbarConfig()),
@ -1519,7 +1519,7 @@ void LightTableWindow::slotConfToolbars()
void LightTableWindow::slotNewToolbarConfig()
{
applyMainWindowSettings(KGlobal::config(), "LightTable Settings");
applyMainWindowSettings(TDEGlobal::config(), "LightTable Settings");
}
void LightTableWindow::slotSetup()

@ -116,8 +116,8 @@ SetupCamera::SetupCamera( TQWidget* parent )
KURLLabel *gphotoLogoLabel = new KURLLabel(this);
gphotoLogoLabel->setText(TQString());
gphotoLogoLabel->setURL("http://www.gphoto.org");
KGlobal::dirs()->addResourceType("logo-gphoto", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("logo-gphoto", "logo-gphoto.png");
TDEGlobal::dirs()->addResourceType("logo-gphoto", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("logo-gphoto", "logo-gphoto.png");
gphotoLogoLabel->setPixmap( TQPixmap( directory + "logo-gphoto.png" ) );
TQToolTip::add(gphotoLogoLabel, i18n("Visit Gphoto project website"));

@ -165,8 +165,8 @@ SetupICC::SetupICC(TQWidget* parent, KDialogBase* dialog )
KURLLabel *lcmsLogoLabel = new KURLLabel(colorPolicy);
lcmsLogoLabel->setText(TQString());
lcmsLogoLabel->setURL("http://www.littlecms.com");
KGlobal::dirs()->addResourceType("logo-lcms", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("logo-lcms", "logo-lcms.png");
TDEGlobal::dirs()->addResourceType("logo-lcms", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("logo-lcms", "logo-lcms.png");
lcmsLogoLabel->setPixmap( TQPixmap( directory + "logo-lcms.png" ) );
TQToolTip::add(lcmsLogoLabel, i18n("Visit Little CMS project website"));
@ -493,8 +493,8 @@ void SetupICC::fillCombos(const TQString& path, bool report)
}
// Look the ICC color-space profile path include with digiKam dist.
KGlobal::dirs()->addResourceType("profiles", KGlobal::dirs()->kde_default("data") + "digikam/profiles");
TQString digiKamProfilesPath = KGlobal::dirs()->findResourceDir("profiles", "srgb.icm");
TDEGlobal::dirs()->addResourceType("profiles", TDEGlobal::dirs()->kde_default("data") + "digikam/profiles");
TQString digiKamProfilesPath = TDEGlobal::dirs()->findResourceDir("profiles", "srgb.icm");
TQDir digiKamProfilesDir(digiKamProfilesPath, "*.icc;*.icm", TQDir::Files);
const TQFileInfoList* digiKamFiles = digiKamProfilesDir.entryInfoList();
DDebug() << "Scanning ICC profiles included with digiKam: " << digiKamProfilesPath << endl;

@ -148,8 +148,8 @@ SetupMetadata::SetupMetadata(TQWidget* parent )
KURLLabel *exiv2LogoLabel = new KURLLabel(hbox);
exiv2LogoLabel->setText(TQString());
exiv2LogoLabel->setURL("http://www.exiv2.org");
KGlobal::dirs()->addResourceType("logo-exiv2", KGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = KGlobal::dirs()->findResourceDir("logo-exiv2", "logo-exiv2.png");
TDEGlobal::dirs()->addResourceType("logo-exiv2", TDEGlobal::dirs()->kde_default("data") + "digikam/data");
TQString directory = TDEGlobal::dirs()->findResourceDir("logo-exiv2", "logo-exiv2.png");
exiv2LogoLabel->setPixmap( TQPixmap( directory + "logo-exiv2.png" ) );
TQToolTip::add(exiv2LogoLabel, i18n("Visit Exiv2 project website"));

@ -104,7 +104,7 @@ SlideShow::SlideShow(const SlideShowSettings& settings)
// ---------------------------------------------------------------
#if KDE_IS_VERSION(3,2,0)
TQRect deskRect = KGlobalSettings::desktopGeometry(this);
TQRect deskRect = TDEGlobalSettings::desktopGeometry(this);
d->deskX = deskRect.x();
d->deskY = deskRect.y();
d->deskWidth = deskRect.width();
@ -407,7 +407,7 @@ void SlideShow::updatePixmap()
{
if (photoInfo.dateTime.isValid())
{
str = KGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
str = TDEGlobal::locale()->formatDateTime(photoInfo.dateTime, true, true);
printInfoText(p, offset, str);
}
}

Loading…
Cancel
Save