]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QRefDialog.h
Added initial qt4 work by Abdelrazak Younes
[lyx.git] / src / frontends / qt4 / QRefDialog.h
1 // -*- C++ -*-
2 /**
3  * \file QRefDialog.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Kalle Dalheimer
8  * \author John Levon
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef QREFDIALOG_H
14 #define QREFDIALOG_H
15
16 #include "ui/QRefUi.h"
17
18 #include <QDialog>
19 #include <QCloseEvent>
20
21 namespace lyx {
22 namespace frontend {
23
24 class QRef;
25
26 class QRefDialog : public QDialog, public Ui::QRefUi {
27         Q_OBJECT
28 public:
29         QRefDialog(QRef * form);
30
31         virtual void show();
32
33 public slots:
34         void changed_adaptor();
35         void gotoClicked();
36         void refHighlighted(const QString &);
37         void refSelected(const QString &);
38         void sortToggled(bool);
39         void updateClicked();
40
41 protected:
42         void closeEvent(QCloseEvent * e);
43 private:
44         QRef * form_;
45 };
46
47 } // namespace frontend
48 } // namespace lyx
49
50 #endif // QREFDIALOG_H