]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiDelimiter.h
Correct early return position for if use_pixmap_cache_ check
[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 "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_leftLW_itemActivated(QListWidgetItem *);
38         void on_rightLW_itemActivated(QListWidgetItem *);
39         void on_leftLW_currentRowChanged(int);
40         void on_rightLW_currentRowChanged(int);
41         void on_matchCB_stateChanged(int);
42         void on_insertPB_clicked();
43         void on_sizeCO_activated(int);
44
45 private:
46         ///
47         char_type doMatch(char_type const symbol);
48         ///
49         void updateTeXCode(int size);
50
51         /// TeX code that will be inserted.
52         QString tex_code_;
53 };
54
55 } // namespace frontend
56 } // namespace lyx
57
58 #endif // GUIDELIMITERDIALOG_H