KIO
renamedialog.cpp
Go to the documentation of this file.
77 // sets the text in file name line edit box, selecting the filename (but not the extension if there is one).
132 d->bApplyAll->setToolTip((_mode & M_ISDIR) ? i18n("When this is checked the button pressed will be applied to all subsequent folder conflicts for the remainder of the current job.\nUnless you press Skip you will still be prompted in case of a conflict with an existing file in the directory.")
133 : i18n("When this is checked the button pressed will be applied to all subsequent conflicts for the remainder of the current job."));
147 d->bSkip->setToolTip((_mode & M_ISDIR) ? i18n("Do not copy or move this folder, skip to the next item instead")
153 const QString text = (_mode & M_ISDIR) ? i18nc("Write files into an existing folder", "&Write Into") : i18n("&Overwrite");
155 d->bOverwrite->setToolTip(i18n("Files and folders will be copied into the existing directory, alongside its existing contents.\nYou will be prompted again in case of a conflict with an existing file in the directory."));
218 connect(d->m_srcArea->verticalScrollBar(), SIGNAL(valueChanged(int)), d->m_destArea->verticalScrollBar(), SLOT(setValue(int)));
219 connect(d->m_destArea->verticalScrollBar(), SIGNAL(valueChanged(int)), d->m_srcArea->verticalScrollBar(), SLOT(setValue(int)));
220 connect(d->m_srcArea->horizontalScrollBar(), SIGNAL(valueChanged(int)), d->m_destArea->horizontalScrollBar(), SLOT(setValue(int)));
221 connect(d->m_destArea->horizontalScrollBar(), SIGNAL(valueChanged(int)), d->m_srcArea->horizontalScrollBar(), SLOT(setValue(int)));
425 //ignore dots at the beginning, that way "..aFile.tar.gz" will become "..aFile 1.tar.gz" instead of " 1..aFile.tar.gz"
589 QSize halfSize = d->m_srcArea->widget()->sizeHint().expandedTo(d->m_destArea->widget()->sizeHint());
622 QScrollArea* RenameDialog::createContainerLayout(QWidget* parent, const KFileItem& item, QLabel* preview)
632 connect(metaWidget, SIGNAL(metaDataRequestFinished(KFileItemList)), this, SLOT(resizePanels()));
KGuiItem cancel()
QString i18n(const char *text)
QString directory(const DirectoryOptions &options=IgnoreTrailingSlash) const
void setReadOnly(bool readOnly)
If set to true, data such as the comment, tag or rating cannot be changed by the user.
Definition: kfilemetadatawidget.cpp:351
Definition: renamedialog.h:61
Definition: renamedialog.h:56
virtual void setAlignment(Qt::Alignment)
void setItems(const KFileItemList &items)
Sets the items for which the meta data should be shown.
Definition: kfilemetadatawidget.cpp:335
void suggestNewNamePressed()
Definition: renamedialog.cpp:469
RenameDialog(QWidget *parent, const QString &caption, const KUrl &src, const KUrl &dest, RenameDialog_Mode mode, KIO::filesize_t sizeSrc=KIO::filesize_t(-1), KIO::filesize_t sizeDest=KIO::filesize_t(-1), time_t ctimeSrc=time_t(-1), time_t ctimeDest=time_t(-1), time_t mtimeSrc=time_t(-1), time_t mtimeDest=time_t(-1))
Construct a "rename" dialog to let the user know that src is about to overwrite dest.
Definition: renamedialog.cpp:109
Definition: renamedialog.h:61
void insert(uint field, const QString &value)
insert field with numeric value
Definition: udsentry.cpp:94
QString label(StandardShortcut id)
void setScaleType(ScaleType type)
Sets the scale type for the generated preview.
Definition: previewjob.cpp:238
QString decodeFileName(const QString &str)
Decodes (from the filename to the text displayed) This doesn't do anything anymore, it used to do the opposite of encodeFileName when encodeFileName was using %2F for '/'.
Definition: global.cpp:153
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
Definition: renamedialog.h:61
Definition: renamedialog.h:56
The original size of the preview will be returned.
Definition: previewjob.h:51
QString i18nc(const char *ctxt, const char *text)
void setPath(const QString &path)
Definition: kfileitem.h:48
Definition: renamedialog.h:61
QString encodeFileName(const QString &str)
Encodes (from the text displayed to the real filename) This translates '/' into a "unicode fraction s...
Definition: global.cpp:146
Shows the meta data of one or more file items.
Definition: kfilemetadatawidget.h:46
void enableRenameButton(const QString &)
Definition: renamedialog.cpp:354
List of KFileItems, which adds a few helper methods to QList.
Definition: kfileitem.h:674
Definition: renamedialog.h:61
QString csqueeze(const QString &str, int maxlen=40)
Definition: renamedialog.h:61
RenameDialog_Mode
M_OVERWRITE: We have an existing dest, show details about it and offer to overwrite it...
Definition: renamedialog.h:56
Definition: renamedialog.h:61
Definition: renamedialog.h:56
Definition: renamedialog.h:61
KGuiItem ok()
Definition: renamedialog.h:56
Definition: renamedialog.h:61
void setFileName(const QString &_txt)
Definition: renamedialog.h:56
Filename - as displayed in directory listings etc.
Definition: udsentry.h:163
static QString suggestName(const KUrl &baseURL, const QString &oldName)
Given a directory path and a filename (which usually exists already), this function returns a suggest...
Definition: renamedialog.cpp:419
PreviewJob * filePreview(const KFileItemList &items, int width, int height=0, int iconSize=0, int iconAlpha=70, bool scale=true, bool save=true, const QStringList *enabledPlugins=0)
Creates a PreviewJob to generate or retrieve a preview image for the given URL.
Definition: previewjob.cpp:755
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
bool isLocalFile() const
Definition: renamedialog.h:56
static void error(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Notify)
A KFileItem is a generic class to handle a file, local or remote.
Definition: kfileitem.h:45
QPixmap pixmap(int _size, int _state=0) const
Returns a pixmap representing the file.
Definition: kfileitem.cpp:1020
QString number(KIO::filesize_t size)
Converts a size to a string representation Not unlike QString::number(...)
Definition: global.cpp:63
Definition: renamedialog.h:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.