* Full author contact details are available in file CREDITS.
*/
-#ifndef QBULLETSMODULE_H
-#define QBULLETSMODULE_H
+#ifndef BULLETSMODULE_H
+#define BULLETSMODULE_H
-
-#include "ui/BulletsUi.h"
+#include "ui_BulletsUi.h"
#include "Bullet.h"
-#include <boost/array.hpp>
#include <QWidget>
namespace lyx {
-class BulletsModule : public QWidget, public Ui::BulletsUi {
+class BulletsModule : public QWidget, public Ui::BulletsUi
+{
Q_OBJECT
-public:
-
- BulletsModule(QWidget * parent = 0, const char * name = 0, Qt::WFlags fl = 0);
- ~BulletsModule();
+public:
+ ///
+ BulletsModule(QWidget * parent = 0);
/// set a bullet
void setBullet(int level, Bullet const & bullet);
/// get bullet setting
- Bullet const & getBullet(int level) const;
+ Bullet const & bullet(int level) const;
/// update 1st level
void init();
void changed();
protected Q_SLOTS:
-
void on_bulletsizeCO_activated(int level);
void on_customCB_clicked(bool);
void on_customLE_textEdited(const QString &);
- void bulletSelected(QListWidgetItem *, QListWidgetItem*);
+ void bulletSelected(QListWidgetItem *, QListWidgetItem *);
void showLevel(int);
private:
void selectItem(int font, int character, bool select);
- void setupPanel(QListWidget * lw, QString panelname, std::string fname);
+ void setupPanel(QListWidget * lw, QString const & panelname,
+ std::string const & fname);
/// store results
- boost::array<Bullet, 4> bullets_;
+ Bullet bullets_[4];
int current_font_;
int current_char_;
};
-
} // namespace lyx
#endif // BULLETSMODULE_H