0.6.X What do you want to see in 0.6 series

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Re: Wish List

Postby Pompei2 » Thu Jan 10, 2008 16:36

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.here.

weeee great thanks for the info, i was looking for something like that !! its GREAT and will save me A LOT of struggle !

User avatar
ErikHjortsberg
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sun Jan 23, 2005 12:45
Location: Sweden
Contact:

Postby ErikHjortsberg » Mon Jan 21, 2008 17:21

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.

fooguru
Just popping in
Just popping in
Posts: 7
Joined: Wed Sep 19, 2007 19:57

Re: Wish List

Postby fooguru » Tue Jan 22, 2008 14:17

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;
   }

SongOfTheWeave
Just popping in
Just popping in
Posts: 7
Joined: Fri Jan 18, 2008 23:10

Re: Wish List

Postby SongOfTheWeave » Wed Feb 13, 2008 00:46

* 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.)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Fri Mar 28, 2008 10:24

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.

User avatar
Nitro
Not too shy to talk
Not too shy to talk
Posts: 34
Joined: Wed Jan 12, 2005 12:06

Postby Nitro » Tue Jun 24, 2008 21:46

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Wed Jun 25, 2008 08:28

Hi,

Thanks for this suggestion. There is a possibility that some kind of rotation support will be added for the 0.7.0 release (pencilled in for late summer / early autumn, or so) - so keep your eyes peeled for that one ;)

CE.

User avatar
Nitro
Not too shy to talk
Not too shy to talk
Posts: 34
Joined: Wed Jan 12, 2005 12:06

Postby Nitro » Wed Jun 25, 2008 09:43

Oh, coolies - I'll stay tuned!

And I'd like to take the opportunity to thank you (and the other guys) for all the passion, time and devotion you put into this project. Every time I am using CEGUI I am amazed by this masterpiece.

-Matthias


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests