[Gambas-devel] New DateTime controls
Wojciech Saltarski
gambas at ...64...
Fri Dec 17 19:38:05 CET 2004
Hi
I was waiting for new controls but I was impatient for it, so I spy on
existing controls and made them by myself.
The problem is that I'm not knowledgeable about C/C++ so it is necessary to
check if I made any stupid mistakes.
They are working correctly on my computer.
In attachment:
For qt.kde:
DateWidget
event: Change
property: Value as date (hidden)
DateTimeWidget
event: Change
property: Value as date (hidden)
TimeWidget
event: Change
property: Value as date (hidden)
For qt.ext:
DateEdit
event: Change
property: Value as date (hidden)
MinValue as date (hidden)
MaxValue as date (hidden)
DateSeparator as string
DateOreder as integer (0 - DMY, 1 - MDY, 2 - YMD, 3 - YDM)
DateTimeEdit
event: Change
property: Value as date (hidden)
MinValue as date (hidden) - MinDate only
MaxValue as date (hidden) - MaxDate only
DateSeparator as string
DateOreder as integer (0 - DMY, 1 - MDY, 2 - YMD, 3 - YDM)
TimeSeparator as string
DisplayHours as boolean
DisplayMinutes as boolean
DisplaySeconds as boolean
DisplayAMPM as boolean
Display as integer (hidden) - sum of DisplayXXX properties
TimeEdit
event: Change
property: Value as date (hidden)
MinValue as date (hidden)
MaxValue as date (hidden)
TimeSeparator as string
DisplayHours as boolean
DisplayMinutes as boolean
DisplaySeconds as boolean
DisplayAMPM as boolean
Display as integer (hidden) - sum of DisplayXXX properties
DateOrder property need declaration in CConst.cpp file:
GB_DESC CDateOrderDesc[] =
{
GB_DECLARE("DateOrder", 2), GB_VIRTUAL_CLASS(),
GB_CONSTANT("DMY", "i", 0),
GB_CONSTANT("MDY", "i", 1),
GB_CONSTANT("YMD", "i", 2),
GB_CONSTANT("YDM", "i", 3),
GB_END_DECLARE
};
For Gambas IDE:
Icon controls for Toolbox and Min/Max/Value properties maintenance in
FProperty form for QT controls (unhide Min/Max/Value in *.h controls files
required) but Gambas don't manage Date properties as yet.
You can test it without runing project - in design mode only.
Maybe someone test it too. If You don't find mistakes You can add it to IDE
and wait for manage Date properties by Gambas.
I hope, I don't made any stupidity.
I tested it on:
Gambas RC4
QT 3.3.3
KDE 3.3.1
Regards,
--
Wojciech Saltarski mailto:gambas at ...64...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DateTimeControls.tar.bz2
Type: application/x-tbz
Size: 24656 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20041217/1e8408fd/attachment.bin>
More information about the Devel
mailing list