File indexing completed on 2024-05-19 05:08:37
0001 /* 0002 SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef WIDGETENUMS_H 0007 #define WIDGETENUMS_H 0008 0009 #include <qnamespace.h> 0010 0011 namespace eWidgets { 0012 0013 /* 0014 * IMPORTANT: Keep this in sync with sortOrderText array in transactionsortoption.cpp 0015 * Don't touch the order of this list because it will break 0016 * the sorting in existing data files 0017 */ 0018 enum class SortField { 0019 Unknown = 0, ///< unknown sort criteria 0020 PostDate = 1, ///< sort by post date 0021 EntryDate, ///< sort by entry date 0022 Payee, ///< sort by payee name 0023 Value, ///< sort by value 0024 NoSort, ///< sort by number field 0025 EntryOrder, ///< sort by entry order 0026 Type, ///< sort by CashFlowDirection 0027 Category, ///< sort by Category 0028 ReconcileState, ///< sort by reconciliation state 0029 Security, ///< sort by security (only useful for investment accounts) 0030 ReconciliationDate, ///< sort by reconciliation date 0031 // insert new values in front of this comment 0032 MaxFields, 0033 }; 0034 0035 namespace ValidationFeedback { 0036 enum class MessageType { 0037 None, 0038 Positive, 0039 Information, 0040 Warning, 0041 Error, 0042 }; 0043 } 0044 0045 namespace Selector { 0046 enum class Role { 0047 Id = Qt::UserRole, /**< The id is stored in this role in column 0 as a string.*/ 0048 Key = Qt::UserRole + 1, /**< The key is stored in this role in column 0 as a string.*/ 0049 }; 0050 } 0051 0052 } 0053 0054 #endif