aboutsummaryrefslogtreecommitdiff
path: root/cashflow.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2025-12-27 16:04:48 -0500
committerCalvin Morrison <calvin@pobox.com>2025-12-27 16:04:48 -0500
commit5e9b299dfe95a7f99f029802089c047a392eee3a (patch)
tree164c14e8f4e5a8161338f94463ef4df7b63519bd /cashflow.h
parent5305661f325ea84bbbc9c8fc7b6f2a4813a9147d (diff)
WIP: occurrence_key model before refactoring to persistent projections
Diffstat (limited to 'cashflow.h')
-rw-r--r--cashflow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cashflow.h b/cashflow.h
index adb0494..b75d62b 100644
--- a/cashflow.h
+++ b/cashflow.h
@@ -34,6 +34,8 @@ private slots:
void onOpenFile();
void onQuit();
void onPreferences();
+ void onRecurringRuleChanged();
+ void onTransactionDateChanged();
private:
Ui::CashFlow *ui;
@@ -44,6 +46,7 @@ private:
QFont currentAmountFont;
int weekStartDay;
QString currentFilePath;
+ Transaction currentProjectedTransaction; // For converting projections to actuals
enum PeriodType {
Daily,
@@ -71,5 +74,8 @@ private:
void loadSettings();
QString formatCurrency(double amount) const;
bool openDatabase(const QString &filePath);
+ void populateRecurringRulesCombo();
+ void updateOccurrenceKey();
+ QString generateOccurrenceKey(const QDate &date, RecurrenceFrequency frequency) const;
};
#endif // CASHFLOW_H