百度空间 | 百度首页 
 
文章列表
 
您正在查看 "Open Source" 分类下的文章

2008-12-25 09:18
根据CodeProject上某篇文章代码修改而成,启动后进入系统托盘.

使用:

Alt键 + 鼠标滚轮 --> 滚轮滚动调节系统音量大小
Alt键 + 鼠标左键 --> 当前音量和最小音量间切换

鼠标左右键点击托盘图标显示菜单项:退出(Exit),关于(About).

Windows XP Pro & Visual C++ 6.0下编译链接通过.

下载

CodeProject基本源代码
类别:Open Source | 评论(2) | 浏览()
 
2008-10-31 19:23
Author: weiwei

Today I updated my ubuntu OS on my PC. However, since I am using the 845G video cards, then....

http://www.ubuntu.com/getubuntu/releasenotes/810

Hangs with desktop effects on Intel 830MG and 845G video cards

There is a bug in the Intel video driver for the older intel 830 and 845 integrated video cards that are used on laptops like the IBM R30. Desktop effects with compiz will not work on those chips and will freeze the system. For new installations, please install using the safe graphics mode (press F4 in the startup screen) on these systems and disable desktop effects via System -> Preferences -> Appearance, clicking on "Visual effects" and choosing "None".

however, the release note doesn't give the solution for system upgrading from old versions.

Now I find a solution: Login Window --> "Options" (lower left corner) --> "Select Session" --> "Fail safe Terminal" --> Login with your name and password --> type "gconf-editor" --> Desktop->Goname->Application->windows_manager --> Replace all "/usr/bin/compiz" with "/usr/bin/metacity" --> reboot --> "Options" (lower left corner) --> "Select Session" --> "GNOME" --> Login, that's ok!

In Chinese

升级Ubuntu 8.04到Ubuntu 8.10 845G显卡 问题解决

类别:Open Source | 评论(0) | 浏览()
 
2008-08-28 15:09
相关代码和说明请见:Linux下的抓书工具 Linux下的抓书工具2

1.新浪读书频道改版,添加了VIP章节试读功能,书籍页面的URL都改为以http://vip.book.sina.com.cn开头,支持对此类书籍试读章节的下载.
2.支持搜狐读书频道
3.部分读书频道倒闭或改版,相关代码作废.
4.最新代码只在本博客原文更新,原因是访问SourceForge速度太慢.
类别:Open Source | 评论(0) | 浏览()
 
2008-05-25 17:53
最近连续遇到两次撰写大规模文字工作(不是论文)的事,字数严格要求超过x000字以上,我只能保证刚好超过...为了防止屡次点击菜单查字数,找了个宏,直接在标题栏和状态栏上显示当前字数.

http://wordtips.vitalnews.com/Pages/T001608_Displaying_a_Live_Word_Count.html

Sub AutoExec()
    NumberOfWords
End Sub

Sub NumberOfWords()
    Dim lngWords As Long
    Dim myRange As Range
    With Word.Application
        If .Windows.Count > 0 Then
            Set myRange = ActiveDocument.Content
            lngWords = myRange.ReadabilityStatistics(1).Value
            .Caption = Format(lngWords, "##,##0") & " words - Microsoft Word"
        Else
            .Caption = "Microsoft Word"
        End If
        .OnTime Now + TimeValue(OnTm(lngWords)), "NumberOfWords"
    End With
End Sub

Private Function OnTm(ByVal lngWd As Long) As String
    Select Case lngWd \ 1000
        Case 0 To 10
            OnTm = "00:00:01"
        Case 11 To 20
            OnTm = "00:00:05"
        Case 21 To 30
            OnTm = "00:00:10"
        Case 31 To 40
            OnTm = "00:00:15"
        Case Else
            OnTm = "00:00:20"
    End Select
End Function
类别:Open Source | 评论(2) | 浏览()
 
2008-05-03 17:29
http://nutss.gforge.cis.cornell.edu/stunt.php

NAT穿越的库,备用.
类别:Open Source | 评论(0) | 浏览()
 
2008-04-02 14:51
监控程序.源程序在http://fangvv.googlepages.com/USBLock.zip这里下载,VC6.0+WindowsXP SP2下编译运行通过.



能够记录U盘插入/拔出系统的时间;为了防止有人恶意拷贝,在U盘插入系统并识别的瞬间,锁定系统,禁止拷贝;可以最小化在系统托盘处运行.

参考了http://69.10.233.10/KB/system/Drive_Detect.aspx这篇文章,主要适用于单位里有人在你离开机器忘记锁定的时候从中非法拷贝你的私人文件,照片等等. 本来是做给家里人用的,刚花了一点时间搞完.
类别:Open Source | 评论(1) | 浏览()
 
2008-03-07 08:28
My laboratory uses NAT for Internet connection. There are four subnet 10.10.1.0/24 - 10.10.4.0/24. I want to monitor the active hosts in the LAN. So I write this plugin. It uses the fping to get alive hosts list and counts the number.




if [ "$1" = "autoconf" ]; then
        echo "yes"
        exit 0
fi

if [ "$1" = "config" ]; then
        echo 'graph_title alive hosts'
        echo 'graph_args --base 1000 -l 0'
        echo 'graph_vlabel alive hosts'
    echo 'graph_category network'
    echo 'graph_info This graph shows the active hosts in the JSI network.'
    echo 'first.label 10.10.1.x'
    echo 'second.label 10.10.2.x'
    echo 'three.label 10.10.3.x'
    echo 'four.label 10.10.4.x'
    exit 0
fi


fping -r 0 -g 10.10.1.0/24 1>/tmp/out1 2>/tmp/err
first=`grep "alive" /tmp/out1 | wc -l`

fping -r 0 -g 10.10.2.0/24 1>/tmp/out2 2>/tmp/err
second=`grep "alive" /tmp/out2 | wc -l`

fping -r 0 -g 10.10.3.0/24 1>/tmp/out3 2>/tmp/err
three=`grep "alive" /tmp/out3 | wc -l`

fping -r 0 -g 10.10.4.0/24 1>/tmp/out4 2>/tmp/err
four=`grep "alive" /tmp/out4 | wc -l`

echo "first.value ${first}"
echo "second.value ${second}"
echo "three.value ${three}"
echo "four.value ${four}"


Screenshot:
10.10.1.x is for notebook; 10.10.2.x is for PC; 10.10.3.x is for network/grid server; 10.10.4.x is for DHCP host.
类别:Open Source | 评论(0) | 浏览()
 
2008-03-06 13:11
I re-installed my ns2 Linux server and added a web-based monitor system Munin for it. The Munin system is easier to use and configure than MRTG.

Now my server support the following monitoring modules:

    * localhost.localdomain
          o Apache
                + Apache processes
          o Disk
                + Filesystem usage (in %)
                + Inode usage (in %)
                + IOstat
                + S.M.A.R.T values for drive sda
          o Ftp
                + FTP Server
          o Network
                + eth0 errors
                + eth1 errors
                + eth0 traffic
                + eth1 traffic
                + Netstat
          o Processes
                + Fork rate
                + Number of Processes
                + VMstat
          o Sensors
                + CPU temperature
                + HDD temperature
          o System
                + CPU usage
                + Available entropy
                + Interrupts & context switches
                + Individual interrupts
                + Load average
                + Memory usage
                + File table usage
                + Inode table usage
                + Swap in/out
                + Uptime


I wrote the FTP plugin for VSFTPD this morning. You can visit it from :
http://muninexchange.projects.linpro.no/?search=&cid=10&os%5B5%5D=on&pid=226

ScreenShot:



ps: I need this function because I edit the NS2 source file remotely by using Editplus on the Windows Platform, since the Editplus supports ftp-based file editing.
类别:Open Source | 评论(1) | 浏览()
 
2008-02-23 20:56
时间紧迫,简单做了一下更新。

起因主要是有几个朋友反映的编码方式问题,觉得只有GB2312不够,一般我觉得iconv转一下编码格式就完了,可是每个人习惯不一样啊,呵呵。

用了最简单的方式做了处理,就是命令行参数。不能用鼠标点可执行文件启动啦,那样是用GB2312默认编码格式的。要选择自己的编码格式,需要从命令行下启动。自然,
./qreadbook 也是使用默认的GB2312
./qreadbook UTF-8 就使用UTF-8编码格式,./qreadbook GB18030 就使用GB18030编码格式。

如果您不知道文件到底采用何种编码方式,也不要紧。用enca看看吧,下面的地址给出了安装使用方法
http://news.newhua.com/news1/programming/2008/130/0813015216D0GAD73EJEFE38BCE5E4.html


抱歉没有时间做的更好,用了最简单的方式,毕竟毕业是头等大事:)

视频在这里: http://v.youku.com/v_show/id_XMTEzNzQ3NzI=.html



下载地址:http://code.google.com/p/qreadbook/
类别:Open Source | 评论(1) | 浏览()
 
2008-01-14 22:02
http://desktop.google.com/zh/copyrights.html

pdftohtml

下载源代码(.zip 格式)
Pdftohtml 是由 Gueorgui Ovtcharov 和 Rainer Dorsch 开发的。 
该软件的开发基于 Derek Noonburg 的 xpdf package,并从中获益良多。
0.33a 版本2002 年 4 月 21 日
电子邮件: pdftohtml-general@lists.sourceforge.net
WWW: http://sourceforge.net/projects/pdftohtml
xpdf 软件和说明文件的版权属于 1996-2002 Derek B. Noonburg。
PDF 数据结构、操作符以及规范的版权属于 1995 Adobe Systems Inc。
此程序为免费软件;您可以根据由 Free Software Foundation(自由软件协会)发布的
GNU General Public License(GNU 通用公共许可证)的条款对其许可的 2.0 版本,
或(根据您的意愿)任何其他更新版本,进行重新发布和/或修改。
该程序仅为使用目的发布,而无任何担保;
即使对于以下默示担保,也未提供:即适销性或针对特定用途的适用性。
请参阅 GNU 通用公共许可证以获得更多信息。


在Gmail里常常可以用HTML方式查看PDF内容,觉得还是很高级的,哈哈!原来也是基于开源软件的。
估计不久的将来会被国内Email服务提供商所仿,让我们拭目以待吧。

这一点比我国著名的超星强多了,和麒麟一样,都需要网友认真分析对比源代码啊。。。
类别:Open Source | 评论(0) | 浏览()
 
2007-12-17 17:28
这是随便想的一个问题,就是ZhuaShuShell这样的软件该怎么防范?

然后问了问,http://us2.php.net/manual/zh/function.imagettftext.php

imagettftext

(PHP 4, PHP 5)

imagettftext — 用 TrueType 字体向图像写入文本

但是内建的不支持中文,需要在输出前转码:$text = iconv("GB2312","UTF-8","输出内容");

有个朋友在做文学站点,说到的方法就是收费,然后看书的时候全部变为图片,还动态的将你的ID号码和相关信息打在图片上,让你不敢盗版,这是一个不错的主意。
类别:Open Source | 评论(0) | 浏览()
 
2007-11-28 17:55
1.增加对之乎书坊的支持,使用方法看这里
2.去除了猫扑的代码,其读书频道已经变为论坛了。

特此通知!

类别:Open Source | 评论(0) | 浏览()
 
2007-11-24 23:08
http://code.google.com/p/qreadbook/

自己能想到的类似于Readbook的比较重要的功能终于都完成了,剩下的谁用了有问题和建议再提吧,0.1.5会作为一个稳定的版本发布。

学到了什么呢?

1.复习了以前在某公司兼职时学习的QT,QT4比3有了很大的改进。
2.使用了Google Code作为发布网站,确实比SF好用多了,也简单多了。
3.做了自己很久以前就想做的事情,心里感到挺高兴,呵呵。

其它的,没有了,最近要为毕业而努力了,不会再多为这种愉悦心情锻炼手笔的事情浪费时间了:)
类别:Open Source | 评论(0) | 浏览()
 
2007-11-23 10:50
http://hi.baidu.com/zhancang/blog/item/ad07bbee6a558f2a2df534c5.html

今天发现一个网友自己写的一个软件,叫QReadBook,是一个TXT阅读软件。鄙人经常看网络小说和一些TXT的文档,使用了一下,感觉挺不错的。主 要是可以更改字体,字体颜色,背景颜色;自动阅读(滑动),快慢还可以控制。虽然这不是什么特别的功能,但我主要是我看中了它的小巧。


主页:http://code.google.com/p/qreadbook/
下载:http://qreadbook.googlecode.com/files/qreadbookv0.1.1.tar.gz

在主页里面,写了一些具体介绍,自己Look去吧。偶看小说:),Very Good!赞美这个软件!

1、记录我的安装(下载在桌面):
zhancang@ubuntu:~$ cd Desktop

zhancang@ubuntu:~/Desktop$ ls
audacious.desktop gnome-terminal.desktop qreadbookv0.1.1.tar.gz
benliud.desktop    Gsopcast2.desktop       smplayer.desktop
firefox.desktop    H802.1X.desktop         stardict.desktop
flock.desktop      IE6.0.desktop           Swiftfox.desktop
galeon.desktop     QQ.desktop              Thunderbird.desktop
gimp-2.2.desktop  

zhancang@ubuntu:~/Desktop$ tar -xf qreadbookv0.1.1.tar.gz

zhancang@ubuntu:~/Desktop$ ls
audacious.desktop gnome-terminal.desktop qreadbookv0.1.1.tar.gz
benliud.desktop    Gsopcast2.desktop       smplayer.desktop
firefox.desktop    H802.1X.desktop         stardict.desktop
flock.desktop      IE6.0.desktop           Swiftfox.desktop
galeon.desktop     QQ.desktop              Thunderbird.desktop
gimp-2.2.desktop   qreadbook

zhancang@ubuntu:~/Desktop$ cd qreadbook

zhancang@ubuntu:~/Desktop/qreadbook$ qmake -o Makefile qreadbook.pro
名为 'qmake' 的程序可以在下列包中找到
* libqt4-dev
* libqt4-dev-kdecopy
* qt3-dev-tools
试试:sudo apt-get install <选定的软件包>
bash: qmake:找不到命令

zhancang@ubuntu:~/Desktop/qreadbook$ sudo apt-get install libqt4-dev
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
读取状态信息... 完成            
将会安装下列额外的软件包:
comerr-dev libaudio-dev libgl1-mesa-dev libglu1-mesa-dev libglu1-xorg-dev libkadm55 libkrb5-dev liblcms1-dev libmng-dev libpq-dev
libsqlite0-dev libssl-dev libssl0.9.8 libxmu-dev libxmu-headers libxt-dev mesa-common-dev xlibmesa-gl-dev
建议安装的软件包:
krb5-doc postgresql-doc-8.2 qt4-doc sqlite-doc
推荐安装的软件包:
qt4-dev-tools
下列【新】软件包将被安装:
comerr-dev libaudio-dev libgl1-mesa-dev libglu1-mesa-dev libglu1-xorg-dev libkadm55 libkrb5-dev liblcms1-dev libmng-dev libpq-dev
libqt4-dev libsqlite0-dev libssl-dev libxmu-dev libxmu-headers libxt-dev mesa-common-dev xlibmesa-gl-dev
下列的软件包将被升级:
libssl0.9.8
共升级了 1 个软件包,新安装了 18 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。
需要下载 12.6MB 的软件包。
解压缩后会消耗掉 39.8MB 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://ubuntu.cn99.com feisty-backports/main libqt4-dev 4.3.0-4ubuntu1~feisty1 [4284kB]
获取:2 http://debian.ustc.edu.cn feisty/main libxmu-headers 2:1.0.2-1ubuntu2 [16.2kB]
获取:3 http://debian.ustc.edu.cn feisty/main libxt-dev 1:1.0.5-1 [482kB]
获取:4 http://debian.ustc.edu.cn feisty-security/main libssl0.9.8 0.9.8c-4ubuntu0.2 [2810kB]
获取:5 http://debian.ustc.edu.cn feisty-proposed/main mesa-common-dev 6.5.2-3ubuntu8 [175kB]                                                
获取:6 http://debian.ustc.edu.cn feisty-proposed/main libgl1-mesa-dev 6.5.2-3ubuntu8 [25.0kB]                                               
获取:7 http://debian.ustc.edu.cn feisty-proposed/main libglu1-mesa-dev 6.5.2-3ubuntu8 [257kB]                                               
获取:8 http://debian.ustc.edu.cn feisty/main libglu1-xorg-dev 1:7.2-0ubuntu11 [25.6kB]                                                      
获取:9 http://debian.ustc.edu.cn feisty-security/main libkadm55 1.4.4-5ubuntu3.3 [177kB]                                                    
获取:10 http://debian.ustc.edu.cn feisty/main liblcms1-dev 1.15-1 [135kB]                                                                   
获 取:11 http://debian.ustc.edu.cn feisty/main libmng-dev 1.0.9-1 [285kB]                                                                    
获 取:12 http://debian.ustc.edu.cn feisty-security/main libssl-dev 0.9.8c-4ubuntu0.2 [2069kB]                                                
获取:13 http://debian.ustc.edu.cn feisty/main comerr-dev 2.1-1.39+1.40-WIP-2006.11.14+dfsg-2ubuntu1 [46.4kB]                                
获取:14 http://debian.ustc.edu.cn feisty-security/main libkrb5-dev 1.4.4-5ubuntu3.3 [672kB]                                                 
获取:15 http://debian.ustc.edu.cn feisty-proposed/main libpq-dev 8.2.5-0ubuntu0.7.04.1 [335kB]                                              
获取:16 http://debian.ustc.edu.cn feisty/main libxmu-dev 2:1.0.2-1ubuntu2 [50.6kB]                                                          
获取:17 http://debian.ustc.edu.cn feisty/main xlibmesa-gl-dev 1:7.2-0ubuntu11 [25.6kB]                                                      
获取:18 http://debian.ustc.edu.cn feisty/main libaudio-dev 1.8-4 [501kB]                                                                    
获 取:19 http://debian.ustc.edu.cn feisty/main libsqlite0-dev 2.8.17-1build2 [209kB]                                                         
下载 12.6MB,耗时 19s (661kB/s)                                                                                                              
正在预设定软件包 ...
选中了曾被取消选择的软件包 libxmu-headers。
(正在读取数据库 ... 系统当前总共安装有 139086 个文件和目录。)
正在解压缩 libxmu-headers (从 .../libxmu-headers_2%3a1.0.2-1ubuntu2_all.deb) ...
选中了曾被取消选择的软件包 libxt-dev。
正在解压缩 libxt-dev (从 .../libxt-dev_1%3a1.0.5-1_i386.deb) ...
正预备替换 libssl0.9.8 0.9.8c-4ubuntu0.1 (使用 .../libssl0.9.8_0.9.8c-4ubuntu0.2_i386.deb) ...
正在解压缩将用于更替的包文件 libssl0.9.8 ...
选中了曾被取消选择的软件包 mesa-common-dev。
正在解压缩 mesa-common-dev (从 .../mesa-common-dev_6.5.2-3ubuntu8_all.deb) ...
选中了曾被取消选择的软件包 libgl1-mesa-dev。
正在解压缩 libgl1-mesa-dev (从 .../libgl1-mesa-dev_6.5.2-3ubuntu8_all.deb) ...
选中了曾被取消选择的软件包 libglu1-mesa-dev。
正在解压缩 libglu1-mesa-dev (从 .../libglu1-mesa-dev_6.5.2-3ubuntu8_i386.deb) ...
选中了曾被取消选择的软件包 libglu1-xorg-dev。
正在解压缩 libglu1-xorg-dev (从 .../libglu1-xorg-dev_1%3a7.2-0ubuntu11_all.deb) ...
选中了曾被取消选择的软件包 libkadm55。
正在解压缩 libkadm55 (从 .../libkadm55_1.4.4-5ubuntu3.3_i386.deb) ...
选中了曾被取消选择的软件包 liblcms1-dev。
正在解压缩 liblcms1-dev (从 .../liblcms1-dev_1.15-1_i386.deb) ...
选中了曾被取消选择的软件包 libmng-dev。
正在解压缩 libmng-dev (从 .../libmng-dev_1.0.9-1_i386.deb) ...
选中了曾被取消选择的软件包 libssl-dev。
正在解压缩 libssl-dev (从 .../libssl-dev_0.9.8c-4ubuntu0.2_i386.deb) ...
选中了曾被取消选择的软件包 comerr-dev。
正在解压缩 comerr-dev (从 .../comerr-dev_2.1-1.39+1.40-WIP-2006.11.14+dfsg-2ubuntu1_i386.deb) ...
选中了曾被取消选择的软件包 libkrb5-dev。
正在解压缩 libkrb5-dev (从 .../libkrb5-dev_1.4.4-5ubuntu3.3_i386.deb) ...
选中了曾被取消选择的软件包 libpq-dev。
正在解压缩 libpq-dev (从 .../libpq-dev_8.2.5-0ubuntu0.7.04.1_i386.deb) ...
选中了曾被取消选择的软件包 libxmu-dev。
正在解压缩 libxmu-dev (从 .../libxmu-dev_2%3a1.0.2-1ubuntu2_i386.deb) ...
选中了曾被取消选择的软件包 xlibmesa-gl-dev。
正在解压缩 xlibmesa-gl-dev (从 .../xlibmesa-gl-dev_1%3a7.2-0ubuntu11_all.deb) ...
选中了曾被取消选择的软件包 libaudio-dev。
正在解压缩 libaudio-dev (从 .../libaudio-dev_1.8-4_i386.deb) ...
选中了曾被取消选择的软件包 libsqlite0-dev。
正在解压缩 libsqlite0-dev (从 .../libsqlite0-dev_2.8.17-1build2_i386.deb) ...
选中了曾被取消选择的软件包 libqt4-dev。
正在解压缩 libqt4-dev (从 .../libqt4-dev_4.3.0-4ubuntu1~feisty1_i386.deb) ...
正在设置 libxmu-headers (1.0.2-1ubuntu2) ...
正在设置 libxt-dev (1.0.5-1) ...
正在设置 libssl0.9.8 (0.9.8c-4ubuntu0.2) ...

正在设置 mesa-common-dev (6.5.2-3ubuntu8) ...
正在设置 libgl1-mesa-dev (6.5.2-3ubuntu8) ...
正在设置 libglu1-mesa-dev (6.5.2-3ubuntu8) ...
正在设置 libglu1-xorg-dev (7.2-0ubuntu11) ...
正在设置 libkadm55 (1.4.4-5ubuntu3.3) ...

正在设置 liblcms1-dev (1.15-1) ...
正在设置 libmng-dev (1.0.9-1) ...
正在设置 libssl-dev (0.9.8c-4ubuntu0.2) ...
正在设置 comerr-dev (2.1-1.39+1.40-WIP-2006.11.14+dfsg-2ubuntu1) ...

正在设置 libkrb5-dev (1.4.4-5ubuntu3.3) ...
正在设置 libpq-dev (8.2.5-0ubuntu0.7.04.1) ...
正在设置 libxmu-dev (1.0.2-1ubuntu2) ...
正在设置 xlibmesa-gl-dev (7.2-0ubuntu11) ...
正在设置 libaudio-dev (1.8-4) ...
正在设置 libsqlite0-dev (2.8.17-1build2) ...
正在设置 libqt4-dev (4.3.0-4ubuntu1~feisty1) ...

zhancang@ubuntu:~/Desktop/qreadbook$ qmake -o Makefile qreadbook.pro

zhancang@ubuntu:~/Desktop/qreadbook$ make
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o main.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o mainwindow.o mainwindow.cpp
/usr/bin/moc-qt4 -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. mainwindow.h -o moc_mainwindow.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o moc_mainwindow.o moc_mainwindow.cpp
/usr/bin/rcc -name qreadbook qreadbook.qrc -o qrc_qreadbook.cpp
g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o qrc_qreadbook.o qrc_qreadbook.cpp
g++ -o qreadbook main.o mainwindow.o moc_mainwindow.o qrc_qreadbook.o    -L/usr/lib -lQtGui -lQtCore -lpthread
zhancang@ubuntu:~/Desktop/qreadbook$ ./qreadbook

随便把文件夹移动到哪儿,这个是Windows下传说的绿色软件(双击qreadbook运行)。
类别:Open Source | 评论(0) | 浏览()
 
2007-11-16 18:00
QReadBook: 利用几天的课余时间完成的QT小程序,支持用ZhuShuShell抓下来的GB2312编码的文本阅读。

开发平台:Ubuntu Linux
编程语言:C++, QT4.3 Library

Features:

1.灵活的文本打开方式:
菜单或快捷键(Ctrl + O)呼出“打开文件”对话框
Tab键呼出目录树,双击树型结构中的txt文件调入

2.避免视觉疲劳的设置:
提供快捷键设置:F2设置文本字体,F3设置文本颜色,F4设置背景颜色, F11全屏阅读

3.自动翻书的功能
F5设置控制方式:可以选择程序自动滚屏翻书或键鼠控制(键盘的上下键滚屏换行,PageUp/PageDown翻页,鼠标左键控制右侧滚动条等),F6/F7设置翻书速度的增大/减小

4.老板键
F12缩小到系统托盘,提供系统托盘选择菜单,双击托盘图标复原。

5.设置的保存
界面设置的保存:文本字体,颜色,背景颜色
上次阅读点的保存:只要上次阅读过该文件,将会自动翻到上次的最后阅读点。

6.定时提醒,防止误事,保护视力
F8键设置两种定时提醒功能:间歇提醒(用于保护视力),定时提醒(防止误事)

代码下载地址:http://code.google.com/p/qreadbook/
土豆演示视频: http://www.tudou.com/programs/view/kxSc-t-kZoE/
类别:Open Source | 评论(1) | 浏览()
 
     
 
 
文章分类
 
     
 
文章存档
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
     
 
最新文章评论
   
 

Thanks
 

TKS
 
 

谢谢了
 
     


©2009 Baidu