]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiHyperlink.h
On Mac, moving down a paragraph should place the cursor at the end of the current...
[lyx.git] / src / frontends / qt4 / GuiHyperlink.h
index e55a677d3aa448470009bcc5734f939db07a137f..2134ca8a19728a7aeb2c98c7219e8541cadfe8eb 100644 (file)
 #ifndef GUIHYPERLINK_H
 #define GUIHYPERLINK_H
 
-#include "GuiCommand.h"
+#include "InsetParamsWidget.h"
 #include "ui_HyperlinkUi.h"
 
 namespace lyx {
 namespace frontend {
 
-class GuiHyperlink : public GuiCommand, public Ui::HyperlinkUi
+class GuiHyperlink : public InsetParamsWidget, public Ui::HyperlinkUi
 {
        Q_OBJECT
 
 public:
-       /// Constructor
-       GuiHyperlink(GuiView & lv);
-
-public Q_SLOTS:
-       void changed_adaptor();
+       ///
+       GuiHyperlink(QWidget * parent = 0);
 
 private:
-       ///
-       bool isValid();
-       /// apply dialog
-       void applyView();
-       /// update dialog
-       void updateContents();
+       /// \name InsetParamsWidget inherited methods
+       //@{
+       InsetCode insetCode() const { return HYPERLINK_CODE; }
+       FuncCode creationCode() const { return LFUN_INSET_INSERT; }
+       void paramsToDialog(Inset const *);
+       docstring dialogToParams() const;
+       bool checkWidgets() const;
+       //@}
 };
 
 } // namespace frontend