]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/QRefDialog.h
enable Font cache only for MacOSX and inline width() for other platform.
[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 class QListWidgetItem;
22
23 namespace lyx {
24 namespace frontend {
25
26 class QRef;
27
28 class QRefDialog : public QDialog, public Ui::QRefUi {
29         Q_OBJECT
30 public:
31         QRefDialog(QRef * form);
32
33         virtual void show();
34
35 public Q_SLOTS:
36         void changed_adaptor();
37         void gotoClicked();
38         void refHighlighted(QListWidgetItem *);
39         void refSelected(QListWidgetItem *);
40         void sortToggled(bool);
41         void updateClicked();
42
43 protected:
44         void closeEvent(QCloseEvent * e);
45 private:
46         QRef * form_;
47 };
48
49 } // namespace frontend
50 } // namespace lyx
51
52 #endif // QREFDIALOG_H