Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
UML Plugin
stahta01:
I need added to project https://sourceforge.net/projects/umlblocks/ so I can submit this UMLPad Unicode version for 2.8 wxWidgets.
Edit: It is being complied as a standalone exe seperate from the Code::Blocks exe.
I have no idea how to put it into a C::B plugin and I not sure we should till we know more or at least I know more about Code::Blocks Plugins.
I suggest we start with a small C::B plugin that converts C++ into an XML file that can be displayed inside of our Unicode UML Pad as an class diagram.
I suggest cbUmlPad as the exe name of our Unicode UML Pad. I also suggest that we decide on an standard class name prefix; something like "umlb" short for UmlBlocks.
Tim S
stahta01:
Info I learned converting UML Pad to Unicode.
std::string does not support UTF16.
So, I assumed ASCII or UTF8; this is NOT really valid, but should mostly be true.
How to convert to wxString from std::string.
string(variableName.mb_str())
How to convert to std::string from wxString.
wxString(variableName.c_str(),wxConvUTF8)
What wxg prefix means on files in UML Pad; means wxGlade the IDE used to create it.
wxWidgets 2.9 defaults to basing wxString on std::string or std::wstring.
To turn this off set wxUSE_STD_STRING to 0 in setup.h; this make wx2.9 more like wx2.8.
Also, makes it harder to get UMLPad to compile, but I was getting better/different compile errors using wx2.9 with wxUSE_STD_STRING=0.
Tim S
jfouche:
Hi
--- Quote from: stahta01 on December 24, 2008, 07:48:11 am ---How to convert to wxString from std::string.
string(variableName.mb_str())
--- End quote ---
Well, I always use utf8_str() :
--- Code: ---string(variableName.utf8_str().data());
--- End code ---
I think it is easier to read, but I don't know if the result is different.
--
Jérémie
stahta01:
FYI:
I have finished Upgrading UMLPad to Unicode.
I uploaded it to
https://picmicroproject.svn.sourceforge.net/svnroot/picmicroproject/Tools/CASE/cbUmlPad/
Note: The BMP Files were not uploaded, so they are needed from the Original site.
Edit: Will move it to https://sourceforge.net/projects/umlblocks/ in a few days.
I just noticed that I was added to access for umlblocks an hour ago.
I plan to read up about how to do SVN Admin first, I think I might not have done it right on my picmicroproject site.
Tim S
PS: I am upgrading my computer, if all works well will be back tomorrow. But, if I goof up could be days.
stahta01:
I am planning on Uploading cbUmlPad to https://sourceforge.net/projects/umlblocks/ today.
Tim S
I have moved it under a branch; since I am guessing the final project will be little or nothing like UmlPad.
http://umlblocks.svn.sourceforge.net/viewvc/umlblocks/branches/cbUmlPad/
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version