Commits

Herbert Breunung committed 08777d6

ed instance is stored in doc api on Doc::add and document::add_instance

Comments (0)

Files changed (3)

lib/Kephra/API/Doc.pm

 	Kephra::Log::warning('need a ' . DOC_CLASS . " thats in stash, not $doc!", 1)
 		unless is($doc);
 	$document{'ID'}  {$lowest_free_ID} = $doc;
-	add_instance($doc, $_) for values $doc->panel;
+	add_instance($doc, $_) for keys $doc->editor;
 	if ($doc->file_path) {
 		$document{'file'}{$doc->file_path} = $doc;
 	} else {
 	my ($doc, $bar) = @_;
 	return Kephra::Log::warning('need as first parameter a'.DOC_CLASS.' thats in stash, not $doc!', 1)
 		unless is($doc);
-	return Kephra::Log::warning("need as second parameter a Kephra::App::Bar::Document instance")
-		unless blessed($bar) eq 'Kephra::App::Bar::Document';
+	#return Kephra::Log::warning("need a Kephra::App::Bar::Document instance as second parameter, not $bar")
+	#	unless blessed($bar) eq 'Kephra::App::Bar::Document';
 	$document{'panel'} { $doc->panel->{$bar}  } = $doc;
 	$document{'editor'}{ $doc->editor->{$bar} } = $doc;
 }
 	my ($doc, $bar) = @_;
 	return Kephra::Log::warning('need as first parameter a'.DOC_CLASS.' thats in stash, not $doc!', 1)
 		unless is($doc);
-	return Kephra::Log::warning("need as second parameter a Kephra::App::Bar::Document instance")
+	return Kephra::Log::warning("need a Kephra::App::Bar::Document instance as second parameter, not $bar")
 		unless blessed($bar) eq 'Kephra::App::Bar::Document';
 	delete $document{'panel'}{ $doc->panel->{$bar} };
 	delete $document{'editor'}{ $doc->editor->{$bar} };

lib/Kephra/File.pm

 
 
 sub new  {
+	my $docbar = Kephra::API::docbar();
 	my $doc = Kephra::Document->new();
-	my $docbar = Kephra::API::docbar();
 	$_->add_page( $doc->panel->{$_}, 'rightmost', $doc->title, 0 ) for Kephra::API::all_docbars();;
 	Kephra::API::focus( $doc->editor->{$docbar} );
 }

share/config/userinterface/icon/set/default/config.xpm

Old
Old image
New
New image
 /* XPM */
-static char * config_xpm[] = {
+static char *config[] = {
+/* columns rows colors chars-per-pixel */
 "16 16 14 1",
-" 	c #000000",
-".	c #7E7E7E",
-"+	c #FCFFFF",
-"@	c #B2D7E1",
-"#	c #565656",
-"$	c #FFFFFF",
-"%	c #E8F0F7",
-"&	c #DAE7EF",
-"*	c #EDF5FA",
-"=	c #E0EBF3",
-"-	c #0092C0",
-";	c #E1E0F8",
-">	c #EEF6FC",
-",	c #BFCEDB",
-"         ....   ",
-"        .++@#   ",
-"       .+$@#    ",
-"       .+@#   ..",
-"       .$#   .@.",
-"       .%@. .@&.",
-"      .$$*@.@=&.",
-"     .$-%;@&&&# ",
-"    .$-%;@####  ",
-"   .$-%;@#      ",
-"  .$-%;@#       ",
-" .$-%;@#        ",
-".$-%;@#         ",
-".->;@#          ",
-" .,@#           ",
-"  .#            "};
+"  c black",
+". c #7F7F7F",
+"X c #0093C3",
+"o c #BACFDD",
+"O c #A2D8E2",
+"+ c #D6E8F0",
+"@ c #DCECF4",
+"# c #E2E1F9",
+"$ c #E5F0F8",
+"% c #EAF5FA",
+"& c #EBF6FC",
+"* c #FBFFFF",
+"= c gray100",
+"- c None",
+/* pixels */
+"----------..- --",
+"---------**O- --",
+"--------*=O- ---",
+"--------*O- ----",
+"--------=- ---O.",
+"--------$O- -O+.",
+"-------==%O-O@+-",
+"------=X$#O+++- ",
+"-----=X$#O---- -",
+"----=X$#O-    --",
+"---=X$#O- ------",
+"--=X$#O- -------",
+"-=X$#O- --------",
+"-X&#O- ---------",
+"--oO- ----------",
+"---- -----------"
+};