]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiDelimiter.h
cosmetics
[lyx.git] / src / frontends / qt4 / GuiDelimiter.h
1 // -*- C++ -*-
2 /**
3  * \file GuiDelimiterDialog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef GUIDELIMITERDIALOG_H
13 #define GUIDELIMITERDIALOG_H
14
15 #include "GuiDialog.h"
16 #include "ControlMath.h"
17 #include "ui_DelimiterUi.h"
18
19 class QListWidgetItem;
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiDelimiterDialog : public GuiDialog, public Ui::DelimiterUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiDelimiterDialog(LyXView & lv);
30
31 public Q_SLOTS:
32         void on_leftLW_itemActivated(QListWidgetItem *);
33         void on_rightLW_itemActivated(QListWidgetItem *);
34         void on_leftLW_currentRowChanged(int);
35         void on_rightLW_currentRowChanged(int);
36         void on_matchCB_stateChanged(int);
37         void on_insertPB_clicked();
38         void on_sizeCO_activated(int);
39
40 private:
41         ///
42         char_type doMatch(char_type const symbol);
43         ///
44         void updateTeXCode(int size);
45         /// parent controller
46         ControlMath & controller();
47
48         /// TeX code that will be inserted.
49         QString tex_code_;
50 };
51
52 } // namespace frontend
53 } // namespace lyx
54
55 #endif // GUIDELIMITERDIALOG_H