summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KDatePicker.java
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KDatePicker.java')
-rw-r--r--tdejava/koala/org/trinitydesktop/koala/KDatePicker.java176
1 files changed, 176 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KDatePicker.java b/tdejava/koala/org/trinitydesktop/koala/KDatePicker.java
new file mode 100644
index 00000000..44e66517
--- /dev/null
+++ b/tdejava/koala/org/trinitydesktop/koala/KDatePicker.java
@@ -0,0 +1,176 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.trinitydesktop.koala;
+
+import org.trinitydesktop.qt.Qt;
+import org.trinitydesktop.qt.TQMetaObject;
+import org.trinitydesktop.qt.QtSupport;
+import org.trinitydesktop.qt.TQObject;
+import org.trinitydesktop.qt.TQSize;
+import java.util.Calendar;
+import org.trinitydesktop.qt.TQEvent;
+import org.trinitydesktop.qt.TQWidget;
+import org.trinitydesktop.qt.TQResizeEvent;
+import org.trinitydesktop.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();
+}