Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=55c93caea7d9d4f9e17d4f388661c7a6b3ca2c46
commit 55c93caea7d9d4f9e17d4f388661c7a6b3ca2c46 Author: James Buren <[email protected]> Date: Wed Aug 8 13:46:40 2012 -0500 author master UI control module diff --git a/master.cc b/master.cc new file mode 100644 index 0000000..365607a --- /dev/null +++ b/master.cc @@ -0,0 +1,32 @@ +#include "master.h" + +struct master *master; + +extern int main(int argc,char **argv) +{ + master = new struct master; + + master->dialog = YUI::widgetFactory()->createMainDialog(); + + master->verticalbox = YUI::widgetFactory()->createVBox(master->dialog); + + master->contents = YUI::widgetFactory()->createReplacePoint(master->verticalbox); + + master->buttonbox = YUI::widgetFactory()->createButtonBox(master->verticalbox); + + master->previous = YUI::widgetFactory()->createPushButton(master->buttonbox,"Previous"); + + master->previous->setRole(YCancelButton); + + master->next = YUI::widgetFactory()->createPushButton(master->buttonbox,"Next"); + + master->next->setRole(YOKButton); + + master->next->setDefaultButton(); + + master->dialog->open(); + + master->dialog->setSize(640,480); + + return 0; +} diff --git a/master.h b/master.h index c2012a9..08d27f1 100644 --- a/master.h +++ b/master.h @@ -34,3 +34,16 @@ #include <YRadioButtonGroup.h> #include <YReplacePoint.h> #include <cstdio> +#include <cstring> + +struct master +{ + YDialog *dialog; + YLayoutBox *verticalbox; + YReplacePoint *contents; + YButtonBox *buttonbox; + YPushButton *previous; + YPushButton *next; +}; + +extern struct master *master; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
