!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux web25.us.cloudlogin.co 5.10.237-xeon-hst #1 SMP Mon May 5 15:10:04 UTC 2025 x86_64 

uid=233359(alpastrology) gid=888(tty) groups=888(tty),33(tape) 

Safe-mode: OFF (not secure)

/usr/lib64/perl5/vendor_perl/Prima/examples/   drwxr-xr-x
Free 6181.87 GB of 6263.07 GB (98.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     outline.pl (1.72 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
=pod

=head1 NAME

examples/outline.pl - Prima outline widget

=head1 FEATURES

Demonstrates the basic Prima toolkit usage
and L<Prima::Outlines> class.

=cut

use strict;
use warnings;
use Prima qw(Application Outlines);

my $w = Prima::MainWindow-> create(
    size => [ 200, 200],
    designScale => [7, 16],
);
my $o = $w-> insert(
    DirectoryOutline =>
    #StringOutline =>
    popupItems => [
        ['Delete this' => sub{
            my ( $x, $l) = $_[0]-> get_item( $_[0]-> focusedItem);
            $_[0]-> delete_item( $x);
        }],
        ['Insert updir below' => sub{
            my ( $x, $l) = $_[0]-> get_item( $_[0]-> focusedItem);
            my ( $p, $o) = $_[0]-> get_item_parent( $x);
            $_[0]-> insert_items( $p, $o + 1, [
                [ $^O =~ /win32/ ? 'C:' : '/', ''], [], 0
            ]);
        }],
        ['Insert updir inside' => sub{
            my ( $x, $l) = $_[0]-> get_item( $_[0]-> focusedItem);
            $_[0]-> insert_items( $x, 0, [
                [ $^O =~ /win32/ ? 'C:' : '/', ''], [], 0
            ]);
        }],
        ['Expand this' => sub{
            my ( $x, $l) = $_[0]-> get_item( $_[0]-> focusedItem);
            $_[0]-> expand_all( $x);
        }],
        ['Toogle multi select' => sub {
            $_[0]-> multiSelect( !$_[0]-> multiSelect);
        }],
    ],
    multiSelect => 0,
    extendedSelect => 1,
    path => '.',
    buffered => 1,
    pack => { expand => 1, fill => 'both'},
    onSelectItem => sub {
        my ($self, $index) = @_;
        #print $self-> path."\n";
    },
    #items => [['wdcdec']],
    items => [
        ['Single string'],
        ['Reference', [
            ['Str1'],
        ]],
        ['Single string'],
        ['Another single string', undef],
        ['Empty reference', []],
        ['Reference', [
            ['Str1 -------------------------------------------------'],
            ['Str2'],
            ['Str3', [
                ['Subref1'],
                ['Subref2'],
            ]]],
        ],
        ['XXL'],
    ]
);
my ( $i, $l) = $o-> get_item( 1);
#$o-> expand_all;
#$o-> path('e:\Prima');

run Prima;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0168 ]--