]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/GuiSendto.h
move our stuff off the Q* namespace
[lyx.git] / src / frontends / qt4 / GuiSendto.h
1 // -*- C++ -*-
2 /**
3  * \file GuiSendto.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 QSENDTO_H
13 #define QSENDTO_H
14
15 #include "GuiDialogView.h"
16 #include "ui_SendtoUi.h"
17
18 #include <QDialog>
19
20 #include <vector>
21
22 class QCloseEvent;
23 class QListWidgetItem;
24
25 namespace lyx {
26
27 class Format;
28
29 namespace frontend {
30
31 class GuiSendto;
32
33 class GuiSendtoDialog : public QDialog, public Ui::SendtoUi {
34         Q_OBJECT
35 public:
36         GuiSendtoDialog(GuiSendto * form);
37 protected Q_SLOTS:
38         virtual void changed_adaptor();
39         virtual void slotFormatHighlighted(QListWidgetItem *) {}
40         virtual void slotFormatSelected(QListWidgetItem *) {}
41 protected:
42         virtual void closeEvent(QCloseEvent * e);
43 private:
44         GuiSendto * form_;
45 };
46
47
48 class ControlSendto;
49
50 /** This class provides a Qt implementation of the Custom Export Dialog.
51  */
52 class GuiSendto
53         : public QController<ControlSendto, GuiView<GuiSendtoDialog> >
54 {
55 public:
56         ///
57         friend class GuiSendtoDialog;
58         ///
59         GuiSendto(Dialog &);
60 protected:
61         virtual bool isValid();
62 private:
63         /// Apply from dialog
64         virtual void apply();
65         /// Update the dialog
66         virtual void update_contents();
67         /// Build the dialog
68         virtual void build_dialog();
69         ///
70         std::vector<Format const *> all_formats_;
71 };
72
73 } // namespace frontend
74 } // namespace lyx
75
76 #endif // QSENDTO_H