This repository has been archived on 2020-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
libs/qad/widgets/chardialog.h
Бычков Андрей 350240cdfc QAD_EXPORT
git-svn-id: svn://db.shs.com.ru/libs@719 a8b55f48-bf90-11e4-a774-851b48703e85
2020-02-28 10:05:11 +00:00

54 lines
1.1 KiB
C++

#ifndef CHARDIALOG_H
#define CHARDIALOG_H
#include <QDialog>
#include <QMetaEnum>
#include <QDebug>
#include "qad_export.h"
namespace Ui {
class CharDialog;
}
class QAD_EXPORT CharDialog: public QDialog
{
Q_OBJECT
public:
explicit CharDialog(QWidget * parent = 0);
~CharDialog();
QChar selectedChar() {return sel_char;}
void setCharFont(const QFont & f);
public slots:
private:
void changeEvent(QEvent * e);
virtual bool eventFilter(QObject * o, QEvent * e);
virtual void resizeEvent(QResizeEvent * );
void clear();
Ui::CharDialog * ui;
QVector<QVector<QChar> > chars;
QVector<QChar> * cur;
QChar sel_char;
int size, csize;
private slots:
void on_comboCategory_currentIndexChanged(int index);
void on_verticalScroll_valueChanged(int index);
void on_spinSize_valueChanged(int index);
void on_tableChars_cellPressed(int row, int column);
void on_tableChars_cellDoubleClicked(int , int ) {on_buttonBox_accepted();}
void on_buttonBox_accepted();
void on_buttonBox_rejected() {reject();}
signals:
void charSelected(QChar ch);
};
#endif // CHARDIALOG_H