]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiEmbeddedFiles.h
renaming of some methods that hurt the eyes + removal of:
[lyx.git] / src / frontends / qt4 / GuiEmbeddedFiles.h
1 // -*- C++ -*-
2 /**
3  * \file GuiEmbeddedFiles.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Bo Peng
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIEMBEDDEDFILES_H
13 #define GUIEMBEDDEDFILES_H
14
15 #include "EmbeddedFiles.h"
16 #include "ControlEmbeddedFiles.h"
17 #include "ui_EmbeddedFilesUi.h"
18
19 namespace lyx {
20 namespace frontend {
21
22 class GuiEmbeddedFiles;
23
24 class GuiEmbeddedFilesDialog : public QWidget, public Ui::GuiEmbeddedFilesUi {
25         Q_OBJECT
26 public:
27         GuiEmbeddedFilesDialog(GuiEmbeddedFiles * form);
28
29 public Q_SLOTS:
30         ///
31         void on_filesLW_itemSelectionChanged();
32         ///
33         void on_filesLW_itemDoubleClicked();
34         ///
35         void updateView();
36         ///
37         void on_enableCB_toggled(bool enable);
38         ///
39         void on_autoRB_clicked();
40         void on_embeddedRB_clicked();
41         void on_externalRB_clicked();
42         ///
43         void on_addPB_clicked();
44         //
45         void on_extractPB_clicked();
46 private:
47         void set_embedding_status(EmbeddedFile::STATUS);
48         ///
49         GuiEmbeddedFiles * form_;
50 };
51
52
53 class GuiEmbeddedFiles : public QObject, public ControlEmbeddedFiles
54 {
55         Q_OBJECT
56 public:
57         /// Constructor
58         GuiEmbeddedFiles(Dialog & dialog)
59                 : ControlEmbeddedFiles(dialog) {}
60         ///
61         virtual ~GuiEmbeddedFiles() {}
62 };
63
64 } // namespace frontend
65 } // namespace lyx
66
67 #endif // QEMBEDDEDFILES_H