"Fossies" - the Fresh Open Source Software Archive

Member "namefix.pl/libs/gui/todo.pm" (13 Dec 2008, 1310 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 "todo.pm" see the Fossies "Dox" file reference documentation.

    1 use strict;
    2 use warnings;
    3 
    4 #--------------------------------------------------------------------------------------------------------------
    5 # Show Todo
    6 #--------------------------------------------------------------------------------------------------------------
    7 
    8 sub show_todo 
    9 {
   10     my $todo_txt = join("", &readf($main::todo));
   11 
   12         my $top = $main::mw -> Toplevel();
   13         $top -> title("Todo List");
   14 
   15         my $top_lab = $top -> Label
   16     (
   17             -text=>"Todo List for Namefix.pl $main::version",
   18             -font=>$main::dialog_title_font
   19         ) -> grid(
   20             -row => 1,
   21             -column => 1,
   22             -columnspan => 2
   23         );
   24 
   25         my $txt = $top -> Scrolled
   26     (
   27             "ROText",
   28             -scrollbars=>"osoe",
   29             -font=>$main::dialog_font
   30         )
   31         -> grid
   32     (
   33             -row => 2,
   34             -column => 1,
   35             -columnspan => 2
   36         );
   37 
   38         $txt->menu(undef);
   39         $txt -> insert('end', "$todo_txt");
   40 
   41         my $but_close = $top -> Button(
   42             -text=>"Close",
   43             -activebackground => "white",
   44             -command => sub {
   45                 destroy $top;
   46             }
   47         )
   48         -> grid(
   49             -row => 4,
   50             -column => 1,
   51             -columnspan => 2
   52         );
   53 
   54     $top->resizable(0,0);
   55 }
   56 
   57 1;