Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

AccountsTable.h

Go to the documentation of this file.
00001 /** $Revision: 1.19 $
00002     Last updated: $Date: 2002/09/20 12:21:30 $
00003 
00004     Copyright (C) 2000-2001 Vlad Mereuta <dizzy@users.sourceforge.net>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00019 
00020 #ifndef __ACCOUNTS_TABLE_H__
00021 #define __ACCOUNTS_TABLE_H__
00022 
00023 #include <PalmOS.h>
00024 
00025 #include "Table.h"
00026 
00027 /// number of pixels per indentation depth in the account tree
00028 #define ACC_TBL_INDENT 5
00029 
00030 /**
00031     the table displays a list of accounts
00032 */
00033 class AccountsTable : public Table
00034 {
00035   public:
00036     static const Int16      name_col=0;
00037     static const Int16      balance_col=1;  
00038 
00039     /// initialises the table
00040     AccountsTable();
00041 
00042     ///loads data into the accounts table
00043     void loadData();
00044     
00045     ///inits the columns in the table
00046     void initColumns();
00047     
00048     ///overloads the method in Table
00049     Boolean recordIsValid(UInt16 id);
00050 
00051     ///draws an arrow which indicates the state of the branch
00052     static void drawArrow (void* table,Int16 row, Int16 column, RectangleType* bounds);
00053 
00054     ///draws a number into the specified pos of a table
00055     static void drawCurrency (void* table,Int16 row, Int16 column, RectangleType* bounds);
00056 
00057     ///draws text into the specified pos of a table
00058     static void drawText(void* table, Int16 row, Int16 column, RectangleType* bounds);
00059 };
00060 
00061 #endif

Generated on Thu Jan 16 23:11:12 2003 for FreeCoins by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002