]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QGraphicsDialog.h
* src/frontends/qt4/ui/TextLayoutUi.ui:
[lyx.git] / src / frontends / qt4 / QGraphicsDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QGraphicsDialog.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  * \author Herbert Voß
9  * \author Richard Heck
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef QGRAPHICSDIALOG_H
15 #define QGRAPHICSDIALOG_H
16
17 #include "ui/GraphicsUi.h"
18
19 #include <QCloseEvent>
20 #include <QDialog>
21 #include <QString>
22
23 namespace lyx {
24 namespace frontend {
25
26 class QGraphics;
27
28 class QGraphicsDialog : public QDialog, public Ui::QGraphicsUi {
29         Q_OBJECT
30 public:
31         QGraphicsDialog(QGraphics * form);
32         virtual void setAutoText();
33         virtual void show();
34 protected Q_SLOTS:
35         virtual void change_adaptor();
36         virtual void change_bb();
37         virtual void on_browsePB_clicked();
38         virtual void on_getPB_clicked();
39         virtual void on_editPB_clicked();
40         virtual void on_filename_textChanged(const QString &);
41         virtual void on_scaleCB_toggled(bool);
42         virtual void on_WidthCB_toggled(bool);
43         virtual void on_HeightCB_toggled(bool);
44 protected:
45         virtual void closeEvent(QCloseEvent * e);
46 private:
47         QGraphics * form_;
48 };
49
50 } // namespace frontend
51 } // namespace lyx
52
53 #endif // QGRAPHICSDIALOG_H