GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PADRE::CONFIG::APPLY (3)

.ds Aq ’

NAME

Padre::Config::Apply - Implements on-the-fly configuration changes

CONTENTS

SYNOPSIS



    # When the view state of the directory changes we update the menu
    # check status and show/hide the panel inside of an update lock.
    sub main_directory {
         my $main = shift;
         my $new  = shift;
         my $item = $main->menu->view->{directory};
         my $lock = $main->lock( UPDATE, AUI );
         $item->Check($new) if $new != $item->IsChecked;
         $main->show_view( directory => $new );
    }



DESCRIPTION

<B>Padre::Config::ApplyB> allows Padre to apply changes to configuration to the IDE on the fly instead of requiring a restart.

Centralising the implementation of this functionality allows loading to be delayed until dynamic config change is actually required, and allow changes to configuration to be made by several different parts of Padre, including both the simple and advanced Preferences dialogs, and the online configuration sync system.

    Methodology

Functions in this module are named after the matching configuration property, and are called by apply in Padre::Config when the value being set is different to the current value.

Because functions are <B>onlyB> called when the configuration value has changed, functions where are not required to do change detection of their own.

Functions are called with three parameters. The first parameter is the Padre::Wx::Main main window object, the second is the new value of the configuration property, and the third is the previous value of the configuration property.

COPYRIGHT & LICENSE

Copyright 2008-2013 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 5 itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PADRE::CONFIG::APPLY (3) 2013-11-09

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.