Mercurial > hg > octave-nkf
view examples/mycell.c @ 18810:41489b96ebca gui-release
GUI: allow drag and drop to win32 GUI command window (Bug #41443)
* libgui/qterminal/libqterminal/win32/QWinTerminalImpl.h, libgui/qterminal/libqterminal/win32/QWinTerminalImpl.cpp
(QWinTerminalImpl::QWinTerminalImpl): set Accept Drops.
(QWinTerminalImpl::dragEnterEvent): New function.
(QWinTerminalImpl::dropEvent): New function.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Thu, 17 Apr 2014 09:01:03 -0400 |
parents | 224e76250443 |
children |
line wrap: on
line source
#include "mex.h" void mexFunction (int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) { mwSize n; mwIndex i; if (nrhs != 1 || ! mxIsCell (prhs[0])) mexErrMsgTxt ("ARG1 must be a cell"); n = mxGetNumberOfElements (prhs[0]); n = (n > nlhs ? nlhs : n); for (i = 0; i < n; i++) plhs[i] = mxDuplicateArray (mxGetCell (prhs[0], i)); }