"Fossies" - the Fresh Open Source Software Archive

Member "namefix.pl/libs/gui/menu.pm" (13 Dec 2008, 1549 Bytes) of package /linux/privat/old/namefix.pl_4.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Perl source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "menu.pm" see the Fossies "Dox" file reference documentation.

    1 #!/usr/bin/perl
    2 
    3 use strict;
    4 use warnings;
    5 
    6 #--------------------------------------------------------------------------------------------------------------
    7 # Menu Bar
    8 #--------------------------------------------------------------------------------------------------------------
    9 
   10 # Menubar buttons
   11 sub draw_menu 
   12 {
   13     our $mbar = $main::mw -> Menu();
   14     $main::mw->configure(-menu=>$main::mbar);
   15 
   16     my $file = $main::mbar -> cascade
   17     (
   18             -label=>'File',
   19             -underline=>0,
   20             -tearoff => 0
   21     );
   22 
   23     $file -> command
   24     (
   25             -label =>'Preferences',
   26             -underline => 1,
   27             -command =>\&edit_prefs
   28     );
   29 
   30     $file -> command
   31     (
   32             -label =>'Block Rename',
   33             -underline => 1,
   34             -command =>\&blockrename
   35     );
   36 
   37     $file -> command
   38     (
   39             -label =>'Undo GUI',
   40             -underline => 1,
   41             -command =>\&undo_gui
   42     );
   43 
   44     $file -> command
   45     (
   46             -label =>'Exit',
   47             -underline => 1,
   48             -command => sub { exit; }
   49     );
   50 
   51     my $settings = $mbar -> cascade
   52     (
   53             -label=>'Edit Lists',
   54             -underline=>0,
   55             -tearoff => 0
   56     );
   57 
   58     $settings -> command
   59     (
   60             -label=>'Specific Casing List',
   61             -command=>\&edit_cas_list
   62     );
   63 
   64     $settings -> command
   65     (
   66             -label=>'Remove Word List',
   67             -command=>\&edit_word_list
   68     );
   69 
   70     $settings -> command
   71     (
   72             -label=>'Remove Pattern List',
   73             -command=>\&edit_pat_list
   74     );
   75 
   76     &bm_redraw_menu;     # creates bookmark menu, still wip
   77 
   78 }
   79 
   80 
   81 1;