File indexing completed on 2024-05-12 16:44:07

0001 /*
0002     SPDX-FileCopyrightText: 2008-2018 Thomas Baumgart <tbaumgart@kde.org>
0003     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef SCHEDULEDTRANSACTION_H
0008 #define SCHEDULEDTRANSACTION_H
0009 
0010 // ----------------------------------------------------------------------------
0011 // QT Includes
0012 
0013 // ----------------------------------------------------------------------------
0014 // KDE Includes
0015 
0016 // ----------------------------------------------------------------------------
0017 // Project Includes
0018 
0019 #include "stdtransaction.h"
0020 
0021 namespace KMyMoneyRegister
0022 {
0023 
0024 class StdTransactionScheduled : public StdTransaction
0025 {
0026 public:
0027     explicit StdTransactionScheduled(Register* getParent, const MyMoneyTransaction& transaction, const MyMoneySplit& split, int uniqueId);
0028     ~StdTransactionScheduled() override;
0029 
0030     const char* className() override;
0031 
0032     bool paintRegisterCellSetup(QPainter *painter, QStyleOptionViewItem &option, const QModelIndex &index) override;
0033 
0034     bool isSelectable() const override;
0035     bool canHaveFocus() const override;
0036     bool isScheduled() const override;
0037     int sortSamePostDate() const override;
0038 
0039     //   virtual void paintRegisterGrid(QPainter* painter, int row, int col, const QRect& r, const QColorGroup& cg) const;
0040 
0041     //   void registerCellText(QString& txt, Qt::Alignment& align, int row, int col, QPainter* painter = 0);
0042 };
0043 
0044 } // namespace
0045 
0046 #endif