blob: ff4e7b3d286b530f0c3ae90c52d736e9ae0195a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/***************************************************************************
kenterscheduledlg.h - description
-------------------
begin : Sat Apr 7 2007
copyright : (C) 2007 by Thomas Baumgart
email : Thomas Baumgart <[email protected]>
***************************************************************************/
/***************************************************************************
* *
* 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
{
TQ_OBJECT
public:
KEnterScheduleDlg(TQWidget *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.
*/
TQDate date(const TQDate& _date) const;
void resizeEvent(TQResizeEvent* 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
|