Padre::Current - Online Linux Manual PageSection : 3
Updated : 2021-01-27
Source : perl v5.32.1
Note : User Contributed Perl Documentation

NAMEPadre::Current − A context object, for centralising the concept of what is "current"

DESCRIPTIONThe 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.

NAMEPadre::Current − convenient access to current objects within Padre

SYNOPSIS​ my $main = Padre::Current−>main; ​ # ...

DESCRIPTIONPadre 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.

ideReturn the Padre singleton for the IDE instance.

configReturns the current Padre::Config configuration object for the IDE.

mainReturns the Padre::Wx::Main object for the main window.

notebookReturns the Padre::Wx::Notebook object for the main window.

documentReturns the active Padre::Document document object.

editorReturns the Padre::Editor editor object for the active document.

filenameReturns the file name of the active document, if it has one.

titleReturn the title of current editor window.

projectReturn the Padre::Project project object for the active document.

textReturns the selected text, or a null string if nothing is selected.

COPYRIGHT & LICENSECopyright 2008−2011 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.
0
Johanes Gumabo
Data Size   :   18,175 byte
man-Padre::Current.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   4 / 170,272
Visitor ID   :     :  
Visitor IP   :   18.116.24.238   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|Padre::Current.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Padre::Current.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|Padre::Current.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|Padre::Current.3pm|43|'br══─}─══ |'br══─}─══ )