diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-12-10 21:09:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-12-13 03:33:43 +0800 |
commit | d09d8de870b6697c8a8b262e7e077b871a69b315 (patch) | |
tree | 3b718882e7a0bb0a996daf2967a033d91714c9b5 /e-util/e-util.h | |
parent | b61331ed03ac1c7a9b8614e25510040b9c60ae02 (diff) | |
download | gsoc2013-evolution-d09d8de870b6697c8a8b262e7e077b871a69b315.tar.gz gsoc2013-evolution-d09d8de870b6697c8a8b262e7e077b871a69b315.tar.zst gsoc2013-evolution-d09d8de870b6697c8a8b262e7e077b871a69b315.zip |
Consolidate base utility libraries into libeutil.
Evolution consists of entirely too many small utility libraries, which
increases linking and loading time, places a burden on higher layers of
the application (e.g. modules) which has to remember to link to all the
small in-tree utility libraries, and makes it difficult to generate API
documentation for these utility libraries in one Gtk-Doc module.
Merge the following utility libraries under the umbrella of libeutil,
and enforce a single-include policy on libeutil so we can reorganize
the files as desired without disrupting its pseudo-public API.
libemail-utils/libemail-utils.la
libevolution-utils/libevolution-utils.la
filter/libfilter.la
widgets/e-timezone-dialog/libetimezonedialog.la
widgets/menus/libmenus.la
widgets/misc/libemiscwidgets.la
widgets/table/libetable.la
widgets/text/libetext.la
This also merges libedataserverui from the Evolution-Data-Server module,
since Evolution is its only consumer nowadays, and I'd like to make some
improvements to those APIs without concern for backward-compatibility.
And finally, start a Gtk-Doc module for libeutil. It's going to be a
project just getting all the symbols _listed_ much less _documented_.
But the skeletal structure is in place and I'm off to a good start.
Diffstat (limited to 'e-util/e-util.h')
-rw-r--r-- | e-util/e-util.h | 348 |
1 files changed, 217 insertions, 131 deletions
diff --git a/e-util/e-util.h b/e-util/e-util.h index fa98153223..a5ab42bd3b 100644 --- a/e-util/e-util.h +++ b/e-util/e-util.h @@ -1,4 +1,6 @@ /* + * e-util.h + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either @@ -12,145 +14,229 @@ * You should have received a copy of the GNU Lesser General Public * License along with the program; if not, see <http://www.gnu.org/licenses/> * - * - * Authors: - * Chris Lahey <clahey@ximian.com> - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * */ #ifndef E_UTIL_H #define E_UTIL_H -#include <sys/types.h> -#include <gtk/gtk.h> -#include <limits.h> +#define __E_UTIL_H_INSIDE__ #include <libedataserver/libedataserver.h> -#include <libevolution-utils/evolution-util.h> - -#include <e-util/e-marshal.h> +#include <e-util/e-action-combo-box.h> +#include <e-util/e-activity-bar.h> +#include <e-util/e-activity-proxy.h> +#include <e-util/e-activity.h> +#include <e-util/e-alarm-selector.h> +#include <e-util/e-alert-bar.h> +#include <e-util/e-alert-dialog.h> +#include <e-util/e-alert-sink.h> +#include <e-util/e-alert.h> +#include <e-util/e-attachment-bar.h> +#include <e-util/e-attachment-button.h> +#include <e-util/e-attachment-dialog.h> +#include <e-util/e-attachment-handler-image.h> +#include <e-util/e-attachment-handler-sendto.h> +#include <e-util/e-attachment-handler.h> +#include <e-util/e-attachment-icon-view.h> +#include <e-util/e-attachment-paned.h> +#include <e-util/e-attachment-store.h> +#include <e-util/e-attachment-tree-view.h> +#include <e-util/e-attachment-view.h> +#include <e-util/e-attachment.h> +#include <e-util/e-auth-combo-box.h> +#include <e-util/e-autocomplete-selector.h> +#include <e-util/e-bit-array.h> +#include <e-util/e-book-source-config.h> +#include <e-util/e-buffer-tagger.h> +#include <e-util/e-cal-source-config.h> +#include <e-util/e-calendar-item.h> +#include <e-util/e-calendar.h> +#include <e-util/e-canvas-background.h> +#include <e-util/e-canvas-utils.h> +#include <e-util/e-canvas-vbox.h> +#include <e-util/e-canvas.h> +#include <e-util/e-categories-config.h> +#include <e-util/e-categories-dialog.h> +#include <e-util/e-categories-editor.h> +#include <e-util/e-categories-selector.h> +#include <e-util/e-category-completion.h> +#include <e-util/e-category-editor.h> +#include <e-util/e-cell-checkbox.h> +#include <e-util/e-cell-combo.h> +#include <e-util/e-cell-date-edit.h> +#include <e-util/e-cell-date.h> +#include <e-util/e-cell-hbox.h> +#include <e-util/e-cell-number.h> +#include <e-util/e-cell-percent.h> +#include <e-util/e-cell-pixbuf.h> +#include <e-util/e-cell-popup.h> +#include <e-util/e-cell-renderer-color.h> +#include <e-util/e-cell-size.h> +#include <e-util/e-cell-text.h> +#include <e-util/e-cell-toggle.h> +#include <e-util/e-cell-tree.h> +#include <e-util/e-cell-vbox.h> +#include <e-util/e-cell.h> +#include <e-util/e-charset-combo-box.h> +#include <e-util/e-charset.h> +#include <e-util/e-client-utils.h> +#include <e-util/e-config.h> +#include <e-util/e-contact-map-window.h> +#include <e-util/e-contact-map.h> +#include <e-util/e-contact-marker.h> +#include <e-util/e-contact-store.h> +#include <e-util/e-dateedit.h> +#include <e-util/e-datetime-format.h> +#include <e-util/e-destination-store.h> +#include <e-util/e-dialog-utils.h> +#include <e-util/e-dialog-widgets.h> +#include <e-util/e-event.h> +#include <e-util/e-file-request.h> +#include <e-util/e-file-utils.h> +#include <e-util/e-filter-code.h> +#include <e-util/e-filter-color.h> +#include <e-util/e-filter-datespec.h> +#include <e-util/e-filter-element.h> +#include <e-util/e-filter-file.h> +#include <e-util/e-filter-input.h> +#include <e-util/e-filter-int.h> +#include <e-util/e-filter-option.h> +#include <e-util/e-filter-part.h> +#include <e-util/e-filter-rule.h> +#include <e-util/e-focus-tracker.h> +#include <e-util/e-html-utils.h> +#include <e-util/e-icon-factory.h> +#include <e-util/e-image-chooser.h> +#include <e-util/e-import-assistant.h> +#include <e-util/e-import.h> +#include <e-util/e-interval-chooser.h> +#include <e-util/e-mail-identity-combo-box.h> +#include <e-util/e-mail-signature-combo-box.h> +#include <e-util/e-mail-signature-editor.h> +#include <e-util/e-mail-signature-manager.h> +#include <e-util/e-mail-signature-preview.h> +#include <e-util/e-mail-signature-script-dialog.h> +#include <e-util/e-mail-signature-tree-view.h> +#include <e-util/e-map.h> +#include <e-util/e-menu-tool-action.h> +#include <e-util/e-menu-tool-button.h> +#include <e-util/e-misc-utils.h> +#include <e-util/e-mktemp.h> +#include <e-util/e-name-selector-dialog.h> +#include <e-util/e-name-selector-entry.h> +#include <e-util/e-name-selector-list.h> +#include <e-util/e-name-selector-model.h> +#include <e-util/e-name-selector.h> +#include <e-util/e-online-button.h> +#include <e-util/e-paned.h> +#include <e-util/e-passwords.h> +#include <e-util/e-picture-gallery.h> +#include <e-util/e-plugin-ui.h> +#include <e-util/e-plugin.h> +#include <e-util/e-poolv.h> +#include <e-util/e-popup-action.h> +#include <e-util/e-popup-menu.h> +#include <e-util/e-port-entry.h> +#include <e-util/e-preferences-window.h> +#include <e-util/e-preview-pane.h> +#include <e-util/e-print.h> +#include <e-util/e-printable.h> +#include <e-util/e-reflow-model.h> +#include <e-util/e-reflow.h> +#include <e-util/e-rule-context.h> +#include <e-util/e-rule-editor.h> +#include <e-util/e-search-bar.h> +#include <e-util/e-selectable.h> +#include <e-util/e-selection-model-array.h> +#include <e-util/e-selection-model-simple.h> +#include <e-util/e-selection-model.h> +#include <e-util/e-selection.h> +#include <e-util/e-send-options.h> +#include <e-util/e-sorter-array.h> +#include <e-util/e-sorter.h> +#include <e-util/e-source-combo-box.h> +#include <e-util/e-source-config-backend.h> +#include <e-util/e-source-config-dialog.h> +#include <e-util/e-source-config.h> +#include <e-util/e-source-selector-dialog.h> +#include <e-util/e-source-selector.h> +#include <e-util/e-source-util.h> +#include <e-util/e-spell-entry.h> +#include <e-util/e-stock-request.h> +#include <e-util/e-table-click-to-add.h> +#include <e-util/e-table-col-dnd.h> +#include <e-util/e-table-col.h> +#include <e-util/e-table-column-specification.h> +#include <e-util/e-table-config.h> +#include <e-util/e-table-defines.h> +#include <e-util/e-table-extras.h> +#include <e-util/e-table-field-chooser-dialog.h> +#include <e-util/e-table-field-chooser-item.h> +#include <e-util/e-table-field-chooser.h> +#include <e-util/e-table-group-container.h> +#include <e-util/e-table-group-leaf.h> +#include <e-util/e-table-group.h> +#include <e-util/e-table-header-item.h> +#include <e-util/e-table-header-utils.h> +#include <e-util/e-table-header.h> +#include <e-util/e-table-item.h> +#include <e-util/e-table-memory-callbacks.h> +#include <e-util/e-table-memory-store.h> +#include <e-util/e-table-memory.h> +#include <e-util/e-table-model.h> +#include <e-util/e-table-one.h> +#include <e-util/e-table-search.h> +#include <e-util/e-table-selection-model.h> +#include <e-util/e-table-sort-info.h> +#include <e-util/e-table-sorted-variable.h> +#include <e-util/e-table-sorted.h> +#include <e-util/e-table-sorter.h> +#include <e-util/e-table-sorting-utils.h> +#include <e-util/e-table-specification.h> +#include <e-util/e-table-state.h> +#include <e-util/e-table-subset-variable.h> +#include <e-util/e-table-subset.h> +#include <e-util/e-table-utils.h> +#include <e-util/e-table-without.h> +#include <e-util/e-table.h> +#include <e-util/e-text-event-processor-emacs-like.h> +#include <e-util/e-text-event-processor-types.h> +#include <e-util/e-text-event-processor.h> +#include <e-util/e-text-model-repos.h> +#include <e-util/e-text-model.h> +#include <e-util/e-text.h> +#include <e-util/e-timezone-dialog.h> +#include <e-util/e-tree-memory-callbacks.h> +#include <e-util/e-tree-memory.h> +#include <e-util/e-tree-model-generator.h> +#include <e-util/e-tree-model.h> +#include <e-util/e-tree-selection-model.h> +#include <e-util/e-tree-sorted.h> +#include <e-util/e-tree-table-adapter.h> +#include <e-util/e-tree.h> +#include <e-util/e-ui-manager.h> +#include <e-util/e-unicode.h> +#include <e-util/e-url-entry.h> #include <e-util/e-util-enums.h> - -G_BEGIN_DECLS - -typedef enum { - E_FOCUS_NONE, - E_FOCUS_CURRENT, - E_FOCUS_START, - E_FOCUS_END -} EFocus; - -typedef enum { - E_RESTORE_WINDOW_SIZE = 1 << 0, - E_RESTORE_WINDOW_POSITION = 1 << 1 -} ERestoreWindowFlags; - -const gchar * e_get_accels_filename (void); -void e_show_uri (GtkWindow *parent, - const gchar *uri); -void e_display_help (GtkWindow *parent, - const gchar *link_id); -void e_restore_window (GtkWindow *window, - const gchar *settings_path, - ERestoreWindowFlags flags); -GtkAction * e_lookup_action (GtkUIManager *ui_manager, - const gchar *action_name); -GtkActionGroup *e_lookup_action_group (GtkUIManager *ui_manager, - const gchar *group_name); -gint e_action_compare_by_label (GtkAction *action1, - GtkAction *action2); -void e_action_group_remove_all_actions - (GtkActionGroup *action_group); -GtkRadioAction *e_radio_action_get_current_action - (GtkRadioAction *radio_action); -void e_action_group_add_actions_localized - (GtkActionGroup *action_group, - const gchar *translation_domain, - const GtkActionEntry *entries, - guint n_entries, - gpointer user_data); -void e_categories_add_change_hook (GHookFunc func, - gpointer object); - -gchar * e_str_without_underscores (const gchar *string); -gint e_str_compare (gconstpointer x, - gconstpointer y); -gint e_str_case_compare (gconstpointer x, - gconstpointer y); -gint e_collate_compare (gconstpointer x, - gconstpointer y); -gint e_int_compare (gconstpointer x, - gconstpointer y); -guint32 e_color_to_value (GdkColor *color); - -guint32 e_rgba_to_value (GdkRGBA *rgba); - -/* This only makes a filename safe for usage as a filename. - * It still may have shell meta-characters in it. */ -gchar * e_format_number (gint number); - -typedef gint (*ESortCompareFunc) (gconstpointer first, - gconstpointer second, - gpointer closure); - -void e_bsearch (gconstpointer key, - gconstpointer base, - gsize nmemb, - gsize size, - ESortCompareFunc compare, - gpointer closure, - gsize *start, - gsize *end); - -gsize e_strftime_fix_am_pm (gchar *str, - gsize max, - const gchar *fmt, - const struct tm *tm); -gsize e_utf8_strftime_fix_am_pm (gchar *str, - gsize max, - const gchar *fmt, - const struct tm *tm); -const gchar * e_get_month_name (GDateMonth month, - gboolean abbreviated); -const gchar * e_get_weekday_name (GDateWeekday weekday, - gboolean abbreviated); - -gboolean e_file_lock_create (void); -void e_file_lock_destroy (void); -gboolean e_file_lock_exists (void); - -gchar * e_util_guess_mime_type (const gchar *filename, - gboolean localfile); - -GSList * e_util_get_category_filter_options - (void); -GList * e_util_get_searchable_categories (void); - -/* Useful GBinding transform functions */ -gboolean e_binding_transform_color_to_string - (GBinding *binding, - const GValue *source_value, - GValue *target_value, - gpointer not_used); -gboolean e_binding_transform_string_to_color - (GBinding *binding, - const GValue *source_value, - GValue *target_value, - gpointer not_used); -gboolean e_binding_transform_source_to_uid - (GBinding *binding, - const GValue *source_value, - GValue *target_value, - ESourceRegistry *registry); -gboolean e_binding_transform_uid_to_source - (GBinding *binding, - const GValue *source_value, - GValue *target_value, - ESourceRegistry *registry); - -G_END_DECLS +#include <e-util/e-web-view-gtkhtml.h> +#include <e-util/e-web-view-preview.h> +#include <e-util/e-web-view.h> +#include <e-util/e-xml-utils.h> +#include <e-util/ea-cell-table.h> +#include <e-util/ea-factory.h> +#include <e-util/gal-define-views-dialog.h> +#include <e-util/gal-define-views-model.h> +#include <e-util/gal-view-collection.h> +#include <e-util/gal-view-etable.h> +#include <e-util/gal-view-factory-etable.h> +#include <e-util/gal-view-factory.h> +#include <e-util/gal-view-instance-save-as-dialog.h> +#include <e-util/gal-view-instance.h> +#include <e-util/gal-view-new-dialog.h> +#include <e-util/gal-view.h> + +#undef __E_UTIL_H_INSIDE__ #endif /* E_UTIL_H */ + |