Padre::Plugin::HG::StatusTree Displays the status of the current hg project in a tree format
my $object = Padre::Plugin::HG::StatusTree->new($self,$project_root);
This module diplays a tree in the left panel of the ide that shows the mecurial status of each file. Right clicking on a file will give you options to perform actions. Right clicking the project root will give you project wide options.
Creates and displays the status tree $tree = Padre::Plugin::HG::StatusTree->new($self, $project_root);
Works out what to name the tab for the project.
Add the nodes to the tree. getWxNode($treectrl,[name,parent,type],path);
$self->parseHgstatus(@hgstatus); parses the output of HGstatus and calls create branch for each item.
$self->drawTree($treectrl); creates the Tree from the output of the vcs status
Performs actions when the users double clicks on a tree node at the moment opens a file when it is double clicked.
Called when a user right clicks a node in the tree Shows different options depending if a file/dir or root is selected.
Called by Padre when the X is clicked on the tree view in the left .
open_file($path) opens the file in the editor.
$self->refresh(); refreshes the tree control by deleteing all items and readding them.
To install Padre::Plugin::HG, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Padre::Plugin::HG
CPAN shell
perl -MCPAN -e shell install Padre::Plugin::HG
For more information on module installation, please visit the detailed CPAN module installation guide.