PageRenderTime 243ms CodeModel.GetById 141ms app.highlight 6ms RepoModel.GetById 94ms app.codeStats 1ms

/script_binding/lua/ftk_lua.c

http://ftk.googlecode.com/
C | 150 lines | 110 code | 11 blank | 29 comment | 0 complexity | 19fc99af15e1eed667a15017a39bd3ff MD5 | raw file
  1/*
  2 * File: ftk_lua.h    
  3 * Author: Li XianJing <xianjimli@hotmail.com>
  4 * Brief:  lua binding. 
  5 *
  6 * Copyright (c) 2009 - 2010  Li XianJing <xianjimli@hotmail.com>
  7 *
  8 * Licensed under the Academic Free License version 2.1
  9 *
 10 * This program is free software; you can redistribute it and/or modify
 11 * it under the terms of the GNU General Public License as published by
 12 * the Free Software Foundation; either version 2 of the License, or
 13 * (at your option) any later version.
 14 *
 15 * This program is distributed in the hope that it will be useful,
 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 18 * GNU General Public License for more details.
 19 *
 20 * You should have received a copy of the GNU General Public License
 21 * along with this program; if not, write to the Free Software
 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 23 */
 24
 25/*
 26 * History:
 27 * ================================================================
 28 * 2009-11-22 Li XianJing <xianjimli@hotmail.com> created
 29 *
 30 */
 31
 32#include "lua.h"
 33#include "lualib.h"
 34#include "lauxlib.h"
 35#include "ftk.h"
 36#include "ftk_xul.h"
 37#include "ftk_lua.h"
 38
 39#include "lua_ftk_xul.h"
 40#include "lua_ftk_structs.h"
 41#include "lua_ftk_widget.h"
 42#include "lua_ftk_window.h"
 43#include "lua_ftk_label.h"
 44#include "lua_ftk_entry.h"
 45#include "lua_ftk_button.h"
 46#include "lua_ftk_typedef.h"
 47#include "lua_ftk_app_window.h"
 48#include "lua_ftk_source.h"
 49#include "lua_ftk_source_idle.h"
 50#include "lua_ftk_source_timer.h"
 51#include "lua_ftk_main_loop.h"
 52#include "lua_ftk_combo_box.h"
 53#include "lua_ftk_dialog.h"
 54#include "lua_ftk.h"
 55#include "lua_ftk_callbacks.h"
 56#include "lua_ftk_theme.h"
 57#include "lua_ftk_bitmap_factory.h"
 58#include "lua_ftk_bitmap.h"
 59
 60#include "lua_ftk_file_browser.h"
 61#include "lua_ftk_fs.h"
 62#include "lua_ftk_dir.h"
 63#include "lua_ftk_file.h"
 64#include "lua_ftk_check_button.h"
 65#include "lua_ftk_icon_view.h"
 66#include "lua_ftk_menu_item.h"
 67#include "lua_ftk_menu_panel.h"
 68#include "lua_ftk_painter.h"
 69#include "lua_ftk_progress_bar.h"
 70#include "lua_ftk_group_box.h"
 71#include "lua_ftk_scroll_bar.h"
 72#include "lua_ftk_text_view.h"
 73#include "lua_ftk_status_item.h"
 74#include "lua_ftk_status_panel.h"
 75#include "lua_ftk_wait_box.h"
 76#include "lua_ftk_image.h"
 77#include "lua_ftk_popup_menu.h"
 78#include "lua_ftk_mmap.h"
 79#include "lua_ftk_clipboard.h"
 80#include "lua_ftk_display.h"
 81#include "lua_ftk_icon_cache.h"
 82#include "lua_ftk_list_view.h"
 83#include "lua_ftk_list_model_default.h"
 84#include "lua_ftk_list_model.h"
 85#include "lua_ftk_list_render_default.h"
 86#include "lua_ftk_list_render.h"
 87#include "lua_ftk_sprite.h"
 88#include "lua_ftk_config.h"
 89#include "lua_ftk_wnd_manager.h"
 90
 91int ftk_lua_init(lua_State *L) 
 92{
 93	tolua_ftk_init(L);
 94	tolua_ftk_fs_init(L);
 95	tolua_ftk_dir_init(L);
 96	tolua_ftk_file_init(L);
 97	tolua_ftk_file_browser_init(L);
 98	tolua_ftk_widget_init(L);
 99	tolua_ftk_window_init(L);
100	tolua_ftk_xul_init(L);
101	tolua_ftk_app_window_init(L);
102	tolua_ftk_label_init(L);
103	tolua_ftk_button_init(L);
104	tolua_ftk_entry_init(L);
105	tolua_ftk_source_init(L);
106	tolua_ftk_source_idle_init(L);
107	tolua_ftk_source_timer_init(L);
108	tolua_ftk_main_loop_init(L);
109	tolua_ftk_typedef_init(L);
110	tolua_ftk_combo_box_init(L);
111	tolua_ftk_dialog_init(L);
112	tolua_ftk_theme_init(L);
113	tolua_ftk_bitmap_factory_init(L);
114	tolua_ftk_bitmap_init(L);
115	
116	tolua_ftk_check_button_init(L);
117	tolua_ftk_icon_view_init(L);
118	tolua_ftk_image_init(L);
119	tolua_ftk_menu_item_init(L);
120	tolua_ftk_menu_panel_init(L);
121	tolua_ftk_painter_init(L);
122	tolua_ftk_progress_bar_init(L);
123	tolua_ftk_group_box_init(L);
124	tolua_ftk_scroll_bar_init(L);
125	tolua_ftk_status_item_init(L);
126	tolua_ftk_status_panel_init(L);
127	tolua_ftk_text_view_init(L);
128	tolua_ftk_wait_box_init(L);
129	tolua_ftk_popup_menu_init(L);
130	tolua_ftk_clipboard_init(L);
131	tolua_ftk_display_init(L);
132	tolua_ftk_icon_cache_init(L);
133
134	tolua_ftk_list_model_default_init(L);
135	tolua_ftk_list_model_init(L);
136	tolua_ftk_list_render_default_init(L);
137	tolua_ftk_list_render_init(L);
138	tolua_ftk_list_view_init(L);
139	tolua_ftk_mmap_init(L);
140	tolua_ftk_sprite_init(L);
141	tolua_ftk_config_init(L);
142	tolua_ftk_wnd_manager_init(L);
143	tolua_ftk_structs_init(L);
144
145	lua_callbacks_init(L);
146
147	return 1;
148}
149
150