summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KDatePicker.java
blob: a3711a0866a9ca083d1515259cb002d212010a2d (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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQObject;
import org.kde.qt.TQSize;
import java.util.Calendar;
import org.kde.qt.TQEvent;
import org.kde.qt.TQWidget;
import org.kde.qt.TQResizeEvent;
import org.kde.qt.TQFrame;

/**

 Provides a widget for calendar date input.
     Different from the
     previous versions, it now emits two types of signals, either
 dateSelected() or dateEntered() (see documentation for both
     signals).
     A line edit has been added in the newer versions to allow the user
     to select a date directly by entering numbers like 19990101
     or 990101.
 \image html kdatepicker.png "KDE Date Widget"
 See {@link KDatePickerSignals} for signals emitted by KDatePicker
		@author Tim Gilman, Mirko Boehm

		@version $Id$

		@short A date selection widget.

*/
public class KDatePicker extends TQFrame  {
	protected KDatePicker(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	 The usual constructor.  The given date will be displayed
		 initially.
				@short   The usual constructor.
	*/
	public KDatePicker(TQWidget parent, Calendar arg2, String name) {
		super((Class) null);
		newKDatePicker(parent,arg2,name);
	}
	private native void newKDatePicker(TQWidget parent, Calendar arg2, String name);
	public KDatePicker(TQWidget parent, Calendar arg2) {
		super((Class) null);
		newKDatePicker(parent,arg2);
	}
	private native void newKDatePicker(TQWidget parent, Calendar arg2);
	public KDatePicker(TQWidget parent) {
		super((Class) null);
		newKDatePicker(parent);
	}
	private native void newKDatePicker(TQWidget parent);
	public KDatePicker() {
		super((Class) null);
		newKDatePicker();
	}
	private native void newKDatePicker();
	/**	 The usual constructor.  The given date will be displayed
		 initially.
				@short   The usual constructor.
	*/
	public KDatePicker(TQWidget parent, Calendar arg2, String name, int f) {
		super((Class) null);
		newKDatePicker(parent,arg2,name,f);
	}
	private native void newKDatePicker(TQWidget parent, Calendar arg2, String name, int f);
	/**	
		 Standard qt widget constructor. The initial date will be the
		 current date.
				@short    Standard qt widget constructor.
	*/
	public KDatePicker(TQWidget parent, String name) {
		super((Class) null);
		newKDatePicker(parent,name);
	}
	private native void newKDatePicker(TQWidget parent, String name);
	/**	 The size hint for date pickers. The size hint recommends the
		   minimum size of the widget so that all elements may be placed
		  without clipping. This sometimes looks ugly, so when using the
		  size hint, try adding 28 to each of the reported numbers of
		  pixels.
				@short   The size hint for date pickers.
	*/
	public native TQSize sizeHint();
	/**	
		 Sets the date.
				@return <code>false</code> and does not change anything
      if the date given is invalid.

		@short    Sets the date.
	*/
	public native boolean setDate(Calendar arg1);
	/**	
				@return the selected date.
   
		@short
	*/
	public native Calendar date();
	/**	
		 Enables or disables the widget.
				@short    Enables or disables the widget.
	*/
	public native void setEnabled(boolean arg1);
	/**	
				@return the KDateTable widget child of this KDatePicker
 widget.

		@short
	*/
	public native KDateTable dateTable();
	/**	
		 Sets the font size of the widgets elements.
				@short    Sets the font size of the widgets elements.
	*/
	public native void setFontSize(int arg1);
	/**	
		 Returns the font size of the widget elements.
		   		@short    Returns the font size of the widget elements.
	*/
	public native int fontSize();
	/**	
		 By calling this method with <code>enable</code> = true, KDatePicker will show
		 a little close-button in the upper button-row. Clicking the
		 close-button will cause the KDatePicker's topLevelWidget()'s close()
		 method being called. This is mostly useful for toplevel datepickers
		 without a window manager decoration.
				@short    By calling this method with <code>enable</code> = true, KDatePicker will show  a little close-button in the upper button-row.
		@see #hasCloseButton
	*/
	public native void setCloseButton(boolean enable);
	/**	
				@return true if a KDatePicker shows a close-button.

		@short   
		@see #setCloseButton
	*/
	public native boolean hasCloseButton();
	public native boolean eventFilter(TQObject o, TQEvent e);
	protected native void resizeEvent(TQResizeEvent arg1);
	protected native void dateChangedSlot(Calendar arg1);
	protected native void tableClickedSlot();
	protected native void monthForwardClicked();
	protected native void monthBackwardClicked();
	protected native void yearForwardClicked();
	protected native void yearBackwardClicked();
	/**	
				@short
	*/
	protected native void selectMonthClicked();
	/**	
				@short
	*/
	protected native void selectYearClicked();
	/**	
				@short
	*/
	protected native void lineEnterPressed();
	/**	
				@short
	*/
	protected native void todayButtonClicked();
	/**	
				@short
	*/
	protected native void weekSelected(int arg1);
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}