Page 1 of 3

Bruce <3's wxWidgets

Posted: 14 Jan 2010, 12:34
by Das Bruce
Oh man this shit is so good.

Code: Select all

imPreview->LoadFile(wxT("heightmap.bmp"), wxBITMAP_TYPE_BMP, -1);
That's all it takes to load a bitmap. Ridiculous!

So fuck you win32api.
And fuck you MFC.

Re: Bruce <3's wxWidgets

Posted: 14 Jan 2010, 12:37
by AF
QT ftw

Re: Bruce <3's wxWidgets

Posted: 14 Jan 2010, 13:21
by Das Bruce
Why?

Re: Bruce <3's wxWidgets

Posted: 14 Jan 2010, 13:40
by Beherith
Superb, for mapconvgui?
Just please dont forget the trickyness that is .raw heightmaps. A lot of use use them now, they are 16bit,1 channel intel byte order raws with no header. Thus you have to read tex dimensions to get heightmap dimensions applicable to the raw file. Or just ignore preview of raws, anyone who uses raw probably doesnt need the quick preview of it :)

Re: Bruce <3's wxWidgets

Posted: 14 Jan 2010, 13:53
by Pxtl
Das Bruce wrote:Oh man this shit is so good.

Code: Select all

imPreview->LoadFile(wxT("heightmap.bmp"), wxBITMAP_TYPE_BMP, -1);
That's all it takes to load a bitmap. Ridiculous!

So fuck you win32api.
And fuck you MFC.
Beings spoiled by C#, how bad is it with Win32api and MFC?

Re: Bruce <3's wxWidgets

Posted: 14 Jan 2010, 16:48
by Licho
Same with correct libs.
In C# its like Image.LoadFromFile("path");

Re: Bruce <3's wxWidgets

Posted: 14 Jan 2010, 17:55
by Tribulex
in brainfuck its a serious of impossible to read morse code.

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 03:04
by Das Bruce
Beherith wrote:Superb, for mapconvgui?
Just please dont forget the trickyness that is .raw heightmaps. A lot of use use them now, they are 16bit,1 channel intel byte order raws with no header. Thus you have to read tex dimensions to get heightmap dimensions applicable to the raw file. Or just ignore preview of raws, anyone who uses raw probably doesnt need the quick preview of it :)
Well, for a frontend atm, functionally it works although I may need to add some more tickboxes, I can never remember which files are necessary and which are not. It was actually first just going to use the texture, heightmap was used for testing how it works because I wasn't really paying attention and I'm having a bit of trouble with that, documentation is good but not great.

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 03:20
by Peet
java Swing is better :regret:

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 03:24
by aegis
Peet wrote:java

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 03:31
by Peet
aegis wrote:
Peet wrote:sarcasm

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 06:53
by Das Bruce
Do any mappers use win9X?

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 11:22
by Beherith
unlikely, its safe to assume win2k/xp as a minimum. Dont think spring even runs on win9x.

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 11:27
by Das Bruce
That's reassuring, I wasn't particularly worried, it's just I'd have to write my own class to deal with bitmaps over 64x64 otherwise, and fuck that.

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 11:31
by koshi
Seeing the screenshot in the other thread I'd suggest adding a proper resource file so it'll use the right windows style

Code: Select all

#include <wx/msw/wx.rc>
NAME_OF_YOUR_APP ICON "pathto/some.ico"
I could also provide a simple cmake based buildsystem if you want, or any other wx related help for that matter if you need it.

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 11:56
by Das Bruce
Seeing the screenshot in the other thread I'd suggest adding a proper resource file so it'll use the right windows style
Ok, I'll try doing that.
I could also provide a simple cmake based buildsystem if you want,
I'm not really sure what you mean, F9 seems to work adequately at the moment, is that for building on other os's?
or any other wx related help for that matter if you need it.
Thanks, I'm trying to learn as much as I can myself, it's good practice for reading documentation which I've always been crap at, but I'll likely call on you at some point.

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 12:06
by koshi
Das Bruce wrote:I'm not really sure what you mean, F9 seems to work adequately at the moment, is that for building on other os's?
and other IDEs, yes. CMake can generate a number of Ide project files (VS, codeblocks, eclipse,...) as well as plain unix/mingw makefiles.
Could be used as a replacement or alongside whatever you're using now. Either way it's prolly something for later.

Re: Bruce <3's wxWidgets

Posted: 15 Jan 2010, 12:23
by Das Bruce
Aye, much.

Re: Bruce <3's wxWidgets

Posted: 16 Jan 2010, 06:27
by Das Bruce
Koshi, I can currently set a tooltip for each item in a wxRadioBox but there doesn't appear to be a way to set it for the entire radiobox. This would be preferable since you could easily click an item and move on before the tip pops up.

Re: Bruce <3's wxWidgets

Posted: 16 Jan 2010, 10:53
by koshi
yeah this is not possible without much trickery since only wxWindow derived class get automatic tooltips iirc