由买买提看人间百态

topics

全部话题 - 话题: widgets
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
g*****g
发帖数: 34805
1
Let every object which want to be printable extends a Printable
object, and in it it has a virtual print() function,
so cout << widget becomes widget.print().
This is a better design borrowed from interface concept.
i***h
发帖数: 12655
2
来自主题: Programming版 - 一个C++ template的问题
在Effective STL 书里看到的, 但是不太清楚.
为什么在第二段code里可以直接用DeleteObject,
而第一个里面一定要DeleteObject呢?
第一段Code:
template
struct DeleteObject:
public unary_function {
void operator()(const T* ptr) const
delete ptr;
}
};
void doSomething()
{
for_each(vwp.begin(), vwp.end(), DeleteObject);
}
第二段Code:
struct DeleteObject { // templatization and base
// class removed here
template II templatization added here
void operator()(const T* ptr) const
{
delete ptr;
}
}
d****p
发帖数: 685
3
来自主题: Programming版 - what is the difference?
for your case, no diff.
for case below, big diff
Widget a();
vs
Widget a;
z****e
发帖数: 2024
4
来自主题: Programming版 - what is the difference?
you can add one more:
(Widget) a();
and see if it is possible to have the following make sense:
(Widget a)();
t****t
发帖数: 6806
5
来自主题: Programming版 - what is the difference?
(Widget) a() is to call function a (declared somewhere else) and cast the
result to type Widget.
p*****g
发帖数: 274
6
谢谢大家的回复,我看完了都有些糊涂了,我最近也看了一些QT的资料,
QT有QT QUICK,QML,和Qwidgets,
Qwidget是Windows里面常用的GUI,但是不能跨平台,
quick不完善但是可以跨平台,QML是类似的JAVASCRIPT,不知道我的理解是否正确?
我现在已有的是C++的程序,但是只能用于WINDOWS XP并有些图像的局限性, 今后想转
到Windows7/8上,如果用QT widget继续做,是不是以后如果跨平台还是需要做不少的
改动到Qquick上?
好像现在quick上功能很少,所以不知道如果想用QT是widget好还是quick好呢?
btw,这个VTK是什么?
h******b
发帖数: 6055
7
来自主题: Programming版 - 板上大牛都用哪些mobile framework?
最近一年零零碎碎试验了几个。 本人并非编程出身,有网站和前台设计背景,希望找
个糙快猛的手法,最少达到产品经理独立完成prototype的能力。用过这几个的说说经
验吧。
corona sdk - lua 语言很容易上手,图像性能很好,写了一个简单三消的prototype,
意识到自己美工太烂,放弃了。 试图拿来写business app但感觉他们缺太多零件了。
而且价格越来越高。 放弃了。
titanium - javascript 不错,但他们的iOS和Android几乎是两套代码。 几乎每个
function都不同behavior。 他们追求的是native look and feel。 如果这样我不如
native开发了。
phonegap - 因为是HTML/css,感觉非常顺手,一个文档放在xampp里面直接拿来当网页
来preview非常流畅。 据说性能是问题。 不过jquery mobile真心是适合电脑的,不
是手机的,整体感觉还是臃肿了一点。
ionic framework - 最近很火的framework。 如果你谷歌mobile framewo... 阅读全帖
l**********n
发帖数: 8443
8
Consider, for example, a combobox where you can type text to filter the
available options. This sort of control could have ~150 items and still be
highly usable. If it has some extra feature (for example a specific class on
the currently selected option) you start to get 3-5 bindings per option.
Put three of these widgets on a page (e.g. one to select a country, the
other to select a city in said country, and the third to select a hotel) and
you are somewhere between 1000 and 2000 bindings alrea... 阅读全帖
N*****m
发帖数: 42603
9
别说几十个widgets,就是7、8个widgets之间有点联系,纯dom操作的话,写完就别想
改codes了

象,
l**********n
发帖数: 8443
10
来自主题: Programming版 - 狗狗放弃Chrome跟Dart VM整合
The question is why you need Javascript? can the same task be done in css?
If not, use Javascript. Normally I will choose css over Javascript.
Do you have a lot of business logic on the client side? Then your design has
some problem. You should move your business logic to server side.
At the end of the day, Javascript is just used to implement some widgets
which are not provided by standard html tags, e.g. accordion.
The best way to use the widgets is the Angular way, not jQuery way.
g****e
发帖数: 172
11
【 以下文字转载自 Linux 讨论区 】
发信人: gangle (nothing), 信区: Linux
标 题: 请高手帮忙看看这个chkrootkit安全否?
发信站: BBS 未名空间站 (Mon Aug 13 18:29:14 2012, 美东)
那些suspicious files安全吗?
多谢!!
sudo chkrootkit
ROOTDIR is `/'
Checking `amd'... not found
Checking `basename'... not infected
Checking `biff'... not found
Checking `chfn'... not infected
Checking `chsh'... ... 阅读全帖
r*****o
发帖数: 28
12
来自主题: Unix版 - Perl/Tk ,Tix???
I need to write a program mainly involving with file operations
and text processing, with a GUI wrapper. Some of the functions
seem to be easy to develop in Perl, and I happen to know a little
about Perl, so I chose to use Perl/Tk.
But looks like the widgets in Perl/Tk are quite limited, e.g.
BrowseEntry. Is there any way to use Tix widgets, like tixComboBox,
in Perl? Or I should learn TCL or Python?
Another questions is can I develop the GUI using JAVA, and
call Perl script within Java program?
x*****e
发帖数: 309
13
来自主题: CellularPlan版 - 最近又把LG Volt刷了一下
昨天也刷了一把freedompop 网站40刀买的volt, 现在用着很爽, 同赞. "cm-13.0-
20160818-UNOFFICIAL-x5.zip", "2016.02.08 Freedompop_APNs_fix.zip", bluetooth
有问题, 参考如下方式解决.
BLUETOOTH MUSIC ON OPTIMIZED CM13:
Bluetooth music in most CyanogenMod based Roms has been an issue for a long
time. Its never been 100% solid. It has a multi-layered issue that no one
has been able to track down. We have an alternative way now that involves 2
Apps to auto-connect to a device and load bluetooth protocols. This has been
fully tested and ... 阅读全帖
x*****e
发帖数: 309
14
来自主题: CellularPlan版 - 最近又把LG Volt刷了一下
昨天也刷了一把freedompop 网站40刀买的volt, 现在用着很爽, 同赞. "cm-13.0-
20160818-UNOFFICIAL-x5.zip", "2016.02.08 Freedompop_APNs_fix.zip", bluetooth
有问题, 参考如下方式解决.
BLUETOOTH MUSIC ON OPTIMIZED CM13:
Bluetooth music in most CyanogenMod based Roms has been an issue for a long
time. Its never been 100% solid. It has a multi-layered issue that no one
has been able to track down. We have an alternative way now that involves 2
Apps to auto-connect to a device and load bluetooth protocols. This has been
fully tested and ... 阅读全帖
s*****r
发帖数: 11545
15
来自主题: CellularPlan版 - how to read old notifications in zte speed?
昨晚看见通知栏有一个信用卡图标说bill is due 什么的,但是由于关闭了数据点开后
无法获取信息,现在想看看到底是怎么回事却又不知道如何找到这个通知,网上搜索一
下说要由widget建立一个setting shortcut, 可是widget里没有这选项。有谁遇到过类
似情况么?
u*****u
发帖数: 2651
16
来自主题: _LoTaYu版 - 她为我编织毛衣
钟立风钟立风钟立风,这个闷骚而羞涩的怀旧文学小青年,在校园民谣过气的时候,依然
在校园外的小酒吧里唱着很校园的歌。这会儿,在俺上班上得有气无力,盼着周末的
时候,他就在我耳边,絮絮叨叨地讲那些上个世纪的往事。
这个专辑《她为我编织毛衣》,多么70年代的名字,那会的姑娘在秋天就开始
编织,赶在冬天前把温暖的丝丝缕缕裹在爱人的身上。在这个物质极大丰富,穿新衣服
不再心动的年代。不知为啥又开始流行织毛衣,织毛衣被张玮玮唱红网络后,多少男人
在切切地期盼,谁给俺织毛衣?谁给俺织毛衣?
听,小钟很自豪地BSO,《她为我编织毛衣》:
http://www.xiami.com/widget/0_1769239382/singlePlayer.swf
小钟有天突然心血来潮,自我蒸发,一个人去了青海放羊,没有带姑娘,放羊的时候
也没有鞭子轻轻抽打在他的身上,半年后又一个人回家做饭吃,一个人在床上yy:
"排成一排的姑娘像海洋"
《没有了你,会使更多的原野悲伤》
http://www.xiami.com/widget/0_1769239384/singlePlayer.swf
词曲:钟立风
前方的路程长又... 阅读全帖
w*******y
发帖数: 60932
17
You have to add the item to your cart and go to checkout. Before you confirm
payment, you'll be able to see the price. Select budget shipping so that it
's free.
Link:
http://www.buy.com/prod/samsung-bd-c8000-10-3-portable-blu-ray-dvd-player-w-1gb-memory/q/loc/111/214692242.html
Samsung BD-C8000 10.3" Portable Blu-ray DVD Player w/ 1GB Memory & Wireless
LAN Built-in - BD-C8000/XAA
Price in Amazon: $350
Link:
http://www.amazon.com/Samsung-BD-C8000-1080p-Blu-ray-Player/dp/B00365EVXI
Product Descri... 阅读全帖
w*******y
发帖数: 60932
l*****o
发帖数: 361
19
来自主题: _PathToTruth版 - I got a message from a Sister
http://www.original-fundraising-widget.com/live-donation-widget
Willow, through her sufferings and sacrifice, is blessing us by providing us
the opportunity to expand our compassion.
update about dog Willow:
Surgery started at noon on 3/13, it was estimated to be 3 hours, but
actually took 7 hrs because multiple surgeries had to be done: Thorax duct
ligation, remove lung lobe, cisterna chyli ablation and pericardectomy....
Willow is bones emaciated like a victim of concentration camp in Germany... 阅读全帖
a****s
发帖数: 3077
20
【 以下文字转载自 Military 讨论区 】
发信人: asuras (bb), 信区: Military
标 题: former B-2 stealth bomber Engineer gets 32 years for selli
发信站: BBS 未名空间站 (Wed Jan 26 19:38:54 2011, 美东)
说的是阿三名叫狗蛙,给我共提供技术,帮助我共降低飞机喷射温度等等,收了110k美刀,2005年被擒住。60多岁,判30多年,八成出不来了,丝带战机肯定有这名阿三的功劳,咱可得记着人家。
Engineer gets 32 years for selling secrets to China
'He broke his oath of loyalty,' U.S. judge says of former B-2 stealth bomber
worker
Below:
x Jump to discussion comments below
.discussion
x Next story in Security Gitmo detainee gets lif... 阅读全帖
c*****e
发帖数: 74
21
http://site.douban.com/widget/notes/200706/note/163795922/
关于本次事故动车实名制的问题的思考和推论
2011-07-28 14:46:07
关于本次事故动车实名制的问题的思考和推论
“他说,之所以没有公布乘客名单,也不是铁道部的问题,现在所谓实名制买火车票,
根本没有身份证存底,这个身份识别系统也是公安等司法系统控制的,从一开始,就根
本不是像外界所说,实名制购票是为了打击倒票,打击黄牛。那原本是铁道部的意思,
现在完全不是的。实名制购票是为了防止“犯罪”,包括防止****者与异见人士,那个
身份证刷卡器储存的只是相关部门提供的“敏感名单”,一旦有敏感人士购票,就会发
出警告或者留下记录,对于一般人购票,只不过把身份证号码打印在火车票上,机器里
不留存根。所以,温州火车出轨后,死伤乘客虽然是实名购票,但并没有名字。”http://bbs.house365.com/showthread.php?threadid=3248646&forumid=1388
这是引出这篇文章的一段话,原文来自博讯网,此网站曾揭露过禽流感时期隐瞒疫情、... 阅读全帖
c*c
发帖数: 2397
22
来自主题: ChinaNews版 - 陈寅恪:论韩愈 (转载)
【 以下文字转载自 History 讨论区 】
发信人: cxc (六億人民齊躍進, 十年國慶共歡騰), 信区: History
标 题: 陈寅恪:论韩愈
发信站: BBS 未名空间站 (Tue May 1 13:15:11 2012, 美东)
http://site.douban.com/widget/notes/134616/note/208286045/
陈寅恪:论韩愈
2012-04-05 01:33:42
论韩愈
陈寅恪
古今论韩愈者众矣,誉之者固多,而讥之者亦不少。讥之者之言则昌黎所谓“蚍蜉
撼大树,可笑不自量”者(昌黎集五调张籍诗),不待赘辩,即誉之者亦未中肯綮。今
出新意,仿僧徒诠释佛经之体,分为六门,以证明昌黎在唐代文化史上之特殊地位。至
昌黎之诗文为世所习诵,故略举一二,藉以见例,无取详备也。
一曰:建立道统,证明传授之渊源。
华夏学术最重传授渊源,盖非此不足以征信于人,观两汉经学传授之记载,即可知
也。南北朝之旧禅学已采用阿育王经传等书,伪作付法藏因缘传,已证明其学说之传授
。至唐代之新禅宗,特标教外别传之旨,以自矜异,故尤不得不建立一新道统,证明其
渊源之所... 阅读全帖
m**d
发帖数: 21441
23
【 以下文字转载自 Military 讨论区 】
发信人: mit7646 (mitmiaomimiaomi), 信区: Military
标 题: 新中国未被侦破的七大人命刑事悬案
发信站: BBS 未名空间站 (Fri Nov 16 14:56:30 2012, 美东)
http://www.douban.com/group/topic/20926369/?start=100
http://www.douban.com/group/topic/20926369/?start=200
继续求传达!!!求科普!求详情!!!
感谢各位提供!!-------------------------------------------------
正 题:
中国未破的七大人命悬案:
1、刁爱青碎尸案;2、天上人间花魁遇害案;3、高校女生“铊”中毒案;4、白银连环
杀人案;5、红安“12·26”八人遇害案;6、山城红衣男孩事件;7、独山子二人车失
踪案。
1、刁爱青碎尸案
http://wiki.zupulu.com/topic.php?action=resumesview&topicid=52... 阅读全帖
a***s
发帖数: 12296
24
据外媒报道,彭博社今日援引知情人士的消息称,苹果公司最早将与下个月发布iPhone 6s和iPhone 6s Plus之后的新一代iPhone手机。新产品在外观设计上与当前一代产品没有太大的变化,但在硬件方面会有升级,拍照功能将得到进一步强化。
该知情人士称,新一代iPhone中更大尺寸屏幕的iPhone 7 Plus将配备双摄像头,这也是iPhone 7 Plus与iPhone 7在外观上最明显的差别之一。此外,苹果还对iPhone的Home键进行了重新设计,引入了Force Touch压力传感技术。另外,新一代iPhone还将取消3.5mm耳机接口。
该知情人士还称,今年iPhone 7和iPhone 7 Plus的屏幕尺寸将保持不变,分别为4.7英寸和5.5英寸。iPhone是苹果的主要营收源,但最近几个季度,iPhone市场需求出现了低迷。因此,新一代iPhone的表现将直接影响着苹果今年圣诞购物旺季期间的业绩。
更好的拍照效果
据测试过iPhone 7 Plus原型的一位人士称,内置双摄像头的iPhone 7 Plus的拍摄效果明显提升,照片效果更精细、更明亮。该人士称,这两... 阅读全帖
c*c
发帖数: 2397
25
来自主题: History版 - 陈寅恪:论韩愈
http://site.douban.com/widget/notes/134616/note/208286045/
陈寅恪:论韩愈
2012-04-05 01:33:42
论韩愈
陈寅恪
古今论韩愈者众矣,誉之者固多,而讥之者亦不少。讥之者之言则昌黎所谓“蚍蜉
撼大树,可笑不自量”者(昌黎集五调张籍诗),不待赘辩,即誉之者亦未中肯綮。今
出新意,仿僧徒诠释佛经之体,分为六门,以证明昌黎在唐代文化史上之特殊地位。至
昌黎之诗文为世所习诵,故略举一二,藉以见例,无取详备也。
一曰:建立道统,证明传授之渊源。
华夏学术最重传授渊源,盖非此不足以征信于人,观两汉经学传授之记载,即可知
也。南北朝之旧禅学已采用阿育王经传等书,伪作付法藏因缘传,已证明其学说之传授
。至唐代之新禅宗,特标教外别传之旨,以自矜异,故尤不得不建立一新道统,证明其
渊源之所从来,以压倒同时之旧学派,此点关系吾国之佛教史,人所共知,又其事不在
本文范围,是以亦可不必涉及,唯就退之有关者略言之。
昌黎集一一原道略云:
曰:斯道也,何道也?曰:斯吾所谓道也,非向所谓老与佛之道也。尧以是传之舜
,舜以是传之禹,禹以是传之汤,汤... 阅读全帖
F*******t
发帖数: 1283
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)