r20198 - gnucash/trunk/src - Move gnc-ui.h file from top-level to gnome-utils. It is gtk-dependent anyway, so it is moved to where it belongs now.
Christian Stimming
cstim at code.gnucash.org
Sat Jan 29 16:31:27 EST 2011
Author: cstim
Date: 2011-01-29 16:31:26 -0500 (Sat, 29 Jan 2011)
New Revision: 20198
Trac: http://svn.gnucash.org/trac/changeset/20198
Added:
gnucash/trunk/src/gnome-utils/gnc-ui.h
Removed:
gnucash/trunk/src/gnc-ui.h
Modified:
gnucash/trunk/src/Makefile.am
gnucash/trunk/src/gnome-utils/Makefile.am
Log:
Move gnc-ui.h file from top-level to gnome-utils. It is gtk-dependent anyway, so it is moved to where it belongs now.
Modified: gnucash/trunk/src/Makefile.am
===================================================================
--- gnucash/trunk/src/Makefile.am 2011-01-29 21:31:16 UTC (rev 20197)
+++ gnucash/trunk/src/Makefile.am 2011-01-29 21:31:26 UTC (rev 20198)
@@ -37,8 +37,7 @@
endif
noinst_HEADERS = \
- swig-runtime.h \
- gnc-ui.h
+ swig-runtime.h
bin_SCRIPTS = gnc-test-env
Deleted: gnucash/trunk/src/gnc-ui.h
===================================================================
--- gnucash/trunk/src/gnc-ui.h 2011-01-29 21:31:16 UTC (rev 20197)
+++ gnucash/trunk/src/gnc-ui.h 2011-01-29 21:31:26 UTC (rev 20198)
@@ -1,147 +0,0 @@
-/********************************************************************\
- * gnc-ui.h - High level UI functions for GnuCash *
- * Copyright (C) 1997 Robin D. Clark *
- * Copyright (C) 1999, 2000 Rob Browning <rlb at cs.utexas.edu> *
- * *
- * This program is free software; you can redistribute it and/or *
- * modify it under the terms of the GNU General Public License as *
- * published by the Free Software Foundation; either version 2 of *
- * the License, or (at your option) any later version. *
- * *
- * This program is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
- * GNU General Public License for more details. *
- * *
- * You should have received a copy of the GNU General Public License*
- * along with this program; if not, write to the Free Software *
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
-\********************************************************************/
-
-
-/** @addtogroup GUI
- @{ */
-
-/** @defgroup Dialogs Dialogs */
-/** @defgroup Druids Druids */
-
-/** @} */
-
-
-#ifndef GNC_UI_H
-#define GNC_UI_H
-
-#include <glib.h>
-
-#include "Account.h"
-#include "gnc-pricedb.h"
-#include "guile-mappings.h"
-#include <gtk/gtk.h> /* For GtkWidget */
-
-
-/** Help Files ******************************************************/
-#ifdef G_OS_WIN32
-# define HF_GUIDE "gnucash-guide.chm"
-# define HF_HELP "gnucash-help.chm"
-#elif defined MAC_INTEGRATION
-# define HF_GUIDE "Gnucash Guide"
-# define HF_HELP "Gnucash Help"
-#else
-# define HF_GUIDE "gnucash-guide.xml"
-# define HF_HELP "gnucash-help.xml"
-#endif
-
-/** Links in the Help Files *****************************************/
-#define HL_USAGE "usage"
-#define HL_ACC "acct-create"
-#define HL_ACCEDIT "acct-edit"
-#define HL_COMMODITY "tool-commodity"
-#define HL_FIND_TRANSACTIONS "tool-find"
-#define HL_GLOBPREFS "set-prefs"
-#define HL_PRINTCHECK "print-check"
-#define HL_RECNWIN "acct-reconcile"
-#define HL_SXEDITOR "tool-sched"
-#define HL_GCONF "gconf"
-
-/* GTK Windows - Common Response Codes */
-
-#define GNC_RESPONSE_NEW 1
-#define GNC_RESPONSE_DELETE 2
-#define GNC_RESPONSE_EDIT 3
-
-/* Dialog windows ***************************************************/
-
-extern gboolean
-gnc_verify_dialog(GtkWidget *parent,
- gboolean yes_is_default,
- const char *format, ...) G_GNUC_PRINTF (3, 4);
-
-extern gint
-gnc_ok_cancel_dialog(GtkWidget *parent,
- gint default_result,
- const char *format, ...) G_GNUC_PRINTF (3, 4);
-
-extern void
-gnc_warning_dialog(GtkWidget *parent,
- const char *format, ...) G_GNUC_PRINTF (2, 3);
-
-extern void
-gnc_info_dialog(GtkWidget *parent,
- const char *format, ...) G_GNUC_PRINTF (2, 3);
-
-extern void
-gnc_error_dialog(GtkWidget *parent,
- const char *format, ...) G_GNUC_PRINTF (2, 3);
-
-
-extern void
-gnc_gnome_help (const char *file_name, const char *target_link);
-
-int gnc_choose_radio_option_dialog (GtkWidget *parent,
- const char *title,
- const char *msg,
- const char *button_name,
- int default_value,
- GList *radio_list);
-
-gboolean gnc_dup_trans_dialog (GtkWidget *parent, time_t *date_p,
- const char *num, char **out_num);
-void gnc_tax_info_dialog (GtkWidget *parent);
-void gnc_stock_split_dialog (GtkWidget *parent, Account * initial);
-
-typedef enum
-{
- GNC_PRICE_EDIT,
- GNC_PRICE_NEW,
-} GNCPriceEditType;
-
-void gnc_price_edit_dialog (GtkWidget *parent, QofSession *session,
- GNCPrice *price, GNCPriceEditType type);
-GNCPrice* gnc_price_edit_by_guid (GtkWidget * parent, const GncGUID * guid);
-void gnc_prices_dialog (GtkWidget *parent);
-void gnc_commodities_dialog (GtkWidget *parent);
-
-/* Open a dialog asking for username and password. The heading and
- * either 'initial_*' arguments may be NULL. If the dialog returns
- * TRUE, the user pressed OK and the entered strings are stored in the
- * output variables. They should be g_freed when no longer needed. If
- * the dialog returns FALSE, the user pressed CANCEL and NULL was
- * stored in username and password. */
-gboolean gnc_get_username_password (GtkWidget *parent,
- const char *heading,
- const char *initial_username,
- const char *initial_password,
- char **username,
- char **password);
-
-/* Managing the GUI Windows *****************************************/
-
-GtkWidget *gnc_ui_get_toplevel (void);
-
-/* Changing the GUI Cursor ******************************************/
-
-void gnc_set_busy_cursor(GtkWidget *w, gboolean update_now);
-void gnc_unset_busy_cursor(GtkWidget *w);
-
-
-#endif
Modified: gnucash/trunk/src/gnome-utils/Makefile.am
===================================================================
--- gnucash/trunk/src/gnome-utils/Makefile.am 2011-01-29 21:31:16 UTC (rev 20197)
+++ gnucash/trunk/src/gnome-utils/Makefile.am 2011-01-29 21:31:26 UTC (rev 20198)
@@ -163,6 +163,7 @@
gnc-tree-view-price.h \
gnc-tree-view-sx-list.h \
gnc-tree-view.h \
+ gnc-ui.h \
gnc-window.h \
misc-gnome-utils.h \
print-session.h \
Copied: gnucash/trunk/src/gnome-utils/gnc-ui.h (from rev 20197, gnucash/trunk/src/gnc-ui.h)
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-ui.h (rev 0)
+++ gnucash/trunk/src/gnome-utils/gnc-ui.h 2011-01-29 21:31:26 UTC (rev 20198)
@@ -0,0 +1,147 @@
+/********************************************************************\
+ * gnc-ui.h - High level UI functions for GnuCash *
+ * Copyright (C) 1997 Robin D. Clark *
+ * Copyright (C) 1999, 2000 Rob Browning <rlb at cs.utexas.edu> *
+ * *
+ * This program is free software; you can redistribute it and/or *
+ * modify it under the terms of the GNU General Public License as *
+ * published by the Free Software Foundation; either version 2 of *
+ * the License, or (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License*
+ * along with this program; if not, write to the Free Software *
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
+\********************************************************************/
+
+
+/** @addtogroup GUI
+ @{ */
+
+/** @defgroup Dialogs Dialogs */
+/** @defgroup Druids Druids */
+
+/** @} */
+
+
+#ifndef GNC_UI_H
+#define GNC_UI_H
+
+#include <glib.h>
+
+#include "Account.h"
+#include "gnc-pricedb.h"
+#include "guile-mappings.h"
+#include <gtk/gtk.h> /* For GtkWidget */
+
+
+/** Help Files ******************************************************/
+#ifdef G_OS_WIN32
+# define HF_GUIDE "gnucash-guide.chm"
+# define HF_HELP "gnucash-help.chm"
+#elif defined MAC_INTEGRATION
+# define HF_GUIDE "Gnucash Guide"
+# define HF_HELP "Gnucash Help"
+#else
+# define HF_GUIDE "gnucash-guide.xml"
+# define HF_HELP "gnucash-help.xml"
+#endif
+
+/** Links in the Help Files *****************************************/
+#define HL_USAGE "usage"
+#define HL_ACC "acct-create"
+#define HL_ACCEDIT "acct-edit"
+#define HL_COMMODITY "tool-commodity"
+#define HL_FIND_TRANSACTIONS "tool-find"
+#define HL_GLOBPREFS "set-prefs"
+#define HL_PRINTCHECK "print-check"
+#define HL_RECNWIN "acct-reconcile"
+#define HL_SXEDITOR "tool-sched"
+#define HL_GCONF "gconf"
+
+/* GTK Windows - Common Response Codes */
+
+#define GNC_RESPONSE_NEW 1
+#define GNC_RESPONSE_DELETE 2
+#define GNC_RESPONSE_EDIT 3
+
+/* Dialog windows ***************************************************/
+
+extern gboolean
+gnc_verify_dialog(GtkWidget *parent,
+ gboolean yes_is_default,
+ const char *format, ...) G_GNUC_PRINTF (3, 4);
+
+extern gint
+gnc_ok_cancel_dialog(GtkWidget *parent,
+ gint default_result,
+ const char *format, ...) G_GNUC_PRINTF (3, 4);
+
+extern void
+gnc_warning_dialog(GtkWidget *parent,
+ const char *format, ...) G_GNUC_PRINTF (2, 3);
+
+extern void
+gnc_info_dialog(GtkWidget *parent,
+ const char *format, ...) G_GNUC_PRINTF (2, 3);
+
+extern void
+gnc_error_dialog(GtkWidget *parent,
+ const char *format, ...) G_GNUC_PRINTF (2, 3);
+
+
+extern void
+gnc_gnome_help (const char *file_name, const char *target_link);
+
+int gnc_choose_radio_option_dialog (GtkWidget *parent,
+ const char *title,
+ const char *msg,
+ const char *button_name,
+ int default_value,
+ GList *radio_list);
+
+gboolean gnc_dup_trans_dialog (GtkWidget *parent, time_t *date_p,
+ const char *num, char **out_num);
+void gnc_tax_info_dialog (GtkWidget *parent);
+void gnc_stock_split_dialog (GtkWidget *parent, Account * initial);
+
+typedef enum
+{
+ GNC_PRICE_EDIT,
+ GNC_PRICE_NEW,
+} GNCPriceEditType;
+
+void gnc_price_edit_dialog (GtkWidget *parent, QofSession *session,
+ GNCPrice *price, GNCPriceEditType type);
+GNCPrice* gnc_price_edit_by_guid (GtkWidget * parent, const GncGUID * guid);
+void gnc_prices_dialog (GtkWidget *parent);
+void gnc_commodities_dialog (GtkWidget *parent);
+
+/* Open a dialog asking for username and password. The heading and
+ * either 'initial_*' arguments may be NULL. If the dialog returns
+ * TRUE, the user pressed OK and the entered strings are stored in the
+ * output variables. They should be g_freed when no longer needed. If
+ * the dialog returns FALSE, the user pressed CANCEL and NULL was
+ * stored in username and password. */
+gboolean gnc_get_username_password (GtkWidget *parent,
+ const char *heading,
+ const char *initial_username,
+ const char *initial_password,
+ char **username,
+ char **password);
+
+/* Managing the GUI Windows *****************************************/
+
+GtkWidget *gnc_ui_get_toplevel (void);
+
+/* Changing the GUI Cursor ******************************************/
+
+void gnc_set_busy_cursor(GtkWidget *w, gboolean update_now);
+void gnc_unset_busy_cursor(GtkWidget *w);
+
+
+#endif
Property changes on: gnucash/trunk/src/gnome-utils/gnc-ui.h
___________________________________________________________________
Added: svn:keywords
+ Author Date Id Revision
Added: svn:eol-style
+ LF
More information about the gnucash-changes
mailing list