]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QDelimiterDialog.h
some tabular fixes for the problems reported by Helge
[lyx.git] / src / frontends / qt2 / 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 insertClicked();
34 protected:
35         //needed ? virtual void closeEvent(QCloseEvent * e);
36 private:
37         void set_label(QLabel * label, const std::string & str);
38
39         /// symbol of left delimiter
40         std::string left_;
41
42         /// symbol of right delimiter
43         std::string right_;
44
45         /// owning form
46         QMathDelimiter * form_;
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif // QDELIMITERDIALOG_H