Kephra / lib / edpart.pl

use v5.12;
use warnings;
use FindBin;
BEGIN { unshift @INC, $FindBin::Bin, '.' }


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::App::Splitter;
use Kephra::App::Part::Editor;
use Kephra::File;
use Kephra::Log;

use base qw(Wx::App);
our $_ref;

sub OnInit {
	my $app  = $_ref = shift;
	Kephra::Log::off(); 
	my $win = Kephra::App::Frame->new( 'DDD - double docbar demo' );
	#my $win = Wx::Frame->new(undef, -1, '');
	my $ep = Kephra::App::Part::Editor->new($win);
	Kephra::File::new();

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


package main;
Kephra::App->new->MainLoop;
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.