summaryrefslogtreecommitdiff
path: root/core/launcher/inputmethods.h
Unidiff
Diffstat (limited to 'core/launcher/inputmethods.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/inputmethods.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/launcher/inputmethods.h b/core/launcher/inputmethods.h
index 93b69de..246661a 100644
--- a/core/launcher/inputmethods.h
+++ b/core/launcher/inputmethods.h
@@ -58,53 +58,55 @@ struct InputMethod
58 int operator <=(const InputMethod& o) const; 58 int operator <=(const InputMethod& o) const;
59}; 59};
60 60
61class InputMethods : public QWidget 61class InputMethods : public QWidget
62{ 62{
63 Q_OBJECT 63 Q_OBJECT
64public: 64public:
65 InputMethods( QWidget * ); 65 InputMethods( QWidget * );
66 ~InputMethods(); 66 ~InputMethods();
67 67
68 QRect inputRect() const; 68 QRect inputRect() const;
69 bool shown() const; 69 bool shown() const;
70 QString currentShown() const; // name of interface 70 QString currentShown() const; // name of interface
71 void showInputMethod(const QString& id); 71 void showInputMethod(const QString& id);
72 void showInputMethod(); 72 void showInputMethod();
73 void hideInputMethod(); 73 void hideInputMethod();
74 void unloadInputMethods(); 74 void unloadInputMethods();
75 void loadInputMethods(); 75 void loadInputMethods();
76 76
77signals: 77signals:
78 void inputToggled( bool on ); 78 void inputToggled( bool on );
79 79
80private slots: 80private slots:
81 void chooseKbd(); 81 void chooseKbd();
82 void chooseIm(); 82 void chooseIm();
83 void showKbd( bool ); 83 void showKbd( bool );
84 void resetStates(); 84 void resetStates();
85 void sendKey( ushort unicode, ushort scancode, ushort modifiers, bool, bool ); 85 void sendKey( ushort unicode, ushort scancode, ushort modifiers, bool, bool );
86 void qcopReceive( const QCString &msg, const QByteArray &data ); 86 void qcopReceive( const QCString &msg, const QByteArray &data );
87 87
88private: 88private:
89 void setPreferedHandlers(); 89 void setPreferedHandlers();
90 /*static */QStringList plugins()const; 90 /*static */QStringList plugins()const;
91 /*static */void installTranslator( const QString& ); 91 /*static */void installTranslator( const QString& );
92 void unloadMethod( QValueList<InputMethod>& ); 92 void unloadMethod( QValueList<InputMethod>& );
93 void chooseMethod(InputMethod* im); 93 void chooseMethod(InputMethod* im);
94 void chooseKeyboard(InputMethod* im); 94 void chooseKeyboard(InputMethod* im);
95 void updateKeyboards(InputMethod *im); 95 void updateKeyboards(InputMethod *im);
96 96
97private: 97private:
98 QToolButton *kbdButton; 98 QToolButton *kbdButton;
99 QToolButton *kbdChoice; 99 QToolButton *kbdChoice;
100 QWidgetStack *imButton; // later will be widget stack 100 QWidgetStack *imButton; // later will be widget stack
101 QToolButton *imChoice; 101 QToolButton *imChoice;
102 InputMethod *mkeyboard; 102 InputMethod *mkeyboard;
103 InputMethod *imethod; 103 InputMethod *imethod;
104 QValueList<InputMethod> inputMethodList; 104 QValueList<InputMethod> inputMethodList;
105 QValueList<InputMethod> inputModifierList; 105 QValueList<InputMethod> inputModifierList;
106 int inputWidgetStyle;
107 int inputWidgetWidth;
106}; 108};
107 109
108 110
109#endif // __INPUT_METHODS_H__ 111#endif // __INPUT_METHODS_H__
110 112