Todo toolbutton


Subject: Todo toolbutton
From: Henrik Berg (henrik@lansen.se)
Date: Fri Dec 10 1999 - 14:30:46 CST


The Win32 version don't like missing toolbar buttons, giving ASSERT. This button fills in when button is missing in a given langage.

Note, that "abi/src/wp/ap/xp/ToolbarIcons/tb_todo.xpm" is a new file.

With this you get a 'X' as a replacement toolbutton.
--hb

diff -u -r -N -x CVS --minimal abi.org/src/af/ev/xp/ev_Toolbar_Labels.cpp abi/src/af/ev/xp/ev_Toolbar_Labels.cpp
--- abi.org/src/af/ev/xp/ev_Toolbar_Labels.cpp Fri Dec 10 22:15:42 1999
+++ abi/src/af/ev/xp/ev_Toolbar_Labels.cpp Fri Dec 10 17:09:24 1999
@@ -133,7 +133,7 @@
   UT_DEBUGMSG(("WARNING: %s translation for Toolbar id [%d] not found.\n",m_szLanguage,id));
   // NOTE: only translators should see the following strings
   // NOTE: do *not* translate them
- pLabel = new EV_Toolbar_Label(id,"TODO",NULL,"to do","untranslated toolbar item");
+ pLabel = new EV_Toolbar_Label(id,"TODO","tb_todo_xpm","to do","untranslated toolbar item");
   m_labelTable[index] = pLabel;
  }
 
diff -u -r -N -x CVS --minimal abi.org/src/wp/ap/xp/ToolbarIcons/tb_todo.xpm abi/src/wp/ap/xp/ToolbarIcons/tb_todo.xpm
--- abi.org/src/wp/ap/xp/ToolbarIcons/tb_todo.xpm Thu Jan 1 01:00:00 1970
+++ abi/src/wp/ap/xp/ToolbarIcons/tb_todo.xpm Fri Dec 10 17:09:00 1999
@@ -0,0 +1,35 @@
+/* XPM */
+static char * tb_todo_xpm[] = {
+"24 24 8 1",
+" c None",
+". c #000000",
+"+ c #8F431E",
+"@ c #803C1B",
+"# c #8A411D",
+"$ c #954620",
+"% c #733618",
+"& c #5C2B13",
+" ",
+" ",
+" ",
+" .. .. ",
+" ... ... ",
+" ... ... ",
+" ... ... ",
+" ... ... ",
+" ... ... ",
+" ... ... ",
+" ...... ",
+" .... ",
+" .... ",
+" ...... ",
+" ... ... ",
+" ... ... ",
+" ... ... ",
+" ... ... ",
+" ... ... ",
+" ... ... ",
+" .. .. ",
+" ",
+" ",
+" "};
diff -u -r -N -x CVS --minimal abi.org/src/wp/ap/xp/ap_Toolbar_Icons_All.h abi/src/wp/ap/xp/ap_Toolbar_Icons_All.h
--- abi.org/src/wp/ap/xp/ap_Toolbar_Icons_All.h Fri Dec 10 22:15:45 1999
+++ abi/src/wp/ap/xp/ap_Toolbar_Icons_All.h Fri Dec 10 17:09:02 1999
@@ -67,6 +67,7 @@
 # include "tb_save.xpm"
 # include "tb_save_as.xpm"
 # include "tb_undo.xpm"
+# include "tb_todo.xpm"
 
  // these are specific to one or more translations
 # include "tb_text_bold_G.xpm"
@@ -117,6 +118,7 @@
  DefineToolbarIcon(tb_save_xpm)
  DefineToolbarIcon(tb_save_as_xpm)
  DefineToolbarIcon(tb_undo_xpm)
+ DefineToolbarIcon(tb_todo_xpm)
 
  // these are specific to one or more translations
  DefineToolbarIcon(tb_text_bold_G_xpm)




This archive was generated by hypermail 2b25 : Fri Dec 10 1999 - 16:20:31 CST