aboutsummaryrefslogtreecommitdiff
path: root/cashflow.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2025-12-27 15:25:36 -0500
committerCalvin Morrison <calvin@pobox.com>2025-12-27 15:25:36 -0500
commit5305661f325ea84bbbc9c8fc7b6f2a4813a9147d (patch)
treeb5ba5b08187c3b722afb05c486dcbfb4e2efc34f /cashflow.h
parent88b069141faafd1c5aefda1573b2285a38885ce4 (diff)
v.01
Diffstat (limited to 'cashflow.h')
-rw-r--r--cashflow.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/cashflow.h b/cashflow.h
index 9de01ae..adb0494 100644
--- a/cashflow.h
+++ b/cashflow.h
@@ -23,7 +23,6 @@ private slots:
void onDateRangeChanged();
void onTransactionSelected();
void onSaveTransaction();
- void onTransactionFieldChanged();
void onNewTransaction();
void onDeleteTransaction();
void onRecurringSelected();
@@ -31,6 +30,10 @@ private slots:
void onNewRecurring();
void onDeleteRecurring();
void onPeriodChanged();
+ void onNewFile();
+ void onOpenFile();
+ void onQuit();
+ void onPreferences();
private:
Ui::CashFlow *ui;
@@ -39,6 +42,8 @@ private:
int currentRecurringId;
double startingBalance;
QFont currentAmountFont;
+ int weekStartDay;
+ QString currentFilePath;
enum PeriodType {
Daily,
@@ -64,9 +69,7 @@ private:
void insertPeriodEndRow(const QString &label, double balance, const QMap<QString, double> &accountBalances);
void updateAmountColors();
void loadSettings();
- void applySettings();
- void onSaveSettings();
- void onChooseAmountFont();
QString formatCurrency(double amount) const;
+ bool openDatabase(const QString &filePath);
};
#endif // CASHFLOW_H