-rw-r--r-- | noncore/apps/checkbook/checkbook.cpp | 8 | ||||
-rw-r--r-- | noncore/apps/checkbook/opie-checkbook.control | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/noncore/apps/checkbook/checkbook.cpp b/noncore/apps/checkbook/checkbook.cpp index ee65784..4b81c6d 100644 --- a/noncore/apps/checkbook/checkbook.cpp +++ b/noncore/apps/checkbook/checkbook.cpp | |||
@@ -60,35 +60,35 @@ Checkbook::Checkbook( QWidget *parent, const QString &n, const QString &fd, char | |||
60 | setCaption( name + " - " + tr( "Checkbook" ) ); | 60 | setCaption( name + " - " + tr( "Checkbook" ) ); |
61 | } | 61 | } |
62 | else | 62 | else |
63 | { | 63 | { |
64 | setCaption( tr( "New checkbook" ) ); | 64 | setCaption( tr( "New checkbook" ) ); |
65 | } | 65 | } |
66 | 66 | ||
67 | // Setup layout to make everything pretty | 67 | // Setup layout to make everything pretty |
68 | QVBoxLayout *layout = new QVBoxLayout( this ); | 68 | QVBoxLayout *layout = new QVBoxLayout( this ); |
69 | layout->setMargin( 2 ); | 69 | layout->setMargin( 2 ); |
70 | layout->setSpacing( 4 ); | 70 | layout->setSpacing( 4 ); |
71 | 71 | ||
72 | // Setup tabs for all info | 72 | // Setup tabs for all info |
73 | mainWidget = new OTabWidget( this ); | 73 | mainWidget = new OTabWidget( this ); |
74 | layout->addWidget( mainWidget ); | 74 | layout->addWidget( mainWidget ); |
75 | 75 | ||
76 | mainWidget->addTab( initInfo(), "help_icon", tr( "Info" ) ); | 76 | mainWidget->addTab( initInfo(), "checkbook/infotab", tr( "Info" ) ); |
77 | mainWidget->addTab( initTransactions(), "Spreadsheet", tr( "Transactions" ) ); | 77 | mainWidget->addTab( initTransactions(), "checkbook/trantab", tr( "Transactions" ) ); |
78 | mainWidget->addTab( initCharts(), "DocumentTypePowerPoint", tr( "Charts" ) ); | 78 | mainWidget->addTab( initCharts(), "checkbook/charttab", tr( "Charts" ) ); |
79 | mainWidget->setCurrentTab( tr( "Info" ) ); | 79 | mainWidget->setCurrentTab( tr( "Info" ) ); |
80 | 80 | ||
81 | // Load checkbook information | 81 | // Load checkbook information |
82 | loadCheckbook(); | 82 | loadCheckbook(); |
83 | } | 83 | } |
84 | 84 | ||
85 | Checkbook::~Checkbook() | 85 | Checkbook::~Checkbook() |
86 | { | 86 | { |
87 | } | 87 | } |
88 | 88 | ||
89 | const QString &Checkbook::getName() | 89 | const QString &Checkbook::getName() |
90 | { | 90 | { |
91 | return( name ); | 91 | return( name ); |
92 | } | 92 | } |
93 | 93 | ||
94 | QWidget *Checkbook::initInfo() | 94 | QWidget *Checkbook::initInfo() |
@@ -234,33 +234,33 @@ QWidget *Checkbook::initCharts() | |||
234 | /* | 234 | /* |
235 | QLabel *label = new QLabel( control ); | 235 | QLabel *label = new QLabel( control ); |
236 | label->setText( tr( "Graph type:" ) ); | 236 | label->setText( tr( "Graph type:" ) ); |
237 | layout->addWidget( label, 0, 0 ); | 237 | layout->addWidget( label, 0, 0 ); |
238 | graphList = new QComboBox( control ); | 238 | graphList = new QComboBox( control ); |
239 | graphList->insertItem( tr( "By category" ) ); | 239 | graphList->insertItem( tr( "By category" ) ); |
240 | graphList->insertItem( tr( "..." ) ); | 240 | graphList->insertItem( tr( "..." ) ); |
241 | graphList->insertItem( tr( "..." ) ); | 241 | graphList->insertItem( tr( "..." ) ); |
242 | layout->addWidget( graphList, 0, 1 ); | 242 | layout->addWidget( graphList, 0, 1 ); |
243 | */ | 243 | */ |
244 | 244 | ||
245 | QWidget *graphWidget = new QWidget( control ); | 245 | QWidget *graphWidget = new QWidget( control ); |
246 | QWhatsThis::add( graphWidget, tr( "Graph not implemented yet." ) ); | 246 | QWhatsThis::add( graphWidget, tr( "Graph not implemented yet." ) ); |
247 | layout->addMultiCellWidget( graphWidget, 0, 0, 0, 1 ); | 247 | layout->addMultiCellWidget( graphWidget, 0, 0, 0, 1 ); |
248 | graphWidget->setBackgroundMode( QWidget::PaletteBase ); | 248 | graphWidget->setBackgroundMode( QWidget::PaletteBase ); |
249 | 249 | ||
250 | QPushButton *btn = new QPushButton( Resource::loadPixmap( "edit" ), tr( "Draw" ), control ); | 250 | QPushButton *btn = new QPushButton( Resource::loadPixmap( "checkbook/drawbtn" ), tr( "Draw" ), control ); |
251 | QWhatsThis::add( btn, tr( "Click here to draw the graph." ) ); | 251 | QWhatsThis::add( btn, tr( "Click here to draw the graph." ) ); |
252 | connect( btn, SIGNAL( clicked() ), this, SLOT( slotDrawGraph() ) ); | 252 | connect( btn, SIGNAL( clicked() ), this, SLOT( slotDrawGraph() ) ); |
253 | layout->addWidget( btn, 1, 1 ); | 253 | layout->addWidget( btn, 1, 1 ); |
254 | 254 | ||
255 | return control; | 255 | return control; |
256 | } | 256 | } |
257 | 257 | ||
258 | void Checkbook::loadCheckbook() | 258 | void Checkbook::loadCheckbook() |
259 | { | 259 | { |
260 | transactions.clear(); | 260 | transactions.clear(); |
261 | 261 | ||
262 | Config config(filename, Config::File); | 262 | Config config(filename, Config::File); |
263 | 263 | ||
264 | // Load info | 264 | // Load info |
265 | config.setGroup( "Account" ); | 265 | config.setGroup( "Account" ); |
266 | nameEdit->setText( name ); | 266 | nameEdit->setText( name ); |
diff --git a/noncore/apps/checkbook/opie-checkbook.control b/noncore/apps/checkbook/opie-checkbook.control index f8e14ca..7bde1db 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/checkbook.png | 1 | Files: bin/checkbook apps/Applications/checkbook.desktop pics/checkbook |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: applications | 3 | Section: applications |
4 | Maintainer: drw <drw@handhelds.org> | 4 | Maintainer: Dan Williams <williamsdr@acm.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. |