]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/BulletsModule.h
* fix spelling in comments to please John.
[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 BULLETSMODULE_H
13 #define BULLETSMODULE_H
14
15 #include "ui_BulletsUi.h"
16 #include "Bullet.h"
17
18 #include <QWidget>
19
20
21 namespace lyx {
22
23 class BulletsModule : public QWidget, public Ui::BulletsUi
24 {
25         Q_OBJECT
26
27 public:
28         ///
29         BulletsModule(QWidget * parent = 0);
30
31         /// set a bullet
32         void setBullet(int level, Bullet const & bullet);
33         /// get bullet setting
34         Bullet const & bullet(int level) const;
35         /// update 1st level
36         void init();
37
38 Q_SIGNALS:
39         void changed();
40
41 protected Q_SLOTS:
42         void on_bulletsizeCO_activated(int level);
43         void on_customCB_clicked(bool);
44         void on_customLE_textEdited(const QString &);
45         void bulletSelected(QListWidgetItem *, QListWidgetItem *);
46         void showLevel(int);
47
48 private:
49         void selectItem(int font, int character, bool select);
50         void setupPanel(QListWidget * lw, QString const & panelname,
51                 std::string const & fname);
52
53         /// store results
54         Bullet bullets_[4];
55         int current_font_;
56         int current_char_;
57 };
58
59 } // namespace lyx
60
61 #endif // BULLETSMODULE_H