Home » U++ TheIDE » U++ TheIDE: CodeEditor, Assist++, Topic++ » CodeEditor: CopyWord; SwapChars [FEATURE REQUEST][ADDED]
Re: CopyWord; SwapChars [message #2741 is a reply to message #2734] |
Sun, 23 April 2006 20:40   |
gprentice
Messages: 260 Registered: November 2005 Location: New Zealand
|
Experienced Member |
|
|
luzr wrote on Mon, 24 April 2006 00:57 | Thanks. Just curious - how do you activate those functions? (hotkeys?)
As for 4 pieces on clipboard, that is quite believable - we are putting Unicode and "system page" versions, Win32 then automagically creates other formats from them.
Mirek
|
Oops, looks like I forgot
if(IsReadOnly()) return;
at the start of SwapChars.
I guess SwapChars would be better in LineEdit class anyway, since it's not C++ specific.
Nope, I have it hard coded in CodeEditor::Key at present. I didn't go to the trouble of hotkeys as I wasn't sure if this code would make it into upp sources. Of course I'd definitely like a hotkey option for it but I see that involves quite a few changes. I don't blame you for being reluctant to let people modify sources, especially CodeEditor - I don't think I even really want to. I was hoping it would be an easy thing to copy in from the code I posted.
Ideally, maybe something like an "Others" item on the Edit menu which would give sub-menu of Swap chars, copy word, move line up/down, upper case, lower case ...
Otherwise, I guess it could go in Ide::Key - I'm wondering why that uses editor (an AssistEditor) and not editor2 (CodeEditor) ??
BTW - if save file checked isreadonly() before writing, it would provide a mechanism for avoiding changing a file - currently if you make a change to a file, there's no way to prevent it going to disk other than Ctrl Z/undo. (just a thought)
Graeme
|
|
|
Goto Forum:
Current Time: Sun Jul 06 21:16:29 CEST 2025
Total time taken to generate the page: 0.03904 seconds
|