| 1 |
#ifndef _DEMOS_H |
| 2 |
#define _DEMOS_H |
| 3 |
|
| 4 |
#include "demowindow.h" |
| 5 |
|
| 6 |
typedef sigc::slot<Gtk::Window*> type_slotDo; |
| 7 |
|
| 8 |
struct Demo |
| 9 |
{ |
| 10 |
const char* title; |
| 11 |
const char* filename; |
| 12 |
type_slotDo slot; |
| 13 |
Demo* children; |
| 14 |
}; |
| 15 |
|
| 16 |
|
| 17 |
Gtk::Window* do_appwindow(); |
| 18 |
Gtk::Window* do_builder(); |
| 19 |
Gtk::Window* do_buttonbox(); |
| 20 |
Gtk::Window* do_change_display(); |
| 21 |
Gtk::Window* do_colorsel(); |
| 22 |
Gtk::Window* do_dialog(); |
| 23 |
Gtk::Window* do_drawingarea(); |
| 24 |
Gtk::Window* do_flowbox(); |
| 25 |
Gtk::Window* do_gestures(); |
| 26 |
Gtk::Window* do_glarea(); |
| 27 |
Gtk::Window* do_headerbar(); |
| 28 |
Gtk::Window* do_iconbrowser(); |
| 29 |
Gtk::Window* do_iconview(); |
| 30 |
Gtk::Window* do_images(); |
| 31 |
Gtk::Window* do_menus(); |
| 32 |
Gtk::Window* do_overlay(); |
| 33 |
Gtk::Window* do_panes(); |
| 34 |
Gtk::Window* do_pixbufs(); |
| 35 |
Gtk::Window* do_shortcuts(); |
| 36 |
Gtk::Window* do_sizegroup(); |
| 37 |
Gtk::Window* do_stack(); |
| 38 |
Gtk::Window* do_stacksidebar(); |
| 39 |
Gtk::Window* do_textview(); |
| 40 |
|
| 41 |
Gtk::Window* do_treeview_editable_cells(); |
| 42 |
Gtk::Window* do_treeview_liststore(); |
| 43 |
Gtk::Window* do_treeview_treestore(); |
| 44 |
|
| 45 |
Demo child0[] = |
| 46 |
{ |
| 47 |
{ "Editable Cells", "example_treeview_editable_cells.cc", sigc::ptr_fun(&do_treeview_editable_cells), nullptr }, |
| 48 |
{ "List Store", "example_treeview_liststore.cc", sigc::ptr_fun(&do_treeview_liststore), nullptr }, |
| 49 |
{ "Tree Store", "example_treeview_treestore.cc", sigc::ptr_fun(&do_treeview_treestore), nullptr }, |
| 50 |
{ nullptr, nullptr, type_slotDo(), nullptr } |
| 51 |
}; |
| 52 |
|
| 53 |
Demo testgtk_demos[] = |
| 54 |
{ |
| 55 |
{ "Application main window", "example_appwindow.cc", sigc::ptr_fun(&do_appwindow), nullptr }, |
| 56 |
{ "Builder", "example_builder.cc", sigc::ptr_fun(&do_builder), nullptr }, |
| 57 |
{ "Button Boxes", "example_buttonbox.cc", sigc::ptr_fun(&do_buttonbox), nullptr }, |
| 58 |
{ "Change Display", "example_change_display.cc", sigc::ptr_fun(&do_change_display), nullptr }, |
| 59 |
{ "Color Selector", "example_colorsel.cc", sigc::ptr_fun(&do_colorsel), nullptr }, |
| 60 |
{ "Dialog and Message Boxes", "example_dialog.cc", sigc::ptr_fun(&do_dialog), nullptr }, |
| 61 |
{ "Drawing Area", "example_drawingarea.cc", sigc::ptr_fun(&do_drawingarea), nullptr }, |
| 62 |
{ "Flow Box", "example_flowbox.cc", sigc::ptr_fun(&do_flowbox), nullptr }, |
| 63 |
{ "Gestures", "example_gestures.cc", sigc::ptr_fun(&do_gestures), nullptr }, |
| 64 |
{ "Header Bar", "example_headerbar.cc", sigc::ptr_fun(&do_headerbar), nullptr }, |
| 65 |
{ "Icon Browser", "example_iconbrowser.cc", sigc::ptr_fun(&do_iconbrowser), nullptr }, |
| 66 |
{ "Icon View", "example_iconview.cc", sigc::ptr_fun(&do_iconview), nullptr }, |
| 67 |
{ "Images", "example_images.cc", sigc::ptr_fun(&do_images), nullptr }, |
| 68 |
{ "Menus", "example_menus.cc", sigc::ptr_fun(&do_menus), nullptr }, |
| 69 |
{ "OpenGL Area", "example_glarea.cc", sigc::ptr_fun(&do_glarea), nullptr }, |
| 70 |
{ "Overlay", "example_overlay.cc", sigc::ptr_fun(&do_overlay), nullptr }, |
| 71 |
{ "Paned Widgets", "example_panes.cc", sigc::ptr_fun(&do_panes), nullptr }, |
| 72 |
{ "Pixbufs", "example_pixbufs.cc", sigc::ptr_fun(&do_pixbufs), nullptr }, |
| 73 |
{ "Shortcuts Window", "example_shortcuts.cc", sigc::ptr_fun(&do_shortcuts), nullptr }, |
| 74 |
{ "Size Groups", "example_sizegroup.cc", sigc::ptr_fun(&do_sizegroup), nullptr }, |
| 75 |
{ "Stack", "example_stack.cc", sigc::ptr_fun(&do_stack), nullptr }, |
| 76 |
{ "Stack Sidebar", "example_stacksidebar.cc", sigc::ptr_fun(&do_stacksidebar), nullptr }, |
| 77 |
{ "Text Widget", "example_textview.cc", sigc::ptr_fun(&do_textview), nullptr }, |
| 78 |
{ "Tree View", "", type_slotDo(), child0 }, |
| 79 |
{ nullptr, nullptr, type_slotDo(), nullptr } |
| 80 |
}; |
| 81 |
|
| 82 |
#endif |