NAME

Padre::Plugin::HG::StatusTree Displays the status of the current hg project in a tree format

SYNOPSIS

my $object = Padre::Plugin::HG::StatusTree->new($self,$project_root);

DESCRIPTION

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.

METHODS

new

Creates and displays the status tree
$tree = Padre::Plugin::HG::StatusTree->new($self, $project_root);

gettext_label

Works out what to name the tab for the project.

getWxNode

Add the nodes to the tree. 
getWxNode($treectrl,[name,parent,type],path);

parseHgStatus

$self->parseHgstatus(@hgstatus);
parses the output of HGstatus and calls create branch for each item.

createBranch

$self->parseHgstatus(@hgstatus);
parses the output of HGstatus and calls create branch for each item.

drawTree

$self->drawTree($treectrl);
creates the Tree from the output of the vcs status

_on_tree_item_activated

       Performs actions when the users double clicks on a tree node
       at the moment opens a file when it is double clicked. 
       

_on_tree_item_menu

       Called when a user right clicks a node in the tree
       Shows different options depending if a file/dir or root
       is selected. 
       

view_close

   Called by Padre when the X is clicked on the tree view in the left . 

view_panel

   Called by Padre when the X is clicked on the tree view in the left . 

open_file

       open_file($path)
       opens the file in the editor. 
       

refresh

       $self->refresh();
       refreshes the tree control by deleteing all items and 
       readding them.