Dear listmembers,
well, obviously my C-programming capabilities were sufficient, though. My 
first attempt of using "fprintf("%s\n", name1); ended with an "invalid 
machinecode" message - but patching the debugging-cout messagestring resulted 
in success.

So, at least for linux I can confirm that "\" in a file name is acceptable 
(horray, I'm not on M$) and the expected filename was

  "paragraph-params_\align_block.png"

the other ones have to be adapted in accordance to this. Maybe it is denoted 
somewhere that the " " between "\align" and "block" should be replaced by an 
underscore, but I did not find and this is hard to achieve by simply 
guessing.

So, to whom it might concern: I attach the png-files required for the commands 
I wanted to this email as well as the required patch for the ui file - use it 
or discard it.

To the developers: it would be _very_ nice if you could patch the debug output 
message in such a way that the names of the missing files get printed as 
well - this would be a way of helping people to help themselves. See patch 
attached - just my suggestion, this would really help.

Thanks again to everybody!

Takce care



Dieter Jurzitza

-- 
-----------------------------------------------------------

                               |
                                \
                 /\_/\           |
                | ~x~ |/-----\   /
                 \   /-       \_/
  ^^__   _        /  _  ____   /
 <°°__ \- \_/     |  |/    |  |
  ||  ||         _| _|    _| _|

if you really want to see the pictures above - use some font
with constant spacing like courier! :-)
-----------------------------------------------------------

<<attachment: paragraph-params_\align_block.png>>

<<attachment: paragraph-params_\align_center.png>>

<<attachment: paragraph-params_\align_left.png>>

<<attachment: paragraph-params_\align_right.png>>

--- src/frontends/qt4/GuiApplication.cpp.original	2008-11-29 15:16:00.000000000 +0100
+++ src/frontends/qt4/GuiApplication.cpp	2009-01-01 21:56:46.000000000 +0100
@@ -342,7 +342,11 @@
 	if (res.exists(name2))
 		return path + name2;
 
-	LYXERR(Debug::GUI, "Cannot find icon for command \""
+	LYXERR(Debug::GUI, "Cannot find icon with filename "
+			   << "\"" << name1 << "\""
+			   << " or filename "
+			   << "\"" << name2 << "\"" 
+			   << " for command "
 			   << lyxaction.getActionName(f.action)
 			   << '(' << to_utf8(f.argument()) << ")\"");
 
--- stdtoolbars.inc.original	2008-12-20 20:01:06.000000000 +0100
+++ stdtoolbars.inc	2009-01-01 21:37:59.000000000 +0100
@@ -110,6 +110,11 @@
 		Item "Text style" "dialog-show character"
 		Item "Paragraph settings" "layout-paragraph"
 		Item "Thesaurus" "thesaurus-entry"
+                Separator
+                Item "Align justified" "paragraph-params \align block"
+                Item "Align left" "paragraph-params \align left"
+                Item "Align center" "paragraph-params \align center"
+                Item "Align right" "paragraph-params \align right"
 	End
 	
 	Toolbar "table" "Table"

Reply via email to