3 * \file GuiDelimiterDialog.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef GUIDELIMITERDIALOG_H
13 #define GUIDELIMITERDIALOG_H
15 #include "GuiDialogView.h"
16 #include "ControlMath.h"
17 #include "ui_DelimiterUi.h"
19 class QListWidgetItem;
27 class GuiDelimiterDialog : public QDialog, public Ui::DelimiterUi
31 GuiDelimiterDialog(GuiDelimiter * form, QWidget * parent);
33 void on_leftLW_itemActivated(QListWidgetItem *);
34 void on_rightLW_itemActivated(QListWidgetItem *);
35 void on_leftLW_currentRowChanged(int);
36 void on_rightLW_currentRowChanged(int);
37 void on_matchCB_stateChanged(int);
38 void on_insertPB_clicked();
39 void on_sizeCO_activated(int);
42 char_type doMatch(char_type const symbol) const;
44 void updateTeXCode(int size);
47 /// TeX code that will be inserted.
52 class GuiDelimiter : public GuiView<GuiDelimiterDialog>
55 friend class GuiDelimiterDialog;
57 GuiDelimiter(Dialog &);
59 ControlMath & controller()
60 { return static_cast<ControlMath &>(this->getController()); }
62 ControlMath const & controller() const
63 { return static_cast<ControlMath const &>(this->getController()); }
65 virtual void apply() {}
66 virtual void update_contents() {}
68 virtual void build_dialog();
72 } // namespace frontend
75 #endif // GUIDELIMITERDIALOG_H