|
a/src/qtgui/spell_w.h |
|
b/src/qtgui/spell_w.h |
|
... |
|
... |
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _ASPELL_W_H_INCLUDED_
|
17 |
#ifndef _ASPELL_W_H_INCLUDED_
|
18 |
#define _ASPELL_W_H_INCLUDED_
|
18 |
#define _ASPELL_W_H_INCLUDED_
|
19 |
|
19 |
|
|
|
20 |
#include <vector>
|
|
|
21 |
|
20 |
#include <qvariant.h>
|
22 |
#include <qvariant.h>
|
21 |
#include <qwidget.h>
|
23 |
#include <qwidget.h>
|
22 |
|
24 |
|
23 |
#include "ui_spell.h"
|
25 |
#include "ui_spell.h"
|
24 |
|
|
|
25 |
class SpellW : public QWidget, public Ui::SpellBase
|
26 |
class SpellW : public QWidget, public Ui::SpellBase
|
26 |
{
|
27 |
{
|
27 |
Q_OBJECT
|
28 |
Q_OBJECT
|
28 |
public:
|
29 |
public:
|
29 |
SpellW(QWidget* parent = 0)
|
30 |
SpellW(QWidget* parent = 0)
|
|
... |
|
... |
31 |
{
|
32 |
{
|
32 |
setupUi(this);
|
33 |
setupUi(this);
|
33 |
init();
|
34 |
init();
|
34 |
}
|
35 |
}
|
35 |
|
36 |
|
36 |
~SpellW(){}
|
|
|
37 |
|
|
|
38 |
virtual bool eventFilter(QObject *target, QEvent *event );
|
37 |
virtual bool eventFilter(QObject *target, QEvent *event );
|
39 |
public slots:
|
38 |
public slots:
|
40 |
virtual void doExpand();
|
39 |
virtual void doExpand();
|
41 |
virtual void wordChanged(const QString&);
|
40 |
virtual void wordChanged(const QString&);
|
42 |
virtual void textDoubleClicked();
|
41 |
virtual void textDoubleClicked();
|
|
... |
|
... |
45 |
|
44 |
|
46 |
signals:
|
45 |
signals:
|
47 |
void wordSelect(QString);
|
46 |
void wordSelect(QString);
|
48 |
|
47 |
|
49 |
private:
|
48 |
private:
|
|
|
49 |
enum comboboxchoice {TYPECMB_WILD, TYPECMB_REG, TYPECMB_STEM,
|
|
|
50 |
TYPECMB_ASPELL, TYPECMB_STATS};
|
|
|
51 |
// combobox index to expansion type
|
|
|
52 |
std::vector<comboboxchoice> m_c2t;
|
50 |
void init();
|
53 |
void init();
|
51 |
void copy();
|
54 |
void copy();
|
|
|
55 |
void showStats();
|
52 |
};
|
56 |
};
|
53 |
|
57 |
|
54 |
#endif /* _ASPELL_W_H_INCLUDED_ */
|
58 |
#endif /* _ASPELL_W_H_INCLUDED_ */
|