]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiHyperlink.h
merge GuiCommand into its users.
[lyx.git] / src / frontends / qt4 / GuiHyperlink.h
1 // -*- C++ -*-
2 /**
3  * \file GuiHyperlink.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  * \author Angus Leeming
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef GUIHYPERLINK_H
14 #define GUIHYPERLINK_H
15
16 #include "GuiDialog.h"
17 #include "ui_HyperlinkUi.h"
18
19 #include "insets/InsetCommandParams.h"
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiHyperlink : public GuiDialog, public Ui::HyperlinkUi
25 {
26         Q_OBJECT
27
28 public:
29         /// Constructor
30         GuiHyperlink(GuiView & lv);
31
32 public Q_SLOTS:
33         void changed_adaptor();
34
35 private:
36         ///
37         bool isValid();
38         /// apply dialog
39         void applyView();
40         /// update dialog
41         void updateContents();
42         ///
43         bool initialiseParams(std::string const & data);
44         /// clean-up on hide.
45         void clearParams() { params_.clear(); }
46         /// clean-up on hide.
47         void dispatchParams();
48         ///
49         bool isBufferDependent() const { return true; }
50
51 private:
52         ///
53         InsetCommandParams params_;
54 };
55
56 } // namespace frontend
57 } // namespace lyx
58
59 #endif // GUIHYPERLINK_H