History log of /haiku/src/preferences/time/Time.cpp
Revision Date Author Comments
# 789bcfd8 23-Jan-2022 Panagiotis "Ivory" Vasilopoulos <git@n0toose.net>

Update own credits/copyrights

Change-Id: Ia28784e1c8d534df3946693c850e176c75c5d99a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4882
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 4b12b16e 16-Aug-2021 Panagiotis Vasilopoulos <hello@alwayslivid.com>

Time: Add about window

The window is not easily accessible from the application itself, so this
change is practically not that useful, but it's still a good idea to continue
replacing old BAlert windows with BAboutWindow in order for the Haiku source
code to be exemplary as far as developing applications is concerned.

Change-Id: I05ea971ed0f8a996d5e168066b18eb7fe8bd5b3e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4331
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 27823b29 31-Aug-2019 Adrien Destugues <pulkomandy@pulkomandy.tk>

Time preferences: remove \r

We are not Windows, we don't need these.


# eb3cdd8a 07-Apr-2019 Augustin Cavalier <waddlesplash@gmail.com>

Time: Run synchronization on network up.

Also move the settings check into launch_daemon, as that way
"Time --update" can be invoked even when the setting is disabled.

Fixes #9348.


# 9dc78758 01-Sep-2017 Akshay Agarwal <agarwal.akshay.akshay8@gmail.com>

Time Preferences: Update CalendarView day name header on locale preferences change.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 31c0024d 07-Nov-2012 John Scipione <jscipione@gmail.com>

Add Deskbar clock settings to Time Preferences

* Added a new Clock tab to the Time preflet. Added Clock related
controls there. They all function by communicating with Deskbar.
* Put controls in a BBox controlled by the Show clock checkbox.
This more clearly shows that all the clock settings are dependent
on the show clock setting since it doesn't matter what your clock
settings are if you don't show the clock.
* Make revert work.
* Split clock settings into it's own file and struct.
* Re-add the time zone setting.
* Remove the clock settings from the Deskbar preference window, they
are in Time now.
* Make Locale preferences accepts B_LOCALE_CHANGED message, although
not used.


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# dd7b8fc4 25-Feb-2012 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup: correct typo, bump copyright and adjust formatting.


# e1aba792 23-Feb-2012 Oliver Tappe <zooey@hirschkaefer.de>

Activate locale settings in Deskbar & Time preflet.

* Both Deskbar and Time are using BCalendarView, which in turn uses
DateTime, which uses strftime() to generate month/day names. Of
course, this doesn't work as intended unless the locale has been
initialized.


# cefa27bf 23-Feb-2012 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup: fix a couple of styleguide violations.


# 323ba9b7 04-Jun-2011 Ryan Leavengood <leavengood@gmail.com>

Apply Hamish Morrison's patch from #2412, with a few small style changes and
merging my fixes to ntp.cpp from the NetworkTime source.

This makes Time use the layout system as well as support updating time through
the network.

I tried very hard to catch and fix any new style violations, though in general
Hamish did quite well.

After some testing this could be put in Alpha3, but I won't mark it as such
yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41930 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 825d265e 24-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Mike Roll as part of GCI: Localize Time preflet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39935 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6d6408d6 28-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup, no functional change
* coding style adjustements
* fixed all warnings

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37792 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 310930fd 09-May-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Philippe Saint-Pierre:
* Extended the scope of the Revert feature to include changes to the time zone.
* Moved the Revert button out of the tab view, so that it indicates the above
visually. The window now handles the Revert feature.
* Added Others/Greenwhich time zone which is equivalent to an "unset" time zone.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25415 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e28ef85a 15-Mar-2008 Rene Gollent <anevilyak@gmail.com>

Unify the app signature used everywhere for the time prefs. This fixes dstcheck being unable to actually invoke the
time prefs if asked to adjust the clock.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24403 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dc7de148 20-Oct-2007 Karsten Heimrich <host.haiku@gmx.de>

* save and load the window position inside window class, center on first start

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22627 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3ad1de3b 14-Oct-2007 Karsten Heimrich <host.haiku@gmx.de>

* implemented gmt/ local time switch, not working atm but will investigate

note: i think it should be enough to only call _kern_set_tzfilename(..) as the timezone offset and
dst would have been set by clockconfig on boot or from the time prefs panel while switching the
timezone. so the comment in _user_set_tzfilename should not be count and no update would
be needed. it should only take the sIsGmt boolean take into account when getting the time.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22558 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 00826781 14-Oct-2007 Karsten Heimrich <host.haiku@gmx.de>

* implemented Time, Date, DateTime classes to be used in CalendarView
* implemented new Calendarview, capable to show/hide week numbers and day names
weekstart sunday/monday and getting the current selected date etc...

* updated mail addresses
* make use of the new calendar view in time prefs
* changed required classes to use the new date, time classes
* gmt/ local time change implementation is missing atm, will come next

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22554 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd7c0c2e 14-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Julun:
* fixed more style issues
* fixed small memory leaks
* refactoring
+ some small changes by myself, added back Michael Berg and Andrew McCall as
likely authors of most files which had no author information


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22232 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 42b3a11f 12-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Julun:
* further cleanup of code to apply style guide
* removed now obsolete clock bitmaps
* some restructuring of the code
* adjusted layout of the time zone pane


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22222 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 37ec4f04 22-Oct-2006 Axel Dörfler <axeld@pinc-software.de>

* Cleanup of signatures and version infos - this is part of a fix to bug #909.
I've done all preferences apps for now, and some related.
* Some other related cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19090 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a10cf76e 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13263 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 31c0024d1b271b0b671c77432cce0be483b366f0 07-Nov-2012 John Scipione <jscipione@gmail.com>

Add Deskbar clock settings to Time Preferences

* Added a new Clock tab to the Time preflet. Added Clock related
controls there. They all function by communicating with Deskbar.
* Put controls in a BBox controlled by the Show clock checkbox.
This more clearly shows that all the clock settings are dependent
on the show clock setting since it doesn't matter what your clock
settings are if you don't show the clock.
* Make revert work.
* Split clock settings into it's own file and struct.
* Re-add the time zone setting.
* Remove the clock settings from the Deskbar preference window, they
are in Time now.
* Make Locale preferences accepts B_LOCALE_CHANGED message, although
not used.


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# dd7b8fc4547dcbb47b895df41f5d7aaf1bce16f1 25-Feb-2012 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup: correct typo, bump copyright and adjust formatting.


# e1aba79288a3324acc5d4383a5c811ff56322256 23-Feb-2012 Oliver Tappe <zooey@hirschkaefer.de>

Activate locale settings in Deskbar & Time preflet.

* Both Deskbar and Time are using BCalendarView, which in turn uses
DateTime, which uses strftime() to generate month/day names. Of
course, this doesn't work as intended unless the locale has been
initialized.


# cefa27bf8223e91286b2e6417a4de6e32f790aaf 23-Feb-2012 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup: fix a couple of styleguide violations.


# 323ba9b7fb40975a7c28fb985b30c3a38352b4e9 04-Jun-2011 Ryan Leavengood <leavengood@gmail.com>

Apply Hamish Morrison's patch from #2412, with a few small style changes and
merging my fixes to ntp.cpp from the NetworkTime source.

This makes Time use the layout system as well as support updating time through
the network.

I tried very hard to catch and fix any new style violations, though in general
Hamish did quite well.

After some testing this could be put in Alpha3, but I won't mark it as such
yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41930 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 825d265efd33da2c0d6b22fa9e9e88e97ad33086 24-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Mike Roll as part of GCI: Localize Time preflet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39935 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6d6408d6bc3f988fdfcca33ebe35d8930e629497 28-Jul-2010 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup, no functional change
* coding style adjustements
* fixed all warnings

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37792 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 310930fd9e9f40c29bc5f77e323fb0c7733c12d9 09-May-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Philippe Saint-Pierre:
* Extended the scope of the Revert feature to include changes to the time zone.
* Moved the Revert button out of the tab view, so that it indicates the above
visually. The window now handles the Revert feature.
* Added Others/Greenwhich time zone which is equivalent to an "unset" time zone.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25415 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e28ef85ab7cf943021316b98d869e94875d803a6 15-Mar-2008 Rene Gollent <anevilyak@gmail.com>

Unify the app signature used everywhere for the time prefs. This fixes dstcheck being unable to actually invoke the
time prefs if asked to adjust the clock.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24403 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dc7de148c3be9339fbab75663b248b929b690d08 20-Oct-2007 Karsten Heimrich <host.haiku@gmx.de>

* save and load the window position inside window class, center on first start

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22627 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3ad1de3b5ad87c6a4676f75701c1bec336cc28ed 14-Oct-2007 Karsten Heimrich <host.haiku@gmx.de>

* implemented gmt/ local time switch, not working atm but will investigate

note: i think it should be enough to only call _kern_set_tzfilename(..) as the timezone offset and
dst would have been set by clockconfig on boot or from the time prefs panel while switching the
timezone. so the comment in _user_set_tzfilename should not be count and no update would
be needed. it should only take the sIsGmt boolean take into account when getting the time.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22558 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 00826781d4b5f07e130c9ed6d8d1b05eb57cab3a 14-Oct-2007 Karsten Heimrich <host.haiku@gmx.de>

* implemented Time, Date, DateTime classes to be used in CalendarView
* implemented new Calendarview, capable to show/hide week numbers and day names
weekstart sunday/monday and getting the current selected date etc...

* updated mail addresses
* make use of the new calendar view in time prefs
* changed required classes to use the new date, time classes
* gmt/ local time change implementation is missing atm, will come next

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22554 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd7c0c2ed7da4e121fc5a97385bed6cff67c0e9e 14-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Julun:
* fixed more style issues
* fixed small memory leaks
* refactoring
+ some small changes by myself, added back Michael Berg and Andrew McCall as
likely authors of most files which had no author information


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22232 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 42b3a11f1960a3ccac0a1c00c2811f0f37baca0d 12-Sep-2007 Stephan Aßmus <superstippi@gmx.de>

patch by Julun:
* further cleanup of code to apply style guide
* removed now obsolete clock bitmaps
* some restructuring of the code
* adjusted layout of the time zone pane


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22222 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 37ec4f04fe75996e8feb4b69bb77716d05e9b3d3 22-Oct-2006 Axel Dörfler <axeld@pinc-software.de>

* Cleanup of signatures and version infos - this is part of a fix to bug #909.
I've done all preferences apps for now, and some related.
* Some other related cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19090 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a10cf76ef5b9e8c726ebc47183abd6943023cf8f 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13263 a95241bf-73f2-0310-859d-f6bbb57e9c96