]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/BulletsModule.h
fix building with automake; break scons, cmake and qmake
[lyx.git] / src / frontends / qt4 / BulletsModule.h
1 // -*- C++ -*-
2 /**
3  * \file BulletsModule.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Edwin Leuven
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef QBULLETSMODULE_H
13 #define QBULLETSMODULE_H
14
15
16 #include "ui_BulletsUi.h"
17 #include "Bullet.h"
18 #include <boost/array.hpp>
19
20 #include <QWidget>
21
22
23 namespace lyx {
24
25 class BulletsModule : public QWidget, public Ui::BulletsUi {
26         Q_OBJECT
27 public:
28         ///
29         BulletsModule(QWidget * parent = 0, const char * name = 0, Qt::WFlags fl = 0);
30
31         /// set a bullet
32         void setBullet(int level, Bullet const & bullet);
33         /// get bullet setting
34         Bullet const & getBullet(int level) const;
35         /// update 1st level
36         void init();
37
38 Q_SIGNALS:
39         void changed();
40
41 protected Q_SLOTS:
42
43         void on_bulletsizeCO_activated(int level);
44         void on_customCB_clicked(bool);
45         void on_customLE_textEdited(const QString &);
46         void bulletSelected(QListWidgetItem *, QListWidgetItem *);
47         void showLevel(int);
48
49 private:
50         void selectItem(int font, int character, bool select);
51         void setupPanel(QListWidget * lw, QString const & panelname,
52                 std::string const & fname);
53
54         /// store results
55         boost::array<Bullet, 4> bullets_;
56         int current_font_;
57         int current_char_;
58 };
59
60
61 } // namespace lyx
62
63 #endif // BULLETSMODULE_H