~ubuntu-branches/ubuntu/precise/glom/precise-updates

« back to all changes in this revision

Viewing changes to glom/libglom/utils.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Coulson
  • Date: 2009-10-09 16:50:36 UTC
  • mfrom: (1.1.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20091009165036-orinvwmohk838xxl
Tags: 1.12.2-0ubuntu1
* New upstream version:
  - FFE LP: #391664
* debian/control:
  - Bump python-gnome2-extras-dev build-dep to >= 2.25.3.
  - Bump libgdamm3.0-dev build-dep to libgdamm4.0-dev >= 3.99.14.
  - Change libgda3-dev build-dep to libgda-4.0-dev.
  - Change libgda3-postgres dependency to libgda-4.0-postgres.
  - Bump libgtkmm-2.4-dev build-dep to >= 2.14.
  - Add build-dep on libgconfmm-2.6-dev.
  - Bump libgoocanvasmm-dev build-dep to >= 0.14.0.
  - Remove build-dep on libbakery-2.6-dev.
  - Bump postgresql-8.3 dependency to postgresql-8.4.
  - Change scrollkeeper build-dep to rarian-compat.
  - Rename libglom{0,-dev} -> libglom-1.12-{0,dev}. Upstream include
    APIVER in the library name now.
* debian/rules:
  - Update --with-postgres-utils configure flag to point to the new
    path.
  - Drop deprecated --disable-scrollkeeper configure flag.
  - Update DEB_SHLIBDEPS_INCLUDE with new libglom-1.12-0 package name.
  - Don't include /usr/share/cdbs/1/rules/simple-patchsys.mk - there
    are currently no patches.
* debian/libglom-1.12-0.install:
  - Updated for new version.
* debian/libglom-1.12-dev.install:
  - Install pc and header files.
* debian/glom-doc.install:
  - Updated for new version.
* debian/glom.install:
  - Updated for new version.
* Fix debian/watch.
* Dropped obsolete 10-distro-install-postgres-change.patch.
* Built against latest libgoocanvasmm (LP: #428445).
* Also closes LP: #230007, LP: #393229, LP: #393231, LP: #394507,
  LP: #394887, LP: #394894, LP: #397409, LP: #381563.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef GLOM_UTILS_H
22
22
#define GLOM_UTILS_H
23
23
 
24
 
#include <glom/libglom/data_structure/field.h>
25
 
#include <glom/libglom/data_structure/numeric_format.h>
26
 
 
27
 
#include <glom/libglom/data_structure/layout/layoutitem_field.h>
28
 
 
29
 
#include <gtkmm/dialog.h>
30
 
#include <gtkmm/messagedialog.h>
 
24
#include <libglom/data_structure/field.h>
 
25
#include <libglom/data_structure/numeric_format.h>
 
26
 
 
27
#include <libglom/data_structure/layout/layoutitem_field.h>
31
28
 
32
29
namespace Glom
33
30
{
39
36
namespace Utils
40
37
{
41
38
 
42
 
///A standard widget spacing:
43
 
extern const unsigned int DEFAULT_SPACING_LARGE;
44
 
 
45
 
///A standard widget spacing:
46
 
extern const unsigned int DEFAULT_SPACING_SMALL;
47
 
 
48
39
Glib::ustring trim_whitespace(const Glib::ustring& text);
49
40
 
50
41
Glib::ustring string_replace(const Glib::ustring& src, const Glib::ustring search_for, const Glib::ustring& replace_with);
53
44
typedef std::vector< sharedptr<LayoutItem_Field> > type_vecLayoutFields;
54
45
typedef std::vector< sharedptr<const LayoutItem_Field> > type_vecConstLayoutFields;
55
46
 
56
 
  //TODO: Move this to its own file:
 
47
//TODO: Move these to their own file:
 
48
Glib::ustring build_sql_select_fields_to_get(const Glib::ustring& table_name, const type_vecConstLayoutFields& fieldsToGet, const type_sort_clause& sort_clause, Glib::ustring& sql_part_from, Glib::ustring& sql_part_leftouterjoin);
 
49
 
57
50
Glib::ustring build_sql_select_with_where_clause(const Glib::ustring& table_name, const type_vecLayoutFields& fieldsToGet, const Glib::ustring& where_clause = Glib::ustring(), const Glib::ustring& extra_join = Glib::ustring(), const type_sort_clause& sort_clause = type_sort_clause(), const Glib::ustring& extra_group_by = Glib::ustring());
58
51
Glib::ustring build_sql_select_with_where_clause(const Glib::ustring& table_name, const type_vecConstLayoutFields& fieldsToGet, const Glib::ustring& where_clause = Glib::ustring(), const Glib::ustring& extra_join = Glib::ustring(), const type_sort_clause& sort_clause = type_sort_clause(), const Glib::ustring& extra_group_by = Glib::ustring());
59
52
 
90
83
 */
91
84
Glib::ustring title_from_string(const Glib::ustring& text);
92
85
 
93
 
typedef std::vector<Glib::ustring> type_vecStrings;
94
 
type_vecStrings string_separate(const Glib::ustring& str, const Glib::ustring& separator, bool ignore_quoted_separator = false);
 
86
typedef std::vector<Glib::ustring> type_vec_strings;
 
87
type_vec_strings string_separate(const Glib::ustring& str, const Glib::ustring& separator, bool ignore_quoted_separator = false);
95
88
 
96
89
Glib::ustring string_trim(const Glib::ustring& str, const Glib::ustring& to_remove);
97
90
 
98
91
Glib::ustring string_remove_suffix(const Glib::ustring& str, const Glib::ustring& suffix, bool case_sensitive = true);
99
92
 
100
 
int dialog_run_with_help(Gtk::Dialog* dialog, const Glib::ustring& id = Glib::ustring());
101
 
 
102
 
/** This is a replacement for gnome_help_display(), 
103
 
 * to avoid the libgnome dependency.
104
 
 * TODO: GTK+ should have a function for this soon.
105
 
 */
106
 
void show_help(const Glib::ustring& id = Glib::ustring());
107
 
 
108
 
void show_ok_dialog(const Glib::ustring& title, const Glib::ustring& message, Gtk::Window& parent, Gtk::MessageType message_type);
109
 
void show_ok_dialog(const Glib::ustring& title, const Glib::ustring& message, Gtk::Window* parent, Gtk::MessageType message_type);
110
 
 
111
 
void show_window_until_hide(Gtk::Window* window);
 
93
bool file_exists(const Glib::ustring& uri);
112
94
 
113
95
} //namespace Utils
114
96