From 5a547e6b955ea5c655edb3b87b7ff7676ced36fe Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Tue, 6 Nov 2012 20:15:01 +0000 Subject: change code alignment using tabstop=4 shiftwidth=4 expandtab --- Category.pm | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'Category.pm') diff --git a/Category.pm b/Category.pm index 6e4a58d4..fedb8495 100644 --- a/Category.pm +++ b/Category.pm @@ -1,3 +1,4 @@ +# vim: set et ts=4 sw=4: # Copyright 2012 Steven Tucker # # This file is part of AdminPanel @@ -31,8 +32,8 @@ sub new { my $self = { my $name = 0, my $button = 0, - my $icon = 0, - my $modules = 0 + my $icon = 0, + my $modules = 0 }; bless $self, 'Category'; @@ -58,23 +59,20 @@ sub addButtons { my $currLayout = 0; $factory->createVSpacing($pane, 2); foreach my $mod (@{$self->{modules}}) { - if(($count % 2) != 1) - { - $currLayout = $factory->createHBox($pane); - $factory->createHStretch($currLayout); - } - $count++; - $tmpButton = $factory->createPushButton($currLayout, - $mod->{name} - ); - $mod->setButton($tmpButton); - $tmpButton->setLabel($mod->{name}); - $tmpButton->setIcon($mod->{icon}); - $factory->createHStretch($currLayout); - if(($count % 2) != 1) - { - $factory->createVSpacing($pane, 2); - } + if(($count % 2) != 1) { + $currLayout = $factory->createHBox($pane); + $factory->createHStretch($currLayout); + } + $count++; + $tmpButton = $factory->createPushButton($currLayout, + $mod->{name}); + $mod->setButton($tmpButton); + $tmpButton->setLabel($mod->{name}); + $tmpButton->setIcon($mod->{icon}); + $factory->createHStretch($currLayout); + if(($count % 2) != 1) { + $factory->createVSpacing($pane, 2); + } } $factory->createVStretch($pane); } @@ -84,7 +82,7 @@ sub removeButtons { my($self) = @_; for(@{$self->{modules}}) { - $_->removeButton(); + $_->removeButton(); } } -- cgit v1.2.1