File: unicodeinsertion.h

package info (click to toggle)
texstudio 2.3%2Bdebian-3
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 20,992 kB
  • sloc: cpp: 61,734; ansic: 4,300; xml: 726; sh: 125; makefile: 25
file content (29 lines) | stat: -rw-r--r-- 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef UNICODEINSERTION_H
#define UNICODEINSERTION_H

#include "mostQtHeaders.h"

class UnicodeInsertion : public QWidget
{
	Q_OBJECT
public:
	UnicodeInsertion(QWidget* parent);
private:
	QLineEdit* edit;
	QTableWidget* table;

	void setTableText(int r, int c, const QString& s);
protected:
	virtual void keyPressEvent(QKeyEvent * e);
private slots:
	void editChanged(const QString& newtext);

	void tableCellClicked(int r, int c);
	void tableCellDoubleClicked(int r, int c);

public: signals:
	void insertCharacter(const QString& c);

};

#endif // UNICODEINSERTION_H