Source

Kephra / lib / docbar.pl

Full commit
use v5.12;
use warnings;

package Kephra;
BEGIN {
        our $NAME = __PACKAGE__;
        our $VERSION = 'sp1';
}

package Kephra::App;
use Wx;
use Kephra::API;
use Kephra::App::Bar::Document;
use Kephra::App::Dialog;
use Kephra::App::Editor;
use Kephra::App::Frame;
use Kephra::Log;
use Kephra::File;
use base qw(Wx::App);
our $_ref;

sub OnInit {
        my $app  = $_ref = shift;
        Kephra::Log::off(); 
        my $win = Kephra::App::Frame->new( 'DBD - docbar demo' );
        my $db = Kephra::App::Bar::Document->new($win);

        Kephra::File::new();
        Kephra::API::focus( Kephra::API::document()->panel );
        my $doc = Kephra::API::document();

        $win->Center();
        $win->Show(1);
        $app->SetTopWindow($win);
        1;
}


package main;
Kephra::App->new->MainLoop;