2015-06-11 18:07:06 -05:00
|
|
|
// 11 june 2015
|
|
|
|
#include "uipriv_unix.h"
|
|
|
|
|
2015-08-27 15:17:18 -05:00
|
|
|
struct uiDateTimePicker {
|
|
|
|
uiUnixControl c;
|
2015-06-11 18:07:06 -05:00
|
|
|
GtkWidget *widget;
|
|
|
|
};
|
|
|
|
|
2015-08-27 15:17:18 -05:00
|
|
|
uiUnixDefineControl(
|
|
|
|
uiDateTimePicker, // type name
|
|
|
|
uiDateTimePickerType // type function
|
|
|
|
)
|
2015-06-11 18:07:06 -05:00
|
|
|
|
2015-06-14 19:02:38 -05:00
|
|
|
// TODO
|
|
|
|
typedef int OSTHING;
|
|
|
|
enum {
|
|
|
|
OSARGDATETIME,
|
|
|
|
OSARGDATEONLY,
|
|
|
|
OSARGTIMEONLY,
|
|
|
|
};
|
|
|
|
|
2015-06-11 18:07:06 -05:00
|
|
|
uiDateTimePicker *finishNewDateTimePicker(OSTHING OSARG)
|
|
|
|
{
|
2015-08-27 15:17:18 -05:00
|
|
|
uiDateTimePicker *d;
|
2015-06-11 18:07:06 -05:00
|
|
|
|
2015-08-28 09:10:52 -05:00
|
|
|
d = (uiDateTimePicker *) uiNewControl(uiDateTimePickerType());
|
2015-06-11 18:07:06 -05:00
|
|
|
|
2015-06-27 18:57:10 -05:00
|
|
|
d->widget = gtk_label_new("TODO uiDateTimePicker not implemented");
|
2015-06-11 18:07:06 -05:00
|
|
|
|
2015-08-27 15:17:18 -05:00
|
|
|
uiUnixFinishNewControl(d, uiDateTimePicker);
|
2015-06-11 18:07:06 -05:00
|
|
|
|
2015-08-27 15:17:18 -05:00
|
|
|
return d;
|
2015-06-11 18:07:06 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
uiDateTimePicker *uiNewDateTimePicker(void)
|
|
|
|
{
|
|
|
|
return finishNewDateTimePicker(OSARGDATETIME);
|
|
|
|
}
|
|
|
|
|
|
|
|
uiDateTimePicker *uiNewDatePicker(void)
|
|
|
|
{
|
|
|
|
return finishNewDateTimePicker(OSARGDATEONLY);
|
|
|
|
}
|
|
|
|
|
|
|
|
uiDateTimePicker *uiNewTimePicker(void)
|
|
|
|
{
|
|
|
|
return finishNewDateTimePicker(OSARGTIMEONLY);
|
|
|
|
}
|