weeee great thanks for the info, i was looking for something like that !! its GREAT and will save me A LOT of struggle !
0.6.X What do you want to see in 0.6 series
Moderators: CEGUI MVP, CEGUI Team
- ErikHjortsberg
- Not too shy to talk
- Posts: 26
- Joined: Sun Jan 23, 2005 12:45
- Location: Sweden
- Contact:
Now that there's a healthy stream of additions to the code, what's the time frame for a 0.6 release?
Ember, a client for the Worldforge system.
Re: Wish List
ErikHjortsberg wrote:fooguru wrote:* clipboard support with multi-platform sample
* I second Lua 5.1 support
You can get cross platform clipboard support by using this code. In your input handling code, listen for paste keypress and get the text from the clipboard and inject it into CEGUI. I've used it successfully in my project for allowing pasting from external text, but haven't had time to implement copying from CEGUI yet (should be possible by listening to a copy key combination and looking at the active widget and try to get the actively marked text if it's a text widget).
Thanks Erik, great links. I just implemented my own clipboard support but only for Windows, because I don't want to create dependency with SDL.
I released another feature request while doing this:
* global key subscription
The part of my implementation that copies from CEGUI to clipboard is below.
Code: Select all
bool GUIClipboard::copy(bool cut) {
CEGUI::Window* sheet = CEGUI::System::getSingleton().getGUISheet();
if (!sheet) return false;
CEGUI::Window* active = sheet->getActiveChild();
if (!active) return false;
String seltext;
const CEGUI::String& type = active->getType();
if (type.find("/MultiLineEditbox") != CEGUI::String::npos) {
CEGUI::MultiLineEditbox* edit = static_cast<CEGUI::MultiLineEditbox*>(active);
CEGUI::String::size_type beg = edit->getSelectionStartIndex();
CEGUI::String::size_type len = edit->getSelectionLength();
seltext = edit->getText().substr( beg, len ).c_str();
// are we cutting or just copying?
if (cut) {
if (edit->isReadOnly()) return false;
CEGUI::String newtext = edit->getText();
edit->setText( newtext.erase( beg, len ) );
}
} else if (type.find("/Editbox") != CEGUI::String::npos) {
CEGUI::Editbox* edit = static_cast<CEGUI::Editbox*>(active);
CEGUI::String::size_type beg = edit->getSelectionStartIndex();
CEGUI::String::size_type len = edit->getSelectionLength();
seltext = edit->getText().substr( beg, len ).c_str();
// are we cutting or just copying?
if (cut) {
if (edit->isReadOnly()) return false;
CEGUI::String newtext = edit->getText();
edit->setText( newtext.erase( beg, len ) );
}
} else {
return false;
}
copyToClipboard( seltext );
return true;
}
-
- Just popping in
- Posts: 7
- Joined: Fri Jan 18, 2008 23:10
Re: Wish List
* multi-colored text - "you want the {#FF0000}red{} or {#0000FF}blue{} pill?"
* Tree widget - I know this is in the current SVN, but I'm using Ogre and handful of other libs and I don't want to get in the position of rebuilding all my libraries regularly, which is what tends to happen if you get into using unstable branches. So basically, this feature request is: "Tree Widget in stable! Huzzah!"
* tab-character \t support
* clipboard support with multi-platform sample
Quoting selected points from fooguru that just about sum up the top of my feature request list. Added one of my own as well.
I arranged them in order of importance to me (i.e. I want multicoloured text the most.)
----
A few of the other "competing" UI systems offer these things but the ones I've looked at are wimpy on other features that CEGUI is strong on (XML layouts, well rounded widget library.)
* Tree widget - I know this is in the current SVN, but I'm using Ogre and handful of other libs and I don't want to get in the position of rebuilding all my libraries regularly, which is what tends to happen if you get into using unstable branches. So basically, this feature request is: "Tree Widget in stable! Huzzah!"
* tab-character \t support
* clipboard support with multi-platform sample
Quoting selected points from fooguru that just about sum up the top of my feature request list. Added one of my own as well.
I arranged them in order of importance to me (i.e. I want multicoloured text the most.)
----
A few of the other "competing" UI systems offer these things but the ones I've looked at are wimpy on other features that CEGUI is strong on (XML layouts, well rounded widget library.)
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Hi,
Posting this since 0.6.0 is now released.
Obviously not a lot from here has been incorporated into that release, this is simply because there had not been the man power for any of this to be achieved - I hope that the community understands this situation, and does not take it as a "slap in the face"; your contributions, feedback and suggestions are very important to the project and I hope to be able to encourage much more community participation in the future.
Most of what is suggested here, especially the advanced text rendering support (coloured text), and better integrated documentation, and such like will definitely appear in the following release this summer.
Thanks again guys.
CE.
Posting this since 0.6.0 is now released.
Obviously not a lot from here has been incorporated into that release, this is simply because there had not been the man power for any of this to be achieved - I hope that the community understands this situation, and does not take it as a "slap in the face"; your contributions, feedback and suggestions are very important to the project and I hope to be able to encourage much more community participation in the future.
Most of what is suggested here, especially the advanced text rendering support (coloured text), and better integrated documentation, and such like will definitely appear in the following release this summer.
Thanks again guys.
CE.
Here's something I've recently come across and where I couldn't find a good way to solve this issue. Basically I have a small window with an icon in it which I want to rotate. There is no support for any kind of rotation in CEGUI now and it's really hard to rotate the icon via other means.
-Matthias
-Matthias
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Return to “CEGUI Library Development Discussion”
Who is online
Users browsing this forum: No registered users and 1 guest