File indexing completed on 2024-05-19 05:08:18

0001 /*
0002     SPDX-FileCopyrightText: 2002-2004 Kevin Tambascio <ktambascio@users.sourceforge.net>
0003     SPDX-FileCopyrightText: 2003-2021 Thomas Baumgart <tbaumgart@kde.org>
0004     SPDX-FileCopyrightText: 2004-2005 Ace Jones <acejones@users.sourceforge.net>
0005     SPDX-FileCopyrightText: 2009-2010 Alvaro Soliverez <asoliverez@kde.org>
0006     SPDX-FileCopyrightText: 2017 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 
0010 #ifndef KINVESTMENTVIEW_H
0011 #define KINVESTMENTVIEW_H
0012 
0013 // ----------------------------------------------------------------------------
0014 // QT Includes
0015 
0016 // ----------------------------------------------------------------------------
0017 // KDE Includes
0018 
0019 // ----------------------------------------------------------------------------
0020 // Project Includes
0021 
0022 #include "kmymoneyviewbase.h"
0023 
0024 class SelectedObjects;
0025 
0026 /**
0027   * @author Kevin Tambascio
0028   * @author Łukasz Wojniłowicz
0029   */
0030 class KInvestmentViewPrivate;
0031 class KInvestmentView : public KMyMoneyViewBase
0032 {
0033     Q_OBJECT
0034 
0035 public:
0036     explicit KInvestmentView(QWidget *parent = nullptr);
0037     ~KInvestmentView() override;
0038 
0039     void setDefaultFocus() override;
0040 
0041     void updateActions(const SelectedObjects& selections) override;
0042     void executeAction(eMenu::Action action, const SelectedObjects& selections) override;
0043 
0044 public Q_SLOTS:
0045     void slotSettingsChanged() override;
0046 
0047 protected:
0048     void showEvent(QShowEvent* event) override;
0049 
0050 private:
0051     Q_DECLARE_PRIVATE(KInvestmentView)
0052 
0053 private Q_SLOTS:
0054     void slotNewInvestment();
0055     void slotEditInvestment();
0056     void slotDeleteInvestment();
0057     void slotUpdatePriceOnline();
0058     void slotUpdatePriceManually();
0059 
0060     void slotEditSecurity();
0061     void slotDeleteSecurity();
0062 };
0063 
0064 #endif