Você está na página 1de 20

3oEncontrodeUsurios C/C++ BrasilSP

ivo.nascimento@ianntech.com.br

LicenaLGPL

LicenaGPLcomaobservaodequeobinrio noprecisairacompanhadodosfontes.

Omercadodesoftware
1.Apredominnciaafetada. 2.Umanovaopo. 3.UmterceiroFator. 4.Acoexistncia.

Oquesermultiplataforma
ParaoProgramador

Paraocliente

Restriesde desenvolvimento. Decisesdeprojetomais difceis. Maiortempode desenvolvimento. MaiorDivertimento

Direitodeescolha Segurana PoderComercial

PorqueWxWidgets
Suporteamltiplaslinguagensdeprogramao.

C++,Perl,Haskell,Ruby,Python,.NET.
lookandfeeldoSistemaOperacional GrandeComunidadedeUsuarios Versao2.8estavel

HelloWorld!!!
MyFrame.cpp MyFrame.h main.cpp

g++c`wxconfigcxxflags`omain.omain.cpp
MyFrame.o main.o

g++oappMyFrame.omain.o`wxconfiglibs`
app

prefix[=DIR] execprefix[=DIR]] release versionfull list selectedconfig host=HOST toolkit=TOOLKIT libs cxx ld linkdeps

wxconfig

universal[=yes|no] unicode[=yes|no] debug[=yes|no] static[=yes|no] version[=VERSION] basename cc cppflags cflags cxxflags rescomp utility=UTIL

Diagramadebibliotecas

Caractersticas

Usoabundantedemacros. Semmain().

main()

IMPLEMENT_APP(MyApp)

BEGIN_EVENT_TABLE(MyFrame,wxFrame) EVT_MENU(wxID_ABOUT,MyFrame::OnAbout) EVT_MENU(wxID_EXIT,MyFrame::OnQuit) END_EVENT_TABLE() voidMyFrame::OnAbout(wxCommandEvent&event){


wxStringmsg; msg.Printf(wxT(Helloandwelcometo%s), wxVERSION_STRING); wxMessageBox(msg,wxT(AboutMinimal), wxOK|wxICON_INFORMATION,this);

ManipulaodeEventos

ManipulaodeEventos
EVT_MENU EVT_SIZE EVT_BUTTOM

Declarao/LigaoDinmica
frame>Connect(wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnQuit)) frame>Disconnect(wxID_EXIT, wxEVT_COMMAND_MENU_SELECTED, wxCommandEventHandler(MyFrame::OnQuit));

nonecessitadaEVENT_TABLE

WxString

RecursosComunsaString. I18n. FormatonecessarioparaosObjetos.

Arquivo.po(xgettextoupoEdit) compilaremum.mo(msgfmt)

Internacionalizao

NaAplicao informarolocale(WxLocale) Buscarecarregaroarquivodalinguagem m_locale.AddCatalog(wxT(my.mo));

XRC
<resourceversion="2.3.0.1"> <objectclass="wxFrame"name="frame_2"subclass="MyFrame"> <style>wxDEFAULT_FRAME_STYLE</style> <size>365,98</size> <title>HelloWorld</title> <objectclass="wxBoxSizer"> <orient>wxVERTICAL</orient> <objectclass="sizeritem"> <objectclass="wxButton"name="button_1"> <handlerevent="EVT_BUTTON">onButtonClick</handler> <label>button_1</label> </object> </object> </object> </object> </resource>

XRC
DescritorXMLdaaplicao Carregardiferentedescrioonthefly Melhoraadministraodoprojeto Adicionadodiretamentenaaplicao oulidodearquivo.

IDE'sWx
WxDesigner(www.roebling.de) DialogBlocks(http://www.anthemion.co.uk) XRCed(xrced.sourceforge.net) WxGlade(wxglade.sourceforge.net)

Usurios

AOL AMD CALTECH LockheedMartin NASA OpenSourceApplicationsFoundation Xerox

Você também pode gostar