Giter Club home page Giter Club logo

ftk's Introduction

FTK == Funny ToolKit (Write just for fun)
=====================================================
(You can use it in commercial software, but please let me know.)

How to build ftk from svn source code?
=====================================================
o download:
  svn checkout http://ftk.googlecode.com/svn/trunk/ ftk-read-only

o configure:
  cd ftk-read-only
  ./autogen.sh
  ./configure --with-backend=linux-x11:320x480
  (run ./configure --help for more options)

o build:
  make

o install(need root)
  make install

o run:
  cd src/demos
  ./demo_button
 
 or(make install first):
   desktop

How to build and run ftk on target board.
=====================================================
see tools/cross-build/README

Where can I get more information:
=====================================================
DOC:  docs/* 
BLOG: http://www.limodev.cn/blog/archives/tag/ftk
WIKI: http://code.google.com/p/ftk/wiki/
Google Group: https://groups.google.com/group/funnytoolkit
Still have problems please send email to [email protected]

ftk's People

Contributors

htbegin avatar hehaiqiang avatar woodysu avatar randomatom avatar yqiu2018 avatar richardhahahaha avatar

ftk's Issues

Windows上编译的demo调用五笔输入法输入过长的字码,崩溃。

What steps will reproduce the problem?
1. 运行demo_ime.exe;
2. 选择五笔输入法;
3. 一直按下"Q"键,崩溃.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
Ftk 0.4 windows Emulator

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 1 Sep 2010 at 6:14

combox 不自动销毁

What steps will reproduce the problem?
1. 打开combox demo
2. 点击一个 combox(不要选中)
3. 点击右上角的关闭按钮

What is the expected output? What do you see instead?
当窗口关闭时,combox 应该自动消失。但是实际情况是,combox 
还在。

What version of the product are you using? On what operating system?
ftk 0.6。用的是 sylixos

Please provide any additional information below.
另外,如果弹出 combox 
后,在没有选中的情况下,点击旁边的空白,combox 
也应该自动缩回去。

Original issue reported on code.google.com by [email protected] on 1 Nov 2011 at 1:17

Debug code on ftk

What steps will reproduce the problem?
1. Create lua binding as console application
2. Execute any lua demos 
3. The console is outputing a lot of debug/log information that slow down 
program execution.

What is the expected output? What do you see instead?
I expected with a release build to not get any non serious debug/log info 
outputed to console.


What version of the product are you using? On what operating system?
I'm using FTK trunk on win32 compilide with mingw and codeblocks.

Please provide any additional information below.
Why not wrap the debug/log info output with conditional compiler statements 
(#ifdef DEBUG_ON) this way when compiled for release it can work cleanly.


Original issue reported on code.google.com by [email protected] on 5 Jul 2011 at 8:47

在ftk 0.4中的ucosII工程中发现一个输入bug

ftk 0.4 for 
ucosII,在运行demo中发现不难输入键值,跟踪查找得知ftk-0.4
\src\backend\ucosii里的ftk_source_input.c里ftk_source_input_create函数并��
�有
调用ftk_keymap_init对s_key_map初始化,导致只检测到键状态,却��
�有键值。加上
ftk_keymap_init后输入键正常。

ucosII还有个小问题是demo_xul和ftklua_run不能正常加载xul和lua文��
�,主要是argc 
argv使用了固定值,而不是真正传送它们到demo的main里。所以��
�行不了。

于是我在ucos_sim.c中的main改成如下的。

int argc_in;
char **argv_in;

int main(int argc, char *argv[])
{
    HANDLE handles[2];
    DWORD dwEvent;

    argc_in = argc;
    argv_in = argv;


在demo_xul.c中

extern int argc_in;
extern char **argv_in;


int FTK_MAIN(int argc, char* argv[])
{
    if( argc_in > 1){
        argc = argc_in;
        argv = argv_in;
    }


在lua_runner.c中

extern int argc_in;
extern char **argv_in;


int FTK_MAIN(int argc, char* argv[])
{
    int ret = 0;
    lua_State *L = NULL;

    if( argc_in > 1){
        argc = argc_in;
        argv = argv_in;
    }


Original issue reported on code.google.com by [email protected] on 22 Apr 2010 at 7:39

Windows上编译的demo,要么只显示文字,没有色彩图片,要么不会正常运行,主题是怎么回事

主题是怎么使用的?
为什么编译出来的demo直接运行的话就只有文字,
如果在当前目录下加上ftk.cfg等文件,就会运行下退出,看不到��
�何界面
ftk.cfg的设置也调了几下,没有好.

有人能解释下Windows下面怎么让它正常显示吗?就像博客上显示
出的效果一样.
如果作者能亲自解释下就太好了,感恩不尽.

Original issue reported on code.google.com by [email protected] on 16 Apr 2010 at 3:52

Attachments:

Crosscompile failed

What steps will reproduce the problem?
1. Follow Crosscompile Instruction
2. linpng 1.4.3 is not found when downloading it

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 30 Nov 2010 at 4:08

error when compile with libpng 1.4.1 ,

problem:

ftk_image_png_decoder.c:140: error: ‘png_struct’ has no member named
‘trans_values’
ftk_image_png_decoder.c:141: error: ‘png_struct’ has no member named
‘trans_values’
ftk_image_png_decoder.c:142: error: ‘png_struct’ has no member named
‘trans_values’

with libpng 1.4.1
we need change the 'trans_values' to 'trans_color'

Original issue reported on code.google.com by [email protected] on 22 Mar 2010 at 2:40

Do FTK library support wince or window mobile?

Do FTK library support wince or window mobile?

I want to use the FTK GUI Library to develop window ce or window mobile 
application, so does ftk library support window ce or mobile? if not, do you 
have plan for porting to the window ce or mobile? 


Original issue reported on code.google.com by [email protected] on 11 Feb 2011 at 8:23

On win32 all demos remain zombies when closed

What steps will reproduce the problem?
1. Compile with vc++ 2008
2. Execute any demo and close it
3. Open the task manager and you can see that the application is still running.

What is the expected output? What do you see instead?
When close any application to stop running completely

What version of the product are you using? On what operating system?
Ftk svn last update and windows vista home basic

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 12 Nov 2010 at 12:00

tslib miss event

What steps will reproduce the problem?
1. I test on TQ2440 board, whih Resistive touch screen.

2. TouchScreen show error result.

What is the expected output? What do you see instead?
When I touch the touch screen, only the first event is dispatched ? The 
exact should be:
x    y    pressure
100 100      0
98  100      0
100 100      0
100 101      1

What version of the product are you using? On what operating system?
ftk-0.4 on Linux 2.6.30.4

Please provide any additional information below.
bug fix:
Change the function ftk_source_tslib_dispatch  in the file 
src/backend/fb/ftk_source_tslib.c

static Ret __ftk_source_tslib_dispatch(FtkSource* thiz,
        struct ts_sample *sample)
{
    int ret = 0;
    DECL_PRIV(thiz, priv);

    priv->event.type = FTK_EVT_NOP;
    priv->event.u.mouse.x = sample->x;
    priv->event.u.mouse.y = sample->y;
    ftk_logd("%s: sample->pressure=%d x=%d y=%d\n", 
        __func__, sample->pressure, sample->x, sample->y);
    if(sample->pressure > 0)
    {
        if(priv->pressed)
        {
            priv->event.type =  FTK_EVT_MOUSE_MOVE;
        }
        else
        {
            priv->event.type =  FTK_EVT_MOUSE_DOWN;
            priv->pressed = 1;
        }
    }
    else
    {
        if(priv->pressed)
        {
            priv->event.type =  FTK_EVT_MOUSE_UP;
        }
        priv->pressed = 0;
    }

    if(priv->on_event != NULL && priv->event.type != FTK_EVT_NOP)
    {
        priv->on_event(priv->user_data, &priv->event);
        ftk_logd("%s: type=%d x=%d y=%d\n", __func__, 
            priv->event.type, priv->event.u.mouse.x,
            priv->event.u.mouse.y);
        priv->event.type = FTK_EVT_NOP;
    }

    return RET_OK;
}

static Ret ftk_source_tslib_dispatch(FtkSource* thiz)
{
    int ret = 0;
    DECL_PRIV(thiz, priv);
    struct ts_sample sample = {0};
    return_val_if_fail(priv->ts != NULL, RET_FAIL); 

    while ((ret = ts_read(priv->ts, &sample, 1)) > 0) {
        ret = __ftk_source_tslib_dispatch(thiz, &sample);
        if (ret < 0) {
            break;
        }
    }

    return RET_OK;
}





Original issue reported on code.google.com by [email protected] on 10 Apr 2010 at 3:16

fontextract Segmentation fault if input is gb2312.txt

What steps will reproduce the problem?
1. ./fontextract wqy-microhei.ttc 24 gb2312.txt 2.f

What do you see instead?
code=0022 width=8 height=6
Segmentation fault
I have trace that it crash at fontextract.c : 79

What version of the product are you using? On what operating system?
I had test under ubuntu 10.04 and vc2008 (Mtd), both freetype version is 2.3.11.

Please provide any additional information below.
I have trace that if realloc(ptr, 0) may cause freetype crash.
But I have not search that some one had mentioned about it.
realloc.patch is that avoid to realloc(ptr, 0), but realloc(ptr, 1).
With the patch, It does not crash under ubuntu 10.04 and vc2008 (Mtd)


Original issue reported on code.google.com by [email protected] on 24 Apr 2013 at 4:28

when using close button of X window to close demo_hello app, it logs out 'XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"'

What steps will reproduce the problem?
1. mkdir -p build && cd build
2. ../configure --with-backend=linux-x11:640x480 --with-fontengine=freetype 
--with-inputmethod=gpinyin --enable-gtk-doc-html=no
3. make
4. ./src/demos/demo_hello
5. using the close button of X window to terminate the ftk gui app

What is the expected output? What do you see instead?
no error message from xlib.
error message like this:
'XIO: fatal IO error 11 (Resource temporarily unavailable) on X server":0.0"
      after 36 requests (36 known processed) with 0 events remaining.'

What version of the product are you using? On what operating system?
r1064.
Ubuntu 10.04 32-bit.

Please provide any additional information below.

Original issue reported on code.google.com by HotForest on 14 Jul 2011 at 9:34

Attachments:

为ftk_canvas_draw_string添加了一个参数,该参数用于表示string边界矩形

* Purpose of code changes on this branch:
确保了字符串显示的一致性,不会出现在某种情况下,一个��
�符串可以显示,而在另一种情况下,该字符串却无法显示的�
��况。

demo_label.c就是一个例子。如果为在89行创建的label 
(假设该label的高度为20),设置一个初始的文本内容,则该文��
�可以显示,而在timeout函数中动态设置的文本却无法显示。

* When reviewing my code changes, please focus on:
1. 该参数添加的是否合适,有没有更好的方法。
2. 
每一个widget相关的text的边界矩形的赋值是否合理或者正确。



Original issue reported on code.google.com by HotForest on 31 Aug 2011 at 2:50

when running demo_hello, the app logs "ftk_theme_builder_on_start:338 type != FTK_WIDGET_NONE failed."

What steps will reproduce the problem?
1. mkdir -p build && cd build
2. ../configure --with-backend=linux-x11:640x480 --with-fontengine=freetype 
--with-inputmethod=gpinyin --enable-gtk-doc-html=no
3. make
4. ./src/demos/demo_hello

What is the expected output? What do you see instead?
The check of the widget type should not fail. It fails.

What version of the product are you using? On what operating system?
The latest Code from subversion. Ubuntu 10.04 32-bit.

Please provide any additional information below.


Original issue reported on code.google.com by HotForest on 14 Jul 2011 at 6:55

Attachments:

vs版本依赖问题

在vs208环境下,如果直接build 
solution会出现部分编译失败的情况,而再编译(勿重
新编译)就正常。这是由于各个project没有设置依赖关系造成�
��,建议添加一下,毕竟
举手之劳!

Original issue reported on code.google.com by [email protected] on 5 Apr 2010 at 10:54

Attachments:

下拉列表框,在下拉列表框元素按下左键,拖动鼠标到列表之外释放左键,程序异常

What steps will reproduce the problem?
1. 在下拉列表框元素按下左键
2. 拖动鼠标到列表之外释放左键

可能原因
是程序重复释放下拉列表框这个元素导致的

What version of the product are you using? On what operating system?
SVN 749

Please provide any additional information below.
释放一个wideget的时候是不是可以通知父控件删除自己的指针�
��用


Original issue reported on code.google.com by [email protected] on 4 Aug 2010 at 7:19

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.