]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiNote.h
move our stuff off the Q* namespace
[lyx.git] / src / frontends / qt4 / GuiNote.h
1 // -*- C++ -*-
2 /**
3  * \file GuiNote.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jürgen Spitzmüller
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QNOTE_H
13 #define QNOTE_H
14
15 #include "GuiDialogView.h"
16 #include "ui_NoteUi.h"
17
18 #include <QDialog>
19 class QCloseEvent;
20
21 namespace lyx {
22 namespace frontend {
23
24 class GuiNote;
25
26 class GuiNoteDialog : public QDialog, public Ui::NoteUi {
27         Q_OBJECT
28 public:
29         GuiNoteDialog(GuiNote * form);
30 protected Q_SLOTS:
31         virtual void change_adaptor();
32 protected:
33         virtual void closeEvent(QCloseEvent * e);
34 private:
35         GuiNote * form_;
36 };
37
38
39 class ControlNote;
40
41 /** This class provides a QT implementation of the Note Dialog.
42  */
43 class GuiNote : public QController<ControlNote, GuiView<GuiNoteDialog> >
44 {
45 public:
46         friend class GuiNoteDialog;
47
48         /// Constructor
49         GuiNote(Dialog &);
50 private:
51         ///  Apply changes
52         virtual void apply();
53         /// Build the dialog
54         virtual void build_dialog();
55         /// Update dialog before showing it
56         virtual void update_contents();
57 };
58
59 } // namespace frontend
60 } // namespace lyx
61
62 #endif // QNOTE_H