summaryrefslogtreecommitdiff
path: root/fml/lib
diff options
context:
space:
mode:
authorfukachan <fukachan>2004-11-21 07:00:34 +0000
committerfukachan <fukachan>2004-11-21 07:00:34 +0000
commitdd98a756898bcdc5e77b21e5d1ccaef74dc4200d (patch)
tree1b984a50534e10d03afe6fd3d0b6224e5546f1ba /fml/lib
parent57d956552af9a29aa235e03f816173ffcae3a084 (diff)
downloadfml8-dd98a756898bcdc5e77b21e5d1ccaef74dc4200d.tar.gz
fml8-dd98a756898bcdc5e77b21e5d1ccaef74dc4200d.tar.bz2
fml8-dd98a756898bcdc5e77b21e5d1ccaef74dc4200d.zip
implement get_{cui,gui}_menu() methods.
Diffstat (limited to 'fml/lib')
-rw-r--r--fml/lib/FML/Process/Utils.pm37
1 files changed, 36 insertions, 1 deletions
diff --git a/fml/lib/FML/Process/Utils.pm b/fml/lib/FML/Process/Utils.pm
index e4fc56fb..fc111f78 100644
--- a/fml/lib/FML/Process/Utils.pm
+++ b/fml/lib/FML/Process/Utils.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: Utils.pm,v 1.123 2004/10/03 12:06:36 fukachan Exp $
+# $FML: Utils.pm,v 1.124 2004/10/09 12:02:10 fukachan Exp $
#
package FML::Process::Utils;
@@ -1282,6 +1282,41 @@ sub is_config_cf_exist
}
+=head2 get_cui_menu()
+
+return menu configuration path for CUI.
+
+=head2 get_gui_menu()
+
+return menu configuration path for GUI.
+
+=cut
+
+
+# Descriptions: return whether $ml ML's config.cf file exists or not.
+# Arguments: OBJ($curproc)
+# Side Effects: none
+# Return Value: STR
+sub get_cui_menu
+{
+ my ($curproc) = @_;
+ my $main_cf = $curproc->{ __parent_args }->{ main_cf };
+ return $main_cf->{ default_cui_menu };
+}
+
+
+# Descriptions: return whether $ml ML's config.cf file exists or not.
+# Arguments: OBJ($curproc)
+# Side Effects: none
+# Return Value: STR
+sub get_gui_menu
+{
+ my ($curproc) = @_;
+ my $main_cf = $curproc->{ __parent_args }->{ main_cf };
+ return $main_cf->{ default_gui_menu };
+}
+
+
=head2 get_ml_home_prefix_maps()
return ml_home_prefix maps.