2006-05-28 16:54:54 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2006 by Albert Astals Cid <aacid@kde.org> *
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _EMBEDDEDFILESDIALOG_H_
|
|
|
|
#define _EMBEDDEDFILESDIALOG_H_
|
|
|
|
|
|
|
|
#include <kdialog.h>
|
2007-10-04 01:19:39 +00:00
|
|
|
#include <QtCore/QHash>
|
2006-05-28 16:54:54 +00:00
|
|
|
|
2007-04-19 18:30:20 +00:00
|
|
|
class QTreeWidget;
|
2006-06-13 08:44:08 +00:00
|
|
|
class QTreeWidgetItem;
|
2006-09-21 08:45:36 +00:00
|
|
|
|
|
|
|
namespace Okular {
|
|
|
|
class Document;
|
|
|
|
class EmbeddedFile;
|
|
|
|
}
|
2006-05-28 16:54:54 +00:00
|
|
|
|
|
|
|
class EmbeddedFilesDialog : public KDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2006-09-21 08:45:36 +00:00
|
|
|
EmbeddedFilesDialog(QWidget *parent, const Okular::Document *document);
|
2006-05-28 16:54:54 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void saveFile();
|
2007-07-03 15:30:44 +00:00
|
|
|
void attachViewContextMenu( const QPoint& pos );
|
2006-05-28 16:54:54 +00:00
|
|
|
|
|
|
|
private:
|
2007-07-03 15:30:44 +00:00
|
|
|
void saveFile( Okular::EmbeddedFile* );
|
|
|
|
|
2006-05-28 16:54:54 +00:00
|
|
|
QTreeWidget *m_tw;
|
2006-09-21 08:45:36 +00:00
|
|
|
QHash<QTreeWidgetItem *, Okular::EmbeddedFile*> m_files;
|
2006-05-28 16:54:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|