Пример #1
0
void iuplua_plotfuncs_open (lua_State *L)
{
  iuplua_register_cb(L, "PREDRAW_CB", (lua_CFunction)plot_predraw_cb, NULL);
  iuplua_register_cb(L, "POSTDRAW_CB", (lua_CFunction)plot_postdraw_cb, NULL); 

  iuplua_register(L, PlotBegin       ,"PlotBegin");
  iuplua_register(L, PlotAdd         ,"PlotAdd");
  iuplua_register(L, PlotAddStr      ,"PlotAddStr");
  iuplua_register(L, PlotAddSegment  ,"PlotAddSegment");
  iuplua_register(L, PlotEnd         ,"PlotEnd");
  iuplua_register(L, PlotLoadData    ,"PlotLoadData");
  iuplua_register(L, PlotSetFormula  ,"PlotSetFormula");
  iuplua_register(L, PlotFindSample  ,"PlotFindSample");
  iuplua_register(L, PlotFindSegment, "PlotFindSegment");
  iuplua_register(L, PlotInsert, "PlotInsert");
  iuplua_register(L, PlotInsertStr   ,"PlotInsertStr");
  iuplua_register(L, PlotInsertSegment, "PlotInsertSegment");
  iuplua_register(L, PlotInsertSamples    ,"PlotInsertSamples");
  iuplua_register(L, PlotInsertStrSamples ,"PlotInsertStrSamples");
  iuplua_register(L, PlotAddSamples       ,"PlotAddSamples");
  iuplua_register(L, PlotAddStrSamples    ,"PlotAddStrSamples");
  iuplua_register(L, PlotGetSample, "PlotGetSample");
  iuplua_register(L, PlotGetSampleStr, "PlotGetSampleStr");
  iuplua_register(L, PlotGetSampleSelection, "PlotGetSampleSelection");
  iuplua_register(L, PlotGetSampleExtra, "PlotGetSampleExtra");
  iuplua_register(L, PlotSetSample, "PlotSetSample");
  iuplua_register(L, PlotSetSampleStr, "PlotSetSampleStr");
  iuplua_register(L, PlotSetSampleSelection, "PlotSetSampleSelection");
  iuplua_register(L, PlotSetSampleExtra, "PlotSetSampleExtra");

  iuplua_register(L, PlotTransform, "PlotTransform");
  iuplua_register(L, PlotTransformTo, "PlotTransformTo");
  iuplua_register(L, PlotPaintTo, "PlotPaintTo");
}
Пример #2
0
int iupmenulua_open(lua_State * L)
{
  iuplua_register(L, Menu, "Menu");

  iuplua_register_cb(L, "OPEN_CB", (lua_CFunction)menu_open_cb, NULL);
  iuplua_register_cb(L, "MENUCLOSE_CB", (lua_CFunction)menu_menuclose_cb, NULL);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/menu_be64.loh"
#else
#include "loh/menu_be32.loh"
#endif
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/menu_le64w.loh"
#else
#include "loh/menu_le64.loh"
#endif
#else
#include "loh/menu.loh"
#endif
#endif
#else
  iuplua_dofile(L, "menu.lua");
#endif

  return 0;
}
Пример #3
0
int iupcolorbarlua_open(lua_State * L)
{
  iuplua_register(L, Colorbar, "Colorbar");

  iuplua_register_cb(L, "SWITCH_CB", (lua_CFunction)colorbar_switch_cb, NULL);
  iuplua_register_cb(L, "SELECT_CB", (lua_CFunction)colorbar_select_cb, NULL);
  iuplua_register_cb(L, "CELL_CB", (lua_CFunction)colorbar_cell_cb, NULL);
  iuplua_register_cb(L, "EXTENDED_CB", (lua_CFunction)colorbar_extended_cb, NULL);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/colorbar_be64.loh"
#else
#include "loh/colorbar_be32.loh"
#endif
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/colorbar_le64w.loh"
#else
#include "loh/colorbar_le64.loh"
#endif
#else
#include "loh/colorbar.loh"
#endif
#endif
#else
  iuplua_dofile(L, "colorbar.lua");
#endif

  return 0;
}
Пример #4
0
int iupvallua_open(lua_State * L)
{
    iuplua_register(L, Val, "Val");

    iuplua_register_cb(L, "BUTTON_PRESS_CB", (lua_CFunction)val_button_press_cb, NULL);
    iuplua_register_cb(L, "MOUSEMOVE_CB", (lua_CFunction)val_mousemove_cb, "val");
    iuplua_register_cb(L, "BUTTON_RELEASE_CB", (lua_CFunction)val_button_release_cb, NULL);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/val_be64.loh"
#else
#include "loh/val_be32.loh"
#endif
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/val_le64w.loh"
#else
#include "loh/val_le64.loh"
#endif
#else
#include "loh/val.loh"
#endif
#endif
#else
    iuplua_dofile(L, "val.lua");
#endif

    return 0;
}
Пример #5
0
int iupmatrixlistlua_open(lua_State * L)
{
  iuplua_register(L, MatrixList, "MatrixList");

  iuplua_register_cb(L, "IMAGEVALUECHANGED_CB", (lua_CFunction)matrixlist_imagevaluechanged_cb, NULL);
  iuplua_register_cb(L, "MOUSEMOVE_CB", (lua_CFunction)matrixlist_mousemove_cb, "matrixlist");
  iuplua_register_cb(L, "LISTREMOVE_CB", (lua_CFunction)matrixlist_listremove_cb, NULL);
  iuplua_register_cb(L, "LISTACTION_CB", (lua_CFunction)matrixlist_listaction_cb, NULL);
  iuplua_register_cb(L, "LISTCLICK_CB", (lua_CFunction)matrixlist_listclick_cb, NULL);
  iuplua_register_cb(L, "LISTINSERT_CB", (lua_CFunction)matrixlist_listinsert_cb, NULL);
  iuplua_register_cb(L, "LISTRELEASE_CB", (lua_CFunction)matrixlist_listrelease_cb, NULL);
  iuplua_register_cb(L, "ACTION_CB", (lua_CFunction)matrixlist_action_cb, "matrixlist");
  iuplua_register_cb(L, "LISTEDITION_CB", (lua_CFunction)matrixlist_listedition_cb, NULL);

#ifdef IUPLUA_USELOH
#include "matrixlist.loh"
#else
#ifdef IUPLUA_USELH
#include "matrixlist.lh"
#else
  iuplua_dofile(L, "matrixlist.lua");
#endif
#endif

  return 0;
}
Пример #6
0
void iuplua_matrixfuncs_open (lua_State *L)
{
  /* DEPRECATED backward compatibility */
  iuplua_register(L, MatGetAttribute, "MatGetAttribute");
  iuplua_register(L, MatStoreAttribute, "MatStoreAttribute");
  iuplua_register(L, MatStoreAttribute, "MatSetAttribute");

  iuplua_register_cb(L, "BGCOLOR_CB", (lua_CFunction)matrix_bgcolor_cb, NULL);
  iuplua_register_cb(L, "FGCOLOR_CB", (lua_CFunction)matrix_fgcolor_cb, NULL);
  iuplua_register_cb(L, "DRAW_CB", (lua_CFunction)matrix_draw_cb, NULL);
  iuplua_register_cb(L, "LISTDRAW_CB", (lua_CFunction)matrix_draw_cb, NULL);
}
Пример #7
0
int iupitemlua_open(lua_State * L)
{
  iuplua_register(L, Item, "Item");

  iuplua_register_cb(L, "ACTION", (lua_CFunction)item_action, "item");
  iuplua_register_cb(L, "HIGHLIGHT_CB", (lua_CFunction)item_highlight_cb, NULL);

#ifdef IUPLUA_USELH
#include "item.lh"
#else
  iuplua_dofile(L, "item.lua");
#endif

  return 0;
}
Пример #8
0
void iuplua_treefuncs_open (lua_State *L)
{
  iuplua_register_cb(L, "MULTISELECTION_CB", (lua_CFunction)tree_multiselection_cb, NULL);
  iuplua_register_cb(L, "MULTIUNSELECTION_CB", (lua_CFunction)tree_multiunselection_cb, NULL);
  iuplua_register_cb(L, "NODEREMOVED_CB", (lua_CFunction)tree_noderemoved_cb, NULL);

  /* Table/Userdata <-> id */
  iuplua_register(L, TreeGetId, "TreeGetId");
  iuplua_register(L, TreeGetUserId, "TreeGetUserId");
  iuplua_register(L, TreeSetUserId, "TreeSetUserId");

  /* OLD names for backward compatibility */
  iuplua_register(L, TreeGetId, "TreeGetTableId");
  iuplua_register(L, TreeGetUserId, "TreeGetTable");
  iuplua_register(L, TreeSetUserId, "TreeSetTableId");
}
Пример #9
0
int iupvallua_open(lua_State * L)
{
  iuplua_register(L, Val, "Val");

  iuplua_register_cb(L, "BUTTON_PRESS_CB", (lua_CFunction)val_button_press_cb, NULL);
  iuplua_register_cb(L, "MOUSEMOVE_CB", (lua_CFunction)val_mousemove_cb, "val");
  iuplua_register_cb(L, "BUTTON_RELEASE_CB", (lua_CFunction)val_button_release_cb, NULL);

#ifdef IUPLUA_USELH
#include "val.lh"
#else
  iuplua_dofile(L, "val.lua");
#endif

  return 0;
}
Пример #10
0
int iupspinlua_open(lua_State * L)
{
  iuplua_register(L, Spin, "Spin");

  iuplua_register_cb(L, "SPIN_CB", (lua_CFunction)spin_spin_cb, NULL);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/spin_be64.loh"
#else
#include "loh/spin_be32.loh"
#endif
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/spin_le64w.loh"
#else
#include "loh/spin_le64.loh"
#endif
#else
#include "loh/spin.loh"
#endif
#endif
#else
  iuplua_dofile(L, "spin.lua");
#endif

  return 0;
}
Пример #11
0
int iupglcanvaslua_open(lua_State * L)
{
  iuplua_register(L, GLCanvas, "GLCanvas");

  iuplua_register_cb(L, "ACTION", (lua_CFunction)glcanvas_action, "glcanvas");

  iuplua_glcanvasfuncs_open(L);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/glcanvas_be64.loh"
#else
#include "loh/glcanvas_be32.loh"
#endif
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/glcanvas_le64w.loh"
#else
#include "loh/glcanvas_le64.loh"
#endif
#else
#include "loh/glcanvas.loh"
#endif
#endif
#else
  iuplua_dofile(L, "glcanvas.lua");
#endif

  return 0;
}
Пример #12
0
int iup_matrixexlua_open(lua_State * L)
{
  iuplua_register(L, MatrixEx, "MatrixEx");

  iuplua_register_cb(L, "NUMERICSETVALUE_CB", (lua_CFunction)matrixex_numericsetvalue_cb, NULL);
  iuplua_register_cb(L, "MENUCONTEXTCLOSE_CB", (lua_CFunction)matrixex_menucontextclose_cb, NULL);
  iuplua_register_cb(L, "PASTESIZE_CB", (lua_CFunction)matrixex_pastesize_cb, NULL);
  iuplua_register_cb(L, "BUSY_CB", (lua_CFunction)matrixex_busy_cb, NULL);
  iuplua_register_cb(L, "MENUCONTEXT_CB", (lua_CFunction)matrixex_menucontext_cb, NULL);
  iuplua_register_cb(L, "SORTCOLUMNCOMPARE_CB", (lua_CFunction)matrixex_sortcolumncompare_cb, NULL);
  iuplua_register_cb(L, "NUMERICGETVALUE_CB", (lua_CFunction)matrixex_numericgetvalue_cb, NULL);

  iuplua_matrixexfuncs_open(L);

#ifdef IUPLUA_USELOH
#include "matrixex.loh"
#else
#ifdef IUPLUA_USELH
#include "matrixex.lh"
#else
  iuplua_dofile(L, "matrixex.lua");
#endif
#endif

  return 0;
}
Пример #13
0
int iuptabslua_open(lua_State * L)
{
    iuplua_register(L, Tabsv, "Tabsv");

    iuplua_register_cb(L, "TABCHANGEPOS_CB", (lua_CFunction)tabs_tabchangepos_cb, NULL);
    iuplua_register_cb(L, "TABCHANGE_CB", (lua_CFunction)tabs_tabchange_cb, NULL);

#ifdef IUPLUA_USELOH
#include "tabs.loh"
#else
#ifdef IUPLUA_USELZH
#include "tabs.lzh"
#else
    iuplua_dofile(L, "tabs.lua");
#endif
#endif

    return 0;
}
Пример #14
0
void iuplua_pplotfuncs_open (lua_State *L)
{
  iuplua_register_cb(L, "EDIT_CB", (lua_CFunction)pplot_edit_cb, "pplot");
  iuplua_register_cb(L, "PREDRAW_CB", (lua_CFunction)pplot_predraw_cb, NULL);
  iuplua_register_cb(L, "POSTDRAW_CB", (lua_CFunction)pplot_postdraw_cb, NULL);

  iuplua_register(L, PlotBegin       ,"PPlotBegin");
  iuplua_register(L, PlotAdd         ,"PPlotAdd");
  iuplua_register(L, PlotAddStr      ,"PPlotAddStr");
  iuplua_register(L, PlotEnd         ,"PPlotEnd");
  iuplua_register(L, PlotInsertStr   ,"PPlotInsertStr");
  iuplua_register(L, PlotInsert      ,"PPlotInsert");
  iuplua_register(L, PlotInsertPoints    ,"PPlotInsertPoints");
  iuplua_register(L, PlotInsertStrPoints ,"PPlotInsertStrPoints");
  iuplua_register(L, PlotAddPoints       ,"PPlotAddPoints");
  iuplua_register(L, PlotAddStrPoints    ,"PPlotAddStrPoints");
  iuplua_register(L, PlotTransform   ,"PPlotTransform");
  iuplua_register(L, PlotPaintTo     ,"PPlotPaintTo");
}
Пример #15
0
int iupmenulua_open(lua_State * L)
{
    iuplua_register(L, Menu, "Menu");

    iuplua_register_cb(L, "OPEN_CB", (lua_CFunction)menu_open_cb, NULL);
    iuplua_register_cb(L, "MENUCLOSE_CB", (lua_CFunction)menu_menuclose_cb, NULL);

#ifdef IUPLUA_USELOH
#include "menu.loh"
#else
#ifdef IUPLUA_USELH
#include "menu.lh"
#else
    iuplua_dofile(L, "menu.lua");
#endif
#endif

    return 0;
}
Пример #16
0
int iupcolorbrowserlua_open(lua_State * L)
{
  iuplua_register(L, ColorBrowser, "ColorBrowser");

  iuplua_register_cb(L, "DRAG_CB", (lua_CFunction)colorbrowser_drag_cb, NULL);
  iuplua_register_cb(L, "CHANGE_CB", (lua_CFunction)colorbrowser_change_cb, NULL);

#ifdef IUPLUA_USELOH
#include "colorbrowser.loh"
#else
#ifdef IUPLUA_USELZH
#include "colorbrowser.lzh"
#else
  iuplua_dofile(L, "colorbrowser.lua");
#endif
#endif

  return 0;
}
Пример #17
0
int iupglcanvasboxlua_open(lua_State * L)
{
  iuplua_register(L, GLCanvasBox, "GLCanvasBox");

  iuplua_register_cb(L, "ACTION", (lua_CFunction)glcanvasbox_action, "glcanvasbox");
  iuplua_register_cb(L, "SWAPBUFFERS_CB", (lua_CFunction)glcanvasbox_swapbuffers_cb, NULL);

#ifdef IUPLUA_USELOH
#include "glcanvasbox.loh"
#else
#ifdef IUPLUA_USELH
#include "glcanvasbox.lh"
#else
  iuplua_dofile(L, "glcanvasbox.lua");
#endif
#endif

  return 0;
}
Пример #18
0
void iupgetparamlua_open(lua_State * L)
{
  iuplua_register(L, GetParam, "GetParam");
  iuplua_register(L, GetParamParam, "GetParamParam");
  iuplua_register(L, GetParamHandle, "GetParamHandle");

  iuplua_register(L, Param, "Paramf");
  iuplua_register(L, ParamBox, "ParamBox");

  iuplua_register_cb(L, "PARAM_CB", (lua_CFunction)param_cb, NULL);
}
Пример #19
0
int iuptextlua_open(lua_State * L)
{
  iuplua_register(L, Text, "Text");

  iuplua_register_cb(L, "CARET_CB", (lua_CFunction)text_caret_cb, NULL);
  iuplua_register_cb(L, "ACTION", (lua_CFunction)text_action, "text");
  iuplua_register_cb(L, "VALUECHANGED_CB", (lua_CFunction)text_valuechanged_cb, NULL);

#ifdef IUPLUA_USELOH
#include "text.loh"
#else
#ifdef IUPLUA_USELH
#include "text.lh"
#else
  iuplua_dofile(L, "text.lua");
#endif
#endif

  return 0;
}
Пример #20
0
int iuptreelua_open(lua_State * L)
{
  iuplua_register(L, Tree, "Tree");

  iuplua_register_cb(L, "BRANCHOPEN_CB", (lua_CFunction)tree_branchopen_cb, NULL);
  iuplua_register_cb(L, "MULTISELECTION_CB", (lua_CFunction)tree_multiselection_cb, NULL);
  iuplua_register_cb(L, "RENAME_CB", (lua_CFunction)tree_rename_cb, NULL);
  iuplua_register_cb(L, "SELECTION_CB", (lua_CFunction)tree_selection_cb, NULL);
  iuplua_register_cb(L, "SHOWRENAME_CB", (lua_CFunction)tree_showrename_cb, NULL);
  iuplua_register_cb(L, "DRAGDROP_CB", (lua_CFunction)tree_dragdrop_cb, NULL);
  iuplua_register_cb(L, "BRANCHCLOSE_CB", (lua_CFunction)tree_branchclose_cb, NULL);
  iuplua_register_cb(L, "EXECUTELEAF_CB", (lua_CFunction)tree_executeleaf_cb, NULL);
  iuplua_register_cb(L, "RIGHTCLICK_CB", (lua_CFunction)tree_rightclick_cb, NULL);
  iuplua_register_cb(L, "RENAMENODE_CB", (lua_CFunction)tree_renamenode_cb, NULL);

  iuplua_treefuncs_open(L);

#ifdef IUPLUA_USELOH
#ifdef TEC_BIGENDIAN
#ifdef TEC_64
#include "loh/tree_be64.loh"
#else
#include "loh/tree_be32.loh"
#endif
#else
#ifdef TEC_64
#ifdef WIN64
#include "loh/tree_le64w.loh"
#else
#include "loh/tree_le64.loh"
#endif
#else
#include "loh/tree.loh"
#endif
#endif
#else
  iuplua_dofile(L, "tree.lua");
#endif

  return 0;
}
Пример #21
0
int iupmglplotlua_open(lua_State * L)
{
  iuplua_register(L, MglPlot, "MglPlot");

  iuplua_register_cb(L, "PREDRAW_CB", (lua_CFunction)mglplot_predraw_cb, NULL);
  iuplua_register_cb(L, "POSTDRAW_CB", (lua_CFunction)mglplot_postdraw_cb, NULL);

  iuplua_mglplotfuncs_open(L);

#ifdef IUPLUA_USELOH
#include "mglplot.loh"
#else
#ifdef IUPLUA_USELH
#include "mglplot.lh"
#else
  iuplua_dofile(L, "mglplot.lua");
#endif
#endif

  return 0;
}
Пример #22
0
int iupwebbrowserlua_open(lua_State * L)
{
  iuplua_register(L, WebBrowser, "WebBrowser");

  iuplua_register_cb(L, "COMPLETED_CB", (lua_CFunction)webbrowser_completed_cb, NULL);
  iuplua_register_cb(L, "NEWWINDOW_CB", (lua_CFunction)webbrowser_newwindow_cb, NULL);
  iuplua_register_cb(L, "NAVIGATE_CB", (lua_CFunction)webbrowser_navigate_cb, NULL);
  iuplua_register_cb(L, "ERROR_CB", (lua_CFunction)webbrowser_error_cb, NULL);

#ifdef IUPLUA_USELOH
#include "webbrowser.loh"
#else
#ifdef IUPLUA_USELZH
#include "webbrowser.lzh"
#else
  iuplua_dofile(L, "webbrowser.lua");
#endif
#endif

  return 0;
}
Пример #23
0
int iuplistlua_open(lua_State * L)
{
  iuplua_register(L, List, "List");

  iuplua_register_cb(L, "DROPDOWN_CB", (lua_CFunction)list_dropdown_cb, NULL);
  iuplua_register_cb(L, "MULTISELECT_CB", (lua_CFunction)list_multiselect_cb, NULL);
  iuplua_register_cb(L, "DBLCLICK_CB", (lua_CFunction)list_dblclick_cb, NULL);
  iuplua_register_cb(L, "ACTION", (lua_CFunction)list_action, "list");
  iuplua_register_cb(L, "EDIT_CB", (lua_CFunction)list_edit_cb, "list");

#ifdef IUPLUA_USELOH
#include "list.loh"
#else
#ifdef IUPLUA_USELH
#include "list.lh"
#else
  iuplua_dofile(L, "list.lua");
#endif
#endif

  return 0;
}
Пример #24
0
void iuplua_treefuncs_open (lua_State *L)
{
  iuplua_register_cb(L, "MULTISELECTION_CB", (lua_CFunction)tree_multiselection_cb, NULL);
  iuplua_register_cb(L, "MULTIUNSELECTION_CB", (lua_CFunction)tree_multiunselection_cb, NULL);
  iuplua_register_cb(L, "NODEREMOVED_CB", (lua_CFunction)tree_noderemoved_cb, NULL);

/* In Lua 5:
  TreeSetTableId = TreeSetUserId
  TreeGetTable   = TreeGetUserId
  TreeGetTableId = TreeGetId
*/

  /* Userdata <-> id */
  iuplua_register(L, TreeGetId, "TreeGetId");
  iuplua_register(L, TreeGetUserId, "TreeGetUserId");
  iuplua_register(L, TreeSetUserId, "TreeSetUserId");

  /* Table <-> id */
  iuplua_register(L, TreeGetId, "TreeGetTableId");
  iuplua_register(L, TreeGetUserId, "TreeGetTable");
  iuplua_register(L, TreeSetUserId, "TreeSetTableId");
}
Пример #25
0
int iupcellslua_open(lua_State * L)
{
  iuplua_register(L, Cells, "Cells");

  iuplua_register_cb(L, "WIDTH_CB", (lua_CFunction)cells_width_cb, NULL);
  iuplua_register_cb(L, "MOUSEMOTION_CB", (lua_CFunction)cells_mousemotion_cb, NULL);
  iuplua_register_cb(L, "MOUSECLICK_CB", (lua_CFunction)cells_mouseclick_cb, NULL);
  iuplua_register_cb(L, "NCOLS_CB", (lua_CFunction)cells_ncols_cb, NULL);
  iuplua_register_cb(L, "NLINES_CB", (lua_CFunction)cells_nlines_cb, NULL);
  iuplua_register_cb(L, "SCROLLING_CB", (lua_CFunction)cells_scrolling_cb, NULL);
  iuplua_register_cb(L, "HEIGHT_CB", (lua_CFunction)cells_height_cb, NULL);
  iuplua_register_cb(L, "HSPAN_CB", (lua_CFunction)cells_hspan_cb, NULL);
  iuplua_register_cb(L, "VSPAN_CB", (lua_CFunction)cells_vspan_cb, NULL);

#ifdef IUPLUA_USELH
#include "cells.lh"
#else
  iuplua_dofile(L, "cells.lua");
#endif

  return 0;
}
Пример #26
0
int iupprogressdlglua_open(lua_State * L)
{
  iuplua_register(L, ProgressDlg, "ProgressDlg");

  iuplua_register_cb(L, "CANCEL_CB", (lua_CFunction)progressdlg_cancel_cb, NULL);

#ifdef IUPLUA_USELOH
#include "progressdlg.loh"
#else
#ifdef IUPLUA_USELH
#include "progressdlg.lh"
#else
  iuplua_dofile(L, "progressdlg.lua");
#endif
#endif

  return 0;
}
Пример #27
0
int iupspinlua_open(lua_State * L)
{
  iuplua_register(L, Spin, "Spin");

  iuplua_register_cb(L, "SPIN_CB", (lua_CFunction)spin_spin_cb, NULL);

#ifdef IUPLUA_USELOH
#include "spin.loh"
#else
#ifdef IUPLUA_USELH
#include "spin.lh"
#else
  iuplua_dofile(L, "spin.lua");
#endif
#endif

  return 0;
}
Пример #28
0
int iupbuttonlua_open(lua_State * L)
{
  iuplua_register(L, Button, "Button");

  iuplua_register_cb(L, "ACTION", (lua_CFunction)button_action, "button");

#ifdef IUPLUA_USELOH
#include "button.loh"
#else
#ifdef IUPLUA_USELH
#include "button.lh"
#else
  iuplua_dofile(L, "button.lua");
#endif
#endif

  return 0;
}
Пример #29
0
int iupmultilinelua_open(lua_State * L)
{
  iuplua_register(L, MultiLine, "MultiLine");

  iuplua_register_cb(L, "ACTION", (lua_CFunction)multiline_action, "multiline");

#ifdef IUPLUA_USELOH
#include "multiline.loh"
#else
#ifdef IUPLUA_USELZH
#include "multiline.lzh"
#else
  iuplua_dofile(L, "multiline.lua");
#endif
#endif

  return 0;
}
Пример #30
0
int iupgltogglelua_open(lua_State * L)
{
  iuplua_register(L, GLToggle, "GLToggle");

  iuplua_register_cb(L, "ACTION", (lua_CFunction)gltoggle_action, "gltoggle");

#ifdef IUPLUA_USELOH
#include "gltoggle.loh"
#else
#ifdef IUPLUA_USELH
#include "gltoggle.lh"
#else
  iuplua_dofile(L, "gltoggle.lua");
#endif
#endif

  return 0;
}