mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
add action cell
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@449 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9d2db7c955
commit
df3aaada84
@ -3,6 +3,7 @@
|
||||
* register.c
|
||||
*/
|
||||
|
||||
#include "actioncell.h"
|
||||
#include "register.h"
|
||||
|
||||
#define DATE_CELL_C 0
|
||||
@ -11,6 +12,9 @@
|
||||
#define NUM_CELL_C 1
|
||||
#define NUM_CELL_R 0
|
||||
|
||||
#define ACTN_CELL_C 1
|
||||
#define ACTN_CELL_R 1
|
||||
|
||||
#define XFRM_CELL_C 2
|
||||
#define XFRM_CELL_R 0
|
||||
|
||||
@ -70,6 +74,11 @@ void xaccInitBasicRegister (BasicRegister *reg)
|
||||
xaccAddCell (header, cell, 0, NUM_CELL_C);
|
||||
xaccSetBasicCellValue (cell, "Num");
|
||||
|
||||
cell = xaccMallocTextCell();
|
||||
cell->width = 11;
|
||||
xaccAddCell (header, cell, XFRM_CELL_R, XFRM_CELL_C);
|
||||
xaccSetBasicCellValue (cell, "Transfer From");
|
||||
|
||||
cell = xaccMallocTextCell();
|
||||
cell->width = 29;
|
||||
xaccAddCell (header, cell, 0, DESC_CELL_C);
|
||||
@ -110,6 +119,11 @@ void xaccInitBasicRegister (BasicRegister *reg)
|
||||
xaccAddCell (curs, cell, NUM_CELL_R, NUM_CELL_C);
|
||||
reg->numCell = cell;
|
||||
|
||||
cell = (BasicCell *) xaccMallocActionCell();
|
||||
cell->width = 7;
|
||||
xaccAddCell (curs, cell, ACTN_CELL_R, ACTN_CELL_C);
|
||||
reg->actionCell = cell;
|
||||
|
||||
cell = xaccMallocTextCell();
|
||||
cell->width = 11;
|
||||
xaccAddCell (curs, cell, XFRM_CELL_R, XFRM_CELL_C);
|
||||
@ -150,7 +164,8 @@ void xaccInitBasicRegister (BasicRegister *reg)
|
||||
xaccNextRight (curs, XFRM_CELL_R, XFRM_CELL_C, DESC_CELL_R, DESC_CELL_C);
|
||||
xaccNextRight (curs, DESC_CELL_R, DESC_CELL_C, CRED_CELL_R, CRED_CELL_C);
|
||||
xaccNextRight (curs, CRED_CELL_R, CRED_CELL_C, DEBT_CELL_R, DEBT_CELL_C);
|
||||
xaccNextRight (curs, DEBT_CELL_R, DEBT_CELL_C, MEMO_CELL_R, MEMO_CELL_C);
|
||||
xaccNextRight (curs, DEBT_CELL_R, DEBT_CELL_C, ACTN_CELL_R, ACTN_CELL_C);
|
||||
xaccNextRight (curs, ACTN_CELL_R, ACTN_CELL_C, MEMO_CELL_R, MEMO_CELL_C);
|
||||
xaccNextRight (curs, MEMO_CELL_R, MEMO_CELL_C, -1, -1);
|
||||
|
||||
|
||||
|
@ -19,6 +19,7 @@ typedef struct _BasicRegister {
|
||||
CellBlock * header;
|
||||
BasicCell * dateCell;
|
||||
BasicCell * numCell;
|
||||
BasicCell * actionCell;
|
||||
BasicCell * xferCell;
|
||||
BasicCell * descCell;
|
||||
BasicCell * memoCell;
|
||||
|
Loading…
Reference in New Issue
Block a user