// -*- C++ -*-
/**
- * \file GuiDelimiterDialog.h
+ * \file GuiDelimiter.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
#ifndef GUIDELIMITERDIALOG_H
#define GUIDELIMITERDIALOG_H
-#include "GuiDialogView.h"
-#include "ControlMath.h"
+#include "GuiDialog.h"
+
#include "ui_DelimiterUi.h"
class QListWidgetItem;
namespace lyx {
namespace frontend {
-class ControlMath;
-class GuiDelimiter;
-
-class GuiDelimiterDialog : public QDialog, public Ui::DelimiterUi
+class GuiDelimiter : public GuiDialog, public Ui::DelimiterUi
{
Q_OBJECT
+
public:
- GuiDelimiterDialog(GuiDelimiter * form, QWidget * parent);
+ GuiDelimiter(GuiView & lv);
+
+ bool initialiseParams(std::string const &) { return true; }
+ void clearParams() {}
+ void dispatchParams() {}
+ bool isBufferDependent() const { return true; }
+
public Q_SLOTS:
void on_leftLW_itemActivated(QListWidgetItem *);
void on_rightLW_itemActivated(QListWidgetItem *);
void on_rightLW_currentRowChanged(int);
void on_matchCB_stateChanged(int);
void on_insertPB_clicked();
+ void on_swapPB_clicked();
void on_sizeCO_activated(int);
+
private:
///
- char_type doMatch(char_type const symbol) const;
+ char_type doMatch(char_type const symbol);
///
void updateTeXCode(int size);
- /// owning form
- GuiDelimiter * form_;
- /// TeX code that will be inserted.
- QString tex_code_;
-};
-
-class GuiDelimiter : public GuiView<GuiDelimiterDialog>
-{
-public:
- friend class GuiDelimiterDialog;
- ///
- GuiDelimiter(GuiDialog &);
- /// parent controller
- ControlMath & controller()
- { return static_cast<ControlMath &>(this->getController()); }
- /// parent controller
- ControlMath const & controller() const
- { return static_cast<ControlMath const &>(this->getController()); }
-private:
- virtual void applyView() {}
- virtual void update_contents() {}
- /// Build the dialog.
- virtual void build_dialog();
+ /// TeX code that will be inserted.
+ docstring tex_code_;
};
-
} // namespace frontend
} // namespace lyx