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()));
QLayout * layout() const
KGuiItem cancel()
QString i18n(const char *text)
QSize boundedTo(const QSize &otherSize) const
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void setWidget(QWidget *widget)
QSize size() const
void setContentsMargins(int left, int top, int right, int bottom)
QString directory(const DirectoryOptions &options=IgnoreTrailingSlash) const
void truncate(int position)
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
int width() const
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 setFrameShape(Shape)
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
int & rwidth()
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
void setAlignment(QFlags< Qt::AlignmentFlag >)
QString toLocalFile(AdjustPathOption trailing=LeaveTrailingSlash) const
virtual void done(int r)
void addSpacing(int size)
QWidget * extension() 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)
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void setPath(const QString &path)
void setBold(bool enable)
Definition: kfileitem.h:48
void resize(int w, int h)
Definition: renamedialog.h:61
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString number(int n, int base)
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
int toInt(bool *ok, int base) const
void enableRenameButton(const QString &)
Definition: renamedialog.cpp:354
void setObjectName(const QString &name)
void setTabOrder(QWidget *first, QWidget *second)
bool isEmpty() const
List of KFileItems, which adds a few helper methods to QList.
Definition: kfileitem.h:674
QPoint pos() const
Definition: renamedialog.h:61
QString csqueeze(const QString &str, int maxlen=40)
Definition: renamedialog.h:61
void setText(const QString &)
virtual QSize sizeHint() const
RenameDialog_Mode
M_OVERWRITE: We have an existing dest, show details about it and offer to overwrite it...
Definition: renamedialog.h:56
void setSizePolicy(QSizePolicy)
Definition: renamedialog.h:61
Definition: renamedialog.h:56
Definition: renamedialog.h:61
const QFont & font() const
void setWidgetResizable(bool resizable)
KGuiItem ok()
QString & replace(int position, int n, QChar after)
void addStrut(int size)
Definition: renamedialog.h:56
Definition: renamedialog.h:61
void setFileName(const QString &_txt)
bool isValid() const
QString mid(int position, int n) const
Definition: renamedialog.h:56
QDesktopWidget * desktop()
void addStretch(int stretch)
Filename - as displayed in directory listings etc.
Definition: udsentry.h:163
void setWindowTitle(const QString &)
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
int height() const
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
int length() const
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
const QRect availableGeometry(int screen) const
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
bool isLocalFile() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Definition: renamedialog.h:56
void setSpacing(int spacing)
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:1014
void addLayout(QLayout *layout, int stretch)
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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.