#include #include #include #include "fontbrowser.h" static PropertyData properties[] = { { "tutorial*sample", "The quick brown fox..." }, { "tutorial*choice*font", "*-*-times-medium-r-normal-*-*-120-*-*-*-*-iso8859-1" }, { "tutorial*label*font", "*-*-times-bold-r-normal-*-*-120-*-*-*-*-iso8859-1" }, { "tutorial*PushButton*font", "*-*-times-medium-i-normal-*-*-140-*-*-*-*-iso8859-1" }, { nil } }; static OptionDesc options[] = { { "-sample", "tutorial*sample", OptionValueNext }, { nil } }; int main (int argc, char* argv[]) { World* world = new World("tutorial", properties, options, argc, argv); ButtonState* quit = new ButtonState(false); FontBrowser* browser = new FontBrowser( quit, world->GetAttribute("sample") ); browser->SetName("InterViews font browser"); browser->SetIconName("ifb"); world->InsertApplication(browser); browser->Accept(); world->Remove(browser); puts(browser->Fontname()); delete browser; delete quit; delete world; return 0; }