aboutsummaryrefslogtreecommitdiffstats
path: root/Category.pm
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@mageia.org>2012-11-06 20:15:01 +0000
committerAngelo Naselli <anaselli@mageia.org>2012-11-06 20:15:01 +0000
commit5a547e6b955ea5c655edb3b87b7ff7676ced36fe (patch)
tree6e3b659c3cc210c6553cdcc4952cb38c6ee1061e /Category.pm
parent5a38703a90989bca6a3e2c858c3f9467895316f9 (diff)
downloadmanatools-5a547e6b955ea5c655edb3b87b7ff7676ced36fe.tar
manatools-5a547e6b955ea5c655edb3b87b7ff7676ced36fe.tar.gz
manatools-5a547e6b955ea5c655edb3b87b7ff7676ced36fe.tar.bz2
manatools-5a547e6b955ea5c655edb3b87b7ff7676ced36fe.tar.xz
manatools-5a547e6b955ea5c655edb3b87b7ff7676ced36fe.zip
change code alignment using
tabstop=4 shiftwidth=4 expandtab
Diffstat (limited to 'Category.pm')
-rw-r--r--Category.pm38
1 files changed, 18 insertions, 20 deletions
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();
}
}