summaryrefslogtreecommitdiff
path: root/inputmethods/pickboard/pickboardcfg.h
Unidiff
Diffstat (limited to 'inputmethods/pickboard/pickboardcfg.h') (more/less context) (show whitespace changes)
-rw-r--r--inputmethods/pickboard/pickboardcfg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/inputmethods/pickboard/pickboardcfg.h b/inputmethods/pickboard/pickboardcfg.h
index e0dc0dd..b1913df 100644
--- a/inputmethods/pickboard/pickboardcfg.h
+++ b/inputmethods/pickboard/pickboardcfg.h
@@ -91,49 +91,49 @@ protected:
91 virtual void pickInRow(int r, int xpos, bool press)=0; 91 virtual void pickInRow(int r, int xpos, bool press)=0;
92 92
93 void changeMode(int m); 93 void changeMode(int m);
94 virtual void generateText(const QString& s); 94 virtual void generateText(const QString& s);
95 void generateKey( int k ); 95 void generateKey( int k );
96 96
97 virtual void pick(bool press, int row, int item)=0; 97 virtual void pick(bool press, int row, int item)=0;
98 98
99protected: 99protected:
100 PickboardPicks* parent; 100 PickboardPicks* parent;
101 int nrows; 101 int nrows;
102private: 102private:
103 int pressrow, pressx; 103 int pressrow, pressx;
104}; 104};
105 105
106class StringConfig : public PickboardConfig { 106class StringConfig : public PickboardConfig {
107public: 107public:
108 StringConfig(PickboardPicks* p) : PickboardConfig(p) { } 108 StringConfig(PickboardPicks* p) : PickboardConfig(p) { }
109 109
110 void draw(QPainter* p); 110 void draw(QPainter* p);
111 111
112protected: 112protected:
113 virtual QString text(int r, int i)=0; 113 virtual QString text(int r, int i)=0;
114 virtual bool spreadRow(int i)=0; 114 virtual bool spreadRow(int i)=0;
115 virtual QColor rowColor(int) { return Qt::black; } 115 virtual QColor rowColor(int) { return ::Qt::black; }
116 virtual void pickInRow(int r, int xpos, bool press); 116 virtual void pickInRow(int r, int xpos, bool press);
117 virtual void updateItem(int r, int i); 117 virtual void updateItem(int r, int i);
118 virtual bool highlight(int,int) const; 118 virtual bool highlight(int,int) const;
119}; 119};
120 120
121class CharStringConfig : public StringConfig { 121class CharStringConfig : public StringConfig {
122 QString input; 122 QString input;
123 QStringList chars; 123 QStringList chars;
124public: 124public:
125 CharStringConfig(PickboardPicks* p) : StringConfig(p) { } 125 CharStringConfig(PickboardPicks* p) : StringConfig(p) { }
126 126
127 void addChar(const QString& s); 127 void addChar(const QString& s);
128 virtual void doMenu(int); 128 virtual void doMenu(int);
129 129
130protected: 130protected:
131 QString text(int r, int i); 131 QString text(int r, int i);
132 bool spreadRow(int i); 132 bool spreadRow(int i);
133 void pick(bool press, int row, int item); 133 void pick(bool press, int row, int item);
134}; 134};
135 135
136class DictFilterConfig : public StringConfig { 136class DictFilterConfig : public StringConfig {
137 QStringList matches; 137 QStringList matches;
138 QStringList sets; 138 QStringList sets;
139 QStringList othermodes; 139 QStringList othermodes;