mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
documentation updates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@863 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
37a03ff59e
commit
7a2a40b677
@ -9,6 +9,16 @@
|
|||||||
*
|
*
|
||||||
* It provides the mechanism to handle tab-traversal.
|
* It provides the mechanism to handle tab-traversal.
|
||||||
*
|
*
|
||||||
|
* hack alert -- this file and the corresponding one
|
||||||
|
* for motif share some basic comon code.
|
||||||
|
* C++ style inheritance from a coon base class would
|
||||||
|
* solve this problem, but with just C, there is no easy
|
||||||
|
* way to accomplish this.
|
||||||
|
*
|
||||||
|
* In particular, the file table-motif.h contains a fair
|
||||||
|
* amount of documentation for these comon parts ...
|
||||||
|
*
|
||||||
|
*
|
||||||
* HISTORY:
|
* HISTORY:
|
||||||
* Copyright (c) 1998 Linas Vepstas
|
* Copyright (c) 1998 Linas Vepstas
|
||||||
* Copyright (c) 1998 Rob Browning <rlb@cs.utexas.edu>
|
* Copyright (c) 1998 Rob Browning <rlb@cs.utexas.edu>
|
||||||
@ -31,8 +41,8 @@
|
|||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#ifndef __XACC_TABLE_H__
|
#ifndef __XACC_TABLE_GTK_H__
|
||||||
#define __XACC_TABLE_H__
|
#define __XACC_TABLE_GTK_H__
|
||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include "basiccell.h"
|
#include "basiccell.h"
|
||||||
@ -138,7 +148,7 @@ Table * xaccMallocTable (void);
|
|||||||
void xaccInitTable (Table *);
|
void xaccInitTable (Table *);
|
||||||
void xaccDestroyTable (Table *);
|
void xaccDestroyTable (Table *);
|
||||||
|
|
||||||
/* rsize the table to the indicated dimensions.
|
/* resize the table to the indicated dimensions.
|
||||||
* calls the gui-independent xaccTableResize() routine,
|
* calls the gui-independent xaccTableResize() routine,
|
||||||
* and then does some gtk-specific cleanup.
|
* and then does some gtk-specific cleanup.
|
||||||
*/
|
*/
|
||||||
@ -152,5 +162,5 @@ void xaccNextTabGroup (Table *, GtkWidget*);
|
|||||||
/* redraw the table GUI */
|
/* redraw the table GUI */
|
||||||
void xaccRefreshTableGUI (Table *);
|
void xaccRefreshTableGUI (Table *);
|
||||||
|
|
||||||
#endif __XACC_TABLE_H__
|
#endif __XACC_TABLE_GTK_H__
|
||||||
/* ================== end of file ======================= */
|
/* ================== end of file ======================= */
|
||||||
|
@ -30,8 +30,8 @@
|
|||||||
\********************************************************************/
|
\********************************************************************/
|
||||||
|
|
||||||
|
|
||||||
#ifndef __XACC_TABLE_H__
|
#ifndef __XACC_TABLE_MOTIF_H__
|
||||||
#define __XACC_TABLE_H__
|
#define __XACC_TABLE_MOTIF_H__
|
||||||
|
|
||||||
#include <Xm/Xm.h>
|
#include <Xm/Xm.h>
|
||||||
#include "basiccell.h"
|
#include "basiccell.h"
|
||||||
@ -58,17 +58,26 @@ struct _Locator {
|
|||||||
|
|
||||||
typedef struct _Locator Locator;
|
typedef struct _Locator Locator;
|
||||||
|
|
||||||
typedef struct _Table Table;
|
|
||||||
|
|
||||||
struct _Table {
|
|
||||||
|
|
||||||
/* The number of "physical" rows/cols is the number
|
/* The number of "physical" rows/cols is the number
|
||||||
* of displayed one-line gui rows/cols in the table.
|
* of displayed one-line gui rows/cols in the table.
|
||||||
* The number of physical rows can differ from the
|
* The number of physical rows can differ from the
|
||||||
* number of "virtual" rows because each virtual row
|
* number of "virtual" rows because each virtual row
|
||||||
* consist of one or more physical rows.
|
* consist of one or more physical rows.
|
||||||
|
*
|
||||||
|
* Given the location of a physical row & col, the corresponding
|
||||||
|
* virtual row & col can be found by looking it up in the
|
||||||
|
* "locators" member. The locator will provide the matching
|
||||||
|
* virtual row and column.
|
||||||
|
*
|
||||||
|
* Given the location of the virtual row and column, the
|
||||||
|
* corresponding GUI handler, and any associated user data can
|
||||||
|
* be directly accessed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
typedef struct _Table Table;
|
||||||
|
|
||||||
|
struct _Table {
|
||||||
|
|
||||||
int num_phys_rows;
|
int num_phys_rows;
|
||||||
int num_phys_cols;
|
int num_phys_cols;
|
||||||
int num_virt_rows;
|
int num_virt_rows;
|
||||||
@ -127,9 +136,10 @@ Table * xaccMallocTable (void);
|
|||||||
void xaccInitTable (Table *);
|
void xaccInitTable (Table *);
|
||||||
void xaccDestroyTable (Table *);
|
void xaccDestroyTable (Table *);
|
||||||
|
|
||||||
/* rsize the table to the indicated dimensions.
|
/* The xaccSetTableSize() method will resize the table to the
|
||||||
* calls the gui-independent xaccTableResize() routine,
|
* indicated dimensions. This method calls the gui-independent
|
||||||
* and then does some motif-specific cleanup.
|
* xaccTableResize() routine, and then does some motif-specific
|
||||||
|
* cleanup.
|
||||||
*/
|
*/
|
||||||
void xaccSetTableSize (Table * table, int phys_rows, int phys_cols,
|
void xaccSetTableSize (Table * table, int phys_rows, int phys_cols,
|
||||||
int virt_rows, int virt_cols);
|
int virt_rows, int virt_cols);
|
||||||
@ -141,5 +151,5 @@ void xaccNextTabGroup (Table *, Widget);
|
|||||||
/* redraw the table GUI */
|
/* redraw the table GUI */
|
||||||
void xaccRefreshTableGUI (Table *);
|
void xaccRefreshTableGUI (Table *);
|
||||||
|
|
||||||
#endif __XACC_TABLE_H__
|
#endif __XACC_TABLE_MOTIF_H__
|
||||||
/* ================== end of file ======================= */
|
/* ================== end of file ======================= */
|
||||||
|
Loading…
Reference in New Issue
Block a user