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 QDELIMITERDIALOG_H
13 #define QDELIMITERDIALOG_H
15 #include "GuiDialogView.h"
17 #include "ui_DelimiterUi.h"
21 class QListWidgetItem;
27 class GuiMathDelimiter;
29 class GuiDelimiterDialog : public QDialog, public Ui::DelimiterUi {
32 GuiDelimiterDialog(GuiMathDelimiter * form, QWidget * parent);
34 void on_leftLW_itemActivated(QListWidgetItem *);
35 void on_rightLW_itemActivated(QListWidgetItem *);
36 void on_leftLW_currentRowChanged(int);
37 void on_rightLW_currentRowChanged(int);
38 void on_matchCB_stateChanged(int);
39 void on_insertPB_clicked();
40 void on_sizeCO_activated(int);
43 char_type doMatch(char_type const symbol) const;
45 void updateTeXCode(int size);
47 GuiMathDelimiter * form_;
48 /// TeX code that will be inserted.
53 class GuiMathDelimiter : public QController<ControlMath, GuiView<GuiDelimiterDialog> > {
55 friend class GuiDelimiterDialog;
57 GuiMathDelimiter(Dialog &);
60 virtual void apply() {}
61 virtual void update_contents() {}
63 virtual void build_dialog();
67 } // namespace frontend
70 #endif // QDELIMITERDIALOG_H