ark
part.cpp
Go to the documentation of this file.
75 namespace Ark
169 m_view->selectionModel()->setCurrentIndex(m_view->currentIndex(), QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows);
232 KToggleAction *showInfoPanelAction = new KToggleAction(i18nc("@action:inmenu", "Show information panel"), this);
251 m_extractFilesAction->setStatusTip(i18n("Click to open an extraction dialog, where you can choose to extract either all files or just the selected ones"));
285 m_previewAction->setEnabled(!isBusy() && (m_view->selectionModel()->selectedRows().count() == 1)
290 m_deleteFilesAction->setEnabled(!isBusy() && (m_view->selectionModel()->selectedRows().count() > 0)
392 int overwrite = KMessageBox::questionYesNo(NULL, i18nc("@info", "The archive <filename>%1</filename> already exists. Would you like to open it instead?", localFile), i18nc("@title:window", "File Exists"), KGuiItem(i18n("Open File")), KStandardGuiItem::cancel());
400 KMessageBox::sorry(NULL, i18nc("@info", "The archive <filename>%1</filename> was not found.", localFile), i18nc("@title:window", "Error Opening Archive"));
433 i18nc("@info", "Ark cannot create archives of the type you have chosen.<nl/><nl/>Please choose another archive type below."),
437 i18nc("@info", "Ark was unable to determine the archive type of the filename.<nl/><nl/>Please choose the correct archive type below."),
452 KMessageBox::sorry(NULL, i18nc("@info", "Ark was not able to open the archive <filename>%1</filename>. No plugin capable of handling the file was found.", localFile), i18nc("@title:window", "Error Opening Archive"));
488 KMessageBox::sorry(NULL, i18nc("@info", "Loading the archive <filename>%1</filename> failed with the following error: <message>%2</message>", localFilePath(), job->errorText()), i18nc("@title:window", "Error Opening Archive"));
715 extractJob->extractionOptions().value(QLatin1String("FollowExtractionDialogSettings"), false).toBool();
806 const QString dirToAdd = KFileDialog::getExistingDirectory(KUrl("kfiledialog:///ArkAddFiles"), widget(), i18nc("@title:window", "Add Folder"));
877 KUrl saveUrl = KFileDialog::getSaveUrl(KUrl(QLatin1String( "kfiledialog:///ArkSaveAs/" ) + url().fileName()), QString(), widget());
882 i18nc("@info", "An archive named <filename>%1</filename> already exists. Are you sure you want to overwrite it?", saveUrl.fileName()),
896 i18nc("@info", "The archive <filename>%1</filename> cannot be copied to the specified location. The archive does not exist anymore.", localFilePath()));
908 i18nc("@info", "The archive could not be saved as <filename>%1</filename>. Try saving it to another location.", saveUrl.pathOrUrl()));
void resizeSections(QHeaderView::ResizeMode mode)
Kerfuffle::ExtractJob * extractFile(const QVariant &fileName, const QString &destinationDir, const Kerfuffle::ExtractionOptions options=Kerfuffle::ExtractionOptions()) const
Definition: archivemodel.cpp:895
static void view(const QString &fileName, QWidget *parent=0)
Definition: arkviewer.cpp:89
void setSizes(const QList< int > &list)
const Key key(const T &value) const
QModelIndex currentIndex() const
QItemSelectionModel * selectionModel() const
Definition: jobs.h:155
static bool openDestinationFolderAfterExtraction()
Get Open destination folder after extraction.
Definition: settings.h:32
QVariant data() const
void setIcon(const QIcon &icon)
const T & at(int i) const
void setPrettyFileName(const QString &fileName)
Sets a different file name for the current open archive.
Definition: infopanel.cpp:90
Definition: jobs.h:140
Definition: extractiondialog.h:40
T * data() const
QDBusConnection sessionBus()
void sortByColumn(int column, Qt::SortOrder order)
bool exists() const
QString & remove(int position, int n)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: archivemodel.cpp:425
void chop(int n)
QChar separator()
Kerfuffle::AddJob * addFiles(const QStringList &paths, const Kerfuffle::CompressionOptions &options=Kerfuffle::CompressionOptions())
Definition: archivemodel.cpp:911
int size() const
void addWidget(QWidget *widget)
Definition: archivemodel.h:41
void reset(T *other)
void extractSelectedFilesTo(const QString &localPath)
Definition: part.cpp:161
void quit()
bool isValid() const
void setEnabled(bool)
void append(const T &value)
QList< int > sizes() const
bool isNull() const
bool isDir() const
bool isEmpty() const
bool isEmpty() const
QModelIndexList selectedRows(int column) const
KJob * setArchive(Kerfuffle::Archive *archive)
Definition: archivemodel.cpp:863
void setOverrideCursor(const QCursor &cursor)
void restoreOverrideCursor()
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
K_PLUGIN_FACTORY(ExtractHerePluginFactory, registerPlugin< ExtractHereDndPlugin >();) void ExtractHereDndPlugin
Definition: extractHereDndPlugin.cpp:33
QDir dir() const
Definition: infopanel.h:31
void ready()
QModelIndex parent() const
ExtractionOptions extractionOptions() const
Definition: jobs.cpp:292
QString right(int n) const
Kerfuffle::DeleteJob * deleteFiles(const QList< QVariant > &files)
Definition: archivemodel.cpp:930
const T value(const Key &key) const
bool exists() const
void expandToDepth(int depth)
QString destinationDirectory() const
Definition: jobs.cpp:287
Definition: jobs.h:118
static void setSplitterSizesWithBothWidgets(const QList< int > &v)
Set splitterSizesWithBothWidgets.
Definition: settings.h:98
void setSortingEnabled(bool enable)
void setStatusTip(const QString &statusTip)
QString absolutePath() const
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: archivemodel.cpp:485
bool mkdir(const QString &dirName) const
virtual void setModel(QAbstractItemModel *model)
void setResizeMode(ResizeMode mode)
void removeAction(QAction *action)
QList< T > values() const
void sort()
void setCurrentIndex(const QModelIndex &index, QFlags< QItemSelectionModel::SelectionFlag > command)
QHeaderView * header() const
Kerfuffle::ExtractJob * extractFiles(const QList< QVariant > &files, const QString &destinationDir, const Kerfuffle::ExtractionOptions options=Kerfuffle::ExtractionOptions()) const
Definition: archivemodel.cpp:902
Definition: archiveview.h:27
Definition: jobtracker.h:39
QModelIndex currentIndex() const
QList< QAction * > actions() const
T * take()
static QList< int > splitterSizesWithBothWidgets()
Get splitterSizesWithBothWidgets.
Definition: settings.h:108
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString toString() const
void busy()
void setEnabled(bool)
Kerfuffle::ArchiveEntry entryForIndex(const QModelIndex &index)
Definition: archivemodel.cpp:453
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:37 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:42:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.