Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » codetip bug in the unbuntu9.04
Re: codetip bug in the unbuntu9.04 [message #21988 is a reply to message #21975] Sun, 14 June 2009 11:48 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
OK, another attempt:

void Ctrl::WndDestroy0()
{
	GuiLock __;
	LLOG("WndDestroy " << Name());
	if(!top || !isopen) return;
	AddGlobalRepaint();
	bool revertfocus = HasWndFocus();
	for(int i = 0; i < Xwindow().GetCount(); i++) {
		LOGBEGIN();
		XWindow& w = Xwindow()[i];
		if(Xwindow().GetKey(i) != None && w.owner == this && w.ctrl->IsOpen())
			w.ctrl->WndDestroy();
		LOGEND();
	}
	Ptr<Ctrl> owner;
	int i = Xwindow().Find(top->window);
	if(i >= 0) {
		XWindow& w = Xwindow()[i];
		owner = w.owner;
		w.invalid.Clear();
		if(w.xic)
			XDestroyIC(w.xic);
	}
	isopen = false;
	if(focusWindow == top->window)
		focusWindow = None;
	if(grabWindow == top->window)
		grabWindow = None;
	XDestroyWindow(Xdisplay, top->window);
	if(i >= 0) {
		Xwindow().SetKey(i, None);
		top->window = None;
		Xwindow()[i].ctrl = NULL;
	}

	if(revertfocus && owner)
		owner->TakeFocus();

	if(focusWindow) {
		int q = Xwindow().Find(focusWindow);
		if(q >= 0) {
			XIC xic = Xwindow()[q].xic;
			XSetICFocus(xic);
		}
	}

	delete top;
	top = NULL;
}


Works for me with SCIM activated. And, actually, seems quite logical: It looks like SCIM lost track of focus when windows are destroyed, above fix basically tells him where to send keystrokes...
Re: codetip bug in the unbuntu9.04 [message #21991 is a reply to message #21988] Sun, 14 June 2009 14:02 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
Yes,
Scim normal work, but there's a small problem.
SCIM's input window should follow the cursor.For example, Gedit:
index.php?t=getfile&id=1786&private=0

but for upp,input window location is random. sometime over text.
  • Attachment: 2.jpg
    (Size: 34.01KB, Downloaded 603 times)
Re: codetip bug in the unbuntu9.04 [message #21992 is a reply to message #21991] Sun, 14 June 2009 14:03 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
Input window over content.
index.php?t=getfile&id=1787&private=0
Re: codetip bug in the unbuntu9.04 [message #21993 is a reply to message #21991] Sun, 14 June 2009 14:09 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
gxl117 wrote on Sun, 14 June 2009 08:02

Yes,
Scim normal work, but there's a small problem.
SCIM's input window should follow the cursor.For example, Gedit:
index.php?t=getfile&id=1786&private=0

but for upp,input window location is random. sometime over text.


Is this a new behaviour? Does it have the same problem with the other IM you are using?

Mirek
Re: codetip bug in the unbuntu9.04 [message #21994 is a reply to message #21993] Sun, 14 June 2009 14:31 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
Yes,I test FCITX Chinese input method.it also has this problem.
Should input method can't track cursor of LineEdit.
I also tested DocEdit,it has same problem.So may all upp text ctrl have that problem.

[Updated on: Sun, 14 June 2009 14:36]

Report message to a moderator

Re: codetip bug in the unbuntu9.04 [message #21996 is a reply to message #21994] Sun, 14 June 2009 14:36 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
gxl117 wrote on Sun, 14 June 2009 08:31

Yes,I test FCITX Chinese input method.it also has this problem.
Should input method don't track cursor of LineEdit.
I also tested DocEdit,it has same problem.So may all upp text ctrl have that problem.


OK, working on fix.

Anyway, for that to work, I need to "invoke" that IM popup (not being CJK, I never did that).

Can you help me? Step by step, given I have english Ubuntu installed with XIM, how I am supposed to invoke it?

Install chinese keyboard or what?

Mirek
Re: codetip bug in the unbuntu9.04 [message #21998 is a reply to message #21996] Sun, 14 June 2009 15:24 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
Quote:

OK, working on fix.

Anyway, for that to work, I need to "invoke" that IM popup (not being CJK, I never did that).

Can you help me? Step by step, given I have english Ubuntu installed with XIM, how I am supposed to invoke it?

Install chinese keyboard or what?

Mirek


I installed is ubuntu Chinese version.So i'm not very clear on how to install the English version of SCIM.
For Chinese version,I installed follow package:
scim
scim-bridge-agent
scim-bridge-clent-gtk
scim-gtk2-immodule
scim-modules-table
scim-tables-zh
im-switch
I think scim-tables-zh and im-switch is use to invoke Chinese input window.

For FCITX,it's a very good chinese input mothod. it's web site have how to installation for english linux.
My English can't very clear expression of the installation method. So you should to see FCITX's web site:
http://www.fcitx.org/main/?q=node/10


Re: codetip bug in the unbuntu9.04 [message #22000 is a reply to message #21992] Sun, 14 June 2009 15:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I guess I have SCIM installed. It shows Chinese input methods just fine.

What I am not sure to do is how to invoke that popup. Should I press something or what?

Mirek
Re: codetip bug in the unbuntu9.04 [message #22002 is a reply to message #22000] Sun, 14 June 2009 16:25 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
luzr wrote on Sun, 14 June 2009 15:56

I guess I have SCIM installed. It shows Chinese input methods just fine.

What I am not sure to do is how to invoke that popup. Should I press something or what?

Mirek

oh,If you install scim-tables-zh,you should have Chinese input mothod name WuBi.
press down key:Ctrl+space SCIM window will show,and repeat press down Ctrl+shift,until the window shown below:
index.php?t=getfile&id=1789&private=0

you get chinese input mothod names WuBi.Followed by pressing the 'l' 'w' 't' 'y'. Popup will show. press space key,cinese char should input to editor,and popup hide.you can repeat this process.it shoule repeat input chinese word "ÊäÈë"¡£
  • Attachment: wubi.jpg
    (Size: 2.68KB, Downloaded 714 times)

[Updated on: Sun, 14 June 2009 16:26]

Report message to a moderator

Re: codetip bug in the unbuntu9.04 [message #22003 is a reply to message #22002] Sun, 14 June 2009 16:45 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
No success...

Nevermind, attempted fix does not seem to break anything; please check svn in 30 minutes and report results if possible...

Mirek

Re: codetip bug in the unbuntu9.04 [message #22006 is a reply to message #22003] Sun, 14 June 2009 17:27 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
luzr wrote on Sun, 14 June 2009 16:45

No success...

Nevermind, attempted fix does not seem to break anything; please check svn in 30 minutes and report results if possible...

Mirek



I tested SVN,it can't activate SCIM.When i undo XIMPreeditPosition to XIMPreeditNoting, SCIM can activate but popup can't track cursor.It always stayed in the upper left corner of the editor window.

[Updated on: Sun, 14 June 2009 17:40]

Report message to a moderator

Re: codetip bug in the unbuntu9.04 [message #22010 is a reply to message #22006] Sun, 14 June 2009 20:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
gxl117 wrote on Sun, 14 June 2009 11:27

luzr wrote on Sun, 14 June 2009 16:45

No success...

Nevermind, attempted fix does not seem to break anything; please check svn in 30 minutes and report results if possible...

Mirek



I tested SVN,it can't activate SCIM.When i undo XIMPreeditPosition to XIMPreeditNoting, SCIM can activate but popup can't track cursor.It always stayed in the upper left corner of the editor window.


Hm, upper left corner is better than random right?

Well, I am afraid I do not know how to continue for now....

I will go back to XIMPreeditNothing for now - at least, it is partial fix.

Mirek
Re: codetip bug in the unbuntu9.04 [message #22035 is a reply to message #22010] Mon, 15 June 2009 04:11 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
new fix for XIM can't Activate input method.
Random may better than upper left corner,because i can drag popup window to other position."upper left corner" can't do that.it over text contents in the upper left corner.
Re: codetip bug in the unbuntu9.04 [message #22042 is a reply to message #22035] Mon, 15 June 2009 11:29 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Sorry, minor fault.

Should be OK now (I mean, as good as it was before...)

I guess for future, we shall have to support "callback" IM style (inplace).

Mirek
Previous Topic: highlight matching braces problem
Next Topic: Feature request to support existing projects
Goto Forum:
  


Current Time: Tue Apr 16 20:11:48 CEST 2024

Total time taken to generate the page: 0.01084 seconds