line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Tk::OlWm; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
806
|
use vars qw($VERSION); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
70
|
|
4
|
|
|
|
|
|
|
$VERSION = substr(q$Revision: 1.3 $, 10) + 1; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
1494
|
use Tk; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use 5.004; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# Decoration that can be added/deleted |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
# CLOSE FOOTER HEADER RESIZE PIN ICON_NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub ADDDEL |
14
|
|
|
|
|
|
|
{ |
15
|
|
|
|
|
|
|
my ($mw,$atom,$to,$from) = @_; |
16
|
|
|
|
|
|
|
my $data = $mw->privateData; |
17
|
|
|
|
|
|
|
$data->{$to} = {} unless exists $data->{$to}; |
18
|
|
|
|
|
|
|
$data->{$to}->{$atom} = 1; |
19
|
|
|
|
|
|
|
$data->{$from}->{$atom} if (exists $data->{$from}); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub Update |
23
|
|
|
|
|
|
|
{ |
24
|
|
|
|
|
|
|
my $mw = shift; |
25
|
|
|
|
|
|
|
my $data = $mw->privateData; |
26
|
|
|
|
|
|
|
foreach my $kind (keys %$data) |
27
|
|
|
|
|
|
|
{ |
28
|
|
|
|
|
|
|
$mw->property('set',"_OL_DECOR_$kind",'ATOM',32,[keys %{$data->{$kind}}]); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub Flag |
33
|
|
|
|
|
|
|
{ |
34
|
|
|
|
|
|
|
my ($name,$mw,$state) = @_; |
35
|
|
|
|
|
|
|
$mw->property('set',"_OL_$name",'INTEGER',32,$state); |
36
|
|
|
|
|
|
|
$mw->update if ($mw->IsMapped); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub Tk::Wm::OL_WIN_BUSY |
40
|
|
|
|
|
|
|
{ |
41
|
|
|
|
|
|
|
Flag('WIN_BUSY',@_); |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub Tk::Wm::OL_PIN_STATE |
45
|
|
|
|
|
|
|
{ |
46
|
|
|
|
|
|
|
Flag('PIN_STATE',@_); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
sub Tk::Wm::OL_DECOR |
51
|
|
|
|
|
|
|
{ |
52
|
|
|
|
|
|
|
my ($mw,%args) = @_; |
53
|
|
|
|
|
|
|
foreach (keys %args) |
54
|
|
|
|
|
|
|
{ |
55
|
|
|
|
|
|
|
my $atom = "_OL_DECOR_$_"; |
56
|
|
|
|
|
|
|
if ($args{$_}) |
57
|
|
|
|
|
|
|
{ |
58
|
|
|
|
|
|
|
ADDDEL($mw,$atom,'ADD','DEL'); |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
else |
61
|
|
|
|
|
|
|
{ |
62
|
|
|
|
|
|
|
ADDDEL($mw,$atom,'DEL','ADD'); |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
} |
65
|
|
|
|
|
|
|
Update($mw); |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
1; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
__END__ |