kspread

kspread_insertcalendardialog.h
1 /***************************************************************************
2 * Copyright (C) 2005 by Raphael Langerhorst *
3 * raphael-langerhorst@gmx.at *
4 * *
5 * Permission is hereby granted, free of charge, to any person obtaining *
6 * a copy of this software and associated documentation files (the *
7 * "Software"), to deal in the Software without restriction, including *
8 * without limitation the rights to use, copy, modify, merge, publish, *
9 * distribute, sublicense, and/or sell copies of the Software, and to *
10 * permit persons to whom the Software is furnished to do so, subject to *
11 * the following conditions: *
12 * *
13 * The above copyright notice and this permission notice shall be *
14 * included in all copies or substantial portions of the Software. *
15 * *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, *
17 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*
19 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR *
20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
22 * OTHER DEALINGS IN THE SOFTWARE. *
23 ***************************************************************************/
24
25#ifndef KSPREAD_INSERTCALENDARDIALOG_H
26#define KSPREAD_INSERTCALENDARDIALOG_H
27
28#include <kspread_insertcalendardialogbase.h>
29#include <koffice_export.h>
30
31#include <tqdatetime.h>
32
33class KDatePicker;
34
35namespace KSpread
36{
37
38class KSPREAD_EXPORT InsertCalendarDialog : public InsertCalendarDialogBase
39{
40 TQ_OBJECT
41
42
43 private:
44
50 KDatePicker* m_datePicker;
51
52 public:
53
59 InsertCalendarDialog(TQWidget* parent = 0, const char* name = 0);
60
64 virtual ~InsertCalendarDialog();
65
66 protected:
67
77 bool buildDatePickerFrame();
78
79 protected slots:
80
86 void datePickerDeleted();
87
98 virtual void accept();
99
109 virtual void reject();
110
111 public slots:
112
117 void showStartDatePicker();
118
123 void showEndDatePicker();
124
129 void setStartDate(TQDate);
130
135 void setEndDate(TQDate);
136
137 public:
138
139 // METHODS for getting data //
140
144 TQDate startDate() const;
145
149 TQDate endDate() const;
150
151 signals:
152
161 void insertCalendar(const TQDate &from, const TQDate &to);
162};
163
164}
165
166#endif
The KSpread namespace.
Definition commands.h:39