mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-28 20:45:47 +00:00
94e61a3bc9
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20202 a592a061-630c-0410-9148-cb99ea01b6c8
57 lines
1.2 KiB
C++
57 lines
1.2 KiB
C++
// -*- 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
|
|
|
|
#include "GuiDialog.h"
|
|
#include "EmbeddedFiles.h"
|
|
#include "ControlEmbeddedFiles.h"
|
|
#include "ui_EmbeddedFilesUi.h"
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class GuiEmbeddedFilesDialog : public QWidget, public Ui::GuiEmbeddedFilesUi
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
GuiEmbeddedFilesDialog(ControlEmbeddedFiles &);
|
|
std::string name() const { return "embedding"; }
|
|
|
|
public Q_SLOTS:
|
|
///
|
|
void on_filesLW_itemChanged(QListWidgetItem* item);
|
|
void on_filesLW_itemSelectionChanged();
|
|
void on_filesLW_itemClicked(QListWidgetItem* item);
|
|
void on_filesLW_itemDoubleClicked(QListWidgetItem* item);
|
|
///
|
|
void updateView();
|
|
///
|
|
void on_enableCB_toggled(bool enable);
|
|
///
|
|
void on_selectPB_clicked();
|
|
void on_unselectPB_clicked();
|
|
void on_addPB_clicked();
|
|
void on_extractPB_clicked();
|
|
void on_updatePB_clicked();
|
|
|
|
private:
|
|
ControlEmbeddedFiles & controller_;
|
|
void set_embedding_status(bool embed);
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // QEMBEDDEDFILES_H
|