Herbert Breunung avatar Herbert Breunung committed 55a7b43

yes docbar has still bug but doesnt matter now

Comments (0)

Files changed (2)

+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;

lib/docbar.pl~

-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::File;
-use base qw(Wx::App);
-our $_ref;
-
-sub OnInit {
-	my $app  = $_ref = shift;
-	$Kephra::Log::test_mode = 1; 
-	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;
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.