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-05 20:33:29 +00:00
|
|
|
class GuiEmbeddedFilesDialog : public GuiDialog, public Ui::GuiEmbeddedFilesUi
|
|
|
|
{
|
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-05 20:33:29 +00:00
|
|
|
GuiEmbeddedFilesDialog(LyXView & lv);
|
2007-08-31 15:42:35 +00:00
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
///
|
|
|
|
void on_filesLW_itemSelectionChanged();
|
|
|
|
///
|
|
|
|
void on_filesLW_itemDoubleClicked();
|
|
|
|
///
|
2007-09-03 20:28:26 +00:00
|
|
|
void updateView();
|
2007-08-31 15:42:35 +00:00
|
|
|
///
|
|
|
|
void on_enableCB_toggled(bool enable);
|
|
|
|
///
|
|
|
|
void on_autoRB_clicked();
|
|
|
|
void on_embeddedRB_clicked();
|
|
|
|
void on_externalRB_clicked();
|
2007-09-01 04:20:34 +00:00
|
|
|
///
|
2007-09-01 20:48:51 +00:00
|
|
|
void on_addPB_clicked();
|
|
|
|
//
|
|
|
|
void on_extractPB_clicked();
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-08-31 15:42:35 +00:00
|
|
|
private:
|
2007-09-05 20:33:29 +00:00
|
|
|
ControlEmbeddedFiles & controller() const;
|
2007-08-31 15:42:35 +00:00
|
|
|
void set_embedding_status(EmbeddedFile::STATUS);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // QEMBEDDEDFILES_H
|