hsoft / moneyguru (http://hardcoded.net/moneyguru)
Future-aware personal finance application for Mac OS X and Windows.
| commit 970: | 89abd2efb7e6 |
| parent 969: | 08caf310c88d |
| branch: | default |
Changed (Δ54.8 KB):
cocoa/controllers/profit/MGIncomeStatement.h (1 lines added, 0 lines removed)
cocoa/controllers/profit/MGIncomeStatement.m (31 lines added, 0 lines removed)
cocoa/de.lproj/IncomeStatement.strings
cocoa/de.lproj/IncomeStatement.xib (21 lines added, 407 lines removed)
cocoa/de.lproj/columns.strings (2 lines added, 0 lines removed)
cocoa/en.lproj/IncomeStatement.strings
cocoa/en.lproj/IncomeStatement.xib (20 lines added, 408 lines removed)
cocoa/en.lproj/columns.strings (2 lines added, 0 lines removed)
cocoa/fr.lproj/IncomeStatement.strings
cocoa/fr.lproj/IncomeStatement.xib (21 lines added, 407 lines removed)
cocoa/fr.lproj/columns.strings (2 lines added, 0 lines removed)
Up to file-list cocoa/controllers/profit/MGIncomeStatement.h:
| … | … | @@ -19,5 +19,6 @@ http://www.hardcoded.net/licenses/hs_lic |
19 |
19 |
HSTableColumnManager *columnsManager; |
20 |
20 |
} |
21 |
21 |
- (id)initWithPyParent:(id)aPyParent view:(HSOutlineView *)aOutlineView; |
22 |
- (void)initializeColumns; |
|
22 |
23 |
- (PyIncomeStatement *)py; |
23 |
24 |
@end |
Up to file-list cocoa/controllers/profit/MGIncomeStatement.m:
| … | … | @@ -8,12 +8,14 @@ http://www.hardcoded.net/licenses/hs_lic |
8 |
8 |
|
9 |
9 |
#import "MGIncomeStatement.h" |
10 |
10 |
#import "MGConst.h" |
11 |
#import "MGAmountCell.h" |
|
11 |
12 |
|
12 |
13 |
@implementation MGIncomeStatement |
13 |
14 |
|
14 |
15 |
- (id)initWithPyParent:(id)aPyParent view:(HSOutlineView *)aOutlineView |
15 |
16 |
{ |
16 |
17 |
self = [super initWithPyClassName:@"PyIncomeStatement" pyParent:aPyParent view:aOutlineView]; |
18 |
[self initializeColumns]; |
|
17 |
19 |
columnsManager = [[HSTableColumnManager alloc] initWithTable:aOutlineView]; |
18 |
20 |
[columnsManager linkColumn:@"delta" toUserDefault:IncomeStatementDeltaColumnVisible]; |
19 |
21 |
[columnsManager linkColumn:@"delta_perc" toUserDefault:IncomeStatementDeltaPercColumnVisible]; |
| … | … | @@ -23,6 +25,35 @@ http://www.hardcoded.net/licenses/hs_lic |
23 |
25 |
return self; |
24 |
26 |
} |
25 |
27 |
|
28 |
- (void)initializeColumns |
|
29 |
{ |
|
30 |
MGColumnDef defs[] = { |
|
31 |
/* Account column is defined in XIB */ |
|
32 |
{@"account_number", @"Account #", 64, 10, 0, NO, nil}, |
|
33 |
{@"cash_flow", @"Current", 100, 10, 0, NO, [MGAmountCell class]}, |
|
34 |
{@"delta", @"Change", 100, 10, 0, NO, [MGAmountCell class]}, |
|
35 |
{@"delta_perc", @"Change %", 60, 10, 0, NO, [MGAmountCell class]}, |
|
36 |
{@"last_cash_flow", @"Last", 100, 10, 0, NO, [MGAmountCell class]}, |
|
37 |
{@"budgeted", @"Budgeted", 100, 10, 0, NO, [MGAmountCell class]}, |
|
38 |
nil |
|
39 |
}; |
|
40 |
[[self columns] initializeColumns:defs]; |
|
41 |
NSTableColumn *c = [[self outlineView] tableColumnWithIdentifier:@"cash_flow"]; |
|
42 |
[[c dataCell] setAlignment:NSRightTextAlignment]; |
|
43 |
NSFontManager *fontManager = [NSFontManager sharedFontManager]; |
|
44 |
NSFont *font = [[c dataCell] font]; |
|
45 |
font = [fontManager convertFont:font toHaveTrait:NSFontBoldTrait]; |
|
46 |
[[c dataCell] setFont:font]; |
|
47 |
c = [[self outlineView] tableColumnWithIdentifier:@"delta"]; |
|
48 |
[[c dataCell] setAlignment:NSRightTextAlignment]; |
|
49 |
c = [[self outlineView] tableColumnWithIdentifier:@"delta_perc"]; |
|
50 |
[[c dataCell] setAlignment:NSRightTextAlignment]; |
|
51 |
c = [[self outlineView] tableColumnWithIdentifier:@"last_cash_flow"]; |
|
52 |
[[c dataCell] setAlignment:NSRightTextAlignment]; |
|
53 |
c = [[self outlineView] tableColumnWithIdentifier:@"budgeted"]; |
|
54 |
[[c dataCell] setAlignment:NSRightTextAlignment]; |
|
55 |
} |
|
56 |
||
26 |
57 |
- (void)dealloc |
27 |
58 |
{ |
28 |
59 |
[columnsManager release]; |
Up to file-list cocoa/de.lproj/IncomeStatement.xib:
- |
Diff size exceeds threshold (17.7 KB) — view raw? |
Up to file-list cocoa/de.lproj/columns.strings:
17 |
17 |
"Change %" = "Variation %"; |
18 |
18 |
"Budgeted" = "Budgetiert"; |
19 |
19 |
"Account #" = "Konto #"; |
20 |
"Current" = "laufend"; |
|
21 |
"Last" = "vorherig"; |
Up to file-list cocoa/en.lproj/IncomeStatement.xib:
- |
Diff size exceeds threshold (17.8 KB) — view raw? |
Up to file-list cocoa/en.lproj/columns.strings:
17 |
17 |
"Change %" = "Change %"; |
18 |
18 |
"Budgeted" = "Budgeted"; |
19 |
19 |
"Account #" = "Account #"; |
20 |
"Current" = "Current"; |
|
21 |
"Last" = "Last"; |
Up to file-list cocoa/fr.lproj/IncomeStatement.xib:
- |
Diff size exceeds threshold (17.7 KB) — view raw? |
