History log of /haiku/src/preferences/time/NetworkTimeView.cpp
Revision Date Author Comments
# 307745c6 24-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

Time preferences: fix button jumping position

Fixes #16102.

Change-Id: I8d89173009b21e1c31652bb2f011ceb46195c232
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2795
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


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

Time preferences: remove \r

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


# bcc52318 30-Aug-2017 Augustin Cavalier <waddlesplash@gmail.com>

NetworkTimeView: Add missing default in MessageReceived switch.

Fixes #12652.


# ad926b25 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Improve/fix tab view layout as discussed

See http://www.freelists.org/post/haiku-development/Unifying-visuals-of-BTabView-usage

Besides the tab bar going the full width of the window, also some
layouting tweaks to several apps and prefs.

Still missing: the first (and last) tabs in the tab bar should be inset by
B_USE_WINDOW_SPACING so the controls in the tab view line up nicely.
I think I remember stippi wanting to look into it... :)


# 1520fffa 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Use button label symbols & relayout

Add becomes +, Remove becomes −, the current button labels "Add" and "Remove"
are used as tool tips. Relayout the controls so that they fit nicely with the
buttons:

The add button is placed left of the server text control showing that it
adds new server names while the remove button is placed next to the list
view showing that it removes server names from the list.

The reset button is placed next to the "Synchronize" button at the bottom of
the tab group and is renamed "Reset to default server list".

This makes the window a bit taller.


# deda8cad 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Set text colors in constructor


# 15cc2a1f 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Set pointer NULL, delete in destructor

... avoiding potential memory leak.


# 8fbf8d56 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Enable add button if server name valid

* Add button is disabled initially (as the server name is blank)
* Use B_FAILURE_COLOR when server name is invalid instead of hardcoding red
* Some code refactoring
* Some style fixes


# 62b45ce1 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Disable remove button if list empty


# 8d6d2daa 26-Mar-2014 John Scipione <jscipione@gmail.com>

Time: Remove superfluous MakeEmpty()

Thanks AnEvilYak


# aa803390 26-Mar-2014 John Scipione <jscipione@gmail.com>

Time: Fix memory leak.

BListView::RemoveItem() doesn't delete the item, it just removes it
from the list. We have to delete the item to free the memory it
consumes ourselves.


# 14d75221 26-Mar-2014 John Scipione <jscipione@gmail.com>

Time: Style fixes to NetworkTimeView


# 39a1e74b 26-Mar-2014 Dariusz Knociński <dknoto@gmail.com>

Time Preferences crashes with empty selection

Application "Time" crashes when you push "Remove" button without any
selection on list of network time servers.

Fixes #10716

Please use git format-patch to create your patches in the future so that
the author information is preserved.

Signed-off-by: John Scipione <jscipione@gmail.com>


# 5084d0d4 10-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added more things to x86_64 image.

Some preference apps, mount_server and AboutSystem. Removed the check
for x86_64 in the boot script, the normal path through the script will
work now. Also removed a temporary hack to workaround AboutSystem not
being there in build_haiku_image.


# 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.


# 0106325b 02-Jan-2012 Philippe Saint-Pierre <stpere@gmail.com>

Time preference: Fix a memory leak

Accidentally introduced with an earlier commit.


# e9132cc3 02-Jan-2012 Philippe Saint-Pierre <stpere@gmail.com>

Time preferences: use std::nothrow variant of new operator

Also make sure to avoid an eventual negative array size. CID 10934.


# d2d65a82 11-Jun-2011 leavengood <leavengood@a95241bf-73f2-0310-859d-f6bbb57e9c96>

Fix #7672 by applying humdinger's patch then adding more:

The server name is checked while typing and if it is not valid the text is made
red. Invalid entries cannot be added to the list.

Also made the server add message be the invoking message so that the enter key
works to add a server.

After adding a valid server the text is cleared.

Valid servers names are alpha-numeric with periods, dashes and underscores.
Could need some things added but that should cover 99% of the cases.



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


# 8c333297 05-Jun-2011 Ryan Leavengood <leavengood@gmail.com>

Apply another patch from Hamish from ticket #2412 which adds more localization
and removes unneeded whitespace. Thanks!


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


# 365839fb 05-Jun-2011 Ryan Leavengood <leavengood@gmail.com>

Apply patches from Humdinger and mt (with some overlap) which adds localization
to the Network time tab and makes the layout use more standard spacing.

Also changed the name of the Synchronize button after a sync to Synchronize again.

Fixes #7642.


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


# 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


# 1520fffa4fd13aee78688ae7ea106eb99bad4773 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Use button label symbols & relayout

Add becomes +, Remove becomes −, the current button labels "Add" and "Remove"
are used as tool tips. Relayout the controls so that they fit nicely with the
buttons:

The add button is placed left of the server text control showing that it
adds new server names while the remove button is placed next to the list
view showing that it removes server names from the list.

The reset button is placed next to the "Synchronize" button at the bottom of
the tab group and is renamed "Reset to default server list".

This makes the window a bit taller.


# deda8cad48ba3b49cc3f9cc3f0a1c4309ebe2a88 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Set text colors in constructor


# 15cc2a1fad4c67ece238f5f20c9bae4607cf7c05 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Set pointer NULL, delete in destructor

... avoiding potential memory leak.


# 8fbf8d56f65dad4161b3e6ff939b79ceda8a6416 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Enable add button if server name valid

* Add button is disabled initially (as the server name is blank)
* Use B_FAILURE_COLOR when server name is invalid instead of hardcoding red
* Some code refactoring
* Some style fixes


# 62b45ce1908ac4d4c04b748f7d6edc0b44b08a08 31-Mar-2014 John Scipione <jscipione@gmail.com>

Time prefs: Disable remove button if list empty


# 8d6d2daa3fa0eaad0688115269020590545d49a4 26-Mar-2014 John Scipione <jscipione@gmail.com>

Time: Remove superfluous MakeEmpty()

Thanks AnEvilYak


# aa8033905a9ad2a9e9de95554ffd421883f0a8da 26-Mar-2014 John Scipione <jscipione@gmail.com>

Time: Fix memory leak.

BListView::RemoveItem() doesn't delete the item, it just removes it
from the list. We have to delete the item to free the memory it
consumes ourselves.


# 14d7522197234439d6f4441a3e263d3af0e143cf 26-Mar-2014 John Scipione <jscipione@gmail.com>

Time: Style fixes to NetworkTimeView


# 39a1e74b081582fd8d320347496f61dca43aaf10 26-Mar-2014 Dariusz Knociński <dknoto@gmail.com>

Time Preferences crashes with empty selection

Application "Time" crashes when you push "Remove" button without any
selection on list of network time servers.

Fixes #10716

Please use git format-patch to create your patches in the future so that
the author information is preserved.

Signed-off-by: John Scipione <jscipione@gmail.com>


# 5084d0d451501f3c026d593dc109cbb76d7688fc 10-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added more things to x86_64 image.

Some preference apps, mount_server and AboutSystem. Removed the check
for x86_64 in the boot script, the normal path through the script will
work now. Also removed a temporary hack to workaround AboutSystem not
being there in build_haiku_image.


# 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.


# 0106325bc4c526030732490d88ad3d1778b20121 02-Jan-2012 Philippe Saint-Pierre <stpere@gmail.com>

Time preference: Fix a memory leak

Accidentally introduced with an earlier commit.


# e9132cc34c92f48eb61991047e030fef42a2e6fa 02-Jan-2012 Philippe Saint-Pierre <stpere@gmail.com>

Time preferences: use std::nothrow variant of new operator

Also make sure to avoid an eventual negative array size. CID 10934.


# d2d65a82c839e4596b5f303c3a9f18aec8450930 11-Jun-2011 leavengood <leavengood@a95241bf-73f2-0310-859d-f6bbb57e9c96>

Fix #7672 by applying humdinger's patch then adding more:

The server name is checked while typing and if it is not valid the text is made
red. Invalid entries cannot be added to the list.

Also made the server add message be the invoking message so that the enter key
works to add a server.

After adding a valid server the text is cleared.

Valid servers names are alpha-numeric with periods, dashes and underscores.
Could need some things added but that should cover 99% of the cases.



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


# 8c333297c193c3b21191888795bd0525489a7a5e 05-Jun-2011 Ryan Leavengood <leavengood@gmail.com>

Apply another patch from Hamish from ticket #2412 which adds more localization
and removes unneeded whitespace. Thanks!


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


# 365839fb2d437064cb1027ab03e0933c4f743f0b 05-Jun-2011 Ryan Leavengood <leavengood@gmail.com>

Apply patches from Humdinger and mt (with some overlap) which adds localization
to the Network time tab and makes the layout use more standard spacing.

Also changed the name of the Synchronize button after a sync to Synchronize again.

Fixes #7642.


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


# 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