okular/part/embeddedfilesdialog.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
942 B
C
Raw Normal View History

2021-05-24 07:25:56 +00:00
/*
SPDX-FileCopyrightText: 2006 Albert Astals Cid <aacid@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _EMBEDDEDFILESDIALOG_H_
#define _EMBEDDEDFILESDIALOG_H_
2014-10-19 13:28:32 +00:00
#include <QDialog>
class QTreeWidget;
2014-10-19 13:28:32 +00:00
class QPushButton;
class QTemporaryFile;
class QTreeWidgetItem;
namespace Okular
{
class Document;
class EmbeddedFile;
}
2014-10-19 13:28:32 +00:00
class EmbeddedFilesDialog : public QDialog
{
Q_OBJECT
public:
EmbeddedFilesDialog(QWidget *parent, const Okular::Document *document);
private Q_SLOTS:
2020-02-20 14:48:08 +00:00
void saveFileFromButton();
2020-02-20 17:45:46 +00:00
void attachViewContextMenu();
void updateSaveButton();
2020-02-20 14:48:08 +00:00
void viewFileFromButton();
void viewFileItem(QTreeWidgetItem *item, int column);
private:
void saveFile(Okular::EmbeddedFile *);
void viewFile(Okular::EmbeddedFile *);
QTreeWidget *m_tw;
QPushButton *mUser1Button;
QPushButton *mUser2Button;
QList<QSharedPointer<QTemporaryFile>> m_openedFiles;
};
#endif