t_menu.cpp

Go to the documentation of this file.
00001 /*****************************************************************************\
00002 *                                                                             *
00003 *  Name   : test_menu                                                         *
00004 *  Author : Chris Koeritz                                                     *
00005 *                                                                             *
00006 *******************************************************************************
00007 * Copyright (c) 2005-$now By Author.  This program is free software; you can  *
00008 * redistribute it and/or modify it under the terms of the GNU General Public  *
00009 * License as published by the Free Software Foundation; either version 2 of   *
00010 * the License or (at your option) any later version.  This is online at:      *
00011 *     http://www.fsf.org/copyleft/gpl.html                                    *
00012 * Please send any updates to: fred@gruntose.com                               *
00013 \*****************************************************************************/
00014 
00015 #include <basis/function.h>
00016 #include <basis/guards.h>
00017 #include <basis/istring.h>
00018 #include <basis/string_array.h>
00019 #include <mechanisms/menu_base.h>
00020 #include <loggers/file_logger.h>
00021 #include <data_struct/static_memory_gremlin.h>
00022 
00023 HOOPLE_STARTUP_CODE;
00024 
00025 int main(int formal(argc), char *formal(argv)[])
00026 {
00027   SET_DEFAULT_COMBO_LOGGER;
00028   string_array empty;
00029   menu_item blank(empty, "", "");
00030   menu_base m("jubba jubba humvolt menu", blank);
00031   string_array trig1;
00032   trig1 += "dog"; trig1 += "yo"; trig1 += "moo";
00033   m.add_item(new menu_item(trig1, "Woof Control", "This is the barky menu"));
00034 
00035   string_array trig2;
00036   trig2 += "oops"; trig2 += "fump";
00037   m.add_item(new menu_item(trig2, "Snork Muffin", "Here are some "
00038       "other things"));
00039 
00040   m.activate();
00041 
00042   guards::alert_message("menu:: works for all functions tested.");
00043   return 0;
00044 }
00045 

Generated on Fri Nov 28 04:29:34 2008 for HOOPLE Libraries by  doxygen 1.5.1