[讨论]如何实现GNOME环境的类似QQ的截图软件?

软件和网站开发以及相关技术探讨
头像
kofshower
帖子: 1343
注册时间: 2007-03-13 11:23
联系:

#16

帖子 kofshower » 2008-07-16 4:16

实现基本上可以看Gtk里面怎么整Xlib的事件的。
既然Gtk把x客户端和xserver直接通信封装成为咯Gdk::Atom。
比如你可能关心这些:

代码: 全选

PRIMARY
    A Gdk::Atom representing the PRIMARY selection.
SECONDARY
    A Gdk::Atom representing the SECONDARY selection.
CLIPBOARD
    A Gdk::Atom representing the CLIPBOARD selection.
TARGET_BITMAP
    A Gdk::Atom representing the BITMAP selection target.
TARGET_COLORMAP
    A Gdk::Atom representing the COLORMAP selection target.
TARGET_DRAWABLE
    A Gdk::Atom representing the DRAWABLE selection target.
TARGET_PIXMAP
    A Gdk::Atom representing the PIXMAP selection target.
TARGET_STRING
    A Gdk::Atom representing the STRING selection target.
TYPE_ATOM
    A Gdk::Atom representing the ATOM selection type.
TYPE_BITMAP
    A Gdk::Atom representing the BITMAP selection type.
TYPE_COLORMAP
    A Gdk::Atom representing the COLORMAP selection type.
TYPE_DRAWABLE
    A Gdk::Atom representing the DRAWABLE selection type.
TYPE_INTEGER
    A Gdk::Atom representing the INTEGER selection type.
TYPE_PIXMAP
    A Gdk::Atom representing the PIXMAP selection type.
TYPE_WINDOW
    A Gdk::Atom representing the WINDOW selection type.
TYPE_STRING
    A Gdk::Atom representing the STRING selection type. 
又知道你需要的是那些事件。
怎么难道不更好上手,和win32api类似的msg loop
实现一个像scrot的功能就差不多咯。如果选择的时候需要画边框用xosd阿。
截图软件没有干过。
不过我记得以前在linux下字典的划词或是选择取词的话用的就是上面说的这些
在GDK的话用PRIMARY也可以实现取词。
GDK我很少用,应该是这些
此外我觉得linux下面开发客户端应用的话,mozilla最好
"We are all in the mud, but some of us are looking at the stars." (Oscar Wilde)
We are not born for ourselves.
人生天地间,并非为自己
Homepage:http://sites.google.com/site/polarisnotme/
头像
zhexuezhuzi
帖子: 884
注册时间: 2008-01-23 14:02
来自: 吉林大学
联系:

#17

帖子 zhexuezhuzi » 2008-07-16 7:25

附件里面有

解压到桌面双击就可以

好像可以满足你 的要求

一个网友提供的,忘了名字了
附件
screenshot.desktop.tar.gz
(821 Bytes) 已下载 80 次
kevin.c
帖子: 145
注册时间: 2008-04-01 12:28

#18

帖子 kevin.c » 2008-07-16 15:09

aariz 写了:关键是实用,有需要就写个玩玩。这个也没意义,那个也没意义,等急用的时候什么也没有,那个有意义吗?Linux也不差啊?可为什么桌面不比WINDOWS啊?首要原因就是软件的问题,五花八门的软件太少了,没能满足用户需求。

作为程序员我觉得写好有需求的软件就是有意义!
我倒觉的LINUX下五花八门的软件太多了才是问题 搞的新手根本不知道要用什么
然而重量极的软件又太少 专业人员没有软件用
aariz
帖子: 94
注册时间: 2008-07-15 0:15
联系:

#19

帖子 aariz » 2008-07-16 15:17

不知道要用什么?哪有这样的,自己要用什么软件都不知道了?
那得学计算机基本应用了。
没有怕软件多的不知道怎么办的,怕的是要用但没有。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#20

帖子 eexpress » 2008-07-16 15:45

如果是学习,apt-get src 下源码就是。折腾什么哦。截图软件还少啊。
● 鸣学
aariz
帖子: 94
注册时间: 2008-07-15 0:15
联系:

#21

帖子 aariz » 2008-07-16 15:49

什么态度啊,又没请你来折腾。
头像
jqx1990
帖子: 181
注册时间: 2007-02-22 17:07
联系:

#22

帖子 jqx1990 » 2008-08-09 14:33

aariz 写了:关键是实用,有需要就写个玩玩。这个也没意义,那个也没意义,等急用的时候什么也没有,那个有意义吗?Linux也不差啊?可为什么桌面不比WINDOWS啊?首要原因就是软件的问题,五花八门的软件太少了,没能满足用户需求。

作为程序员我觉得写好有需求的软件就是有意义!
对,我觉得这就是问题的关键!
头像
qqq1243
帖子: 14
注册时间: 2008-05-17 18:55
来自: China
联系:

#23

帖子 qqq1243 » 2008-08-15 10:58

楼主应该没用过vista自带的截图工具?
比QQ截图好用,呵呵,要写的话可以借鉴下....
回复