Back to index

scribus-ng  1.3.4.dfsg+svn20071115
unicodesearch.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef UNICODESEARCH_H
00008 #define UNICODESEARCH_H
00009 
00010 #include <qvariant.h>
00011 #include <qdialog.h>
00012 #include <qpushbutton.h>
00013 
00014 #include "unicodesearchbase.h"
00015 #include "scribusapi.h"
00016 #include "fonts/scface.h"
00017 
00018 class CharZoom;
00019 
00026 class SCRIBUS_API UnicodeSearch : public UnicodeSearchBase
00027 {
00028        Q_OBJECT
00029 
00030 public:
00035        UnicodeSearch(QWidget* parent = 0, const char* name = 0, bool modal = false);
00036        ~UnicodeSearch(){};
00040        void checkForUpdate();
00042        void setFont(ScFace f) { m_font = f; };
00043 
00044 signals:
00046        void setVisibleState(bool);
00047 
00048 private:
00052        QMap<QString,QString> m_unicodeMap;
00053 
00055        CharZoom * m_zoom;
00057        ScFace m_font;
00058 
00060        void query();
00064        void query(QString filter);
00066        void readUnicodeMap();
00068        void hideEvent(QHideEvent * e);
00069 
00070 private slots:
00072        void searchEdit_returnPressed();
00074        void unicodeList_mouseButtonPressed(int button, QListViewItem* item, const QPoint& point, int);
00075 };
00076 
00077 
00083 class SCRIBUS_API UnicodeChooseButton : public QPushButton
00084 {
00085        Q_OBJECT
00086 
00087 public:
00092        UnicodeChooseButton(QWidget * parent, const char * name = 0);
00093        ~UnicodeChooseButton(){};
00095        void setFont(ScFace f) { m_searchDialog->setFont(f); };
00096 
00097 signals:
00099        void chosenUnicode(QString);
00100 
00101 public slots:
00103        void languageChange();
00104 
00105 private:
00109        UnicodeSearch* m_searchDialog;
00110 
00111 private slots:
00113        void self_toggled(bool);
00115        void unicodeList_chosen(QListViewItem *);
00116 
00117 };
00118 
00119 #endif