]> git.lyx.org Git - lyx.git/blob - src/frontends/qt/GuiDelimiter.h
Rename frontend qt4 to qt
[lyx.git] / src / frontends / qt / 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 "GuiDialog.h"
16
17 #include "ui_DelimiterUi.h"
18
19 class QListWidgetItem;
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiDelimiter : public GuiDialog, public Ui::DelimiterUi
25 {
26         Q_OBJECT
27
28 public:
29         GuiDelimiter(GuiView & lv);
30
31         bool initialiseParams(std::string const &) { return true; }
32         void clearParams() {}
33         void dispatchParams() {}
34         bool isBufferDependent() const { return true; }
35
36 public Q_SLOTS:
37         void on_buttonBox_clicked(QAbstractButton * button);
38         void on_leftLW_itemActivated(QListWidgetItem *);
39         void on_rightLW_itemActivated(QListWidgetItem *);
40         void on_leftLW_currentRowChanged(int);
41         void on_rightLW_currentRowChanged(int);
42         void on_matchCB_stateChanged(int);
43         void insert();
44         void on_swapPB_clicked();
45         void on_sizeCO_activated(int);
46
47 private:
48         ///
49         char_type doMatch(char_type const symbol);
50         ///
51         void updateTeXCode(int size);
52
53         /// TeX code that will be inserted.
54         docstring tex_code_;
55 };
56
57 } // namespace frontend
58 } // namespace lyx
59
60 #endif // GUIDELIMITERDIALOG_H