mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-16 07:55:41 +00:00
ae62ef20f8
also use QT_NO_CAST_TO_ASCII and QT_NO_STL for better checks on type conversions git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26463 a592a061-630c-0410-9148-cb99ea01b6c8
62 lines
1.2 KiB
C++
62 lines
1.2 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 BULLETSMODULE_H
|
|
#define BULLETSMODULE_H
|
|
|
|
#include "ui_BulletsUi.h"
|
|
#include "Bullet.h"
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
namespace lyx {
|
|
|
|
class BulletsModule : public QWidget, public Ui::BulletsUi
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
///
|
|
BulletsModule(QWidget * parent = 0);
|
|
|
|
/// set a bullet
|
|
void setBullet(int level, Bullet const & bullet);
|
|
/// get bullet setting
|
|
Bullet const & bullet(int level) const;
|
|
/// update 1st level
|
|
void init();
|
|
|
|
Q_SIGNALS:
|
|
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 showLevel(int);
|
|
|
|
private:
|
|
void selectItem(int font, int character, bool select);
|
|
void setupPanel(QListWidget * lw, QString const & panelname,
|
|
std::string const & fname);
|
|
|
|
/// store results
|
|
Bullet bullets_[4];
|
|
int current_font_;
|
|
int current_char_;
|
|
};
|
|
|
|
} // namespace lyx
|
|
|
|
#endif // BULLETSMODULE_H
|