]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiHyperlink.h
Use the command-alternatives sequence as defined in menus.bind
[lyx.git] / src / frontends / qt4 / GuiHyperlink.h
index dd8329d78a5f794e13ae9ccac10876375c8645ef..3f24fce848d0eab4636b2521f863762c27c07cd4 100644 (file)
 #ifndef GUIHYPERLINK_H
 #define GUIHYPERLINK_H
 
-#include "GuiDialog.h"
+#include "InsetParamsWidget.h"
 #include "ui_HyperlinkUi.h"
-#include "insets/InsetCommandParams.h"
 
 namespace lyx {
 namespace frontend {
 
-class GuiHyperlink : public GuiCommand, public Ui::HyperlinkUi
+class GuiHyperlink : public InsetParamsWidget, public Ui::HyperlinkUi
 {
        Q_OBJECT
 
 public:
-       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; }
+       QString dialogTitle() const { return qt_("Hyperlink Settings"); }
+       void paramsToDialog(Inset const *);
+       docstring dialogToParams() const;
+       bool checkWidgets(bool readonly) const;
+       bool initialiseParams(std::string const & data);
+       //@}
 };
 
 } // namespace frontend