Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ʹÓÃGTK+ºÍGlade¿ìËÙ¿ª·¢LinuxͼÐνçÃæ


ʹÓÃGTK+ºÍGlade¿ìËÙ¿ª·¢LinuxͼÐνçÃæ
Glade
,
GTK
,
Linux
,
draft
,
ͼÐÎ
* ʹÓà GTK+ ºÍ Glade ¿ìËÙ¿ª·¢
Linux
ͼÐνçÃæ
** GTK+ ¼ò½é
*** »ù±¾¸ÅÄî
GTK+ ÊÇÒ»ÖÖÓÃÓÚ´´½¨Í¼ÐνçÃæµÄ¿â. àÅ, gnome ÓõľÍÊÇËü, ²»¹ý²¢²»ÊÇ˵ֻ
ÓÐÔÚ gnome »·¾³ÖвÅÄÜÓÃ, ֻҪϵͳ
ÉÏ×°ÓÐ GTK µÄ¿â (»ù±¾ÉÏÓÐͼÐÎϵͳµÄ¸ö
ÈË»ú¶¼»áÓеÄÀ²) ¾ÍÄÜÔËÐÐ
»ùÓÚ GTK µÄ³ÌÐò
. ³ýÁË UNIX-like ƽ̨, Ëü»¹ÒÆÖ²
µ½ windows ÉÏ, »¹ÓÐÃæÏòǶÈëÉ豸
µÄ framebuffer °æ±¾µÈµÈ.
GTK ÒÀÀµÁ½¸öÖØÒªµÄ¿â. Ò»¸öÊÇ GLib, Õâ²¢²»ÊÇÒ»¸öͼÐοâ, Ò²ºÍ glibc ²»Í¬
, Ëü´óµÖÉÏÌṩÁËһЩ½Ó¿ÚÒÔÆÁ±ÎϵͳµÄ²»Í¬, ±ÈÈç gint ÔÚÄÄÀﶼÊÇ 32bit
µÄ, µÈµÈ; ÁíÒ»¸öÊÇ GDK, ËüÊÇÒ»¸öÉ豸Î޹صÄͼÐοâ, Ö§³Ö»ù±¾µÄ»­µã, ÒÔ¼°
Óë´°¿Ú¹ÜÀí
Æ÷¹µÍ¨µÈÈÎÎñ, ÓÉÓÚ GTK
±»Éè¼Æ³ÉÄÜÔÚ¸÷¸öƽ̨, ¶ø·Ç½ö½öÔÚ
XWindow »·¾³ÏÂʹÓÃ, ËùÒÔÕâ¸ö¿âÒ²ÊDZØÒªµÄ. ¶øÔÚËûÃÇÉÏÃæµÄ GTK ¿â, ¾ÍÌá
¹©ÁËһЩ widget --- ¿ÉÒÔÀí½âΪ¿Ø¼þÀ², ²»¹ý´°¿ÚÒ²ÊÇÒ»¸ö widget µÄ˵, ¸ø
ÎÒÃÇʹÓÃ, ²¢ÌṩÁË°ü×°Á¼ºÃµÄʼþÏìÓ¦»úÖÆ.
*** GTK+ ¿ª·¢»ù´¡
Òª¿ª·¢»ùÓÚ GTK µÄÈí¼þ
, ±ØÐëÏÈ°²×° GTK+ µÄ¿ª·¢°ü.
¼ì²éÊÇ·ñÕýÈ·°²×°µÄ°ì
·¨ÊÇÔÚ°²×°ºóÖ´ÐÐ ``pkg-config --cflags --libs gtk+-2.0'', Èç¹û°²×°²»Õý
È·, »áÌáʾÕÒ²»µ½ÏàÓ¦µÄ°ü.
GTK ±¾ÉíÊÇ»ùÓÚ C µÄ¿â, µ±È»Ò²ÓÐ C++ µÈÓïÑ﵀ wrap, µ«ËüµÄÕû¸öÌåϵÊÇÃæ
Ïò¶ÔÏóµÄ. Æä×î»ù±¾µÄÀàÊÇ GObject, GtkObject ¼Ì³ÐÁËËü, GtkObject ÓÖÅÉÉú
³öÎÒÃÇ×î¾­³£Óõ½µÄ GtkWidget, ÎÒÃÇʹÓõÄËùÓд°Ìå¿Ø¼þ¶¼ÅÉÉúÓÚËü. ÓÚÊÇ,
ÔÚ C »·¾³ÖÐÎÒÃǾÍÒªÊÖ¶¯´¦ÀíÕâЩÀàת»», GTK ºÍµ×²ãµÄ GLib µÈÌṩÁËÒ»ÖÖ
ͳһµÄת»»·½·¨, ±ÈÈç°ÑÀàÐÍΪ GtkWidget* µÄ button ת»»³É GtkButton ÐÎ,
д·¨ÊÇ: GTK_BUTTON(button), ¾Í½´×Ó.
ÎÒ²»´òËãÔÚÕâÀïÁÐÒ»¸ö GTK µÄ hello world Õ¼Ò³Ãæ, Õâ¸ö³ÌÐòËæ±ã google Ò»
ϾÍÄÜÕÒµ½. ÎÒÃÇ¿ÉÒÔ×Ô¼ºÏëÒ»ÏëÒ»¸öͼÐνçÃæÓ¦¸ÃÈçºÎ½¨Á¢.
Ê×ÏÈÎÒÃÇÒª½øÐгõʼ»¯, GTK ÌṩÁË gtk_init() ×÷Ϊ³õʼ»¯, Ëü¼ì²é³ÌÐò²ÎÊý
ÖеÄһЩÌض¨²¿·Ö, ½øÐÐ×Ô¼ºµÄÉèÖÃ
. µ÷Ó÷½·¨ÈçÏÂ:
gtk_init(&argc, &argv);
½« argc ºÍ argv ´«Ö¸ÕëµÄÄ¿µÄÊÇ gtk_init »á¶ÔËûÃǽøÐмӹ¤, °Ñ GTK ×Ô¼º
Óõ½µÄһЩ²ÎÊý³éÈ¡³öÀ´.
½Ó×Å, ÎÒÃDZØÐëÒª´´½¨ÕâЩ¿Ø¼þ°É, GTK ÖÐ, ´´½¨Ò»¸ö¿Ø¼þ»á·µ»ØÒ»¸ö
GtkWidget ÀàÐÍ (»òËüµÄÅÉÉúÀà) µÄÖ¸Õë, ËùÓд´½¨¿Ø¼þµ


Ïà¹ØÎĵµ£º

linux makefile±àд

Ò»¡¢MakefileµÄ¹æÔò
ÔÚ½²ÊöÕâ¸öMakefile֮ǰ£¬»¹ÊÇÈÃÎÒÃÇÏÈÀ´´ÖÂԵؿ´Ò»¿´MakefileµÄ¹æÔò¡£
target ... : prerequisites ...
command
...
...
targetÒ²¾ÍÊÇÒ»¸öÄ¿±êÎļþ£¬¿ÉÒÔÊÇObject File£¬Ò²¿ÉÒÔÊÇÖ´ÐÐÎļþ¡£
prerequisites¾ÍÊÇ£¬ÒªÉú³ÉÄǸötargetËùÐèÒªµÄÎļþ»òÊÇÄ¿±ê¡£
commandÒ²¾ÍÊÇmakeÐèÒªÖ´ÐеÄÃüÁî¡££¨ÈÎ ......

linuxȨÏÞÓëÎļþϵͳ°²È«

ȨÏÞÓëÎļþϵͳ°²È«
1,“ls -l”ÃüÁîÊä³ö½á¹ûÖи÷×ֶκ¬Ò壺
(1),ÎļþÀàÐÍ£¬µÚ1루“-”ÆÕͨÎļþ¡¢“d”Ŀ¼Îļþ¡¢“l”·ûºÅÁ´½ÓÎļþ¡¢“b”¿ìÉ豸Îļþ¡¢“c”×Ö·ûÉ豸Îļþ¡¢“p”¹ÜµÀÎļþ¡¢“s”socketÎļþ£©
(2),ȨÏÞ£¬µÚ2ÖÁ10루 ......

LinuxϵÄAdobe AIR¿ª·¢

Ç°ÃæÒ²ÓнéÉܹýAdobe AIR£¬²»¹ýÊÇWindowsƽ̨£¬×î½üÓÐһʷ³ÐÄ£ºLinuxQQÌ«À¬»ø£¬wine qqÌ«Âý£¬web qq²»·½±ã£¬ÄÇÔõô°ìÄØ£¿
ÎÒÏëµ½ÁËair¡£
Ê×Ïȵ±È»ÒªÏÂÔØsdkºÍruntime£ºhttp://www.adobe.com/cn/products/air/tools/sdk/
×îÖØÒªµÄÊÇÏÈÏÂÔØruntime£¬ÔÚÍøÕ¾µÄ×îµ×²¿Óиö
Á¢¼´ÏÂÔØ Adobe AIR
ÕâÑùµÄÁ´½Ó£¬µã½øÈ¥¾ÍÊÇÏÂÔØÁ ......

Linux + JDK + Tomcat + MySQL + JDBC °²×°ÊÖ¼Ç

Linux + JDK + Tomcat + MySQL + JDBC °²×°ÊÖ¼Ç
Ò»¡¢Red Hat Linux
1.·ÖÇø
           
                        | swap  & ......

linuxÎļþȨÏÞÏê½â

Ò»¡¢ÎļþºÍĿ¼ȨÏÞ¸ÅÊö
ÔÚlinuxÖеÄÿһ¸öÎļþ»òĿ¼¶¼°üº¬ÓзÃÎÊȨÏÞ£¬ÕâЩ·ÃÎÊȨÏÞ¾ö¶¨ÁËË­ÄÜ·ÃÎʺÍÈçºÎ·ÃÎÊÕâЩÎļþºÍĿ¼¡£
ͨ¹ýÉ趨ȨÏÞ¿ÉÒÔ´ÓÒÔÏÂÈýÖÖ·ÃÎÊ·½Ê½ÏÞÖÆ·ÃÎÊȨÏÞ£ºÖ»ÔÊÐíÓû§×Ô¼º·ÃÎÊ£»ÔÊÐíÒ»¸öÔ¤ÏÈÖ¸¶¨µÄÓû§×éÖеÄÓû§·ÃÎÊ£»ÔÊÐíϵͳÖеÄÈκÎÓû§·ÃÎÊ¡£Í¬Ê±£¬Óû§ÄÜ
¹»¿ØÖÆÒ»¸ö¸ø¶¨µÄÎļþ»òĿ¼µÄ·ÃÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ