Hi Youngsik

To override default virtual keyboard, followed below steps

1) Created  my own plugin (as library)

Sample code:
class MKeyboardHost: public MAbstractInputMethod
{
    Q_OBJECT
private:
    QWidget wid;
public:
    MKeyboardHost(MAbstractInputMethodHost *imHost, QObject *parent = 
0):MAbstractInputMethod(imHost, parent)
    {
       scene =new MSceneWindow;
         scene->setManagedManually(true);
         MPlainWindow::instance()->sceneManager()->appearSceneWindow(scene);
    }

    virtual ~MKeyboardHost()
    {
         //Destructor 
    }
     void show()
     {
         wid.show();

     }

     void hide()
     {
         wid.hide();
     }

};

Step2:

Copied plugin to /usr/lib/meego-in-plugins

Step3: 

Restarted meego-im-uiserver 


Please correct, if I am doing anything wrong here


Thanks

Yuvaraj R

-----Original Message-----
From: Yoon, Youngsik [mailto:[email protected]] 
Sent: Friday, February 25, 2011 5:18 AM
To: Ragupathi Yuvaraj; [email protected]
Cc: [email protected]
Subject: RE: [MeeGo-dev] can't overrride virtual keyboard

I think it should not be library name like xxx.so.
It should be your plugin name setting in MInputMethodPlugin::name().

Thanks,
Yoon

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of [email protected]
Sent: Thursday, February 24, 2011 8:53 PM
To: [email protected]; [email protected]
Cc: [email protected]
Subject: Re: [MeeGo-dev] can't overrride virtual keyboard

Hi
I executed gconftool-2 --direct --config-source 
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set 
/meegotouch/inputmethods/plugins/onscreen libmylibrary.so.

But no changes happened. How can I verify whether meego-im-uiserver is running 
or not?


Thanks

Yuvaraj R

-----Original Message-----
From: Ragupathi Yuvaraj 
Sent: Wednesday, February 23, 2011 9:18 AM
To: 'Michael Hasselmann'
Cc: [email protected]
Subject: RE: [MeeGo-dev] can't overrride virtual keyboard

Hi
Thanks for your reply. I will try and let you know

Thanks
Yuvaraj R

-----Original Message-----
From: Michael Hasselmann [mailto:[email protected]] 
Sent: Tuesday, February 22, 2011 6:04 PM
To: Ragupathi Yuvaraj
Cc: [email protected]
Subject: Re: [MeeGo-dev] can't overrride virtual keyboard

On Tue, 2011-02-22 at 11:47 +0200, [email protected] wrote:
> Hi
>
> I have developed one small widget to override the default virtual
> keyboard and kept my lib @ /usr/lib/meego-im-plugins location. I
> didn’t see any updates on virtual keyboard.

Current VKB plugin is determined through GConf. Youngsik Yoon found out
how to change those "read-only" values:

# gconftool-2 --direct --config-source 
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set 
/meegotouch/inputmethods/plugins/onscreen "xxxxx"

where xxxxx is the name of your plugin. If the meego-im-uiserver is
running while changing this value, it should switch the plugin
immediately.

regards,
Michael


_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines
_______________________________________________
MeeGo-dev mailing list
[email protected]
http://lists.meego.com/listinfo/meego-dev
http://wiki.meego.com/Mailing_list_guidelines

Reply via email to