Qt
view release on metacpan or search on metacpan
qtcore/lib/QtCore4.pm view on Meta::CPAN
qvsnprintf
qWarning
);
unless(exists $::INC{'Qt/GlobalSpace.pm'}) {
$::INC{'Qt/GlobalSpace.pm'} = $::INC{'QtCore4.pm'};
}
sub import {
my $class = shift;
my $caller = (caller)[0];
$caller .= '::';
foreach my $subname ( @_ ) {
next unless grep( $subname, @EXPORT_OK );
Qt::_internal::installSub( $caller.$subname, sub {
$Qt::AutoLoad::AUTOLOAD = "Qt::GlobalSpace::$subname";
my $autoload = 'Qt::GlobalSpace::_UTOLOAD';
no strict 'refs';
return &$autoload(@_);
} );
qtcore/lib/QtCore4/classinfo.pm view on Meta::CPAN
use warnings;
use Carp;
use QtCore4;
our $VERSION = 0.60;
sub import {
no strict 'refs';
my $self = shift;
croak "Odd number of arguments in classinfo declaration" if @_%2;
my $caller = $self eq 'QtCore4::classinfo' ? (caller)[0] : $self;
my(%classinfos) = @_;
my $meta = \%{ $caller . '::META' };
# See QtCore4::slots for explanation of this sub
*{ "${caller}::metaObject" } = sub {
return Qt::_internal::getMetaObject($caller);
} unless defined &{ "${caller}::metaObject" };
Qt::_internal::installqt_metacall( $caller ) unless defined &{$caller."::qt_metacall"};
qtcore/lib/QtCore4/isa.pm view on Meta::CPAN
our $VERSION = 0.60;
# meta-hackery tools
my $A = sub {my ($n) = @_; no strict 'refs'; \@{$n}};
my $H = sub {my ($n) = @_; no strict 'refs'; no warnings 'once'; \%{$n}};
my $ISUB = sub {my ($n, $s) = @_; no strict 'refs'; *{$n} = $s};
sub import {
# Class will be QtCore4::isa. Caller is the name of the package doing the use.
my $class = shift;
my $caller = (caller)[0];
# Trick 'use' into believing the file for this class has been read, and
# associate it with this file
my $pm = $caller . ".pm";
$pm =~ s!::!/!g;
unless(exists $::INC{$pm}) {
$::INC{$pm} = $::INC{"QtCore4/isa.pm"};
}
# Define the Qt::ISA array
qtcore/lib/QtCore4/isa.pm view on Meta::CPAN
require $super_pm;
}
}
# Make it so that 'use <packagename>' makes a subroutine called
# <packagename> that calls ->new
$ISUB->($caller . '::import', sub {
# Name is the full package name being loaded, incaller is the package
# doing the loading
my $name = shift; # classname = function-name
my $incaller = (caller)[0];
$ISUB->( $name, sub { $name->new(@_); } )
unless defined &{"$name"};
$ISUB->("$incaller\::$name", sub { $name->new(@_) })
unless defined &{"$incaller\::$name"};
$name->export($incaller, @_)
if(grep { $_ eq 'Exporter' } @{$A->("$name\::ISA")});
});
foreach my $sp (' ', '') {
qtcore/lib/QtCore4/signals.pm view on Meta::CPAN
use Carp;
use QtCore4;
use Scalar::Util qw(looks_like_number);
our $VERSION = 0.60;
sub import {
no strict 'refs';
my $self = shift;
croak "Odd number of arguments in signal declaration" if @_%2;
my $caller = $self eq 'QtCore4::signals' ? (caller)[0] : $self;
my(@signals) = @_;
my $meta = \%{ $caller . '::META' };
# The perl metaObject holds info about signals and slots, inherited
# sig/slots, etc. This is what actually causes perl-defined sig/slots to
# be executed.
*{ "${caller}::metaObject" } = sub {
return Qt::_internal::getMetaObject($caller);
} unless defined &{ "${caller}::metaObject" };
qtcore/lib/QtCore4/slots.pm view on Meta::CPAN
use Carp;
use QtCore4;
use Scalar::Util qw(looks_like_number);
our $VERSION = 0.60;
sub import {
no strict 'refs';
my $self = shift;
croak "Odd number of arguments in slot declaration" if @_%2;
my $caller = $self eq 'QtCore4::slots' ? (caller)[0] : $self;
my @slots = @_;
my $meta = \%{ $caller . '::META' };
# The perl metaObject holds info about signals and slots, inherited
# sig/slots, etc. This is what actually causes perl-defined sig/slots to
# be executed.
*{ "${caller}::metaObject" } = sub {
return Qt::_internal::getMetaObject($caller);
} unless defined &{ "${caller}::metaObject" };
( run in 1.665 second using v1.01-cache-2.11-cpan-a3c8064c92c )