]> git.lyx.org Git - lyx.git/blob - src/frontends/qt3/QDelimiterDialog.h
Extracted from r14281
[lyx.git] / src / frontends / qt3 / QDelimiterDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QDelimiterDialog.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 QDELIMITERDIALOG_H
13 #define QDELIMITERDIALOG_H
14
15 #include "ui/QDelimiterDialogBase.h"
16 #include <string>
17
18 class IconPalette;
19 class QLabel;
20
21 namespace lyx {
22 namespace frontend {
23
24 class QMathDelimiter;
25
26 class QDelimiterDialog : public QDelimiterDialogBase {
27         Q_OBJECT
28 public:
29         QDelimiterDialog(QMathDelimiter * form);
30 public slots:
31         void ldelim_clicked(const std::string & str);
32         void rdelim_clicked(const std::string & str);
33         void size_selected(int);
34         void insertClicked();
35 protected:
36         //needed ? virtual void closeEvent(QCloseEvent * e);
37 private:
38         void set_label(QLabel * label, const std::string & str);
39
40         /// symbol of left delimiter
41         std::string left_;
42
43         /// symbol of right delimiter
44         std::string right_;
45
46         /// size of delimiters
47         int size_;
48
49         /// owning form
50         QMathDelimiter * form_;
51 };
52
53 } // namespace frontend
54 } // namespace lyx
55
56 #endif // QDELIMITERDIALOG_H