Remove private header files that are only used by one .c file.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2824 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas 2000-09-11 08:11:52 +00:00
parent 78f978cc54
commit 2104ee86ac
8 changed files with 95 additions and 236 deletions

View File

@ -41,7 +41,6 @@ gnomeapp_DATA = gnucash.desktop
noinst_HEADERS = \
account-tree.h \
account-treeP.h \
cursors.h \
dialog-account.h \
dialog-account-picker.h \
@ -66,11 +65,9 @@ noinst_HEADERS = \
print-session.h \
query-user.h \
reconcile-list.h \
reconcile-listP.h \
window-help.h \
window-html.h \
window-main.h \
window-mainP.h \
window-reconcile.h \
window-register.h \
window-report.h

View File

@ -125,7 +125,7 @@ gnomeappdir = ${datadir}/gnome/apps/Applications
gnomeapp_DATA = gnucash.desktop
noinst_HEADERS = account-tree.h account-treeP.h cursors.h dialog-account.h dialog-account-picker.h dialog-budget.h dialog-fincalc.h dialog-find-transactions.h dialog-options.h dialog-print-check.h dialog-qif-import.h dialog-totd.h dialog-transfer.h dialog-utils.h extensions.h glade-cb-gnc-dialogs.h glade-gnc-dialogs.h glade-support-gnc-dialogs.h gnc-currency-edit.h gnc-datedelta.h gnc-dateedit.h gnome-top-level.h gtkselect.h print-session.h query-user.h reconcile-list.h reconcile-listP.h window-help.h window-html.h window-main.h window-mainP.h window-reconcile.h window-register.h window-report.h
noinst_HEADERS = account-tree.h cursors.h dialog-account.h dialog-account-picker.h dialog-budget.h dialog-fincalc.h dialog-find-transactions.h dialog-options.h dialog-print-check.h dialog-qif-import.h dialog-totd.h dialog-transfer.h dialog-utils.h extensions.h glade-cb-gnc-dialogs.h glade-gnc-dialogs.h glade-support-gnc-dialogs.h gnc-currency-edit.h gnc-datedelta.h gnc-dateedit.h gnome-top-level.h gtkselect.h print-session.h query-user.h reconcile-list.h window-help.h window-html.h window-main.h window-reconcile.h window-register.h window-report.h
EXTRA_DIST = .cvsignore gnc-dialogs.glade gnucash.desktop

View File

@ -34,15 +34,51 @@
#include "FileDialog.h"
#include "window-main.h"
#include "dialog-utils.h"
#include "account-treeP.h"
#include "account-tree.h"
#include "util.h"
/* Signal codes */
enum
{
SELECT_ACCOUNT,
UNSELECT_ACCOUNT,
ACTIVATE_ACCOUNT,
LAST_SIGNAL
};
/** Static Globals ****************************************************/
static GtkCTreeClass *parent_class = NULL;
static guint account_tree_signals[LAST_SIGNAL];
static GSList *account_trees = NULL;
/** Static function declarations **************************************/
static void gnc_account_tree_init(GNCAccountTree *tree);
static void gnc_account_tree_class_init(GNCAccountTreeClass *klass);
static gint gnc_account_tree_key_press(GtkWidget *widget, GdkEventKey *event);
static gint gnc_account_tree_button_press(GtkWidget *widget,
GdkEventButton *event);
static void gnc_account_tree_select_row(GtkCTree *ctree,
GtkCTreeNode *row,
gint column);
static void gnc_account_tree_unselect_row(GtkCTree *ctree,
GtkCTreeNode *row,
gint column);
static GtkCTreeNode * gnc_account_tree_insert_row(GNCAccountTree *tree,
GtkCTreeNode *parent,
GtkCTreeNode *sibling,
Account *acc);
static void gnc_account_tree_fill(GNCAccountTree *tree,
GHashTable *expanded_accounts,
GtkCTreeNode *parent,
AccountGroup *accts);
static void gnc_account_tree_set_view_info_real(GNCAccountTree *tree);
static void gnc_account_tree_update_column_visibility (GNCAccountTree *tree);
static void gnc_account_tree_destroy(GtkObject *object);
GtkType
gnc_account_tree_get_type()
{

View File

@ -1,73 +0,0 @@
/********************************************************************\
* account-treeP.h -- private GNOME account tree functions *
* Copyright (C) 1998,1999 Linas Vepstas *
* Copyright (C) 2000 Dave Peticolas <peticola@cs.ucdavis.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, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 59 Temple Place - Suite 330 Fax: +1-617-542-2652 *
* Boston, MA 02111-1307, USA gnu@gnu.org *
\********************************************************************/
#ifndef __ACCOUNT_TREEP_H__
#define __ACCOUNT_TREEP_H__
#include "account-tree.h"
enum
{
SELECT_ACCOUNT,
UNSELECT_ACCOUNT,
ACTIVATE_ACCOUNT,
LAST_SIGNAL
};
/** PROTOTYPES ******************************************************/
static void gnc_account_tree_init(GNCAccountTree *tree);
static void gnc_account_tree_class_init(GNCAccountTreeClass *klass);
static gint gnc_account_tree_key_press(GtkWidget *widget, GdkEventKey *event);
static gint gnc_account_tree_button_press(GtkWidget *widget,
GdkEventButton *event);
static void gnc_account_tree_select_row(GtkCTree *ctree,
GtkCTreeNode *row,
gint column);
static void gnc_account_tree_unselect_row(GtkCTree *ctree,
GtkCTreeNode *row,
gint column);
static GtkCTreeNode * gnc_account_tree_insert_row(GNCAccountTree *tree,
GtkCTreeNode *parent,
GtkCTreeNode *sibling,
Account *acc);
static void gnc_account_tree_fill(GNCAccountTree *tree,
GHashTable *expanded_accounts,
GtkCTreeNode *parent,
AccountGroup *accts);
static void gnc_account_tree_set_view_info_real(GNCAccountTree *tree);
static void gnc_account_tree_update_column_visibility (GNCAccountTree *tree);
static void gnc_account_tree_destroy(GtkObject *object);
#endif

View File

@ -27,7 +27,7 @@
#include <gnome.h>
#include "gnucash.h"
#include "reconcile-listP.h"
#include "reconcile-list.h"
#include "dialog-utils.h"
#include "FileDialog.h"
#include "messages.h"
@ -35,10 +35,30 @@
#include "util.h"
/* Signal codes */
enum
{
TOGGLE_RECONCILED,
LAST_SIGNAL
};
/** Static Globals ****************************************************/
static GtkCListClass *parent_class = NULL;
static guint reconcile_list_signals[LAST_SIGNAL] = {0};
/** Static function declarations **************************************/
static void gnc_reconcile_list_init(GNCReconcileList *list);
static void gnc_reconcile_list_class_init(GNCReconcileListClass *klass);
static void gnc_reconcile_list_select_row(GtkCList *clist, gint row,
gint column, GdkEvent *event);
static void gnc_reconcile_list_unselect_row(GtkCList *clist, gint row,
gint column, GdkEvent *event);
static void gnc_reconcile_list_destroy(GtkObject *object);
static void gnc_reconcile_list_fill(GNCReconcileList *list);
GtkType
gnc_reconcile_list_get_type()
{

View File

@ -1,51 +0,0 @@
/********************************************************************\
* reconcile-listP.h -- private GNOME reconcile list functions *
* Copyright (C) 1998,1999 Linas Vepstas *
* *
* 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, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 59 Temple Place - Suite 330 Fax: +1-617-542-2652 *
* Boston, MA 02111-1307, USA gnu@gnu.org *
\********************************************************************/
#ifndef __RECONCILE_LISTP_H__
#define __RECONCILE_LISTP_H__
#include "reconcile-list.h"
enum
{
TOGGLE_RECONCILED,
LAST_SIGNAL
};
static void gnc_reconcile_list_init(GNCReconcileList *list);
static void gnc_reconcile_list_class_init(GNCReconcileListClass *klass);
static void gnc_reconcile_list_select_row(GtkCList *clist, gint row,
gint column, GdkEvent *event);
static void gnc_reconcile_list_unselect_row(GtkCList *clist, gint row,
gint column, GdkEvent *event);
static void gnc_reconcile_list_destroy(GtkObject *object);
static void gnc_reconcile_list_fill(GNCReconcileList *list);
#endif

View File

@ -43,7 +43,6 @@
#include "RegWindow.h"
#include "Refresh.h"
#include "window-main.h"
#include "window-mainP.h"
#include "window-reconcile.h"
#include "window-register.h"
#include "window-help.h"
@ -55,13 +54,27 @@
#include "dialog-find-transactions.h"
#include "dialog-totd.h"
#include "file-history.h"
#include "gtkselect.h"
#include "EuroUtils.h"
#include "Scrub.h"
#include "util.h"
#include "gnc.h"
#include "gtkselect.h"
/* Main Window information structure */
typedef struct _GNCMainInfo GNCMainInfo;
struct _GNCMainInfo
{
GtkWidget *account_tree;
GtkWidget *totals_combo;
GList *totals_list;
SCM main_window_change_callback_id;
SCM euro_change_callback_id;
SCM toolbar_change_callback_id;
GSList *account_sensitives;
};
/* This static indicates the debugging module that this .o belongs to. */
static short module = MOD_GUI;
@ -76,14 +89,16 @@ enum {
FMB_QUIT,
};
/*
* An accumulator for a given currency.
/** Static function declarations ***************************************/
static GNCMainInfo * gnc_get_main_info();
/* An accumulator for a given currency.
*
* This is used during the update to the status bar to contain the
* accumulation for a single currency. These are placed in a GList and
* kept around for the duration of the calculation. There may, in fact
* be better ways to do this, but none occurred.
*/
* be better ways to do this, but none occurred. */
struct _GNCCurrencyAcc {
const char *currency;
double assets;
@ -91,13 +106,11 @@ struct _GNCCurrencyAcc {
};
typedef struct _GNCCurrencyAcc GNCCurrencyAcc;
/*
* An item to appear in the selector box in the status bar.
/* An item to appear in the selector box in the status bar.
*
* This is maintained for the duration, where there is one per currency,
* plus (eventually) one for the default currency accumulation (like the
* EURO).
*/
* This is maintained for the duration, where there is one per
* currency, plus (eventually) one for the default currency
* accumulation (like the EURO). */
struct _GNCCurrencyItem {
const char *currency;
GtkWidget *listitem;
@ -107,13 +120,11 @@ struct _GNCCurrencyItem {
};
typedef struct _GNCCurrencyItem GNCCurrencyItem;
/*
* Build a single currency item.
/* Build a single currency item.
*
* This function handles the building of a single currency item for the
* selector. It looks like the old code in the update function, but now
* only handles a single currency.
*/
* This function handles the building of a single currency item for
* the selector. It looks like the old code in the update function,
* but now only handles a single currency. */
static GNCCurrencyItem *
gnc_ui_build_currency_item(const char *currency)
{
@ -177,13 +188,10 @@ gnc_ui_build_currency_item(const char *currency)
}
/*
* Get a currency accumulator.
/* Get a currency accumulator.
*
* This will search the given list, and if no accumulator is found, wil
* allocate a fresh one. This may cause problems with currencies that have
* the same name... let the buyer beware.
*/
* This will search the given list, and if no accumulator is found,
* will allocate a fresh one. */
static GNCCurrencyAcc *
gnc_ui_get_currency_accumulator(GList **list, const char *currency)
{
@ -207,15 +215,13 @@ gnc_ui_get_currency_accumulator(GList **list, const char *currency)
return found;
}
/*
* Get a currency item.
/* Get a currency item.
*
* This will search the given list, and if no accumulator is found, will
* create a fresh one.
*
* It looks just like the function above, with some extra stuff to get the
* item into the list.
*/
* It looks just like the function above, with some extra stuff to get
* the item into the list. */
static GNCCurrencyItem *
gnc_ui_get_currency_item(GList **list, const char *currency, GtkWidget *holder)
{

View File

@ -1,76 +0,0 @@
/*******************************************************************\
* window-main.h -- private GNOME main window functions *
* Copyright (C) 1997 Robin D. Clark *
* *
* 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, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 59 Temple Place - Suite 330 Fax: +1-617-542-2652 *
* Boston, MA 02111-1307, USA gnu@gnu.org *
\********************************************************************/
#ifndef __WINDOW_MAINP_H__
#define __WINDOW_MAINP_H__
typedef struct _GNCMainInfo GNCMainInfo;
struct _GNCMainInfo
{
GtkWidget *account_tree;
GtkWidget *totals_combo;
GList *totals_list;
SCM main_window_change_callback_id;
SCM euro_change_callback_id;
SCM toolbar_change_callback_id;
GSList *account_sensitives;
};
/** PROTOTYPES ******************************************************/
static void gnc_ui_refresh_statusbar(void);
static void gnc_ui_exit_cb(GtkWidget *widget, gpointer data);
static void gnc_ui_about_cb(GtkWidget *widget, gpointer data);
static void gnc_ui_help_cb(GtkWidget *widget, gpointer data);
static void gnc_ui_add_account(GtkWidget *widget, gpointer data);
static void gnc_ui_delete_account_cb(GtkWidget *widget, gpointer data);
static void gnc_ui_mainWindow_toolbar_open(GtkWidget *widget, gpointer data);
static void gnc_ui_mainWindow_toolbar_open_subs(GtkWidget *widget,
gpointer data);
static void gnc_ui_mainWindow_toolbar_edit(GtkWidget *widget, gpointer data);
static void gnc_ui_mainWindow_reconcile(GtkWidget *widget, gpointer data);
static void gnc_ui_mainWindow_transfer(GtkWidget *widget, gpointer data);
static void gnc_ui_mainWindow_adjust_balance(GtkWidget *widget, gpointer data);
static void gnc_ui_mainWindow_scrub(GtkWidget *widget, gpointer data);
static void gnc_ui_mainWindow_scrub_sub(GtkWidget *widget, gpointer data);
static void gnc_ui_mainWindow_scrub_all(GtkWidget *widget, gpointer data);
static void gnc_ui_options_cb(GtkWidget *widget, gpointer data);
static void gnc_ui_filemenu_cb(GtkWidget *widget, gpointer menuItem);
static GNCMainInfo * gnc_get_main_info();
static gboolean gnc_ui_mainWindow_delete_cb(GtkWidget *widget,
GdkEvent *event,
gpointer user_data);
static gboolean gnc_ui_mainWindow_destroy_event_cb(GtkWidget *widget,
GdkEvent *event,
gpointer user_data);
static void gnc_ui_mainWindow_destroy_cb(GtkObject *object,
gpointer user_data);
#endif