glom r1777 - in trunk: . glom glom/mode_design/print_layouts po



Author: murrayc
Date: Sat Dec  6 18:57:29 2008
New Revision: 1777
URL: http://svn.gnome.org/viewvc/glom?rev=1777&view=rev

Log:
2008-12-06  Murray Cumming  <murrayc murrayc com>

* glom/box_reports.cc: on_adddel_Add(): Set a default title based on
the name, when adding a new report, as we do for tables, relationships,
print layouts, etc.:

Modified:
   trunk/ChangeLog
   trunk/glom/box_reports.cc
   trunk/glom/mode_design/print_layouts/box_print_layouts.cc
   trunk/po/Makefile.in.in

Modified: trunk/glom/box_reports.cc
==============================================================================
--- trunk/glom/box_reports.cc	(original)
+++ trunk/glom/box_reports.cc	Sat Dec  6 18:57:29 2008
@@ -133,6 +133,16 @@
     report->set_name(report_name);
     m_AddDel.set_value_key(row, report_name);
 
+    //Set a suitable starting title, if there is none already:
+    Glib::ustring title = m_AddDel.get_value(row, m_colTitle);
+    if(title.empty())
+    {
+      title = Utils::title_from_string(report_name);
+      m_AddDel.set_value(row, m_colTitle, title);
+    }
+
+    report->set_title(title);
+
     get_document()->set_report(m_table_name, report);
   }
 }

Modified: trunk/glom/mode_design/print_layouts/box_print_layouts.cc
==============================================================================
--- trunk/glom/mode_design/print_layouts/box_print_layouts.cc	(original)
+++ trunk/glom/mode_design/print_layouts/box_print_layouts.cc	Sat Dec  6 18:57:29 2008
@@ -133,7 +133,6 @@
     item->set_name(name);
     m_AddDel.set_value_key(row, name);
 
-
     //Set a suitable starting title, if there is none already:
     Glib::ustring title = m_AddDel.get_value(row, m_colTitle);
     if(title.empty())

Modified: trunk/po/Makefile.in.in
==============================================================================
--- trunk/po/Makefile.in.in	(original)
+++ trunk/po/Makefile.in.in	Sat Dec  6 18:57:29 2008
@@ -56,7 +56,7 @@
 
 PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; else echo "$(ALL_LINGUAS)"; fi)
 
-USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep ^$$lang$$`"; then printf "$$lang "; fi; done; fi)
+USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep '^$$lang$$' $(srcdir)/LINGUAS 2>/dev/null`" -o -n "`echo $$ALINGUAS|tr ' ' '\n'|grep '^$$lang$$'`"; then printf "$$lang "; fi; done; fi)
 
 USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)" -o -n "$(LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]