mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
0705dae8a3
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7703 a592a061-630c-0410-9148-cb99ea01b6c8
86 lines
1.6 KiB
C++
86 lines
1.6 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file BulletsModule.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Edwin Leuven
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef QBULLETSMODULE_H
|
|
#define QBULLETSMODULE_H
|
|
|
|
|
|
#include "ui/BulletsModuleBase.h"
|
|
#include "Bullet.h"
|
|
#include <boost/array.hpp>
|
|
|
|
class QBrowseBox;
|
|
class QPushButton;
|
|
class QComboBox;
|
|
class QPixmap;
|
|
|
|
class BulletsModule : public BulletsModuleBase {
|
|
Q_OBJECT
|
|
public:
|
|
|
|
BulletsModule(QWidget * parent = 0, const char * name = 0, WFlags fl = 0);
|
|
|
|
~BulletsModule();
|
|
|
|
/// set a bullet
|
|
void setBullet(int level, const Bullet & bullet);
|
|
|
|
/// get bullet setting
|
|
Bullet const getBullet(int level);
|
|
|
|
signals:
|
|
void changed();
|
|
|
|
protected slots:
|
|
|
|
/// menu callbacks
|
|
void standard(int row, int col);
|
|
void maths(int row, int col);
|
|
void ding1(int row, int col);
|
|
void ding2(int row, int col);
|
|
void ding3(int row, int col);
|
|
void ding4(int row, int col);
|
|
|
|
void updateSizes();
|
|
|
|
void pressed1();
|
|
void pressed2();
|
|
void pressed3();
|
|
void pressed4();
|
|
|
|
/// set custom (text) bullet
|
|
void setCustom();
|
|
|
|
private:
|
|
QPixmap getPixmap(int font, int character);
|
|
|
|
/// update GUI view
|
|
void setBullet(QPushButton * pb, QComboBox * co, Bullet const & b);
|
|
|
|
/// set from menu
|
|
void setCurrentBullet(int font, int character);
|
|
|
|
bool tmpbulletset;
|
|
Bullet tmpbullet;
|
|
|
|
/// store results
|
|
boost::array<Bullet, 4> bullets_;
|
|
|
|
QBrowseBox * standard_;
|
|
QBrowseBox * maths_;
|
|
QBrowseBox * ding1_;
|
|
QBrowseBox * ding2_;
|
|
QBrowseBox * ding3_;
|
|
QBrowseBox * ding4_;
|
|
};
|
|
|
|
#endif // BULLETSMODULE_H
|