Edwin Leuven wrote:
> Yes. Are you implying that you have it already coded? Can you send a patch?

No. I played a little bit with it a while ago (but it worked quite good exept 
from the things I described in that mail). 
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg45058.html
Unfortunately, the changes got lost. I have found the attached old patch and a 
modified ui-file. AFAIR that was all I have done and it just worked.
(the icons have to be placed in a lib/images/tabular/ submenu)

And I still have the icons, if you are interested.

Jürgen
Index: src/frontends/qt2/Toolbar_pimpl.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/Toolbar_pimpl.C,v
retrieving revision 1.23
diff -u -r1.23 Toolbar_pimpl.C
--- src/frontends/qt2/Toolbar_pimpl.C	2002/09/17 12:29:40	1.23
+++ src/frontends/qt2/Toolbar_pimpl.C	2002/09/22 08:31:14
@@ -48,14 +48,16 @@

 	if (f.action == LFUN_INSERT_MATH && !f.argument.empty()) {
 		xpm_name = "math/" + subst(f.argument.substr(1), ' ', '_');
+	} else if (f.action == LFUN_TABULAR_FEATURE && !f.argument.empty()) {
+		xpm_name = "tabular/" + subst(f.argument, ' ','_');
 	} else {
 		string const name = lyxaction.getActionName(f.action);
 		if (!f.argument.empty())
 			xpm_name = subst(name + ' ' + f.argument, ' ','_');
-		else 
+		else
 			xpm_name = name;
 	}
-
+	
 	string fullname = LibFileSearch("images", xpm_name, "xpm");

 	if (!fullname.empty()) {

Attachment: default-qt.ui
Description: application/designer

Reply via email to