]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiIndex.h
move our stuff off the Q* namespace
[lyx.git] / src / frontends / qt4 / GuiIndex.h
1 // -*- C++ -*-
2 /**
3  * \file GuiIndex.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 Kalle Dalheimer
9  *
10  * Full author contact details are available in file CREDITS.
11  */
12
13 #ifndef QINDEX_H
14 #define QINDEX_H
15
16 #include "GuiDialogView.h"
17 #include "ui_IndexUi.h"
18
19 #include <QDialog>
20 #include <QCloseEvent>
21
22 namespace lyx {
23 namespace frontend {
24
25 class GuiIndex;
26
27 class GuiIndexDialog : public QDialog, public Ui::IndexUi {
28         Q_OBJECT
29 public:
30         GuiIndexDialog(GuiIndex * form);
31
32 protected Q_SLOTS:
33         virtual void change_adaptor();
34         virtual void reject();
35 protected:
36         virtual void closeEvent(QCloseEvent * e);
37 private:
38         GuiIndex * form_;
39 };
40
41
42 class ControlCommand;
43
44 class GuiIndex :
45         public QController<ControlCommand, GuiView<GuiIndexDialog> >
46 {
47 public:
48         friend class GuiIndexDialog;
49
50         GuiIndex(Dialog &, docstring const & title, QString const & label);
51 protected:
52         virtual bool isValid();
53 private:
54         /// Apply changes
55         virtual void apply();
56         /// update
57         virtual void update_contents();
58         /// build the dialog
59         virtual void build_dialog();
60
61         ///
62         QString const label_;
63 };
64
65 } // namespace frontend
66 } // namespace lyx
67
68 #endif // QINDEX_H