summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2005-01-24 10:53:18 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2005-01-24 10:53:18 +0000
commit11cc8e0276f3442e61e8044592c28ec2652182ce (patch)
tree5646a7274ab9a32fcd29b6621d5a24f3b3984a03
parent83e02ac4fd70ed22175937c15c2a9e34c3c63595 (diff)
downloadcontrol-center-11cc8e0276f3442e61e8044592c28ec2652182ce.tar
control-center-11cc8e0276f3442e61e8044592c28ec2652182ce.tar.gz
control-center-11cc8e0276f3442e61e8044592c28ec2652182ce.tar.bz2
control-center-11cc8e0276f3442e61e8044592c28ec2652182ce.tar.xz
control-center-11cc8e0276f3442e61e8044592c28ec2652182ce.zip
reorder categories by usage frequency
-rwxr-xr-xcontrol-center192
1 files changed, 100 insertions, 92 deletions
diff --git a/control-center b/control-center
index 41d9ccb1..8c85e6d2 100755
--- a/control-center
+++ b/control-center
@@ -601,98 +601,7 @@ my %programs =
# [ [ class_label, class icon name, [ program_label, ... ] ]
my @tree =
- ([ N("Boot"), 'boot-mdk',
- [
- if_(0 && detect_devices::floppies, "Boot Disk"),
- "Auto login Config",
- "Boot Config",
- "Boot Theme",
- if_(0, "Auto Install"),
- ]
- ],
- [ N("Hardware"), 'drakhard-mdk',
- [
- "Hardware List",,
- "Monitor",
- "Resolution",
- if_(0, "Graphical server configuration"),
- if_(-x "$bindir/drakfax","Fax"),
- "TV Cards",
- "Keyboard",
- "Mouse",
- "Printer",
- "Scanner",
- "UPS",
- ]
- ],
- [ N("Mount Points"), 'partition-mdk',
- [
- "Hard Drives",
- (map {
- my ($type, $scan, $text) = @$_;
- map_index {
- my $full_name = $text . ($::i ? $::i + 1 : '');
- $programs{$full_name} =
- {
- binary => "$sbindir/diskdrake --removable=$_->{device}",
- embedded => 1,
- description => $text,
- icon => "diskdrake_$type",
- };
- $full_name,
- } $scan->();
- } do {
- my %cdroms_by_type;
- foreach (detect_devices::cdroms()) {
- my $type = detect_devices::isBurner($_) ? 'burner' : detect_devices::isDvdDrive($_) ? 'DVD' : 'cdrom';
- push @{$cdroms_by_type{$type}}, $_;
- } ([ 'cdrom', sub { @{$cdroms_by_type{cdrom} || []} }, N("CD-ROM") ],
- [ 'dvd', sub { @{$cdroms_by_type{DVD} || []} }, N("DVD-ROM") ],
- [ 'cdwriter', sub { @{$cdroms_by_type{burner} || []} }, N("CD/DVD burner") ],
- [ 'floppy', \&detect_devices::floppies, N("Floppy drive") ],
- [ 'zip', \&detect_devices::zips, N("ZIP drive") ],
- ),
- }),
- "NFS mount points",,
- "Samba mount points",
- "WebDAV mount points",
- "Partition Sharing",
- ]
- ],
- [ N("Network & Internet"), 'net-mdk',
- [
- "Add Connection",
- "Configure Internet",
- "Manage Connection",
- "Monitor Connection",
- "Remove Interface",
- "Proxy Configuration",
- "Connection Sharing",
- ],
- ],
- [ N("Security"), 'security-mdk',
- [
- "Security Level",
- "Security Permissions",
- "Firewall",
- ]
- ],
- [ N("System"), 'system-mdk',
- [
- "Authentication",
- "Menus",
- "Display Manager chooser",
- "Services",
- "Fonts",
- "Date & Time",
- "Logs",
- if_($ENV{LANGUAGE} !~ /^zh/, "Console"),
- "Users",
- if_(-x "/usr/X11R6/bin/drakcronat", "Programs scheduling"),
- "Backups",
- ]
- ],
- if_($isRpmDrake || $isParkRpmDrake,
+ (if_($isRpmDrake || $isParkRpmDrake,
[ N("Software Management"), 'software',
[
if_($isRpmDrake,
@@ -705,6 +614,7 @@ my @tree =
if_($isParkRpmDrake, "Manage park"),
]
]),
+
if_($isWiz,
[ N("Server wizards"), 'wizard-mdk',
[
@@ -738,6 +648,7 @@ my @tree =
)
]
]),
+
if_($isWebAdmin || $isRfbDrake,
[ N("Online Administration"), 'online-administration-mdk',
[
@@ -763,6 +674,103 @@ my @tree =
)
]
]),
+
+ [ N("Hardware"), 'drakhard-mdk',
+ [
+ "Hardware List",,
+ "Monitor",
+ "Resolution",
+ if_(0, "Graphical server configuration"),
+ if_(-x "$bindir/drakfax","Fax"),
+ "TV Cards",
+ "Keyboard",
+ "Mouse",
+ "Printer",
+ "Scanner",
+ "UPS",
+ ]
+ ],
+
+ [ N("Network & Internet"), 'net-mdk',
+ [
+ "Add Connection",
+ "Configure Internet",
+ "Manage Connection",
+ "Monitor Connection",
+ "Remove Interface",
+ "Proxy Configuration",
+ "Connection Sharing",
+ ],
+ ],
+
+ [ N("System"), 'system-mdk',
+ [
+ "Authentication",
+ "Menus",
+ "Display Manager chooser",
+ "Services",
+ "Fonts",
+ "Date & Time",
+ "Logs",
+ if_($ENV{LANGUAGE} !~ /^zh/, "Console"),
+ "Users",
+ if_(-x "/usr/X11R6/bin/drakcronat", "Programs scheduling"),
+ "Backups",
+ ]
+ ],
+
+ [ N("Mount Points"), 'partition-mdk',
+ [
+ "Hard Drives",
+ (map {
+ my ($type, $scan, $text) = @$_;
+ map_index {
+ my $full_name = $text . ($::i ? $::i + 1 : '');
+ $programs{$full_name} =
+ {
+ binary => "$sbindir/diskdrake --removable=$_->{device}",
+ embedded => 1,
+ description => $text,
+ icon => "diskdrake_$type",
+ };
+ $full_name,
+ } $scan->();
+ } do {
+ my %cdroms_by_type;
+ foreach (detect_devices::cdroms()) {
+ my $type = detect_devices::isBurner($_) ? 'burner' : detect_devices::isDvdDrive($_) ? 'DVD' : 'cdrom';
+ push @{$cdroms_by_type{$type}}, $_;
+ } ([ 'cdrom', sub { @{$cdroms_by_type{cdrom} || []} }, N("CD-ROM") ],
+ [ 'dvd', sub { @{$cdroms_by_type{DVD} || []} }, N("DVD-ROM") ],
+ [ 'cdwriter', sub { @{$cdroms_by_type{burner} || []} }, N("CD/DVD burner") ],
+ [ 'floppy', \&detect_devices::floppies, N("Floppy drive") ],
+ [ 'zip', \&detect_devices::zips, N("ZIP drive") ],
+ ),
+ }),
+ "NFS mount points",,
+ "Samba mount points",
+ "WebDAV mount points",
+ "Partition Sharing",
+ ]
+ ],
+
+ [ N("Security"), 'security-mdk',
+ [
+ "Security Level",
+ "Security Permissions",
+ "Firewall",
+ ]
+ ],
+
+ [ N("Boot"), 'boot-mdk',
+ [
+ if_(0 && detect_devices::floppies, "Boot Disk"),
+ "Auto login Config",
+ "Boot Config",
+ "Boot Theme",
+ if_(0, "Auto Install"),
+ ]
+ ],
);