2007-08-31 15:42:35 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file GuiEmbeddedFiles.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Bo Peng
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GUIEMBEDDEDFILES_H
|
|
|
|
#define GUIEMBEDDEDFILES_H
|
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#include "GuiDialog.h"
|
2007-08-31 15:42:35 +00:00
|
|
|
#include "EmbeddedFiles.h"
|
|
|
|
#include "ControlEmbeddedFiles.h"
|
|
|
|
#include "ui_EmbeddedFilesUi.h"
|
|
|
|
|
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-09-08 20:04:28 +00:00
|
|
|
class GuiEmbeddedFilesDialog : public QWidget, public Ui::GuiEmbeddedFilesUi
|
2007-09-05 20:33:29 +00:00
|
|
|
{
|
2007-08-31 15:42:35 +00:00
|
|
|
Q_OBJECT
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-08-31 15:42:35 +00:00
|
|
|
public:
|
2007-09-08 20:04:28 +00:00
|
|
|
GuiEmbeddedFilesDialog(ControlEmbeddedFiles &);
|
2007-09-10 22:32:59 +00:00
|
|
|
std::string name() const { return "embedding"; }
|
2007-08-31 15:42:35 +00:00
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
///
|
2007-09-07 16:33:55 +00:00
|
|
|
void on_filesLW_itemChanged(QListWidgetItem* item);
|
2007-08-31 15:42:35 +00:00
|
|
|
void on_filesLW_itemSelectionChanged();
|
2007-09-08 04:10:43 +00:00
|
|
|
void on_filesLW_itemClicked(QListWidgetItem* item);
|
|
|
|
void on_filesLW_itemDoubleClicked(QListWidgetItem* item);
|
2007-08-31 15:42:35 +00:00
|
|
|
///
|
2007-09-03 20:28:26 +00:00
|
|
|
void updateView();
|
2007-08-31 15:42:35 +00:00
|
|
|
///
|
|
|
|
void on_enableCB_toggled(bool enable);
|
|
|
|
///
|
2007-09-07 16:33:55 +00:00
|
|
|
void on_selectPB_clicked();
|
|
|
|
void on_unselectPB_clicked();
|
2007-09-01 20:48:51 +00:00
|
|
|
void on_addPB_clicked();
|
|
|
|
void on_extractPB_clicked();
|
2007-09-07 16:33:55 +00:00
|
|
|
void on_updatePB_clicked();
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-08-31 15:42:35 +00:00
|
|
|
private:
|
2007-09-08 20:04:28 +00:00
|
|
|
ControlEmbeddedFiles & controller_;
|
2007-09-07 03:02:24 +00:00
|
|
|
void set_embedding_status(bool embed);
|
2007-08-31 15:42:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // QEMBEDDEDFILES_H
|