papyrus-demo/demos.h

00001 #ifndef _DEMOS_H
00002 #define _DEMOS_H
00003 
00004 #include "demowindow.h"
00005 
00006 typedef sigc::slot<Gtk::Window*> type_slotDo;
00007 
00008 struct Demo
00009 {
00010   const char* title;
00011   const char* filename;
00012   //GDoDemoFunc func;
00013   type_slotDo slot; //The method to call.
00014   Demo* children;
00015 };
00016 
00017 Gtk::Window* do_drawables();
00018 Gtk::Window* do_ViewBox();
00019 Gtk::Window* do_AffineAnimator();
00020 Gtk::Window* do_FreehandSketcher();
00021 Gtk::Window* do_Selector();
00022 Gtk::Window* do_Translator();
00023 Gtk::Window* do_Rotator();
00024 Gtk::Window* do_Scaler();
00025 Gtk::Window* do_Handlebox_Scaler();
00026 
00027 Demo controllers[] = {
00028   { "Freehand Sketcher", "example_freehandsketcher.cpp",  sigc::ptr_fun(&do_FreehandSketcher), 0 },
00029   { "Selector", "example_selector.cpp",  sigc::ptr_fun(&do_Selector), 0 },
00030   { "Translator", "example_translator.cpp",  sigc::ptr_fun(&do_Translator), 0 },
00031   { "Rotator", "example_rotator.cpp",  sigc::ptr_fun(&do_Rotator), 0 },
00032   { "Scaler", "example_scaler.cpp",  sigc::ptr_fun(&do_Scaler), 0 },
00033   { "Handlebox Scaler", "example_handlebox_scaler.cpp",  sigc::ptr_fun(&do_Handlebox_Scaler), 0 },
00034   { 0, 0, type_slotDo(), 0 }
00035 };
00036 
00037 
00038 // Demo comboboxes[] = {
00039 //   { "Line Cap Combo Box", "example_linecapcombobox.cpp",  sigc::ptr_fun(&do_LineCapComboBox), 0 },
00040 //   { "Line Join Combo Box", "example_linejoincombobox.cpp",  sigc::ptr_fun(&do_LineJoinComboBox), 0 },
00041 //   { "Line Width Combo Boxes", "example_linewidthcombobox.cpp",  sigc::ptr_fun(&do_LineWidthComboBox), 0 },
00042 //   { "Marker Combo Box", "example_markercombobox.cpp",  sigc::ptr_fun(&do_MarkerComboBox), 0 },
00043 //   { 0, 0, type_slotDo(), 0 }
00044 // };
00045 
00046 Demo testgtk_demos[] =
00047 {
00048   { "Drawables", "example_drawables.cpp", sigc::ptr_fun(&do_drawables), 0 },
00049   { "Affine Animator", "example_affineanimator.cpp",  sigc::ptr_fun(&do_AffineAnimator), 0 },
00050   { "View Boxes", "example_viewbox.cpp",  sigc::ptr_fun(&do_ViewBox), 0 },
00051   { "Controllers", "", type_slotDo(), controllers },
00052 //   { "Combo Boxes", "", type_slotDo(), comboboxes },
00053   { 0, 0, type_slotDo(), 0 }
00054 };
00055 
00056 #endif //_DEMOS_H
00057 

Generated on Sun Jan 7 22:53:57 2007 by  doxygen 1.5.1