author | drw <drw> | 2002-11-30 18:22:59 (UTC) |
---|---|---|
committer | drw <drw> | 2002-11-30 18:22:59 (UTC) |
commit | 197b74a6193151cca8b7f5f725fb19098cb76eb2 (patch) (unidiff) | |
tree | d2a3e190c3d404ba952c7645eb195de58e2b2d2e | |
parent | 6afb59b5950c8fdd24dc93ac4ee370a3c8437f9a (diff) | |
download | opie-197b74a6193151cca8b7f5f725fb19098cb76eb2.zip opie-197b74a6193151cca8b7f5f725fb19098cb76eb2.tar.gz opie-197b74a6193151cca8b7f5f725fb19098cb76eb2.tar.bz2 |
Made checkbook transaction list prettier & updated contact info
-rw-r--r-- | noncore/apps/checkbook/checkbook.cpp | 93 | ||||
-rw-r--r-- | noncore/apps/checkbook/checkbook.h | 24 | ||||
-rw-r--r-- | noncore/apps/checkbook/graph.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/graph.h | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/graphinfo.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/graphinfo.h | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/main.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/mainwindow.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/mainwindow.h | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/opie-checkbook.control | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/traninfo.cpp | 4 | ||||
-rw-r--r-- | noncore/apps/checkbook/traninfo.h | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/transaction.cpp | 2 | ||||
-rw-r--r-- | noncore/apps/checkbook/transaction.h | 2 |
14 files changed, 114 insertions, 29 deletions
diff --git a/noncore/apps/checkbook/checkbook.cpp b/noncore/apps/checkbook/checkbook.cpp index ab25516..09b0b46 100644 --- a/noncore/apps/checkbook/checkbook.cpp +++ b/noncore/apps/checkbook/checkbook.cpp | |||
@@ -1,69 +1,69 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #include "checkbook.h" | 29 | #include "checkbook.h" |
30 | #include "transaction.h" | 30 | #include "transaction.h" |
31 | #include "graph.h" | 31 | #include "graph.h" |
32 | #include "graphinfo.h" | 32 | #include "graphinfo.h" |
33 | 33 | ||
34 | #include <opie/otabwidget.h> | 34 | #include <opie/otabwidget.h> |
35 | #include <qpe/config.h> | 35 | #include <qpe/config.h> |
36 | #include <qpe/qpeapplication.h> | 36 | #include <qpe/qpeapplication.h> |
37 | #include <qpe/qpemessagebox.h> | 37 | #include <qpe/qpemessagebox.h> |
38 | #include <qpe/resource.h> | 38 | #include <qpe/resource.h> |
39 | 39 | ||
40 | #include <qcombobox.h> | 40 | #include <qcombobox.h> |
41 | #include <qfile.h> | 41 | #include <qfile.h> |
42 | #include <qfontmetrics.h> | ||
42 | #include <qlabel.h> | 43 | #include <qlabel.h> |
43 | #include <qlayout.h> | 44 | #include <qlayout.h> |
44 | #include <qlineedit.h> | 45 | #include <qlineedit.h> |
45 | #include <qlistview.h> | ||
46 | #include <qmultilineedit.h> | 46 | #include <qmultilineedit.h> |
47 | #include <qpushbutton.h> | 47 | #include <qpushbutton.h> |
48 | #include <qwhatsthis.h> | 48 | #include <qwhatsthis.h> |
49 | #include <qwidget.h> | 49 | #include <qwidget.h> |
50 | 50 | ||
51 | Checkbook::Checkbook( QWidget *parent, const QString &n, const QString &fd, char symbol ) | 51 | Checkbook::Checkbook( QWidget *parent, const QString &n, const QString &fd, char symbol ) |
52 | : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) | 52 | : QDialog( parent, 0, TRUE, WStyle_ContextHelp ) |
53 | { | 53 | { |
54 | name = n; | 54 | name = n; |
55 | filename = fd; | 55 | filename = fd; |
56 | filename.append( name ); | 56 | filename.append( name ); |
57 | filename.append( ".qcb" ); | 57 | filename.append( ".qcb" ); |
58 | filedir = fd; | 58 | filedir = fd; |
59 | currencySymbol = symbol; | 59 | currencySymbol = symbol; |
60 | currBalance = 0.0; | 60 | currBalance = 0.0; |
61 | 61 | ||
62 | if ( name != "" ) | 62 | if ( name != "" ) |
63 | { | 63 | { |
64 | QString tempstr = name; | 64 | QString tempstr = name; |
65 | tempstr.append( " - " ); | 65 | tempstr.append( " - " ); |
66 | tempstr.append( tr( "Checkbook" ) ); | 66 | tempstr.append( tr( "Checkbook" ) ); |
67 | setCaption( tempstr ); | 67 | setCaption( tempstr ); |
68 | } | 68 | } |
69 | else | 69 | else |
@@ -180,54 +180,56 @@ QWidget *Checkbook::initInfo() | |||
180 | layout->addWidget( label, 6, 0 ); | 180 | layout->addWidget( label, 6, 0 ); |
181 | notesEdit = new QMultiLineEdit( container ); | 181 | notesEdit = new QMultiLineEdit( container ); |
182 | QWhatsThis::add( notesEdit, tr( "Enter any additional information for this checkbook here." ) ); | 182 | QWhatsThis::add( notesEdit, tr( "Enter any additional information for this checkbook here." ) ); |
183 | notesEdit->setMaximumHeight( 85 ); | 183 | notesEdit->setMaximumHeight( 85 ); |
184 | layout->addMultiCellWidget( notesEdit, 7, 7, 0, 1 ); | 184 | layout->addMultiCellWidget( notesEdit, 7, 7, 0, 1 ); |
185 | 185 | ||
186 | return control; | 186 | return control; |
187 | } | 187 | } |
188 | 188 | ||
189 | QWidget *Checkbook::initTransactions() | 189 | QWidget *Checkbook::initTransactions() |
190 | { | 190 | { |
191 | QWidget *control = new QWidget( mainWidget ); | 191 | QWidget *control = new QWidget( mainWidget ); |
192 | 192 | ||
193 | QGridLayout *layout = new QGridLayout( control ); | 193 | QGridLayout *layout = new QGridLayout( control ); |
194 | layout->setSpacing( 2 ); | 194 | layout->setSpacing( 2 ); |
195 | layout->setMargin( 4 ); | 195 | layout->setMargin( 4 ); |
196 | 196 | ||
197 | balanceLabel = new QLabel( tr( "Current balance: %10.00" ).arg( currencySymbol ), | 197 | balanceLabel = new QLabel( tr( "Current balance: %10.00" ).arg( currencySymbol ), |
198 | control ); | 198 | control ); |
199 | QWhatsThis::add( balanceLabel, tr( "This area shows the current balance in this checkbook." ) ); | 199 | QWhatsThis::add( balanceLabel, tr( "This area shows the current balance in this checkbook." ) ); |
200 | layout->addMultiCellWidget( balanceLabel, 0, 0, 0, 2 ); | 200 | layout->addMultiCellWidget( balanceLabel, 0, 0, 0, 2 ); |
201 | 201 | ||
202 | tranTable = new QListView( control ); | 202 | tranTable = new QListView( control ); |
203 | QWhatsThis::add( tranTable, tr( "This is a listing of all transactions entered for this checkbook.\n\nTo sort entries by a specific field, click on the column name." ) ); | 203 | QWhatsThis::add( tranTable, tr( "This is a listing of all transactions entered for this checkbook.\n\nTo sort entries by a specific field, click on the column name." ) ); |
204 | tranTable->addColumn( tr( "ID" ) ); | 204 | tranTable->addColumn( tr( "Num" ) ); |
205 | tranTable->addColumn( tr( "Date" ) ); | 205 | tranTable->addColumn( tr( "Date" ) ); |
206 | //tranTable->addColumn( tr( "Cleared" ) ); | ||
206 | tranTable->addColumn( tr( "Description" ) ); | 207 | tranTable->addColumn( tr( "Description" ) ); |
207 | int colnum = tranTable->addColumn( tr( "Amount" ) ); | 208 | int colnum = tranTable->addColumn( tr( "Amount" ) ); |
208 | tranTable->setColumnAlignment( colnum, Qt::AlignRight ); | 209 | tranTable->setColumnAlignment( colnum, Qt::AlignRight ); |
209 | tranTable->setAllColumnsShowFocus( TRUE ); | 210 | tranTable->setAllColumnsShowFocus( TRUE ); |
211 | tranTable->setSorting( 1 ); | ||
210 | layout->addMultiCellWidget( tranTable, 1, 1, 0, 2 ); | 212 | layout->addMultiCellWidget( tranTable, 1, 1, 0, 2 ); |
211 | QPEApplication::setStylusOperation( tranTable->viewport(), QPEApplication::RightOnHold ); | 213 | QPEApplication::setStylusOperation( tranTable->viewport(), QPEApplication::RightOnHold ); |
212 | connect( tranTable, SIGNAL( rightButtonPressed( QListViewItem *, const QPoint &, int ) ), | 214 | connect( tranTable, SIGNAL( rightButtonPressed( QListViewItem *, const QPoint &, int ) ), |
213 | this, SLOT( slotEditTran() ) ); | 215 | this, SLOT( slotEditTran() ) ); |
214 | 216 | ||
215 | QPushButton *btn = new QPushButton( Resource::loadPixmap( "new" ), tr( "New" ), control ); | 217 | QPushButton *btn = new QPushButton( Resource::loadPixmap( "new" ), tr( "New" ), control ); |
216 | QWhatsThis::add( btn, tr( "Click here to add a new transaction." ) ); | 218 | QWhatsThis::add( btn, tr( "Click here to add a new transaction." ) ); |
217 | connect( btn, SIGNAL( clicked() ), this, SLOT( slotNewTran() ) ); | 219 | connect( btn, SIGNAL( clicked() ), this, SLOT( slotNewTran() ) ); |
218 | layout->addWidget( btn, 2, 0 ); | 220 | layout->addWidget( btn, 2, 0 ); |
219 | 221 | ||
220 | btn = new QPushButton( Resource::loadPixmap( "edit" ), tr( "Edit" ), control ); | 222 | btn = new QPushButton( Resource::loadPixmap( "edit" ), tr( "Edit" ), control ); |
221 | QWhatsThis::add( btn, tr( "Select a transaction and then click here to edit it." ) ); | 223 | QWhatsThis::add( btn, tr( "Select a transaction and then click here to edit it." ) ); |
222 | connect( btn, SIGNAL( clicked() ), this, SLOT( slotEditTran() ) ); | 224 | connect( btn, SIGNAL( clicked() ), this, SLOT( slotEditTran() ) ); |
223 | layout->addWidget( btn, 2, 1 ); | 225 | layout->addWidget( btn, 2, 1 ); |
224 | 226 | ||
225 | btn = new QPushButton( Resource::loadPixmap( "trash" ), tr( "Delete" ), control ); | 227 | btn = new QPushButton( Resource::loadPixmap( "trash" ), tr( "Delete" ), control ); |
226 | QWhatsThis::add( btn, tr( "Select a checkbook and then click here to delete it." ) ); | 228 | QWhatsThis::add( btn, tr( "Select a checkbook and then click here to delete it." ) ); |
227 | connect( btn, SIGNAL( clicked() ), this, SLOT( slotDeleteTran() ) ); | 229 | connect( btn, SIGNAL( clicked() ), this, SLOT( slotDeleteTran() ) ); |
228 | layout->addWidget( btn, 2, 2 ); | 230 | layout->addWidget( btn, 2, 2 ); |
229 | 231 | ||
230 | return( control ); | 232 | return( control ); |
231 | } | 233 | } |
232 | 234 | ||
233 | QWidget *Checkbook::initCharts() | 235 | QWidget *Checkbook::initCharts() |
@@ -293,73 +295,75 @@ void Checkbook::loadCheckbook() | |||
293 | // Load transactions | 295 | // Load transactions |
294 | TranInfo *tran; | 296 | TranInfo *tran; |
295 | QString trandesc = ""; | 297 | QString trandesc = ""; |
296 | float amount; | 298 | float amount; |
297 | QString stramount; | 299 | QString stramount; |
298 | for ( int i = 1; trandesc != QString::null; i++ ) | 300 | for ( int i = 1; trandesc != QString::null; i++ ) |
299 | { | 301 | { |
300 | tran = new TranInfo( config, i ); | 302 | tran = new TranInfo( config, i ); |
301 | trandesc = tran->desc(); | 303 | trandesc = tran->desc(); |
302 | if ( trandesc != QString::null ) | 304 | if ( trandesc != QString::null ) |
303 | { | 305 | { |
304 | currBalance -= tran->fee(); | 306 | currBalance -= tran->fee(); |
305 | amount = tran->amount(); | 307 | amount = tran->amount(); |
306 | if ( tran->withdrawal() ) | 308 | if ( tran->withdrawal() ) |
307 | { | 309 | { |
308 | amount *= -1; | 310 | amount *= -1; |
309 | } | 311 | } |
310 | currBalance += amount; | 312 | currBalance += amount; |
311 | stramount.sprintf( "%c%.2f", currencySymbol, amount ); | 313 | stramount.sprintf( "%c%.2f", currencySymbol, amount ); |
312 | 314 | ||
313 | // Add to transaction list | 315 | // Add to transaction list |
314 | transactions.inSort( tran ); | 316 | transactions.inSort( tran ); |
315 | 317 | ||
316 | // Add to transaction table | 318 | // Add to transaction table |
317 | ( void ) new QListViewItem( tranTable, QString::number( i ), tran->datestr(), | 319 | ( void ) new CBListItem( tranTable, tran->number(), tran->datestr(), trandesc, stramount ); |
318 | trandesc, stramount ); | ||
319 | } | 320 | } |
320 | else | 321 | else |
321 | { | 322 | { |
322 | delete tran; | 323 | delete tran; |
323 | } | 324 | } |
324 | } | 325 | } |
325 | balanceLabel->setText( tr( "Current balance: %1%2" ).arg( currencySymbol ).arg( currBalance, 0, 'f', 2 ) ); | 326 | balanceLabel->setText( tr( "Current balance: %1%2" ).arg( currencySymbol ).arg( currBalance, 0, 'f', 2 ) ); |
326 | 327 | ||
327 | highTranNum = transactions.count(); | 328 | highTranNum = transactions.count(); |
328 | } | 329 | } |
329 | 330 | ||
330 | void Checkbook::adjustBalance( float amount ) | 331 | void Checkbook::adjustBalance( float amount ) |
331 | { | 332 | { |
332 | currBalance += amount; | 333 | currBalance += amount; |
333 | balanceLabel->setText( tr( "Current balance: %1%2" ).arg( currencySymbol ).arg( currBalance, 0, 'f', 2 ) ); | 334 | balanceLabel->setText( tr( "Current balance: %1%2" ).arg( currencySymbol ).arg( currBalance, 0, 'f', 2 ) ); |
334 | 335 | ||
335 | } | 336 | } |
336 | 337 | ||
337 | TranInfo *Checkbook::findTranByID( int id ) | 338 | TranInfo *Checkbook::findTran( const QString &checknum, const QString &date, const QString &desc ) |
338 | { | 339 | { |
339 | TranInfo *traninfo = transactions.first(); | 340 | TranInfo *traninfo = transactions.first(); |
340 | while ( traninfo && traninfo->id() != id ) | 341 | while ( traninfo ) |
341 | { | 342 | { |
343 | if ( traninfo->number() == checknum && traninfo->datestr() == date && | ||
344 | traninfo->desc() == desc ) | ||
345 | break; | ||
342 | traninfo = transactions.next(); | 346 | traninfo = transactions.next(); |
343 | } | 347 | } |
344 | return( traninfo ); | 348 | return( traninfo ); |
345 | } | 349 | } |
346 | 350 | ||
347 | void Checkbook::accept() | 351 | void Checkbook::accept() |
348 | { | 352 | { |
349 | QFile f( filename ); | 353 | QFile f( filename ); |
350 | if ( f.exists() ) | 354 | if ( f.exists() ) |
351 | { | 355 | { |
352 | f.remove(); | 356 | f.remove(); |
353 | } | 357 | } |
354 | 358 | ||
355 | Config *config = new Config(filename, Config::File); | 359 | Config *config = new Config(filename, Config::File); |
356 | 360 | ||
357 | // Save info | 361 | // Save info |
358 | config->setGroup( "Account" ); | 362 | config->setGroup( "Account" ); |
359 | config->writeEntry( "Type", typeList->currentText() ); | 363 | config->writeEntry( "Type", typeList->currentText() ); |
360 | config->writeEntry( "Bank", bankEdit->text() ); | 364 | config->writeEntry( "Bank", bankEdit->text() ); |
361 | config->writeEntryCrypt( "Number", acctNumEdit->text() ); | 365 | config->writeEntryCrypt( "Number", acctNumEdit->text() ); |
362 | config->writeEntryCrypt( "PINNumber", pinNumEdit->text() ); | 366 | config->writeEntryCrypt( "PINNumber", pinNumEdit->text() ); |
363 | config->writeEntry( "Balance", balanceEdit->text() ); | 367 | config->writeEntry( "Balance", balanceEdit->text() ); |
364 | config->writeEntry( "Notes", notesEdit->text() ); | 368 | config->writeEntry( "Notes", notesEdit->text() ); |
365 | 369 | ||
@@ -397,115 +401,112 @@ void Checkbook::slotStartingBalanceChanged( const QString &newbalance ) | |||
397 | 401 | ||
398 | void Checkbook::slotNewTran() | 402 | void Checkbook::slotNewTran() |
399 | { | 403 | { |
400 | highTranNum++; | 404 | highTranNum++; |
401 | TranInfo *traninfo = new TranInfo( highTranNum ); | 405 | TranInfo *traninfo = new TranInfo( highTranNum ); |
402 | 406 | ||
403 | Transaction *currtran = new Transaction( this, name, | 407 | Transaction *currtran = new Transaction( this, name, |
404 | traninfo, | 408 | traninfo, |
405 | currencySymbol ); | 409 | currencySymbol ); |
406 | currtran->showMaximized(); | 410 | currtran->showMaximized(); |
407 | if ( currtran->exec() == QDialog::Accepted ) | 411 | if ( currtran->exec() == QDialog::Accepted ) |
408 | { | 412 | { |
409 | float amount = traninfo->amount(); | 413 | float amount = traninfo->amount(); |
410 | if ( traninfo->withdrawal() ) | 414 | if ( traninfo->withdrawal() ) |
411 | { | 415 | { |
412 | amount *= -1; | 416 | amount *= -1; |
413 | } | 417 | } |
414 | QString stramount; | 418 | QString stramount; |
415 | stramount.sprintf( "%c%.2f", currencySymbol, amount ); | 419 | stramount.sprintf( "%c%.2f", currencySymbol, amount ); |
416 | 420 | ||
417 | // Add to transaction list | 421 | // Add to transaction list |
418 | transactions.inSort( traninfo ); | 422 | transactions.inSort( traninfo ); |
419 | 423 | ||
420 | // Add to transaction table | 424 | // Add to transaction table |
421 | ( void ) new QListViewItem( tranTable, QString::number( highTranNum ), | 425 | ( void ) new CBListItem( tranTable, traninfo->number(), traninfo->datestr(), traninfo->desc(), |
422 | traninfo->datestr(), traninfo->desc(), stramount ); | 426 | stramount ); |
423 | 427 | ||
424 | adjustBalance( amount ); | 428 | adjustBalance( amount ); |
425 | } | 429 | } |
426 | else | 430 | else |
427 | { | 431 | { |
428 | highTranNum--; | 432 | highTranNum--; |
429 | delete traninfo; | 433 | delete traninfo; |
430 | } | 434 | } |
431 | } | 435 | } |
432 | 436 | ||
433 | void Checkbook::slotEditTran() | 437 | void Checkbook::slotEditTran() |
434 | { | 438 | { |
435 | bool ok; | 439 | bool ok; |
436 | QListViewItem *curritem = tranTable->currentItem(); | 440 | QListViewItem *curritem = tranTable->currentItem(); |
437 | if ( !curritem ) | 441 | if ( !curritem ) |
438 | { | 442 | { |
439 | return; | 443 | return; |
440 | } | 444 | } |
441 | 445 | ||
442 | int tranid = curritem->text( 0 ).toInt( &ok ); | 446 | TranInfo *traninfo = findTran( curritem->text( 0 ), curritem->text( 1 ), curritem->text( 2 ) ); |
443 | TranInfo *traninfo = findTranByID( tranid ); | ||
444 | float origamt = traninfo->amount(); | 447 | float origamt = traninfo->amount(); |
445 | if ( traninfo->withdrawal() ) | 448 | if ( traninfo->withdrawal() ) |
446 | { | 449 | { |
447 | origamt *= -1; | 450 | origamt *= -1; |
448 | } | 451 | } |
449 | 452 | ||
450 | Transaction *currtran = new Transaction( this, name, | 453 | Transaction *currtran = new Transaction( this, name, |
451 | traninfo, | 454 | traninfo, |
452 | currencySymbol ); | 455 | currencySymbol ); |
453 | currtran->showMaximized(); | 456 | currtran->showMaximized(); |
454 | if ( currtran->exec() == QDialog::Accepted ) | 457 | if ( currtran->exec() == QDialog::Accepted ) |
455 | { | 458 | { |
456 | curritem->setText( 1, traninfo->datestr() ); | 459 | curritem->setText( 1, traninfo->datestr() ); |
457 | 460 | ||
458 | curritem->setText( 2, traninfo->desc() ); | 461 | curritem->setText( 2, traninfo->desc() ); |
459 | 462 | ||
460 | float amount = traninfo->amount(); | 463 | float amount = traninfo->amount(); |
461 | if ( traninfo->withdrawal() ) | 464 | if ( traninfo->withdrawal() ) |
462 | { | 465 | { |
463 | amount *= -1; | 466 | amount *= -1; |
464 | } | 467 | } |
465 | adjustBalance( origamt * -1 ); | 468 | adjustBalance( origamt * -1 ); |
466 | adjustBalance( amount ); | 469 | adjustBalance( amount ); |
467 | QString stramount; | 470 | QString stramount; |
468 | stramount.sprintf( "%c%.2f", currencySymbol, amount ); | 471 | stramount.sprintf( "%c%.2f", currencySymbol, amount ); |
469 | curritem->setText( 3, stramount ); | 472 | curritem->setText( 3, stramount ); |
470 | 473 | ||
471 | balanceLabel->setText( tr( "Current balance: %1%2" ).arg( currencySymbol ).arg( currBalance, 0, 'f', 2 ) ); | 474 | balanceLabel->setText( tr( "Current balance: %1%2" ).arg( currencySymbol ).arg( currBalance, 0, 'f', 2 ) ); |
472 | 475 | ||
473 | delete currtran; | 476 | delete currtran; |
474 | } | 477 | } |
475 | } | 478 | } |
476 | 479 | ||
477 | void Checkbook::slotDeleteTran() | 480 | void Checkbook::slotDeleteTran() |
478 | { | 481 | { |
479 | QListViewItem *curritem = tranTable->currentItem(); | 482 | QListViewItem *curritem = tranTable->currentItem(); |
480 | if ( !curritem ) | 483 | if ( !curritem ) |
481 | { | 484 | { |
482 | return; | 485 | return; |
483 | } | 486 | } |
484 | 487 | ||
485 | bool ok; | 488 | TranInfo *traninfo = findTran( curritem->text( 0 ), curritem->text( 1 ), curritem->text( 2 ) ); |
486 | int tranid = curritem->text( 0 ).toInt( &ok ); | ||
487 | TranInfo *traninfo = findTranByID( tranid ); | ||
488 | 489 | ||
489 | if ( QPEMessageBox::confirmDelete ( this, tr( "Delete transaction" ), traninfo->desc() ) ) | 490 | if ( QPEMessageBox::confirmDelete ( this, tr( "Delete transaction" ), traninfo->desc() ) ) |
490 | { | 491 | { |
491 | float amount = traninfo->amount(); | 492 | float amount = traninfo->amount(); |
492 | if ( traninfo->withdrawal() ) | 493 | if ( traninfo->withdrawal() ) |
493 | { | 494 | { |
494 | amount *= -1; | 495 | amount *= -1; |
495 | } | 496 | } |
496 | 497 | ||
497 | transactions.remove( traninfo ); | 498 | transactions.remove( traninfo ); |
498 | delete traninfo; | 499 | delete traninfo; |
499 | delete curritem; | 500 | delete curritem; |
500 | 501 | ||
501 | adjustBalance( amount * -1 ); | 502 | adjustBalance( amount * -1 ); |
502 | } | 503 | } |
503 | } | 504 | } |
504 | 505 | ||
505 | void Checkbook::slotDrawGraph() | 506 | void Checkbook::slotDrawGraph() |
506 | { | 507 | { |
507 | if ( graphInfo ) | 508 | if ( graphInfo ) |
508 | { | 509 | { |
509 | delete graphInfo; | 510 | delete graphInfo; |
510 | } | 511 | } |
511 | 512 | ||
@@ -573,24 +574,88 @@ void Checkbook::drawCategoryChart( bool withdrawals ) | |||
573 | { | 574 | { |
574 | if ( tran->withdrawal() == withdrawals ) | 575 | if ( tran->withdrawal() == withdrawals ) |
575 | { | 576 | { |
576 | // Find category in list | 577 | // Find category in list |
577 | for ( cat = list->first(); cat; cat = list->next() ) | 578 | for ( cat = list->first(); cat; cat = list->next() ) |
578 | { | 579 | { |
579 | if ( cat->label() == tran->category() ) | 580 | if ( cat->label() == tran->category() ) |
580 | { | 581 | { |
581 | break; | 582 | break; |
582 | } | 583 | } |
583 | } | 584 | } |
584 | if ( cat && cat->label() == tran->category() ) | 585 | if ( cat && cat->label() == tran->category() ) |
585 | { // Found category, add to transaction to category total | 586 | { // Found category, add to transaction to category total |
586 | cat->addToValue( tran->amount() ); | 587 | cat->addToValue( tran->amount() ); |
587 | } | 588 | } |
588 | else | 589 | else |
589 | { // Didn't find category, add category to list | 590 | { // Didn't find category, add category to list |
590 | list->append( new DataPointInfo( tran->category(), tran->amount() ) ); | 591 | list->append( new DataPointInfo( tran->category(), tran->amount() ) ); |
591 | } | 592 | } |
592 | } | 593 | } |
593 | } | 594 | } |
594 | 595 | ||
595 | graphInfo = new GraphInfo( GraphInfo::PieChart, list ); | 596 | graphInfo = new GraphInfo( GraphInfo::PieChart, list ); |
596 | } | 597 | } |
598 | |||
599 | CBListItem::CBListItem( QListView *parent, QString label1, QString label2, | ||
600 | QString label3, QString label4, QString label5, QString label6, QString label7, | ||
601 | QString label8 ) | ||
602 | : QListViewItem( parent, label1, label2, label3, label4, label5, label6, label7, label8 ) | ||
603 | { | ||
604 | m_known = FALSE; | ||
605 | owner = parent; | ||
606 | } | ||
607 | |||
608 | void CBListItem::paintCell( QPainter *p, const QColorGroup &cg, int column, int width, int align ) | ||
609 | { | ||
610 | QColorGroup _cg = cg; | ||
611 | const QPixmap *pm = listView()->viewport()->backgroundPixmap(); | ||
612 | if ( pm && !pm->isNull() ) | ||
613 | { | ||
614 | _cg.setBrush( QColorGroup::Base, QBrush( cg.base(), *pm ) ); | ||
615 | p->setBrushOrigin( -listView()->contentsX(), -listView()->contentsY() ); | ||
616 | } | ||
617 | else if ( isAltBackground() ) | ||
618 | _cg.setColor(QColorGroup::Base, QColor( 200, 255, 200 ) ); | ||
619 | |||
620 | QListViewItem::paintCell(p, _cg, column, width, align); | ||
621 | } | ||
622 | |||
623 | bool CBListItem::isAltBackground() | ||
624 | { | ||
625 | QListView *lv = static_cast<QListView *>( listView() ); | ||
626 | if ( lv ) | ||
627 | { | ||
628 | CBListItem *above = 0; | ||
629 | above = (CBListItem *)( itemAbove() ); | ||
630 | m_known = above ? above->m_known : true; | ||
631 | if ( m_known ) | ||
632 | { | ||
633 | m_odd = above ? !above->m_odd : false; | ||
634 | } | ||
635 | else | ||
636 | { | ||
637 | CBListItem *item; | ||
638 | bool previous = true; | ||
639 | if ( parent() ) | ||
640 | { | ||
641 | item = (CBListItem *)( parent() ); | ||
642 | if ( item ) | ||
643 | previous = item->m_odd; | ||
644 | item = (CBListItem *)( parent()->firstChild() ); | ||
645 | } | ||
646 | else | ||
647 | { | ||
648 | item = (CBListItem *)( lv->firstChild() ); | ||
649 | } | ||
650 | |||
651 | while(item) | ||
652 | { | ||
653 | item->m_odd = previous = !previous; | ||
654 | item->m_known = true; | ||
655 | item = (CBListItem *)( item->nextSibling() ); | ||
656 | } | ||
657 | } | ||
658 | return m_odd; | ||
659 | } | ||
660 | return false; | ||
661 | } \ No newline at end of file | ||
diff --git a/noncore/apps/checkbook/checkbook.h b/noncore/apps/checkbook/checkbook.h index 287788a..0260b43 100644 --- a/noncore/apps/checkbook/checkbook.h +++ b/noncore/apps/checkbook/checkbook.h | |||
@@ -1,108 +1,128 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
29 | #ifndef CHECKBOOK_H | 29 | #ifndef CHECKBOOK_H |
30 | #define CHECKBOOK_H | 30 | #define CHECKBOOK_H |
31 | 31 | ||
32 | #include "traninfo.h" | 32 | #include "traninfo.h" |
33 | 33 | ||
34 | #include <qdialog.h> | 34 | #include <qdialog.h> |
35 | #include <qlistview.h> | ||
35 | 36 | ||
36 | class OTabWidget; | 37 | class OTabWidget; |
37 | 38 | ||
38 | class Graph; | 39 | class Graph; |
39 | class GraphInfo; | 40 | class GraphInfo; |
40 | class QComboBox; | 41 | class QComboBox; |
41 | class QLabel; | 42 | class QLabel; |
42 | class QLineEdit; | 43 | class QLineEdit; |
43 | class QListView; | 44 | class QListView; |
44 | class QMultiLineEdit; | 45 | class QMultiLineEdit; |
45 | class QString; | 46 | class QString; |
46 | 47 | ||
47 | class Checkbook : public QDialog | 48 | class Checkbook : public QDialog |
48 | { | 49 | { |
49 | Q_OBJECT | 50 | Q_OBJECT |
50 | 51 | ||
51 | public: | 52 | public: |
52 | Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, char = '$' ); | 53 | Checkbook( QWidget * = 0x0, const QString & = 0x0, const QString & = 0x0, char = '$' ); |
53 | ~Checkbook(); | 54 | ~Checkbook(); |
54 | 55 | ||
55 | const QString &getName(); | 56 | const QString &getName(); |
56 | 57 | ||
57 | private: | 58 | private: |
58 | TranInfoList transactions; | 59 | TranInfoList transactions; |
59 | QString name; | 60 | QString name; |
60 | QString filename; | 61 | QString filename; |
61 | QString filedir; | 62 | QString filedir; |
62 | char currencySymbol; | 63 | char currencySymbol; |
63 | int highTranNum; | 64 | int highTranNum; |
64 | 65 | ||
65 | OTabWidget *mainWidget; | 66 | OTabWidget *mainWidget; |
66 | void loadCheckbook(); | 67 | void loadCheckbook(); |
67 | void adjustBalance( float ); | 68 | void adjustBalance( float ); |
68 | TranInfo *findTranByID( int ); | 69 | TranInfo *findTran( const QString &, const QString &, const QString & ); |
69 | 70 | ||
70 | // Info tab | 71 | // Info tab |
71 | QWidget *initInfo(); | 72 | QWidget *initInfo(); |
72 | QLineEdit *nameEdit; | 73 | QLineEdit *nameEdit; |
73 | QComboBox *typeList; | 74 | QComboBox *typeList; |
74 | QLineEdit *bankEdit; | 75 | QLineEdit *bankEdit; |
75 | QLineEdit *acctNumEdit; | 76 | QLineEdit *acctNumEdit; |
76 | QLineEdit *pinNumEdit; | 77 | QLineEdit *pinNumEdit; |
77 | QLineEdit *balanceEdit; | 78 | QLineEdit *balanceEdit; |
78 | QMultiLineEdit *notesEdit; | 79 | QMultiLineEdit *notesEdit; |
79 | float startBalance; | 80 | float startBalance; |
80 | 81 | ||
81 | // Transactions tab | 82 | // Transactions tab |
82 | QWidget *initTransactions(); | 83 | QWidget *initTransactions(); |
83 | QListView *tranTable; | 84 | QListView *tranTable; |
84 | QLabel *balanceLabel; | 85 | QLabel *balanceLabel; |
85 | float currBalance; | 86 | float currBalance; |
86 | 87 | ||
87 | // Charts tab | 88 | // Charts tab |
88 | QWidget *initCharts(); | 89 | QWidget *initCharts(); |
89 | GraphInfo *graphInfo; | 90 | GraphInfo *graphInfo; |
90 | QComboBox *graphList; | 91 | QComboBox *graphList; |
91 | Graph *graphWidget; | 92 | Graph *graphWidget; |
92 | 93 | ||
93 | void drawBalanceChart(); | 94 | void drawBalanceChart(); |
94 | void drawCategoryChart( bool = TRUE ); | 95 | void drawCategoryChart( bool = TRUE ); |
95 | 96 | ||
96 | protected slots: | 97 | protected slots: |
97 | void accept(); | 98 | void accept(); |
98 | 99 | ||
99 | private slots: | 100 | private slots: |
100 | void slotNameChanged( const QString & ); | 101 | void slotNameChanged( const QString & ); |
101 | void slotStartingBalanceChanged( const QString & ); | 102 | void slotStartingBalanceChanged( const QString & ); |
102 | void slotNewTran(); | 103 | void slotNewTran(); |
103 | void slotEditTran(); | 104 | void slotEditTran(); |
104 | void slotDeleteTran(); | 105 | void slotDeleteTran(); |
105 | void slotDrawGraph(); | 106 | void slotDrawGraph(); |
106 | }; | 107 | }; |
107 | 108 | ||
109 | class CBListItem : public QListViewItem | ||
110 | { | ||
111 | //Q_OBJECT | ||
112 | |||
113 | public: | ||
114 | CBListItem( QListView *, QString = QString::null, QString = QString::null, | ||
115 | QString = QString::null, QString = QString::null, QString = QString::null, | ||
116 | QString = QString::null, QString = QString::null, QString = QString::null ); | ||
117 | |||
118 | void paintCell( QPainter *, const QColorGroup &, int, int, int ); | ||
119 | |||
120 | private: | ||
121 | QListView *owner; | ||
122 | bool m_known; | ||
123 | bool m_odd; | ||
124 | |||
125 | bool isAltBackground(); | ||
126 | }; | ||
127 | |||
108 | #endif | 128 | #endif |
diff --git a/noncore/apps/checkbook/graph.cpp b/noncore/apps/checkbook/graph.cpp index 0f25453..8ae835c 100644 --- a/noncore/apps/checkbook/graph.cpp +++ b/noncore/apps/checkbook/graph.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
diff --git a/noncore/apps/checkbook/graph.h b/noncore/apps/checkbook/graph.h index 40b23cd..0361718 100644 --- a/noncore/apps/checkbook/graph.h +++ b/noncore/apps/checkbook/graph.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
diff --git a/noncore/apps/checkbook/graphinfo.cpp b/noncore/apps/checkbook/graphinfo.cpp index ec6a465..fec6896 100644 --- a/noncore/apps/checkbook/graphinfo.cpp +++ b/noncore/apps/checkbook/graphinfo.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
diff --git a/noncore/apps/checkbook/graphinfo.h b/noncore/apps/checkbook/graphinfo.h index 620da74..3bcf676 100644 --- a/noncore/apps/checkbook/graphinfo.h +++ b/noncore/apps/checkbook/graphinfo.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
diff --git a/noncore/apps/checkbook/main.cpp b/noncore/apps/checkbook/main.cpp index 832bd09..abfa633 100644 --- a/noncore/apps/checkbook/main.cpp +++ b/noncore/apps/checkbook/main.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
diff --git a/noncore/apps/checkbook/mainwindow.cpp b/noncore/apps/checkbook/mainwindow.cpp index 2eb8396..567b8ad 100644 --- a/noncore/apps/checkbook/mainwindow.cpp +++ b/noncore/apps/checkbook/mainwindow.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
diff --git a/noncore/apps/checkbook/mainwindow.h b/noncore/apps/checkbook/mainwindow.h index 2c5d93b..1b460fa 100644 --- a/noncore/apps/checkbook/mainwindow.h +++ b/noncore/apps/checkbook/mainwindow.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
diff --git a/noncore/apps/checkbook/opie-checkbook.control b/noncore/apps/checkbook/opie-checkbook.control index 7bde1db..817426c 100644 --- a/noncore/apps/checkbook/opie-checkbook.control +++ b/noncore/apps/checkbook/opie-checkbook.control | |||
@@ -1,9 +1,9 @@ | |||
1 | Files: bin/checkbook apps/Applications/checkbook.desktop pics/checkbook | 1 | Files: bin/checkbook apps/Applications/checkbook.desktop pics/checkbook |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: applications | 3 | Section: applications |
4 | Maintainer: Dan Williams <williamsdr@acm.org> | 4 | Maintainer: Dan Williams <drw@handhelds.org> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION | 6 | Version: $QPE_VERSION-$SUB_VERSION |
7 | Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION) | 7 | Depends: opie-base ($QPE_VERSION), libopie ($QPE_VERSION) |
8 | Description: Checkbook keeping program. | 8 | Description: Checkbook keeping program. |
9 | The checkbook accounting program for the Opie environment. | 9 | The checkbook accounting program for the Opie environment. |
diff --git a/noncore/apps/checkbook/traninfo.cpp b/noncore/apps/checkbook/traninfo.cpp index dcba869..65c190c 100644 --- a/noncore/apps/checkbook/traninfo.cpp +++ b/noncore/apps/checkbook/traninfo.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
@@ -166,25 +166,25 @@ void TranInfo::write( Config *config, int entry ) | |||
166 | tempstr.setNum( a, 'f', 2 ); | 166 | tempstr.setNum( a, 'f', 2 ); |
167 | config->writeEntry( "Amount", tempstr ); | 167 | config->writeEntry( "Amount", tempstr ); |
168 | 168 | ||
169 | tempstr.setNum( f, 'f', 2 ); | 169 | tempstr.setNum( f, 'f', 2 ); |
170 | config->writeEntry( "TransactionFee", tempstr ); | 170 | config->writeEntry( "TransactionFee", tempstr ); |
171 | 171 | ||
172 | config->writeEntry( "CheckNumber", cn ); | 172 | config->writeEntry( "CheckNumber", cn ); |
173 | 173 | ||
174 | config->writeEntry( "Comments", n ); | 174 | config->writeEntry( "Comments", n ); |
175 | } | 175 | } |
176 | 176 | ||
177 | int TranInfoList::compareItems( QCollection::Item item1, QCollection::Item item2 ) | 177 | int TranInfoList::compareItems( QCollection::Item item1, QCollection::Item item2 ) |
178 | { | 178 | { |
179 | QDate d1 = ((TranInfo *)item1)->date(); | 179 | QDate d1 = ((TranInfo *)item1)->date(); |
180 | QDate d2 = ((TranInfo *)item2)->date(); | 180 | QDate d2 = ((TranInfo *)item2)->date(); |
181 | int r = -1; | 181 | int r = -1; |
182 | 182 | ||
183 | if ( d1 < d2 ) | 183 | if ( d1 < d2 ) |
184 | r = -1; | 184 | r = -1; |
185 | else if ( d1 == d2 ) | 185 | else if ( d1 == d2 ) |
186 | r = 0; | 186 | r = 0; |
187 | else if ( d1 > d2 ) | 187 | else if ( d1 > d2 ) |
188 | r = 1; | 188 | r = 1; |
189 | return( r ); | 189 | return( r ); |
190 | } \ No newline at end of file | 190 | } |
diff --git a/noncore/apps/checkbook/traninfo.h b/noncore/apps/checkbook/traninfo.h index e488816..59cfe14 100644 --- a/noncore/apps/checkbook/traninfo.h +++ b/noncore/apps/checkbook/traninfo.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
diff --git a/noncore/apps/checkbook/transaction.cpp b/noncore/apps/checkbook/transaction.cpp index a921491..122c8d6 100644 --- a/noncore/apps/checkbook/transaction.cpp +++ b/noncore/apps/checkbook/transaction.cpp | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||
diff --git a/noncore/apps/checkbook/transaction.h b/noncore/apps/checkbook/transaction.h index 274e1f2..89ca8e4 100644 --- a/noncore/apps/checkbook/transaction.h +++ b/noncore/apps/checkbook/transaction.h | |||
@@ -1,28 +1,28 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the OPIE Project | 2 | This file is part of the OPIE Project |
3 | =. | 3 | =. |
4 | .=l. Copyright (c) 2002 Dan Williams <williamsdr@acm.org> | 4 | .=l. Copyright (c) 2002 Dan Williams <drw@handhelds.org> |
5 | .>+-= | 5 | .>+-= |
6 | _;:, .> :=|. This file is free software; you can | 6 | _;:, .> :=|. This file is free software; you can |
7 | .> <`_, > . <= redistribute it and/or modify it under | 7 | .> <`_, > . <= redistribute it and/or modify it under |
8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public | 8 | :`=1 )Y*s>-.-- : the terms of the GNU General Public |
9 | .="- .-=="i, .._ License as published by the Free Software | 9 | .="- .-=="i, .._ License as published by the Free Software |
10 | - . .-<_> .<> Foundation; either version 2 of the License, | 10 | - . .-<_> .<> Foundation; either version 2 of the License, |
11 | ._= =} : or (at your option) any later version. | 11 | ._= =} : or (at your option) any later version. |
12 | .%`+i> _;_. | 12 | .%`+i> _;_. |
13 | .i_,=:_. -<s. This file is distributed in the hope that | 13 | .i_,=:_. -<s. This file is distributed in the hope that |
14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; | 14 | + . -:. = it will be useful, but WITHOUT ANY WARRANTY; |
15 | : .. .:, . . . without even the implied warranty of | 15 | : .. .:, . . . without even the implied warranty of |
16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A | 16 | =_ + =;=|` MERCHANTABILITY or FITNESS FOR A |
17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General | 17 | _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General |
18 | ..}^=.= = ; Public License for more details. | 18 | ..}^=.= = ; Public License for more details. |
19 | ++= -. .` .: | 19 | ++= -. .` .: |
20 | : = ...= . :.=- You should have received a copy of the GNU | 20 | : = ...= . :.=- You should have received a copy of the GNU |
21 | -. .:....=;==+<; General Public License along with this file; | 21 | -. .:....=;==+<; General Public License along with this file; |
22 | -_. . . )=. = see the file COPYING. If not, write to the | 22 | -_. . . )=. = see the file COPYING. If not, write to the |
23 | -- :-=` Free Software Foundation, Inc., | 23 | -- :-=` Free Software Foundation, Inc., |
24 | 59 Temple Place - Suite 330, | 24 | 59 Temple Place - Suite 330, |
25 | Boston, MA 02111-1307, USA. | 25 | Boston, MA 02111-1307, USA. |
26 | 26 | ||
27 | */ | 27 | */ |
28 | 28 | ||