]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QDelimiterDialog.h
This new citation dialog follows a new design similar to lyx-1.3:
[lyx.git] / src / frontends / qt4 / 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/QDelimiterUi.h"
16 #include <string>
17
18 #include <QLabel>
19 #include <QDialog>
20
21 class IconPalette;
22 class QLabel;
23
24 namespace lyx {
25 namespace frontend {
26
27 class QMathDelimiter;
28
29 class QDelimiterDialog : public QDialog, public Ui::QDelimiterUi {
30         Q_OBJECT
31 public:
32         QDelimiterDialog(QMathDelimiter * form);
33 public slots:
34         void ldelim_clicked(const std::string & str);
35         void rdelim_clicked(const std::string & str);
36         void insertClicked();
37 protected:
38         //needed ? virtual void closeEvent(QCloseEvent * e);
39 private:
40         void set_label(QLabel * label, const std::string & str);
41
42         /// symbol of left delimiter
43         std::string left_;
44
45         /// symbol of right delimiter
46         std::string right_;
47
48         /// owning form
49         QMathDelimiter * form_;
50 };
51
52 } // namespace frontend
53 } // namespace lyx
54
55 #endif // QDELIMITERDIALOG_H