summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/kenterscheduledlg.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
commitdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (patch)
tree99e72842fe687baea16376a147619b6048d7e441 /kmymoney2/dialogs/kenterscheduledlg.h
downloadkmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.tar.gz
kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.zip
Added kmymoney
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/dialogs/kenterscheduledlg.h')
-rw-r--r--kmymoney2/dialogs/kenterscheduledlg.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/kmymoney2/dialogs/kenterscheduledlg.h b/kmymoney2/dialogs/kenterscheduledlg.h
new file mode 100644
index 0000000..0e14ad4
--- /dev/null
+++ b/kmymoney2/dialogs/kenterscheduledlg.h
@@ -0,0 +1,91 @@
+/***************************************************************************
+ kenterscheduledlg.h - description
+ -------------------
+ begin : Sat Apr 7 2007
+ copyright : (C) 2007 by Thomas Baumgart
+ email : Thomas Baumgart <ipwizard@users.sourceforge.net>
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KENTERSCHEDULEDLG_H
+#define KENTERSCHEDULEDLG_H
+
+// ----------------------------------------------------------------------------
+// QT Includes
+
+// ----------------------------------------------------------------------------
+// KDE Includes
+
+// ----------------------------------------------------------------------------
+// Project Includes
+
+class TransactionEditor;
+
+#include "../dialogs/kenterscheduledlgdecl.h"
+#include <kmymoney/mymoneyscheduled.h>
+#include <kmymoney/kmymoneyutils.h>
+
+/**
+ * @author Thomas Baumgart
+ */
+class KEnterScheduleDlg : public KEnterScheduleDlgDecl
+{
+ Q_OBJECT
+public:
+ KEnterScheduleDlg(QWidget *parent, const MyMoneySchedule& schedule);
+ ~KEnterScheduleDlg();
+
+ TransactionEditor* startEdit(void);
+ MyMoneyTransaction transaction(void);
+
+ /**
+ * Show (or hide) the extended dialog keys for 'Skip' and 'Ignore'
+ * depending on the value of the parameter @a visible which defaults
+ * to @a true.
+ */
+ void showExtendedKeys(bool visible = true);
+
+ /**
+ * Return the extended result code. Usage of the returned
+ * value only makes sense, once the dialog has been executed.
+ * Before execution it returns @a Cancel.
+ */
+ KMyMoneyUtils::EnterScheduleResultCodeE resultCode(void) const;
+
+protected:
+ /// Overridden for internal reasons. No API changes.
+ bool focusNextPrevChild(bool next);
+
+ /**
+ * This method returns the adjusts @a _date according to
+ * the setting of the schedule's weekend option.
+ */
+ QDate date(const QDate& _date) const;
+
+ void resizeEvent(QResizeEvent* ev);
+
+public slots:
+ int exec(void);
+
+private slots:
+ void slotSetupSize(void);
+ void slotShowHelp(void);
+ void slotIgnore(void);
+ void slotSkip(void);
+
+private:
+ /// \internal d-pointer class.
+ class Private;
+ /// \internal d-pointer instance.
+ Private* const d;
+};
+
+#endif