summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pframe.pm
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitbcb704366cb5e333a626c18c308c7e0448a8e69f (patch)
treef0d6ab7d78ecdd9207cf46536376b44b91a1ca71 /ksirc/puke/pframe.pm
downloadtdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.tar.gz
tdenetwork-bcb704366cb5e333a626c18c308c7e0448a8e69f.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksirc/puke/pframe.pm')
-rw-r--r--ksirc/puke/pframe.pm57
1 files changed, 57 insertions, 0 deletions
diff --git a/ksirc/puke/pframe.pm b/ksirc/puke/pframe.pm
new file mode 100644
index 00000000..f851cdb8
--- /dev/null
+++ b/ksirc/puke/pframe.pm
@@ -0,0 +1,57 @@
+
+&::PukeSendMessage($PUKE_WIDGET_LOAD,
+ $PUKE_CONTROLLER,
+ $PWIDGET_FRAME,
+ "pframe.so",
+ sub { my %ARG = %{shift()};
+ if($ARG{'iArg'} == 1){
+ print "*E* PFrame Load failed!\n";
+ }
+ }
+ );
+
+package PFrame;
+@ISA = qw(PWidget);
+use strict;
+
+$PFrame::NoFrame = 0;
+$PFrame::Box = 0x0001;
+$PFrame::Panel = 0x0002;
+$PFrame::WinPanel = 0x0003;
+$PFrame::HLine = 0x0004;
+$PFrame::VLine = 0x0005;
+$PFrame::MShape = 0x000f;
+$PFrame::Plain = 0x0010;
+$PFrame::Raised = 0x0020;
+$PFrame::Sunken = 0x0030;
+$PFrame::MShadow = 0x00f0;
+
+sub new {
+ my $class = shift;
+ my $self = $class->SUPER::new($class, @_);
+
+ $self->{widgetType} = $::PWIDGET_FRAME;
+
+ if($class eq 'PFrame'){
+ $self->create();
+ }
+
+ return $self;
+
+}
+
+sub setFrameStyle {
+ my $self = shift;
+
+ my $frame = shift;
+ my $repaint = shift;
+
+ $self->sendMessage('iCommand' => $::PUKE_QFRAME_SET_FRAME,
+ 'iArg' => $frame,
+ 'CallBack' => sub {});
+
+ $self->repaint(1) if($repaint == 1);
+
+}
+
+package main;