2003/11/10
続行
動作をみた感じでは保存モードでアイコン表示するとまずいらしい。んで、
仕様かよっΣ(・▽・
--- filedialog.cpp 6 Nov 2003 01:49:14 -0000 1.2
+++ filedialog.cpp 10 Nov 2003 06:33:57 -0000
@@ -25,7 +25,8 @@
: SlFileDialog(!input, NULL, name)
{
setDefaultFile(path);
- setIconViewType(TRUE);
+ if(input)
+ setIconViewType(TRUE);
//QDialog
setCaption(name);
ってことで対症療法でつ。
2003/11/06
ていっ
ていっ
2003/11/05
TrackBack
TrackBack入れてみた
ぷちぱんちゅ
2003/10/29
うにょらー
paper_color = unpack_color(tighten(disperse(0xffdf)));
とかいう記述があって、
inline unsigned short int tighten(
unsigned long int l) {
return ((l >> 9) & 0xf800) |
((l >> 4) & 0x07e0) |
(l & 0x001f);
}
inline unsigned long int disperse(
unsigned short int l) {
return ((unsigned long int)(l & 0xf800) < < 9) |
((unsigned long int)(l & 0x07c0) << 4) |
((unsigned long int)(l & 0x001f));
}
QColor unpack_color(unsigned short int p) {
int r, g, b;
r = ((p >> 8) & 0xf8) | 7;
g = ((p >> 3) & 0xfc) | 3;
b = ((p < < 3) & 0xf8) | 7;
QColor c(r, g, b);
return c;
}
さて問題、paper_colorは何色?=□○_
2003/10/24
なんとなく(・▽・)
馬鹿っぽさ増量で(・▽・)
2003/10/17
微妙すくりぷと
必要な物
すくりぷと
require "Win32API"
require "win32ole"
module SIPC
Connect = Win32API.new("sipc.dll", "Connect", ["P"], "I")
Disconnect = Win32API.new("sipc.dll", "Disconnect", [], "I")
Send = Win32API.new("sipc.dll", "Send", ["P", "P", "I"], "I")
module_function
def send(command)
buf = "" * 1024
Connect .call("rubysample")
Send .call(command, buf, buf.size)
Disconnect .call()
buf.delete!("")
buf
end
end
xml = WIN32OLE .new("Microsoft.XMLDOM")
xml.async = false
xml.load("http://slashdot.jp/slashdot.rdf")
text = ""
items = xml.getElementsByTagName("item")
items .length .times do |i|
item = items.item(i)
title = item .getElementsByTagName("title") .item(0) .text
link = item .getElementsByTagName("link") .item(0) .text
text < < title << "<n>"
text << link << "<n>"
end
SIPC.send("say #{text}")
微妙な点
2003/09/26
そろそろ
ちゃぶ台をひっくり返して新ネタに取り掛かりたいトコロ
2003/09/19
HTMLに埋め込み
EMBED要素はW3C標準のHTML仕様には無い要素だが、違う名前であるという点でWinIEのOBJECT要素よりはましである。
2003/09/16
レイヤー操作ツールが
うまく作れません….=□○_
2003/09/08
似非ぺた(仮)
似非ぺた(仮)次の予定
レイヤー回りをなんとか。順序の入れ替えはレイヤー名をドラッグあたりで考えているんだけどPTPTだとレイヤー名を保存できないのでやはり独自フォーマットにするしかないか。どうせ外部とはImport,Exportでの対応にする予定だし。