Mercurial > octave-dspies
view examples/myfunc.c @ 18707:f31fde98c872 gui-release
use shortcut manager for the window menu
* main-window.cc (construct_window_menu_item): add action and connect its slot;
(construct_window_menu): created menu actions are class variables, removed
calls to connect which are now obsolete here;
(set_global_shortcuts): call shortcut manager for setting the shortcuts
* main-window.h: construct_window_menu_item with other parameters, window
actions as class variables
* shirtcut-manger.cc (do_init_data): insert debug actions into the list
author | Torsten <ttl@justmail.de> |
---|---|
date | Wed, 30 Apr 2014 19:33:55 +0200 |
parents | 224e76250443 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { const char *nm; nm = mexFunctionName (); mexPrintf ("You called function: %s\n", nm); if (strcmp (nm, "myfunc") == 0) mexPrintf ("This is the principal function\n", nm); return; }