8 More Discussions You Might Find Interesting
1. What is on Your Mind?
Raspberry Pi
An ARM GNU/Linux box for $25. Take a byte!
FAQs
What's a Raspberry Pi?
The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It's a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets,... (5 Replies)
Discussion started by: Neo
5 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I'm trying to develop an application to work with serial infra-red module, but I'm having difficulties to even get my module started. My HW is Beagleboard, which has 1 UART serial port, normally used for console, which I have disabled (I re-created the boot.scr, without the console... (0 Replies)
Discussion started by: julumme
0 Replies
3. UNIX for Advanced & Expert Users
Hi guys,
i'm running a program on samsumg 6410 arm cpu board. it caused an "free(): invalid next size (normal)" fail.
i try to use gdb for remote debugging:
1, start gdb server on board:
gdbserver 192.168.1.20:1234 ./HostAP
Process ./HostAP created; pid = 499
Listening on port... (8 Replies)
Discussion started by: ss1969
8 Replies
4. Programming
When i write the source code in netbeans environment,if the source code,there are chinese characters,chinese characters will be displayed as box,how to solve this problem?please (2 Replies)
Discussion started by: fang_xiaoan
2 Replies
5. Linux
I know we are supposed to be using UNIX as a collection of tools but are there any big applications where I can run/test C programs without exposing the poor things to the outside world? :D (3 Replies)
Discussion started by: treedroppings
3 Replies
6. Filesystems, Disks and Memory
Wellcomes All,
some times ago I 've installed a Debian ditribution on an Hard Disk who was set as Primary Master. Few days ago, I 've decided to install another Hard Disk with a different Operating System. When I did that, I turned off the old hard disk, and I mouted the new one on the Primary IDE... (1 Reply)
Discussion started by: thekarsillo
1 Replies
7. Linux
Hello sir,
I am Vijay Manohar. I am a writing a device driver for LCD frame buffer device. In this , LCD has been mapped at physical address 0x3000000. Now I want to implement mmap entry point. I have two questions regarding this
Can I use this physical address as one of the parameters to... (0 Replies)
Discussion started by: VijayManohar
0 Replies
8. Linux
hi all
I bought a new MSI motherboard and intel dual core processor .
i have currently installed fedora core 3 for which audio is not detected .
can u tell me which version of fedora core will support as i have tried with
fedora core 6 which gets installed but gives a error while... (0 Replies)
Discussion started by: nageshrk
0 Replies
Padre::Current(3pm) User Contributed Perl Documentation Padre::Current(3pm)
NAME
Padre::Current - A context object, for centralising the concept of what is "current"
DESCRIPTION
The "Padre::Current" detectes and returns whatever is current. Use it whenever you need to do something with anything which might get a
focus or be selectable otherwise
All methods could be called as functions, methods or class methods.
CLASS METHODS
"config"
my $config = Padre::Current->config;
Returns a Padre::Config object for the current document.
Padre has three types of configuration: User-specific, host-specific and project-specific, this method returnsa config object which
includes the current values - ne need to for you to care about which config is active and which has priority.
"document"
my $document = Padre::Current->document;
Returns a Padre::Document object for the current document.
"editor"
my $editor = Padre::Current->editor;
Returns a Padre::Editor object for the current editor (containing the current document).
"filename"
my $filename = Padre::Current->filename;
Returns the filename of the current document.
"ide"
my $ide = Padre::Current->ide;
Returns a Padre::Wx object of the current ide.
"main"
my $main = Padre::Current->main;
Returns a Padre::Wx::Main object of the current ide.
"notebook"
my $main = Padre::Current->notebook;
Returns a Padre::Wx::Notebook object of the current notebook.
"project"
my $main = Padre::Current->project;
Returns a Padre::Project object of the current project.
"text"
my $main = Padre::Current->text;
Returns the current selection (selected text in the current document).
"title"
my $main = Padre::Current->title;
Returns the title of the current editor window.
NAME
Padre::Current - convenient access to current objects within Padre
SYNOPSIS
my $main = Padre::Current->main;
# ...
DESCRIPTION
Padre uses lots of objects from different classes. And one needs to have access to the current object of this sort or this other to do
whatever is need at the time.
Instead of poking directly with the various classes to find the object you need, "Padre::Current" provides a bunch of handy methods to
retrieve whatever current object you need.
METHODS
new
# Vanilla constructor
Padre::Current->new;
# Seed the object with some context
Padre::Current->new( document => $document );
The "new" constructor creates a new context object, it optionally takes one or more named parameters which should be any context the caller
is aware of before he calls the constructor.
Providing this seed context allows the context object to derive parts of the current context from other parts, without the need to fall
back to the last-resort "Padre->ide" singleton-fetching method.
Many objects in Padre that are considered to be part of them context will have a "current" method which automatically creates the context
object with it as a seed.
Returns a new Padre::Current object.
"ide"
Return the Padre singleton for the IDE instance.
"config"
Returns the current Padre::Config configuration object for the IDE.
"main"
Returns the Padre::Wx::Main object for the main window.
"notebook"
Returns the Padre::Wx::Notebook object for the main window.
"document"
Returns the active Padre::Document document object.
"editor"
Returns the Padre::Editor editor object for the active document.
"filename"
Returns the file name of the active document, if it has one.
"title"
Return the title of current editor window.
"project"
Return the "Padre::Project" project object for the active document.
"text"
Returns the selected text, or a null string if nothing is selected.
COPYRIGHT & LICENSE
Copyright 2008-2012 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.14.2 2012-06-27 Padre::Current(3pm)