|
|
Home » Developing U++ » U++ Developers corner » What is the best: a separate UppCodeEditor or expanding the existing?
What is the best: a separate UppCodeEditor or expanding the existing? [message #2040] |
Thu, 30 March 2006 15:57 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
I want to have my customized DialectCodeEditor, someone PythonCodeEditor etc. with connections to I guess different Assists. And, I guess, we all want different right click popup menus.
What would be the best for all interested sides:
1. a separate UppCodeEditor, PythonCodeEditor etc. by sublassing from CodeEditor or
2. expanding the existing interface?
3. other alternatives.
I've started the 1.option succesfully but I don't want to waste my time if later some new grand changes will emerge. Also, I want to know the best technical considerations.
[Updated on: Thu, 30 March 2006 15:57] Report message to a moderator
|
|
|
Re: What is the best: a separate UppCodeEditor or expanding the existing? [message #2046 is a reply to message #2040] |
Thu, 30 March 2006 22:03 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
fudadmin wrote on Thu, 30 March 2006 08:57 | I want to have my customized DialectCodeEditor, someone PythonCodeEditor etc. with connections to I guess different Assists. And, I guess, we all want different right click popup menus.
What would be the best for all interested sides:
1. a separate UppCodeEditor, PythonCodeEditor etc. by sublassing from CodeEditor or
2. expanding the existing interface?
3. other alternatives.
I've started the 1.option succesfully but I don't want to waste my time if later some new grand changes will emerge. Also, I want to know the best technical considerations.
|
Well, the most safe approach would be to base your efforts on LineEdit (CodeEditor is derived from it as well).
Personally, I would most likely used CodeEditor, mosty to get Find&Replace, and reimplemented highlighting section.
Mirek
|
|
|
|
|
|
|
|
|
Re: What is the best: a separate UppCodeEditor or expanding the existing? [message #2059 is a reply to message #2057] |
Fri, 31 March 2006 00:40 |
|
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
And then in idebar.cpp...
Quote: |
void Ide::IdeEditorLocalMenu(Bar& menu)
{ //what items are needed put here?...
menu.Add(AK_JUMPS, THISBACK(JumpS));
menu.Add(AK_SWAPS, THISBACK(SwapS));
menu.Add(AK_JUMPS, THISBACK(JumpS));
menu.Separator();
editor.StdBar(menu);
//add extra item "customize menu..."
}
|
Thanks! ...Need to add some "if" logic here...
Edit: I mean, it works
[Updated on: Fri, 31 March 2006 00:43] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat May 04 10:12:42 CEST 2024
Total time taken to generate the page: 0.03129 seconds
|
|
|