]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiDelimiter.h
Move debug.{cpp,h}, Messages.{cpp,h} and gettext.{cpp,h} to support/.
[lyx.git] / src / frontends / qt4 / GuiDelimiter.h
1 // -*- C++ -*-
2 /**
3  * \file GuiDelimiter.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 "GuiMath.h"
16 #include "ui_DelimiterUi.h"
17
18 class QListWidgetItem;
19
20 namespace lyx {
21 namespace frontend {
22
23 class GuiDelimiter : public GuiMath, public Ui::DelimiterUi
24 {
25         Q_OBJECT
26
27 public:
28         GuiDelimiter(GuiView & lv);
29
30 public Q_SLOTS:
31         void on_leftLW_itemActivated(QListWidgetItem *);
32         void on_rightLW_itemActivated(QListWidgetItem *);
33         void on_leftLW_currentRowChanged(int);
34         void on_rightLW_currentRowChanged(int);
35         void on_matchCB_stateChanged(int);
36         void on_insertPB_clicked();
37         void on_sizeCO_activated(int);
38
39 private:
40         ///
41         char_type doMatch(char_type const symbol);
42         ///
43         void updateTeXCode(int size);
44
45         /// TeX code that will be inserted.
46         QString tex_code_;
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif // GUIDELIMITERDIALOG_H